/* ═══════════════════════════════════════════
   GREEN OPTICAL LAB LTD — Global Stylesheet
   Breakpoints:
     1024px  tablet-landscape / small laptop
      768px  tablet-portrait
      480px  large phone
      360px  small phone
═══════════════════════════════════════════ */

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

:root {
  --green-deep:   #0d2b1e;
  --green-mid:    #174d33;
  --green-bright: #2a7a4b;
  --green-light:  #3daa6a;
  --gold:         #c9a84c;
  --gold-light:   #e8c97a;
  --cream:        #f5f0e8;
  --white:        #ffffff;
  --text-dark:    #0d2b1e;
  --text-muted:   #4a6858;
  --border:       rgba(42,122,75,0.18);
  --nav-height:   72px;
  --page-pad:     6vw;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
}

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

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--green-bright); border-radius: 3px; }

/* ════════════════════════════
   RIBBON
════════════════════════════ */
.ribbon {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--green-deep);
  padding: 9px var(--page-pad);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 200;
  line-height: 1.4;
}

/* ════════════════════════════
   NAV
════════════════════════════ */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-pad);
  height: var(--nav-height);
  background: rgba(13,43,30,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,168,76,0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--green-bright), var(--green-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  box-shadow: 0 0 14px rgba(61,170,106,0.4);
}
.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold-light);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-logo-text small {
  display: block;
  font-size: 0.6rem;
  color: rgba(232,201,122,0.5);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: rgba(245,240,232,0.72);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color .2s;
  position: relative;
  padding-bottom: 3px;
  white-space: nowrap;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .25s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold-light); }
.nav-links a.active::after,
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: linear-gradient(135deg, var(--gold), var(--gold-light)) !important;
  color: var(--green-deep) !important;
  padding: 8px 18px !important;
  border-radius: 4px;
  font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { opacity: 0.88; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  flex-shrink: 0;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--gold-light);
  border-radius: 2px;
  transition: .3s;
  display: block;
}

/* ── Nav responsive ── */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    background: rgba(8,24,16,0.99);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px var(--page-pad) 28px;
    gap: 18px;
    border-bottom: 1px solid rgba(201,168,76,0.12);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .nav-links a { font-size: 1rem; }
  .nav-cta { padding: 10px 22px !important; }
}

@media (max-width: 480px) {
  .nav-logo-text small { display: none; }
  .nav-logo-text { font-size: 0.9rem; }
}

/* ════════════════════════════
   PAGE HERO (inner pages)
════════════════════════════ */
.page-hero {
  background: var(--green-deep);
  padding: 70px var(--page-pad) 60px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 80% 50%, rgba(42,122,75,0.14) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; }

.page-hero-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.page-hero-eyebrow::before { content: ''; display: block; width: 26px; height: 1px; background: var(--gold); }

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  font-weight: 900;
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 14px;
}
.page-hero h1 em { font-style: italic; color: var(--green-light); }
.page-hero p {
  font-size: clamp(0.88rem, 2vw, 1rem);
  color: rgba(245,240,232,0.6);
  max-width: 600px;
  line-height: 1.75;
}
.breadcrumb {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 0.73rem;
  color: rgba(245,240,232,0.4);
  margin-top: 24px;
}
.breadcrumb a { color: rgba(245,240,232,0.4); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--gold); }

@media (max-width: 480px) {
  .page-hero { padding: 50px var(--page-pad) 44px; }
}

/* ════════════════════════════
   LAYOUT HELPERS
════════════════════════════ */
.container { max-width: 1200px; margin: 0 auto; }
section { padding: 88px var(--page-pad); }

.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--green-bright); }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.7rem, 3.5vw, 2.7rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--green-deep);
  margin-bottom: 14px;
}
.section-title em { font-style: italic; color: var(--green-bright); }
.section-sub { font-size: 0.96rem; color: var(--text-muted); line-height: 1.78; max-width: 640px; }

@media (max-width: 768px) { section { padding: 64px var(--page-pad); } }
@media (max-width: 480px) { section { padding: 48px var(--page-pad); } }

/* ════════════════════════════
   BUTTONS
════════════════════════════ */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--green-deep);
  padding: 13px 30px;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  border-radius: 4px;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(201,168,76,0.28);
  border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  text-align: center;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,168,76,0.42); }

