/* ═══════════════════════════════════════════
   SD Composites Ghana — Shared Design System
   Matches homepage: Instrument Serif + DM Sans
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --ink:              #1a1612;
  --cream:            #f5f0e8;
  --sand:             #e8e0d2;
  --terracotta:       #c4643a;
  --terracotta-light: #d4845e;
  --forest:           #2d4a3e;
  --gold:             #b8944f;
  --gold-light:       #d4b872;
  --white:            #fefcf9;
  --gray:             #8a8279;
  --serif:            'Instrument Serif', Georgia, serif;
  --sans:             'DM Sans', system-ui, sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a  { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  padding: 1rem 2.5rem;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  background: rgba(254,252,249,.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(26,22,18,.06);
  transition: box-shadow .3s;
}
nav.scrolled {
  box-shadow: 0 2px 12px rgba(26,22,18,.1);
}
.nav-logo { height: 70px; width: auto; display: block; }

.nav-center {
  display: flex; justify-content: center; align-items: center; gap: 2rem;
}
.nav-center > a {
  font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); position: relative; padding-bottom: 2px; text-decoration: none;
}
.nav-center > a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px; background: var(--terracotta); transition: width .3s;
}
.nav-center > a:hover::after { width: 100%; }

/* ── SERVICES DROPDOWN ── */
.nav-dropdown { position: relative; }
.nav-dropdown-btn {
  display: flex; align-items: center; gap: .35rem;
  font-size: .78rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  background: none; border: none; cursor: pointer; color: var(--ink);
  font-family: var(--sans); padding: 0 0 2px; position: relative;
}
.nav-dropdown-btn::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1.5px; background: var(--terracotta); transition: width .3s;
}
.nav-dropdown:hover .nav-dropdown-btn::after,
.nav-dropdown.open .nav-dropdown-btn::after { width: 100%; }
.nav-chevron {
  width: 11px; height: 11px; stroke: currentColor; fill: none; stroke-width: 2;
  transition: transform .3s; flex-shrink: 0;
}
.nav-dropdown.open .nav-chevron { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute; top: calc(100% + 1.25rem); left: 50%; transform: translateX(-50%);
  background: #fff; border-radius: 4px;
  box-shadow: 0 12px 48px rgba(26,22,18,.12), 0 2px 8px rgba(26,22,18,.06);
  padding: .6rem; min-width: 300px;
  display: none; flex-direction: column; gap: .15rem; z-index: 200;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu { display: flex; }

.dropdown-item {
  display: flex; align-items: center; gap: .9rem;
  padding: .8rem .9rem; border-radius: 3px;
  transition: background .2s; color: var(--ink); text-decoration: none;
}
.dropdown-item:hover { background: var(--cream); }
.dropdown-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--cream); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.dropdown-icon svg { width: 20px; height: 20px; stroke: var(--terracotta); fill: none; stroke-width: 1.6; }
.dropdown-title {
  display: block; font-size: .75rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink);
}
.dropdown-sub {
  display: block; font-size: .67rem; font-weight: 400;
  letter-spacing: .04em; text-transform: uppercase; color: var(--gray); margin-top: .1rem;
}

/* ── NAV RIGHT (quote + hamburger) ── */
.nav-right { display: flex; align-items: center; gap: 1rem; }

