/* DigiClippy Website Styles */

:root {
  /* Primary Colors - DigiClippy Blue */
  --primary: #0c60ae;
  --primary-dark: #094a87;
  --primary-light: #3d8fd4;
  --primary-bg: #e8f4fc;

  /* Accent - Warm orange for CTAs */
  --accent: #FF7043;
  --accent-dark: #E64A19;

  /* Neutrals */
  --text-dark: #263238;
  --text-medium: #546E7A;
  --text-light: #78909C;
  --bg-light: #FAFAFA;
  --bg-white: #FFFFFF;
  --border: #E0E0E0;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);

  /* Spacing */
  --container-max: 1200px;
  --section-padding: 80px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Almarai', 'Poppins', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--text-medium);
  margin-bottom: 1rem;
}

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Navigation */
.header {
  background: var(--primary);
  box-shadow: var(--shadow-md);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

/* DigiClippy Logo - Coupon Style */
.logo {
  display: inline-block;
  text-decoration: none;
}

.logo-coupon {
  display: inline-block;
  background: white;
  padding: 4px;
  border-radius: 8px 4px 8px 4px;
}

.logo-inner {
  display: inline-block;
  padding: 6px 14px;
  border: 2px dashed var(--primary);
  border-radius: 6px 2px 6px 2px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  background: white;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: white;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

/* Scissors icon */
.scissors-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: middle;
  margin-left: 8px;
}

.scissors-icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* Hero Section */
.hero {
  padding: 160px 0 var(--section-padding);
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--primary-bg) 100%);
  text-align: center;
}

.hero-tagline {
  font-size: 1.75rem;
  font-weight: 400;
  font-style: italic;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.hero h1 {
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-medium);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--bg-white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-bg);
  color: var(--primary-dark);
}

.btn-accent {
  background: var(--accent);
  color: white;
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* App Preview */
.app-preview {
  margin-top: 60px;
  position: relative;
}

.app-mockup {
  max-width: 300px;
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
  border-radius: 32px;
}

/* Features Section */
.features {
  padding: var(--section-padding) 0;
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--bg-light);
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-bg);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 1.75rem;
}

.feature-card h3 {
  margin-bottom: 12px;
}

/* Stores Section */
.stores {
  padding: var(--section-padding) 0;
  background: var(--primary-bg);
}

.stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.store-card {
  background: var(--bg-white);
  padding: 24px 16px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.store-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.store-card img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.stores-disclaimer {
  margin-top: 40px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Legacy text badges (fallback) */
.store-badge {
  background: var(--bg-white);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  font-weight: 500;
  color: var(--text-medium);
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}

.store-badge:hover {
  transform: scale(1.05);
}

/* Video Section */
.video-section {
  padding: var(--section-padding) 0;
  background: var(--bg-white);
}

.video-container {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-container video {
  width: 100%;
  display: block;
}

/* CTA Section */
.cta {
  padding: var(--section-padding) 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  text-align: center;
  color: white;
}

.cta h2 {
  color: white;
  margin-bottom: 16px;
}

.cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 24px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo-coupon {
  background: rgba(255, 255, 255, 0.15);
}

.footer-brand .logo-inner {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.5);
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
}

.footer-links h4 {
  color: white;
  margin-bottom: 16px;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.875rem;
}

/* Page Header (for inner pages) */
.page-header {
  padding: 140px 0 60px;
  background: linear-gradient(180deg, var(--bg-white) 0%, var(--primary-bg) 100%);
  text-align: center;
}

.page-header h1 {
  color: var(--primary-dark);
}

/* Content Section (for inner pages) */
.content-section {
  padding: var(--section-padding) 0;
  background: var(--bg-white);
}

.content-container {
  max-width: 800px;
  margin: 0 auto;
}

.content-container h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  color: var(--primary-dark);
}

.content-container h2:first-child {
  margin-top: 0;
}

.content-container p {
  margin-bottom: 16px;
}

.content-container ul {
  margin: 16px 0;
  padding-left: 24px;
}

.content-container li {
  margin-bottom: 8px;
  color: var(--text-medium);
}

.last-updated {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 32px;
}

/* Contact Form */
.contact-form {
  background: var(--bg-light);
  padding: 40px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-submit {
  text-align: center;
}

/* App Store Badges */
.store-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.store-badge-link img {
  height: 50px;
  transition: transform 0.2s ease;
}

.store-badge-link:hover img {
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    color: white;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .contact-form {
    padding: 24px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Scissors icon animation */
.scissors-icon {
  display: inline-block;
  animation: snip 1s ease-in-out infinite;
}

@keyframes snip {

  0%,
  100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(-10deg);
  }
}

/* Stores List Page */
.page-subtitle {
  font-size: 1.125rem;
  color: var(--text-medium);
  max-width: 600px;
  margin: 16px auto 0;
}

.stores-list-container {
  max-width: 900px;
  margin: 0 auto;
}

.stores-count {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-medium);
  margin-bottom: 40px;
}

.stores-count strong {
  color: var(--primary);
}

.stores-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 48px;
}

.store-item {
  background: var(--bg-light);
  padding: 16px 20px;
  border-radius: 10px;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.store-item:hover {
  background: var(--primary-bg);
  border-left-color: var(--primary);
  transform: translateX(4px);
}

.stores-note {
  background: var(--primary-bg);
  padding: 32px;
  border-radius: 16px;
  text-align: center;
  margin-bottom: 40px;
}

.stores-note h3 {
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.stores-note p {
  margin-bottom: 0;
}

/* Desktop: center the stores list with fixed columns */
@media (min-width: 769px) {
  .stores-list {
    grid-template-columns: repeat(3, 220px);
    justify-content: center;
    gap: 16px 24px;
    margin-bottom: 64px;
  }
}

@media (max-width: 768px) {
  .stores-list {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .store-item {
    padding: 14px 16px;
    font-size: 0.9rem;
  }
}