/* ============================================================
   EagleSight Opticals & Eye Clinic — Global Stylesheet
   Design: Refined Medical Minimalism
   Colors: Cream #FAF8F3 | Dark #0C1A14 | Emerald #0E6B50 | Gold #C9A96E
   Font: Satoshi (Fontshare)
   ============================================================ */

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,600,700,900&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:   #FAF8F3;
  --dark:    #0C1A14;
  --emerald: #0E6B50;
  --gold:    #C9A96E;
  --muted:   #3D5248;
  --subtle:  #5A6B62;
  --border:  #E0DDD6;
  --cream2:  #F0EDE6;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Satoshi', system-ui, sans-serif;
  background-color: var(--cream);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ── Buttons ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--emerald); color: var(--cream);
  font-weight: 600; font-size: 0.875rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 14px 32px; border: 2px solid var(--emerald);
  transition: background .3s, color .3s;
}
.btn-primary:hover { background: transparent; color: var(--emerald); }

.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--gold);
  font-weight: 600; font-size: 0.875rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 14px 32px; border: 2px solid var(--gold);
  transition: background .3s, color .3s;
}
.btn-gold:hover { background: var(--gold); color: var(--dark); }

/* ── Section label ── */
.section-label {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
}

/* ── Gold rule after heading ── */
.gold-rule::after {
  content: ''; display: block;
  width: 48px; height: 2px;
  background: var(--gold); margin-top: 12px;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Nav link ── */
.nav-link {
  position: relative; font-size: 0.875rem; font-weight: 500;
  color: var(--dark); letter-spacing: 0.02em;
  background: none; border: none; padding-bottom: 2px;
  transition: color .2s;
}
.nav-link::after {
  content: ''; position: absolute;
  bottom: -2px; left: 0; width: 0; height: 1.5px;
  background: var(--gold); transition: width .3s;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ── NAVBAR ── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--cream); border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
#navbar.scrolled {
  border-color: var(--border);
  box-shadow: 0 1px 12px rgba(12,26,20,.06);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between; height: 72px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  background: none; border: none; cursor: pointer;
}
.nav-logo-text .name {
  font-weight: 700; font-size: 1rem;
  color: var(--dark); line-height: 1.1; letter-spacing: -.01em;
}
.nav-logo-text .tagline {
  font-size: 0.65rem; font-weight: 400;
  color: var(--gold); letter-spacing: .12em; text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-socials {
  display: flex; align-items: center; gap: 4px;
  border-right: 1px solid var(--border); padding-right: 16px; margin-right: 4px;
}
.nav-social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; color: var(--subtle);
  border-radius: 4px; transition: color .2s, background .2s;
}
.nav-social-icon:hover { color: var(--emerald); background: rgba(14,107,80,.08); }
.hamburger {
  display: none; background: none; border: none;
  color: var(--dark); padding: 8px;
}
.mobile-menu {
  display: none; border-top: 1px solid var(--border);
  background: var(--cream);
}
.mobile-menu.open { display: block; }
.mobile-menu-inner {
  padding: 24px 0; display: flex; flex-direction: column; gap: 4px;
}
.mobile-nav-link {
  font-size: 1rem; font-weight: 500; color: var(--dark);
  padding: 10px 0; border-bottom: 1px solid var(--border);
  background: none; border-left: none; border-right: none; border-top: none;
  text-align: left; width: 100%;
}
.mobile-socials { display: flex; gap: 8px; padding-top: 8px; }
.mobile-social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; color: var(--subtle);
  border: 1px solid var(--border); border-radius: 4px;
}

@media (max-width: 767px) {
  .nav-links, .nav-right { display: none; }
  .hamburger { display: flex; }
}

/* ── FOOTER ── */
footer { background: var(--dark); }
.footer-main { padding: 64px 0; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
}
.footer-brand p {
  font-size: .875rem; color: #8A9E94; line-height: 1.7; margin: 24px 0;
}
.footer-socials { display: flex; gap: 8px; margin-top: 20px; }
.footer-social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; color: #8A9E94;
  border: 1px solid rgba(201,169,110,.25);
  transition: color .2s, border-color .2s, background .2s;
}
.footer-social-icon:hover {
  color: var(--gold); border-color: var(--gold);
  background: rgba(201,169,110,.08);
}
.footer-heading { font-size: .7rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 24px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { font-size: .875rem; color: #C4C9C6; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-links span { font-size: .875rem; color: #C4C9C6; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.footer-contact-item svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span { font-size: .875rem; color: #C4C9C6; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid rgba(201,169,110,.2);
  padding: 20px 0;
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center; justify-content: space-between;
}
.footer-bottom p { font-size: .8rem; color: var(--subtle); }

/* ── Fade-in animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-up   { animation: fadeInUp .7s ease-out forwards; }
.animate-in   { animation: fadeIn .9s ease-out forwards; }
.delay-1 { animation-delay: .15s; opacity: 0; }
.delay-2 { animation-delay: .3s;  opacity: 0; }
.delay-3 { animation-delay: .45s; opacity: 0; }
.delay-4 { animation-delay: .6s;  opacity: 0; }

/* ── Page hero (inner pages) ── */
.page-hero {
  background: var(--dark); padding: 140px 0 80px;
  position: relative; overflow: hidden;
}
.page-hero-circle {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(201,169,110,.1); pointer-events: none;
}
.page-hero .section-label { margin-bottom: 16px; }
.page-hero h1 {
  font-weight: 300; font-size: clamp(2.4rem, 5vw, 4rem);
  color: var(--cream); line-height: 1.1; letter-spacing: -.025em;
}
.page-hero h1 span { color: var(--gold); font-weight: 600; }
.page-hero p { font-size: 1rem; color: rgba(250,248,243,.7); max-width: 520px; line-height: 1.75; margin-top: 20px; }

/* ── Stat bar ── */
.stat-bar { background: var(--emerald); padding: 20px 0; }
.stat-bar-inner { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: center; }
.stat-item { text-align: center; padding: 0 16px; }
.stat-item .val { font-weight: 700; font-size: 1.6rem; color: var(--gold); line-height: 1; }
.stat-item .lbl { font-size: .75rem; color: rgba(250,248,243,.75); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }

/* ── Cards ── */
.card {
  background: #fff; border: 1px solid var(--border); padding: 28px 24px;
  transition: border-color .3s, box-shadow .3s;
}
.card:hover { border-color: var(--gold); box-shadow: 0 4px 20px rgba(12,26,20,.08); }

.card-icon {
  width: 40px; height: 40px; background: rgba(14,107,80,.08);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.card-icon svg { color: var(--emerald); }

/* ── Form styles ── */
.form-label {
  display: block; font-size: .75rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--subtle); margin-bottom: 8px;
}
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border); background: var(--cream);
  font-family: inherit; font-size: .9rem; color: var(--dark);
  outline: none; transition: border-color .2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus { border-color: var(--gold); }
.form-textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