.nav-quote {
  display: inline-block;
  background: var(--ink); color: #fff;
  padding: .65rem 1.4rem;
  font-family: var(--sans); font-size: .75rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; transition: background .3s;
}
.nav-quote:hover { background: var(--terracotta); color: #fff; }

/* ── HAMBURGER ── */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .3rem; flex-shrink: 0;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: all .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none; position: fixed; top: 66px; left: 0; right: 0; bottom: 0;
  background: var(--white); z-index: 98;
  padding: 1rem 1.5rem 2rem; flex-direction: column;
  overflow-y: auto; box-shadow: 0 8px 32px rgba(26,22,18,.12);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: .82rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink); padding: 1rem 0; border-bottom: 1px solid rgba(26,22,18,.07);
  text-decoration: none; transition: color .2s;
}
.mobile-menu a:hover { color: var(--terracotta); }
.mobile-services-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--terracotta); padding: 1.2rem 0 .35rem; margin-top: .25rem;
}
.mobile-sub {
  padding: .7rem 0 .7rem 1rem !important;
  font-size: .78rem !important; color: var(--gray) !important;
  border-bottom: 1px solid rgba(26,22,18,.05) !important;
}
.mobile-sub:hover { color: var(--terracotta) !important; }
.mobile-cta {
  margin-top: 1.25rem; background: var(--ink) !important; color: #fff !important;
  text-align: center; padding: 1rem 1.5rem !important;
  border: none !important; border-radius: 0; font-weight: 700 !important;
  letter-spacing: .1em !important;
}
.mobile-cta:hover { background: var(--terracotta) !important; color: #fff !important; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--terracotta); color: var(--white);
  padding: .9rem 2rem; font-family: var(--sans); font-size: .82rem;
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border: none; cursor: pointer; transition: background .3s, transform .2s;
}
.btn-primary:hover { background: var(--terracotta-light); transform: translateY(-1px); color: var(--white); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; color: var(--ink);
  padding: .9rem 2rem; font-family: var(--sans); font-size: .82rem;
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border: 1.5px solid var(--ink); cursor: pointer; transition: all .3s;
}
.btn-secondary:hover { background: var(--ink); color: var(--cream); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  background: transparent; color: var(--cream);
  padding: .9rem 2rem; font-family: var(--sans); font-size: .82rem;
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  border: 1.5px solid rgba(245,240,232,.3); cursor: pointer; transition: all .3s;
}
.btn-ghost:hover { border-color: var(--cream); background: rgba(245,240,232,.08); }

/* ── PAGE HERO ── */
.page-hero {
  padding: 9rem 3rem 5rem;
  background: var(--cream);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -30%; right: -20%;
  width: 60vw; height: 60vw; border-radius: 50%;
  background: radial-gradient(circle, var(--sand) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.page-hero-label {
  display: inline-block; font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 1.1rem;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4rem);
  line-height: 1.1; letter-spacing: -.03em; margin-bottom: 1.2rem;
}
.page-hero h1 em { font-style: italic; color: var(--terracotta); }
.page-hero-sub {
  font-size: 1.05rem; color: var(--gray);
  max-width: 500px; line-height: 1.75;
}

/* ── MARQUEE ── */
.marquee-section { padding: 1.2rem 0; background: var(--ink); overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-item { display: flex; align-items: center; gap: 2rem; padding: 0 2rem; white-space: nowrap; }
.marquee-item span { font-family: var(--serif); font-size: 1.05rem; font-style: italic; color: var(--cream); opacity: .7; }
.marquee-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--terracotta); flex-shrink: 0; }

/* ── SECTION UTILITIES ── */
.section-wrap { padding: 6rem 3rem; }
.section-label {
  display: block; font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: 1rem;
}
.section-heading {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.15; letter-spacing: -.02em; margin-bottom: 1rem;
}
.section-sub { font-size: 1rem; line-height: 1.7; color: var(--gray); max-width: 540px; margin-bottom: 3rem; }

/* ── FOREST SECTION (Why / Process style) ── */
.forest-section {
  background: var(--forest); color: var(--cream);
  padding: 6rem 3rem; position: relative; overflow: hidden;
}
.forest-section::before {
  content: ''; position: absolute; top: -50%; right: -30%;
  width: 80vw; height: 80vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,148,79,.06) 0%, transparent 70%);
  pointer-events: none;
}
.forest-section .section-label { color: var(--gold); }
.forest-section .section-heading { color: var(--cream); }
.forest-section .section-sub { color: rgba(245,240,232,.55); margin-bottom: 3rem; }

/* ── NUMBERED GRID (process / why items) ── */
.numbered-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 2rem; position: relative; z-index: 1; }
.numbered-item { padding: 2rem 0; border-top: 1px solid rgba(245,240,232,.12); }
.numbered-item .num {
  font-family: var(--serif); font-size: 2.6rem; font-style: italic;
  color: var(--gold); line-height: 1; margin-bottom: .6rem;
}
.numbered-item h4 { font-size: .88rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .5rem; }
.numbered-item p { font-size: .86rem; line-height: 1.65; color: rgba(245,240,232,.55); }

