/*
Theme Name: Galva Bahi
Theme URI: https://galvabahi.com
Author: Galva Bahi
Description: Custom "spec sheet / blueprint" theme for Galva Bahi — duct & air outlet manufacturing.
Version: 2.0
Text Domain: galvabahi
*/

/* ============================================================
   TOKENS — Light = "Spec Sheet" (paper) · Dark = "Blueprint"
============================================================ */
:root{
  --paper:       #F7F4EC;
  --paper-panel: #EFEADB;
  --paper-panel2:#E5DECB;
  --ink:         #17191B;
  --ink-dim:     #5B6167;
  --steel:       #7C848A;
  --line:        #D9D1BC;
  --blue:        #2547C7;
  --stamp:       #C4470E;
  --stamp-tint:  #F3DFCB;

  --display: "Archivo", "IBM Plex Sans", sans-serif;
  --body:    "IBM Plex Sans", -apple-system, sans-serif;
  --mono:    "IBM Plex Mono", monospace;

  --rail-w: 90px;
  --maxw: 1320px;
  color-scheme: light;
}

html[data-theme="dark"]{
  --paper:        #0C1730;
  --paper-panel:  #101D3E;
  --paper-panel2: #142449;
  --ink:          #EDEFF4;
  --ink-dim:      #9AA6C4;
  --steel:        #7C8AB8;
  --line:         #24325E;
  --blue:         #7FA0FF;
  --stamp:        #FF8A3D;
  --stamp-tint:   #2A2010;
  color-scheme: dark;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  background-position: -1px -1px;
}
html[data-theme="dark"] body{ background-image:
    linear-gradient(rgba(127,160,255,0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127,160,255,0.14) 1px, transparent 1px);
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family: var(--display); margin:0; line-height:1.02; letter-spacing:-0.01em; text-transform:uppercase; }
p{ margin:0 0 1em; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; }
:focus-visible{ outline: 2px solid var(--stamp); outline-offset: 3px; }

.wrap{ max-width: var(--maxw); margin:0 auto; padding: 0 28px; }

/* eyebrow = technical annotation label */
.eyebrow{
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  display:flex; align-items:center; gap:10px;
  margin-bottom: 16px;
}
.eyebrow::before{ content:"§"; color: var(--stamp); font-family: var(--mono); }
.eyebrow .tag{ border:1px solid var(--line); padding:2px 8px; border-radius:2px; color: var(--ink-dim); }

/* dimension-line annotation, used to caption photos like a technical drawing */
.dim{
  font-family: var(--mono); font-size: 11.5px; letter-spacing:.06em;
  color: var(--ink-dim); display:flex; align-items:center; gap:8px; margin-top:10px;
}
.dim::before{ content:""; width:26px; height:1px; background: var(--steel); }
.dim::after{ content:""; flex:1; height:1px; background: var(--steel); opacity:.5; }

