/* ========================================
   Bender Eyecare — Bold Editorial Style
   Deep Navy + Warm Gold Palette
======================================== */

/* CSS Custom Properties */
:root {
  --navy-950: #0a0f1e;
  --navy-900: #0d1528;
  --navy-800: #111d35;
  --navy-700: #162344;
  --navy-600: #1a2b52;
  --navy-500: #1e3463;
  --gold-600: #8a6914;
  --gold-500: #b8860b;
  --gold-400: #d4a017;
  --gold-300: #e6b422;
  --gold-200: #f0cc5c;
  --gold-100: #f7e08a;
  --cream: #faf6ee;
  --cream-light: #fdf9f0;
  --white: #ffffff;
  --text-dark: #0a0f1e;
  --text-body: #2d3748;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 3px rgba(10, 15, 30, 0.08);
  --shadow-md: 0 4px 16px rgba(10, 15, 30, 0.1);
  --shadow-lg: 0 8px 32px rgba(10, 15, 30, 0.12);
  --shadow-xl: 0 16px 48px rgba(10, 15, 30, 0.15);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--navy-900);
  line-height: 1.15;
  font-weight: 400;
}

.section-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--navy-900);
  margin-bottom: var(--space-lg);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--navy-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
  font-weight: 600;
}

.btn-gold:hover {
  background: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ========================================
   Navbar
======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-lg) 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 15, 30, 0.95);
  backdrop-filter: blur(12px);
  padding: var(--space-md) 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo-icon {
  color: var(--gold-400);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--gold-400);
}

.nav-cta {
  background: var(--gold-500) !important;
  color: var(--navy-900) !important;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--gold-400) !important;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Hero
======================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 15, 30, 0.85) 0%,
    rgba(10, 15, 30, 0.7) 50%,
    rgba(10, 15, 30, 0.5) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-top: var(--space-4xl);
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: var(--space-lg);
}

.hero-headline {
  font-size: clamp(2.75rem, 7vw, 5rem);
  color: var(--white);
  margin-bottom: var(--space-xl);
  line-height: 1.05;
  font-weight: 400;
}

.hero-headline em {
  font-style: italic;
  color: var(--gold-300);
}

.hero-subheadline {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: var(--space-2xl);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   Quick Info
======================================== */
.quick-info {
  background: var(--navy-900);
  padding: 0;
  margin-top: -1px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.info-card {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-2xl) var(--space-2xl);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.info-card:last-child {
  border-right: none;
}

.info-card:hover {
  background: rgba(255, 255, 255, 0.03);
}

.info-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: rgba(184, 134, 11, 0.15);
  color: var(--gold-400);
}

.info-card h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: var(--space-xs);
}

.info-card p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 400;
}

/* ========================================
   Services
======================================== */
.services {
  padding: var(--space-4xl) 0;
  background: var(--cream);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header .section-subtitle {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: var(--transition);
  border: 1px solid rgba(10, 15, 30, 0.06);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--navy-900);
  color: var(--gold-400);
  margin-bottom: var(--space-lg);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ========================================
   About
======================================== */
.about {
  padding: var(--space-4xl) 0;
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  border: 3px solid var(--gold-400);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-content .section-eyebrow {
  text-align: left;
}

.about-content .section-title {
  text-align: left;
}

.about-text {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.about-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--text-body);
}

.about-feature svg {
  color: var(--gold-500);
  flex-shrink: 0;
}

/* ========================================
   Testimonials
======================================== */
.testimonials {
  padding: var(--space-4xl) 0;
  background: var(--navy-900);
}

.testimonials .section-title {
  color: var(--white);
  text-align: center;
}

.testimonials .section-eyebrow {
  text-align: center;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: var(--transition);
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.testimonial-quote {
  color: var(--gold-400);
  margin-bottom: var(--space-lg);
  opacity: 0.6;
}

.testimonial-text {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
  margin-bottom: var(--space-xl);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-700);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
}

.author-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.author-location {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   CTA / Contact
======================================== */
.cta {
  padding: var(--space-4xl) 0;
  background: var(--cream);
}

.cta-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.cta-content .section-eyebrow {
  text-align: center;
}

.cta-content .section-title {
  text-align: center;
}

.cta-text {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: var(--space-3xl);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  text-align: left;
  margin-top: var(--space-2xl);
}

.cta-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  justify-content: center;
}

.cta-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
}

.cta-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--navy-900);
  color: var(--gold-400);
}

.cta-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.cta-value {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: var(--navy-900);
  font-weight: 700;
}

.cta-value a {
  color: var(--navy-900);
}

.cta-value a:hover {
  color: var(--gold-500);
}

.cta-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(10, 15, 30, 0.06);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-body);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(10, 15, 30, 0.12);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--text-dark);
  background: var(--cream-light);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-500);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

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

.success-message {
  display: none;
  text-align: center;
  padding: var(--space-2xl);
}

.success-message svg {
  color: var(--gold-500);
  margin-bottom: var(--space-md);
}

.success-message h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.success-message p {
  color: var(--text-muted);
}

/* ========================================
   Footer
======================================== */
.footer {
  background: var(--navy-950);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand .logo {
  margin-bottom: var(--space-lg);
}

.footer-brand p {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 280px;
}

.footer-links h4,
.footer-hours h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: var(--space-lg);
}

.footer-links ul,
.footer-hours ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-links a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-links a:hover {
  color: var(--gold-400);
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.55);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-hours li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-2xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a:hover {
  color: var(--gold-400);
}

/* ========================================
   Scroll Reveal (progressive enhancement)
======================================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Without JS, all content is visible */
@media not all and (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ========================================
   Responsive
======================================== */
@media (max-width: 1024px) {
  .services-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--navy-900);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-xl);
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.125rem;
  }

  .hero-content {
    padding-top: 0;
  }

  .hero-headline {
    font-size: clamp(2.25rem, 10vw, 3.5rem);
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-xl);
  }

  .info-card:last-child {
    border-bottom: none;
  }

  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-image {
    order: -1;
  }

  .about-image img {
    height: 350px;
  }

  .about-accent {
    display: none;
  }

  .about-content .section-eyebrow,
  .about-content .section-title {
    text-align: center;
  }

  .about-text {
    text-align: center;
  }

  .about-features {
    justify-items: center;
  }

  .about-content .btn {
    display: inline-flex;
  }

  .cta-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .cta-form {
    order: -1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .about-features {
    grid-template-columns: 1fr;
  }
}