/* ── CTA BANNER ── */
.cta-banner { background: var(--ink); text-align: center; padding: 6rem 3rem; }
.cta-banner h2 {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cream); line-height: 1.15; margin-bottom: 1rem;
}
.cta-banner h2 em { color: var(--gold); font-style: italic; }
.cta-banner p { color: rgba(245,240,232,.5); max-width: 480px; margin: 0 auto 2.5rem; font-size: .95rem; line-height: 1.7; }
.cta-banner .btn-primary { background: var(--gold); }
.cta-banner .btn-primary:hover { background: var(--gold-light); }
.cta-banner-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer {
  background: var(--ink); border-top: 1px solid rgba(245,240,232,.06);
  padding: 3rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem; color: rgba(245,240,232,.45); font-size: .82rem; line-height: 1.7;
}
.footer-brand .logo { font-size: 1.3rem; }
.footer-brand p { margin-top: .8rem; max-width: 280px; }
footer h5 {
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--cream); margin-bottom: 1rem;
}
footer a { display: block; color: rgba(245,240,232,.45); padding: .2rem 0; transition: color .3s; }
footer a:hover { color: var(--cream); }
.footer-bottom {
  grid-column: 1 / -1; border-top: 1px solid rgba(245,240,232,.06);
  padding-top: 1.5rem; text-align: center; font-size: .75rem; color: rgba(245,240,232,.3);
}

/* ── TWO-COL LAYOUT ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.two-col-img { aspect-ratio: 4/3; overflow: hidden; }
.two-col-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.two-col-img:hover img { transform: scale(1.03); }
.two-col-text h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.15; margin-bottom: 1rem; }
.two-col-text h3 { font-family: var(--serif); font-size: 1.2rem; margin: 1.5rem 0 .5rem; }
.two-col-text p { font-size: .95rem; line-height: 1.7; color: var(--gray); margin-bottom: .9rem; }
.two-col-text ul { list-style: disc; padding-left: 1.2rem; margin-bottom: 1.2rem; }
.two-col-text ul li { font-size: .9rem; color: var(--gray); line-height: 1.65; margin-bottom: .4rem; }
.two-col-text ol { list-style: decimal; padding-left: 1.2rem; margin-bottom: 1.2rem; }
.two-col-text ol li { font-size: .9rem; color: var(--gray); line-height: 1.65; margin-bottom: .5rem; }

/* ── BULLET LIST ── */
.dot-list { margin-bottom: 2rem; }
.dot-list li {
  font-size: .9rem; padding: .55rem 0;
  border-bottom: 1px solid rgba(26,22,18,.06);
  display: flex; align-items: center; gap: .65rem; color: var(--gray);
}
.dot-list li::before { content: ''; width: 6px; height: 6px; background: var(--terracotta); border-radius: 50%; flex-shrink: 0; }

/* ── CARD GRID COMMON ── */
.cards-grid { display: grid; gap: 1.5rem; }
.cards-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards-grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

/* ── CONTACT CARDS ── */
.contact-card {
  background: var(--white); border: 1px solid rgba(26,22,18,.07);
  padding: 2.5rem 2rem; text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(26,22,18,.07); }
.contact-card-icon {
  width: 56px; height: 56px; margin: 0 auto 1.2rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(196,100,58,.08); border-radius: 50%;
  color: var(--terracotta); font-size: 1.5rem;
}
.contact-card-icon svg { width: 26px; height: 26px; stroke: var(--terracotta); fill: none; stroke-width: 1.6; }
.contact-card h3 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: .4rem; }
.contact-card p { font-size: .9rem; color: var(--gray); line-height: 1.6; }
.contact-card a { color: var(--terracotta); font-weight: 500; }
.contact-card a:hover { color: var(--ink); }

/* ── INFO BLOCKS ── */
.info-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-top: 3rem; }
.info-block h4 { font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--terracotta); margin-bottom: .6rem; }
.info-block p, .info-block a { font-size: .9rem; color: var(--gray); line-height: 1.65; display: block; }
.info-block a:hover { color: var(--terracotta); }

/* ── ADVANTAGE CARDS ── */
.advantage-card {
  background: var(--cream); padding: 2rem 1.8rem;
  position: relative; overflow: hidden;
  border: 1px solid transparent; transition: transform .3s, border-color .3s;
}
.advantage-card:hover { transform: translateY(-3px); border-color: rgba(196,100,58,.18); }
.advantage-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 0; background: var(--terracotta); transition: height .4s;
}
.advantage-card:hover::before { height: 100%; }
.advantage-card-num {
  font-family: var(--serif); font-size: 2rem; font-style: italic;
  color: rgba(196,100,58,.2); line-height: 1; margin-bottom: .75rem;
}
.advantage-card h3 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: .5rem; }
.advantage-card p { font-size: .88rem; line-height: 1.65; color: var(--gray); }