/* ============================================================
   HEADER
============================================================ */
.site-header{
  position: fixed; top:0; left:0; right:0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled{ border-color: var(--line); }
.site-header .wrap{ display:flex; align-items:center; justify-content:space-between; height:96px; }
.brand{ display:flex; align-items:center; gap:14px; }
.brand img{ height:40px; width:auto; }
.brand .brand-text{ font-family: var(--display); font-weight:800; font-size:22px; line-height:1; text-transform:uppercase; letter-spacing:.01em; }
.brand small{ display:block; font-family: var(--mono); font-weight:400; font-size:10.5px; letter-spacing:.14em; color: var(--ink-dim); text-transform:uppercase; margin-top:4px; }

.header-right{ display:flex; align-items:center; gap:26px; }
.theme-toggle{
  display:flex; align-items:center; justify-content:center;
  width:46px; height:46px; border-radius:2px;
  border:1px solid var(--line); background: var(--paper-panel); color: var(--ink);
  cursor:pointer; transition: border-color .2s ease, transform .2s ease;
  flex: none;
}
.theme-toggle:hover{ border-color: var(--stamp); transform: translateY(-1px); }
.theme-toggle svg{ width:20px; height:20px; }
.theme-toggle .icon-sun{ display:none; }
html[data-theme="dark"] .theme-toggle .icon-moon{ display:none; }
html[data-theme="dark"] .theme-toggle .icon-sun{ display:block; }

.main-nav ul{ display:flex; gap: 40px; }
.main-nav a{
  font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing:.08em;
  color: var(--ink-dim); position:relative; padding: 6px 0;
  transition: color .2s ease;
}
.main-nav a::after{
  content:""; position:absolute; left:0; right:100%; bottom:0; height:2px; background: var(--stamp);
  transition: right .25s ease;
}
.main-nav a:hover{ color: var(--ink); }
.main-nav a:hover::after{ right:0; }

.nav-toggle{ display:none; background:none; border:1px solid var(--line); color: var(--ink); width:44px; height:44px; border-radius:2px; }
.nav-toggle span{ display:block; width:18px; height:2px; background: var(--ink); margin:4px auto; }

/* ============================================================
   SECTION SPINE — dimension rail down the page
============================================================ */
main{ padding-top: 96px; }
.section{ position: relative; border-bottom: 1px solid var(--line); }
.section .wrap{ position:relative; padding: 92px 28px; }
.section .wrap.tight{ padding-top:56px; padding-bottom:56px; }
.section-num{
  position:absolute; top:92px; right:28px; font-family: var(--mono); font-size:12px; color: var(--steel);
  writing-mode: vertical-rl; letter-spacing:.1em;
}
@media (max-width: 860px){
  .section .wrap{ padding: 64px 20px; }
  .section-num{ display:none; }
}

/* ============================================================
   HERO
============================================================ */
.hero{ overflow:hidden; }
.hero .wrap{ padding-top: 176px; padding-bottom: 0; }
.hero-grid{ display:grid; grid-template-columns: 1.1fr 0.9fr; gap:56px; align-items:end; }
.hero h1{
  font-size: clamp(46px, 6.6vw, 92px);
  font-weight: 800;
  max-width: 13ch;
}
.hero h1 .stamp-word{ color: var(--stamp); }
.hero .lede{ margin-top: 26px; font-size: 20px; color: var(--ink-dim); max-width: 46ch; font-family: var(--body); text-transform:none; }
.hero .cta-row{ margin-top: 38px; display:flex; gap:16px; flex-wrap:wrap; }
.btn{
  display:inline-flex; align-items:center; gap:10px;
  font-family: var(--mono); font-size: 13.5px; letter-spacing:.08em; text-transform:uppercase;
  padding: 16px 26px; border-radius: 2px; border:1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary{ background: var(--stamp); color:#FFF9F2; font-weight:600; }
.btn-primary:hover{ transform: translateY(-2px); }
.btn-ghost{ border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover{ border-color: var(--stamp); color: var(--stamp); }

.hero-photo{ position:relative; }
.hero-photo img{ width:100%; aspect-ratio: 4/3.1; object-fit:cover; border:1px solid var(--line); filter: saturate(0.92); }
.hero-photo .frame-tick{ position:absolute; width:14px; height:14px; border: 2px solid var(--stamp); }
.hero-photo .tick-tl{ top:-7px; left:-7px; border-right:none; border-bottom:none; }
.hero-photo .tick-br{ bottom:-7px; right:-7px; border-left:none; border-top:none; }

.spec-strip{ margin-top:70px; display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid var(--ink); }
.spec-strip div{ font-family: var(--mono); padding:22px 20px 22px 0; border-right:1px solid var(--line); }
.spec-strip div:last-child{ border-right:none; }
.spec-strip b{ display:block; font-size:34px; color:var(--ink); font-family: var(--display); font-weight:800; }
.spec-strip span{ font-size:11.5px; color: var(--ink-dim); text-transform:uppercase; letter-spacing:.08em; }
@media (max-width:760px){ .hero-grid{ grid-template-columns:1fr; } .spec-strip{ grid-template-columns:repeat(2,1fr); } }

/* ============================================================
   INTRO STRIP
============================================================ */
.intro .wrap p{ font-size:30px; color: var(--ink); max-width: 60ch; font-family: var(--display); font-weight:700; line-height:1.3; text-transform:none; }
.intro .wrap p em{ font-style:normal; color: var(--stamp); }

/* ============================================================
   PRODUCTS
============================================================ */
.products{ background: var(--paper-panel); }
.products h2{ font-size: clamp(34px,4.2vw,54px); max-width: 16ch; margin-bottom: 12px; }
.products .section-sub{ color: var(--ink-dim); font-size:17px; max-width:60ch; margin-bottom:48px; text-transform:none; }

.product-feature{ display:grid; grid-template-columns: 1fr 1fr; gap:0; border:1px solid var(--line); margin-bottom: -1px; background:var(--paper-panel2); }
.product-feature img{ width:100%; height:100%; object-fit:cover; min-height:300px; filter:saturate(0.9); }
.product-feature .pf-copy{ padding:40px; display:flex; flex-direction:column; justify-content:center; }
.product-feature .pf-copy h3{ font-size:26px; margin-bottom:14px; }
.product-feature .pf-copy p{ color: var(--ink-dim); text-transform:none; font-size:16.5px; }
@media (max-width:760px){ .product-feature{ grid-template-columns:1fr; } .product-feature img{ min-height:220px; } }

.product-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:1px; background: var(--line); border:1px solid var(--line); }
.product-card{ background: var(--paper-panel); padding: 32px 28px; transition: background .2s ease; }
.product-card:hover{ background: var(--paper); }
.product-card .icon{ width:34px; height:34px; color: var(--stamp); margin-bottom:18px; }
.product-card h3{ font-size:16.5px; margin-bottom:10px; letter-spacing:.02em; }
.product-card p{ color: var(--ink-dim); font-size:14.5px; text-transform:none; margin:0; }
@media (max-width:900px){ .product-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width:560px){ .product-grid{ grid-template-columns: 1fr; } }

/* ============================================================
   ABOUT / STATS
============================================================ */
.about h2{ font-size: clamp(32px,4vw,50px); max-width: 18ch; margin-bottom:26px; }
.about .lede{ color: var(--ink-dim); font-size:19px; max-width: 64ch; margin-bottom: 40px; text-transform:none; }
.stat-row{ display:grid; grid-template-columns:repeat(3,1fr); border:1px solid var(--ink); margin-bottom:52px; }
.stat-row div{ padding:28px 24px; border-right:1px solid var(--line); }
.stat-row div:last-child{ border-right:none; }
.stat-row b{ display:block; font-family:var(--display); font-size:44px; font-weight:800; }
.stat-row b .stamp-word{ color:var(--stamp); }
.stat-row span{ font-family:var(--mono); font-size:11.5px; color:var(--ink-dim); text-transform:uppercase; letter-spacing:.08em; }
.about-cols{ display:grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line); border:1px solid var(--line); }
.about-cols .col{ padding:32px; background: var(--paper); }
.about-cols h4{ font-family: var(--mono); font-size:12.5px; letter-spacing:.12em; text-transform:uppercase; color:var(--stamp); margin-bottom:14px; }
.about-cols p{ color: var(--ink-dim); font-size:16.5px; margin:0; text-transform:none; }
@media (max-width:760px){ .stat-row{ grid-template-columns:1fr; } .stat-row div{ border-right:none; border-bottom:1px solid var(--line);} .about-cols{ grid-template-columns:1fr; } }

/* ============================================================
   PROJECTS GALLERY
============================================================ */
.projects{ background: var(--paper-panel); }
.projects h2{ font-size: clamp(34px,4.2vw,54px); max-width: 18ch; margin-bottom:12px; }
.projects .section-sub{ color: var(--ink-dim); font-size:17px; max-width:60ch; margin-bottom:48px; text-transform:none; }
.project-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); }
.project-card{ position:relative; background:var(--paper-panel2); overflow:hidden; aspect-ratio: 1/1; }
.project-card img{ width:100%; height:100%; object-fit:cover; filter:saturate(0.85) contrast(1.02); transition: transform .4s ease; }
.project-card:hover img{ transform: scale(1.06); }
.project-card figcaption{
  position:absolute; left:0; right:0; bottom:0; padding:14px 14px 12px;
  background: linear-gradient(to top, rgba(10,12,14,0.82), transparent);
  color:#F2EFE6; font-family: var(--mono); font-size:11.5px; letter-spacing:.03em; text-transform:uppercase;
}
@media (max-width:900px){ .project-grid{ grid-template-columns: repeat(3,1fr); } }
@media (max-width:640px){ .project-grid{ grid-template-columns: repeat(2,1fr); } }

