/* ===================================================================
   AirTech Solution Systems — shared stylesheet
   =================================================================== */

:root {
  --bg: #ECEEE9;
  --bg-alt: #E2E5DD;
  --ink: #1C2321;
  --ink-soft: #46504C;
  --steel: #47626B;
  --steel-dark: #324449;
  --copper: #B5651D;
  --copper-light: #D98A4B;
  --line: #C7C9BE;
  --paper: #F7F8F4;
  --radius: 3px;
  --max: 1180px;
  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 700; }

p { margin: 0 0 1em; max-width: 62ch; }
p:last-child { margin-bottom: 0; }

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

/* focus visibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------------------------------------------------------------
   Header / Nav
   --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.brand {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand span {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--steel);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  border-color: var(--copper);
}

.nav-cta {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: var(--radius);
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--steel-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 42px;
  height: 38px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: var(--ink);
}
.nav-toggle::before { top: 13px; }
.nav-toggle span { top: 18px; }
.nav-toggle::after { top: 23px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: block; }

  .site-header.open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 6px 28px 18px;
  }
  .site-header.open .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
  }
  .site-header.open .nav-cta {
    display: inline-block;
    margin: 14px 28px 20px;
  }
}

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--copper);
  color: var(--paper);
}
.btn-primary:hover { background: var(--copper-light); }
.btn-outline {
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: #25D366;
  color: #fff;
}
.btn-whatsapp:hover { background: #1EBE5A; }
.wa-icon {
  width: 18px;
  height: 18px;
  fill: #fff;
  flex-shrink: 0;
}
.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* ---------------------------------------------------------------
   Hero (home)
   --------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 88px 0 70px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--steel-dark);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  margin-bottom: 20px;
}

.hero p.lede {
  font-size: 1.14rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.schematic {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.55;
  pointer-events: none;
}

.hero-photo {
  position: relative;
  z-index: 2;
}

/* Cycling hero banner (home page) */
.hero-carousel {
  position: relative;
}
.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition: opacity 1.1s ease;
}
.hero-slide.active {
  opacity: 1;
  z-index: 2;
}
.hero-carousel-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero-carousel-dots .dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: background 0.3s ease, transform 0.3s ease;
}
.hero-carousel-dots .dot.active {
  background: var(--paper, #fff);
  transform: scale(1.25);
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
}

/* ---------------------------------------------------------------
   Photo placeholder blocks
   (swap these <div class="photo"> blocks for <img> once real
   photos are ready — see README in the site package)
   --------------------------------------------------------------- */

.photo {
  background: var(--steel-dark);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--paper);
}

.photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 14px);
}

.photo-label {
  position: relative;
  z-index: 2;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 10px 12px;
  background: rgba(28, 35, 33, 0.72);
  width: 100%;
}

.photo-tall { aspect-ratio: 3 / 4; }
.photo-wide { aspect-ratio: 16 / 9; }
.photo-square { aspect-ratio: 1 / 1; }

.photo.stock { background: var(--steel); }
.photo.stock .photo-label::after {
  content: " (stock)";
  opacity: 0.7;
}

/* real photo frames — used once an actual <img> replaces a .photo placeholder */
.photo-frame {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* gallery photos: fixed aspect ratio, cropped to fit */
.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ---------------------------------------------------------------
   Sections
   --------------------------------------------------------------- */

section { padding: 76px 0; }
section.tight { padding: 56px 0; }
section.alt { background: var(--bg-alt); }

.section-head {
  max-width: 60ch;
  margin-bottom: 44px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); }

.kicker {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--copper);
  margin-bottom: 10px;
}

/* two-column about/overview */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
}
.split.reverse .split-media { order: 2; }
.split.reverse .split-text { order: 1; }
@media (max-width: 860px) {
  .split.reverse .split-media,
  .split.reverse .split-text { order: initial; }
}

.stat-row {
  display: flex;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 1.9rem;
  color: var(--steel-dark);
}
.stat span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* key-photos strip on home */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 700px) {
  .photo-strip { grid-template-columns: 1fr 1fr; }
}

/* ---------------------------------------------------------------
   Services — schematic spec-sheet list
   --------------------------------------------------------------- */

.service-group { margin-bottom: 46px; }
.service-group:last-child { margin-bottom: 0; }

.service-group-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--steel-dark);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.service-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.service-row:last-child { border-bottom: none; }

.service-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden;
}
.service-icon svg { width: 100%; height: 100%; stroke: var(--copper); }
.service-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-icon.has-photo { width: 72px; height: 72px; }

.service-row h3 { font-size: 1.15rem; margin-bottom: 8px; }
.service-row p { color: var(--ink-soft); margin-bottom: 0; }

/* teaser variant used on home page */
.service-teaser-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-teaser {
  background: var(--bg);
  padding: 26px 22px;
}
.service-teaser-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 4px;
}
.service-teaser-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-teaser h4 {
  font-size: 0.98rem;
  margin: 12px 0 6px;
}
.service-teaser p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}
@media (max-width: 860px) {
  .service-teaser-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .service-teaser-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------
   Gallery
   --------------------------------------------------------------- */

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.filter-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  background: none;
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--steel); color: var(--ink); }
.filter-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

.gallery-item { display: none; }
.gallery-item.show { display: block; }

.gallery-cap {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.gallery-cap b { color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------------
   Contact / Reach Us
   --------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
}

.detail-row {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.detail-row:last-child { border-bottom: none; }
.detail-row svg { flex-shrink: 0; width: 22px; height: 22px; stroke: var(--copper); margin-top: 2px; }
.detail-row b { display: block; font-size: 0.82rem; color: var(--ink-soft); font-weight: 600; margin-bottom: 3px; }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

form.enquiry { display: flex; flex-direction: column; gap: 16px; }
form.enquiry label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 6px;
}
form.enquiry input,
form.enquiry select,
form.enquiry textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
}
form.enquiry input:focus,
form.enquiry select:focus,
form.enquiry textarea:focus {
  outline: none;
  border-color: var(--copper);
}
form.enquiry textarea { resize: vertical; min-height: 110px; }

/* ---------------------------------------------------------------
   CTA band
   --------------------------------------------------------------- */

.cta-band {
  background: var(--ink);
  color: var(--paper);
  text-align: left;
}
.cta-band .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.cta-band h2 { color: var(--paper); font-size: clamp(1.5rem, 3vw, 2rem); max-width: 30ch; }
.cta-band .btn-primary { background: var(--copper); }

/* ---------------------------------------------------------------
   Footer
   --------------------------------------------------------------- */

footer.site-footer {
  background: var(--steel-dark);
  color: var(--paper);
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
footer.site-footer h4 {
  color: var(--paper);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}
footer.site-footer p { color: rgba(247,248,244,0.75); font-size: 0.92rem; }
footer.site-footer ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer li { margin-bottom: 10px; }
footer.site-footer a { text-decoration: none; color: rgba(247,248,244,0.85); font-size: 0.92rem; }
footer.site-footer a:hover { color: var(--copper-light); }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(247,248,244,0.55);
}