.btn-outline-dark {
  display: inline-block;
  border: 1.5px solid var(--green-bright);
  color: var(--green-bright);
  padding: 13px 30px;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: background .2s, color .2s;
  text-align: center;
}
.btn-outline-dark:hover { background: var(--green-bright); color: white; }

.btn-outline-light {
  display: inline-block;
  border: 1.5px solid rgba(245,240,232,0.3);
  color: rgba(245,240,232,0.85);
  padding: 13px 30px;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  transition: border-color .2s, color .2s;
  text-align: center;
}
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold-light); }

@media (max-width: 480px) {
  .btn-primary,
  .btn-outline-dark,
  .btn-outline-light {
    width: 100%;
    padding: 14px 20px;
  }
  .hero-btns,
  .cta > .container > div[style*="flex"] {
    flex-direction: column;
  }
}

/* ════════════════════════════
   IMAGE CLASSES
════════════════════════════ */
.img-fill         { width:100%; height:100%; object-fit:cover; display:block; }
.img-hero         { width:100%; height:100%; min-height:260px; object-fit:cover; display:block; }
.img-card         { width:100%; height:220px; object-fit:cover; display:block; }
.img-main         { width:100%; height:360px; object-fit:cover; display:block; }
.img-accent       { width:100%; height:200px; object-fit:cover; display:block; }
.img-service      { width:100%; height:320px; object-fit:cover; display:block; }
.img-service-sm   { width:100%; height:160px; object-fit:cover; display:block; }
.img-leader       { width:100%; height:480px; object-fit:cover; object-position:top center; display:block; }
.img-gallery-feature { width:100%; height:100%; min-height:454px; object-fit:cover; display:block; }
.img-gallery      { width:100%; height:220px; object-fit:cover; display:block; }
.img-page-hero    { width:100%; height:100%; min-height:280px; object-fit:cover; display:block; }
.img-map          { width:100%; height:340px; object-fit:cover; border-radius:14px; display:block; }

@media (max-width: 768px) {
  .img-main       { height: 280px; }
  .img-service    { height: 260px; }
  .img-leader     { height: 360px; }
  .img-gallery-feature { min-height: 300px; }
  .img-map        { height: 260px; border-radius: 10px; }
}
@media (max-width: 480px) {
  .img-card       { height: 190px; }
  .img-main       { height: 240px; }
  .img-service    { height: 220px; }
  .img-service-sm { height: 140px; }
  .img-leader     { height: 300px; }
  .img-gallery    { height: 180px; }
  .img-gallery-feature { min-height: 240px; }
  .img-map        { height: 220px; border-radius: 8px; }
}

/* ════════════════════════════
   CHECKLIST
════════════════════════════ */
.check-list { list-style:none; display:flex; flex-direction:column; gap:10px; }
.check-list li {
  display:flex; align-items:flex-start; gap:11px;
  font-size:0.91rem; color:var(--text-dark); line-height:1.55;
}
.check-list li::before {
  content:'✓';
  flex-shrink:0;
  width:20px; height:20px;
  background:var(--green-bright);
  color:white;
  border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:0.66rem;
  margin-top:2px;
}

/* ════════════════════════════
   FADE-UP ANIMATION
════════════════════════════ */
.fade-up { opacity:0; transform:translateY(26px); transition:opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity:1; transform:translateY(0); }

/* ════════════════════════════
   FOOTER
════════════════════════════ */
footer {
  background: var(--green-deep);
  padding: 60px var(--page-pad) 28px;
  color: rgba(245,240,232,0.5);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand-text {
  font-family: 'Cormorant Garamond', serif;
  color: var(--gold-light);
  font-size: 1.1rem; font-weight: 600; line-height: 1.2;
  margin-bottom: 4px;
}
.footer-brand-sub {
  font-size: 0.6rem;
  color: rgba(232,201,122,0.45);
  letter-spacing: 0.12em; text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 14px;
}
.footer-brand p { font-size: 0.82rem; line-height: 1.75; color: rgba(245,240,232,0.42); }
.footer-col h4 { color: var(--cream); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(245,240,232,0.42); text-decoration: none; font-size: 0.84rem; transition: color .2s; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; font-size: 0.74rem;
  flex-wrap: wrap; gap: 8px;
}

@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
  .footer-top .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-top .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-top .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; text-align: center; }
  footer { padding: 44px var(--page-pad) 24px; }
}