/* ============================================================
   CERTIFICATES
============================================================ */
.certificates h2{ font-size: clamp(30px,3.8vw,46px); max-width:18ch; margin-bottom:12px; }
.certificates .section-sub{ color: var(--ink-dim); font-size:17px; max-width:60ch; margin-bottom:48px; text-transform:none; }
.cert-row{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.cert-card{ border:1px solid var(--line); padding:18px; background: var(--paper-panel); position:relative; }
.cert-card img{ width:100%; border:1px solid var(--line); background:#fff; }
.cert-card .dim{ justify-content:center; }
@media (max-width:760px){ .cert-row{ grid-template-columns:1fr; } }

/* ============================================================
   INDUSTRIES / CLIENTS
============================================================ */
.clients{ background: var(--paper-panel); }
.clients h2{ font-size: clamp(28px,3.6vw,42px); margin-bottom:36px; max-width:22ch; }
.client-row{ display:flex; flex-wrap:wrap; gap:16px; }
.client-row li{
  border:1px solid var(--line); border-radius:2px; padding:18px 26px;
  font-family: var(--mono); font-size:14.5px; color: var(--ink-dim); text-transform:uppercase;
  letter-spacing:.04em;
}

/* ============================================================
   SISTER COMPANY CALLOUT
============================================================ */
.sister .wrap{ display:flex; justify-content:space-between; align-items:flex-end; gap:24px; flex-wrap:wrap; }
.sister h2{ font-size: clamp(26px,3.4vw,36px); max-width:24ch; }
.sister p{ color: var(--ink-dim); font-size:16.5px; max-width:48ch; margin-top:16px; text-transform:none; }

/* ============================================================
   CONTACT
============================================================ */
.contact{ background: var(--paper-panel); border-bottom:none; }
.contact h2{ font-size: clamp(34px,4.6vw,58px); margin-bottom:52px; max-width:15ch; }
.contact-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:44px; }
.contact-list{ display:grid; grid-template-columns: repeat(2,1fr); gap: 1px; background:var(--line); border:1px solid var(--line); }
.contact-list > div{ background:var(--paper); padding:24px; }
.contact-list h4{ font-family: var(--mono); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color: var(--stamp); margin-bottom:10px; }
.contact-list p, .contact-list a{ font-size:16px; color: var(--ink-dim); display:block; text-transform:none; }
.contact-list a:hover{ color: var(--stamp); }
.map-frame{ border:1px solid var(--line); overflow:hidden; min-height:340px; }
.map-frame iframe{ width:100%; height:100%; min-height:340px; border:0; filter: grayscale(0.35) contrast(0.97); }
html[data-theme="dark"] .map-frame iframe{ filter: grayscale(0.4) invert(0.9) contrast(0.9); }
@media (max-width: 860px){ .contact-grid, .contact-list{ grid-template-columns:1fr; } }

/* ============================================================
   FOOTER
============================================================ */
.site-footer{ background: var(--ink); color: var(--paper); }
html[data-theme="dark"] .site-footer{ background:#060B18; }
.site-footer .wrap{ padding: 38px 28px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
.site-footer p{ margin:0; font-size:13px; color: #B9BCC0; font-family: var(--mono); text-transform:uppercase; letter-spacing:.04em; }
.site-footer .socials{ display:flex; gap:18px; }
.site-footer .socials a{ color: #B9BCC0; font-family: var(--mono); font-size:12px; text-transform:uppercase; letter-spacing:.06em; }
.site-footer .socials a:hover{ color: var(--stamp); }

/* ============================================================
   MOBILE NAV
============================================================ */
@media (max-width: 860px){
  .nav-toggle{ display:block; }
  .main-nav{
    position:fixed; inset: 96px 0 auto 0; background: var(--paper-panel);
    border-bottom:1px solid var(--line);
    transform: translateY(-8px); opacity:0; pointer-events:none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .main-nav.is-open{ transform:none; opacity:1; pointer-events:auto; }
  .main-nav ul{ flex-direction:column; padding: 20px 24px 28px; gap:20px; }
}

/* reveal-on-scroll (progressive enhancement) */
.reveal{ opacity:0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible{ opacity:1; transform:none; }

/* HOME EXPANSION */
.home-product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line)}
.home-product-card{background:var(--paper-panel2);min-height:390px;display:flex;flex-direction:column;transition:transform .25s ease,background .25s ease;overflow:hidden}
.home-product-card:hover{transform:translateY(-5px);background:var(--paper)}
.home-product-card img{width:100%;height:190px;object-fit:cover}
.home-product-card div{padding:24px}.home-product-card span,.mono-label{font-family:var(--mono);font-size:11px;letter-spacing:.14em;color:var(--stamp);text-transform:uppercase}
.home-product-card h3{font-size:21px;margin:9px 0 10px}.home-product-card p{font-size:14.5px;color:var(--ink-dim);text-transform:none;margin:0}
.center-cta{text-align:center;margin-top:36px}.project-highlight{display:grid;grid-template-columns:1.15fr .85fr;border:1px solid var(--line);background:var(--paper-panel2)}
.project-highlight img{width:100%;height:100%;min-height:360px;object-fit:cover}.project-copy{padding:48px;display:flex;flex-direction:column;justify-content:center}.project-copy h3{font-size:32px;margin:12px 0}.project-copy p{color:var(--ink-dim);text-transform:none;margin-bottom:28px}.sister{background:var(--paper-panel)}.sister-grid{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}.sister h2,.contact-band h2{font-size:clamp(34px,4.2vw,54px);margin-bottom:18px}.sister p,.contact-band p{color:var(--ink-dim);max-width:58ch;text-transform:none;margin-bottom:28px}.sister-box{border:1px solid var(--ink);padding:70px 45px;display:flex;flex-direction:column;gap:10px;position:relative;background:var(--paper)}.sister-number{font-family:var(--display);font-size:100px;font-weight:800;color:var(--stamp);line-height:.8}.sister-box strong{font-family:var(--display);font-size:30px}.sister-box span{font-family:var(--mono);font-size:11px;color:var(--ink-dim);letter-spacing:.1em}.contact-band{background:var(--stamp);color:#fff9f2}.contact-band .eyebrow,.contact-band .eyebrow .tag{color:#fff9f2}.contact-band .eyebrow .tag{border-color:rgba(255,255,255,.4)}.contact-band .eyebrow::before{color:#fff9f2}.contact-band p{color:rgba(255,255,255,.82)}.contact-band-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:60px;align-items:center}.contact-actions{display:flex;flex-direction:column;align-items:flex-start;gap:12px;font-family:var(--mono)}.contact-actions a:not(.btn){font-size:18px}.contact-actions .btn{margin-top:14px;background:#fff9f2;color:var(--ink)}
@media(max-width:900px){.home-product-grid{grid-template-columns:repeat(2,1fr)}.project-highlight,.sister-grid,.contact-band-grid{grid-template-columns:1fr}.sister-box{margin-top:10px}}
@media(max-width:560px){.home-product-grid{grid-template-columns:1fr}.home-product-card{min-height:auto}.project-copy{padding:30px}.project-highlight img{min-height:240px}}