/* ── SERVICE FEATURE CARDS ── */
.service-feature {
  background: rgba(255,255,255,.05); border: 1px solid rgba(245,240,232,.1);
  padding: 2.5rem 2rem; transition: background .3s, border-color .3s;
}
.service-feature:hover { background: rgba(255,255,255,.08); border-color: rgba(184,148,79,.3); }
.service-feature-icon { width: 48px; height: 48px; margin-bottom: 1.4rem; }
.service-feature-icon svg { width: 100%; height: 100%; stroke: var(--gold); fill: none; stroke-width: 1.4; }
.service-feature h3 { font-family: var(--serif); font-size: 1.3rem; color: var(--cream); margin-bottom: .5rem; }
.service-feature .tag {
  display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(184,148,79,.3);
  padding: .2rem .65rem; border-radius: 2px; margin-bottom: .9rem;
}
.service-feature p { font-size: .875rem; line-height: 1.65; color: rgba(245,240,232,.55); margin-bottom: 1.5rem; }

/* ── PRODUCT CARDS ── */
.product-card {
  background: var(--white); overflow: hidden;
  border: 1px solid rgba(26,22,18,.07);
  transition: transform .3s, box-shadow .3s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 16px 48px rgba(26,22,18,.08); }
.product-card-img { height: 220px; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-body { padding: 1.6rem; }
.product-code {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--terracotta); margin-bottom: .45rem; display: block;
}
.product-card-body h3 { font-family: var(--serif); font-size: 1.2rem; margin-bottom: .5rem; line-height: 1.2; }
.product-card-body p { font-size: .85rem; line-height: 1.6; color: var(--gray); margin-bottom: .75rem; }
.product-sizes { font-size: .75rem; color: rgba(138,130,121,.65); border-top: 1px solid rgba(26,22,18,.06); padding-top: .75rem; margin-top: .4rem; }

/* ── PRODUCTS NAV TABS ── */
.products-tabs {
  display: flex; gap: .5rem; flex-wrap: wrap;
  padding: 2.5rem 3rem 0; background: var(--cream);
}
.products-tab {
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .6rem 1.2rem; border: 1.5px solid rgba(26,22,18,.15);
  color: var(--gray); background: transparent; cursor: pointer;
  transition: all .25s;
}
.products-tab:hover, .products-tab.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ── GALLERY ── */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.gallery-card { aspect-ratio: 1; overflow: hidden; cursor: pointer; position: relative; }
.gallery-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-card:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0; background: rgba(26,22,18,0);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s;
}
.gallery-card:hover .gallery-overlay { background: rgba(26,22,18,.35); }
.gallery-overlay svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 1.5; opacity: 0; transition: opacity .3s; }
.gallery-card:hover .gallery-overlay svg { opacity: 1; }

/* ── MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(26,22,18,.92);
  z-index: 9999; display: flex; align-items: center; justify-content: center;
  padding: 1rem; animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box { position: relative; max-width: 90vw; max-height: 90vh; }
.modal-box img { max-width: 100%; max-height: 85vh; object-fit: contain; }
.modal-close {
  position: absolute; top: -2.75rem; right: 0;
  background: none; border: none; color: rgba(245,240,232,.7);
  font-size: 1.6rem; cursor: pointer; padding: .25rem .5rem;
  font-family: var(--sans); transition: color .2s;
}
.modal-close:hover { color: var(--cream); }
body.modal-open { overflow: hidden; }

/* ── ANIMATIONS ── */
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  nav { padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
  .nav-center { display: none; }
  .nav-hamburger { display: flex; }
  .nav-quote { display: none; }
  .page-hero { padding: 7rem 1.5rem 3.5rem; }
  .section-wrap { padding: 4rem 1.5rem; }
  .forest-section { padding: 4rem 1.5rem; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .products-tabs { padding: 2rem 1.5rem 0; }
  footer { grid-template-columns: 1fr 1fr; padding: 2rem 1.5rem; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { padding: 4rem 1.5rem; }
}
@media (max-width: 500px) {
  footer { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
