/* ============================================================
   TSWANACRETE — Shared Stylesheet
   Style: Light, clean, bold, industrial
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Inter:wght@400;500;600&display=swap');

/* --- CSS Variables --- */
:root {
  --white: #FFFFFF;
  --off-white: #F7F7F7;
  --light-grey: #EBEBEB;
  --mid-grey: #9A9A9A;
  --dark: #1C1C1C;
  --charcoal: #2E2E2E;
  --accent: #C8963E;
  --accent-dark: #A87A2F;
  --green-wa: #25D366;
  --green-wa-dark: #1DA851;

  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-w: 1200px;
  --nav-h: 72px;

  --transition: 0.2s ease;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 6px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.16);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.05rem; font-weight: 600; }

/* Subheadings — Inter for hierarchy contrast */
.subhead-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--charcoal);
}

p { font-size: 1rem; line-height: 1.7; color: var(--charcoal); }

.lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--charcoal);
  max-width: 680px;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 80px 0; }
.section-pad-sm { padding: 48px 0; }

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }

.accent { color: var(--accent); }

.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 3px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), transform var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}
.btn-dark:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  transform: translateY(-1px);
}

.divider {
  width: 56px;
  height: 4px;
  background: var(--accent);
  margin: 20px 0 28px;
}
.divider-center { margin: 20px auto 28px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--dark);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo img {
  height: 44px;
  width: auto;
  filter: brightness(1.05);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links li { position: relative; }

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: 3px;
  transition: color var(--transition), background var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: rgba(255,255,255,0.06);
}

/* Dropdown */
.has-dropdown > a::after {
  content: ' ▾';
  font-size: 0.7em;
  opacity: 0.6;
}

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  min-width: 240px;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  border-top: 3px solid var(--accent);
  padding: 8px 0;
  z-index: 100;
}

.has-dropdown:hover .dropdown { display: block; }

.dropdown a {
  display: block;
  color: var(--dark) !important;
  font-size: 0.88rem;
  padding: 10px 20px !important;
  background: transparent !important;
  border-radius: 0 !important;
}
.dropdown a:hover {
  background: var(--off-white) !important;
  color: var(--accent) !important;
}

.btn-whatsapp-nav {
  background: var(--green-wa);
  color: var(--white) !important;
  padding: 9px 18px !important;
  border-radius: 3px !important;
  font-size: 0.88rem !important;
  margin-left: 8px;
  transition: background var(--transition) !important;
}
.btn-whatsapp-nav:hover {
  background: var(--green-wa-dark) !important;
  color: var(--white) !important;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--dark);
  z-index: 999;
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--accent); }

.mobile-nav .sub-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--mid-grey);
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 600;
  padding: 14px 0 6px;
}

.mobile-nav .btn-whatsapp-mob {
  display: block;
  margin-top: 16px;
  background: var(--green-wa);
  color: var(--white);
  text-align: center;
  padding: 14px;
  border-radius: 3px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

/* --- Page body offset for fixed nav --- */
body { padding-top: var(--nav-h); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
  max-width: 820px;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 { color: var(--white); margin-bottom: 20px; }

.hero .subhead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.82);
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.75;
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

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

/* Small hero for inner pages */
.hero-sm {
  min-height: 320px;
  padding: 80px 0 56px;
}

.hero-sm h1 { font-size: clamp(1.9rem, 4vw, 3rem); }

/* ============================================================
   WHAT WE DO — 3-col strip
   ============================================================ */
.what-strip {
  background: var(--off-white);
  border-top: 4px solid var(--accent);
}

.what-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.what-item {
  padding: 48px 40px;
  border-right: 1px solid var(--light-grey);
}
.what-item:last-child { border-right: none; }

.what-icon {
  width: 48px;
  height: 48px;
  background: var(--accent);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.what-item h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.what-item p { font-size: 0.95rem; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header { margin-bottom: 48px; }
.section-header h2 { margin-bottom: 0; }
.section-header p { margin-top: 16px; max-width: 600px; }

/* ============================================================
   SYSTEMS GRID
   ============================================================ */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.system-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  background: var(--dark);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.system-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.system-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity 0.3s, transform 0.4s;
}
.system-card:hover img {
  opacity: 0.45;
  transform: scale(1.04);
}

.system-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 24px;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
}

.system-card-body h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.system-card-body p {
  color: rgba(255,255,255,0.75);
  font-size: 0.85rem;
  line-height: 1.5;
}

.system-card-arrow {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ============================================================
   BRAND PARTNERS
   ============================================================ */
.brand-section { background: var(--white); }

.brands-intro {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: stretch;
}

.brand-card {
  border: 1px solid var(--light-grey);
  border-radius: 6px;
  padding: 32px 24px;
  text-align: center;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.brand-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.brand-card .brand-logo-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.brand-card .brand-logo-wrap img {
  max-height: 60px;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
}

.brand-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.brand-card p {
  font-size: 0.85rem;
  color: var(--mid-grey);
  line-height: 1.55;
}

/* ============================================================
   GALLERY GRID
   ============================================================ */
.gallery-section { background: var(--off-white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--light-grey);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ============================================================
   WHY STRIP
   ============================================================ */
.why-strip {
  background: var(--dark);
  color: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-left: 1px solid rgba(255,255,255,0.08);
}

.why-item {
  padding: 48px 36px;
  border-right: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

.why-stat {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.why-item h4 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.why-item p {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* ============================================================
   CONTACT STRIP
   ============================================================ */
.contact-strip {
  background: var(--charcoal);
  color: var(--white);
}

.contact-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.contact-strip h2 { color: var(--white); font-size: 1.9rem; }

.contact-strip-details {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-detail .label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.contact-detail a,
.contact-detail span {
  color: rgba(255,255,255,0.85);
  font-size: 0.97rem;
  transition: color var(--transition);
}
.contact-detail a:hover { color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  padding: 56px 0 32px;
  border-top: 3px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: auto;
  max-height: 40px;
  width: auto;
  max-width: 220px;
  margin-bottom: 20px;
  filter: brightness(0.9);
  object-fit: contain;
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  max-width: 280px;
}

.footer-col h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

.footer-col p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.social-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   FLOATING WHATSAPP BUTTON
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 500;
  width: 58px;
  height: 58px;
  background: var(--green-wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37,211,102,0.55);
}
.wa-float svg { width: 30px; height: 30px; fill: var(--white); }

/* ============================================================
   INNER PAGE SECTIONS
   ============================================================ */

/* 2-col intro layout */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro-grid img {
  border-radius: 4px;
  width: 100%;
  height: 420px;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}

/* System cards list */
.sys-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.sys-card {
  background: var(--off-white);
  border-radius: 4px;
  border-left: 4px solid var(--accent);
  padding: 28px 28px 28px 28px;
  transition: box-shadow var(--transition);
}
.sys-card:hover { box-shadow: var(--shadow-md); }

.sys-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.sys-card p { font-size: 0.9rem; color: var(--charcoal); }

/* Application chips */
.app-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.app-tag {
  background: var(--light-grey);
  border-radius: 3px;
  padding: 6px 14px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
}

/* Feature list with ticks */
.feature-list { margin-top: 20px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--light-grey);
  font-size: 0.95rem;
  color: var(--charcoal);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* CTA Block */
.cta-block {
  background: var(--dark);
  border-radius: 6px;
  padding: 56px 48px;
  text-align: center;
  margin: 80px 0 0;
}
.cta-block h2 { color: var(--white); margin-bottom: 16px; }
.cta-block p { color: rgba(255,255,255,0.75); max-width: 500px; margin: 0 auto 32px; }
.cta-block .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.service-pillar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  padding: 64px 0;
  border-bottom: 1px solid var(--light-grey);
}
.service-pillar:last-of-type { border-bottom: none; }

.service-pillar.reverse { direction: rtl; }
.service-pillar.reverse > * { direction: ltr; }

.service-pillar img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
}

.service-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--light-grey);
  line-height: 1;
  margin-bottom: 8px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-form-wrap {
  background: var(--off-white);
  border-radius: 6px;
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--light-grey);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-note {
  font-size: 0.8rem;
  color: var(--mid-grey);
  margin-top: 8px;
}

.contact-info-block { padding-top: 8px; }

.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--light-grey);
}
.contact-info-item:first-child { padding-top: 0; }
.contact-info-item:last-child { border-bottom: none; }

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.contact-info-text a,
.contact-info-text span {
  display: block;
  font-size: 0.95rem;
  color: var(--charcoal);
  transition: color var(--transition);
}
.contact-info-text a:hover { color: var(--accent); }

.map-wrap {
  margin-top: 32px;
  border-radius: 6px;
  overflow: hidden;
  height: 280px;
  background: var(--light-grey);
  border: 1px solid var(--light-grey);
}
.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Hours table */
.hours-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.hours-table tr { border-bottom: 1px solid var(--light-grey); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { padding: 8px 0; font-size: 0.9rem; color: var(--charcoal); }
.hours-table td:last-child { text-align: right; color: var(--dark); font-weight: 500; }

/* ============================================================
   SURFACE SYSTEMS OVERVIEW PAGE
   ============================================================ */
.systems-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.sys-overview-card {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  background: var(--white);
  border: 1px solid var(--light-grey);
}
.sys-overview-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.sys-overview-img {
  height: 240px;
  overflow: hidden;
}
.sys-overview-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.sys-overview-card:hover .sys-overview-img img { transform: scale(1.04); }

.sys-overview-body {
  padding: 28px 28px 32px;
}
.sys-overview-body h3 { margin-bottom: 12px; font-size: 1.5rem; }
.sys-overview-body p { font-size: 0.92rem; margin-bottom: 20px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* ============================================================
   RESPONSIVE — TABLET 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .systems-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item:nth-child(2) { border-right: none; }
  .systems-overview-grid { grid-template-columns: 1fr; }
  .intro-grid { gap: 40px; }
  .sys-overview-card { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE 768px
   ============================================================ */
@media (max-width: 768px) {
  /* Prevent horizontal overflow on any mobile */
  html, body { overflow-x: hidden; width: 100%; }
  .container { padding: 0 16px; }

  :root { --nav-h: 64px; }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  /* Typography */
  h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
  h2 { font-size: clamp(1.5rem, 5vw, 1.9rem); }
  h3 { font-size: clamp(1.1rem, 3.5vw, 1.35rem); }

  /* Hero */
  .hero { min-height: 80vh; }
  .hero-sm { min-height: 260px; }
  .hero-content { padding: 0 4px; }
  .hero-tag { font-size: 0.7rem; }
  .subhead { font-size: 1rem; }
  .hero-ctas { flex-direction: column; gap: 12px; align-items: flex-start; }
  .hero-ctas .btn { width: 100%; text-align: center; }

  /* What strip */
  .what-grid { grid-template-columns: 1fr; }
  .what-item { border-right: none; border-bottom: 1px solid var(--light-grey); padding: 28px 0; }
  .what-item:last-child { border-bottom: none; }

  /* Systems */
  .systems-grid { grid-template-columns: 1fr; }
  .system-card img { height: 200px; }

  /* Brands */
  .brand-grid { grid-template-columns: 1fr 1fr; gap: 16px; }

  /* Gallery */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  /* Why strip */
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-item { padding: 24px 16px; }

  /* Contact strip */
  .contact-strip-inner { flex-direction: column; align-items: flex-start; gap: 32px; }
  .contact-strip-details { flex-direction: column; gap: 20px; width: 100%; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-brand p { max-width: 100%; }

  /* Intro grid - stack on mobile */
  .intro-grid { grid-template-columns: 1fr; gap: 24px; }
  .intro-grid img { height: 240px; width: 100%; object-fit: cover; border-radius: 4px; }

  /* Sys cards */
  .sys-list { grid-template-columns: 1fr; }
  .sys-card { padding: 24px 20px; }

  /* Services */
  .service-pillar,
  .service-pillar.reverse { grid-template-columns: 1fr; direction: ltr; gap: 0; }
  .service-pillar img { height: 220px; width: 100%; }
  .service-pillar-body { padding: 28px 20px; }

  /* Contact page */
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .contact-form-wrap { padding: 24px 16px; border-radius: 4px; }
  .contact-info-block { padding: 0; }

  /* CTA block */
  .cta-block { padding: 36px 20px; }
  .btn-group { flex-direction: column; gap: 12px; }
  .btn-group .btn { width: 100%; text-align: center; justify-content: center; }

  /* App tags */
  .app-tags { gap: 8px; }
  .app-tag { font-size: 0.78rem; padding: 5px 10px; }

  /* Sys overview cards */
  .sys-overview-card { grid-template-columns: 1fr; }

  /* Section padding reduction */
  .section-pad { padding: 48px 0; }
  .section-pad-sm { padding: 32px 0; }

  /* Hours table */
  .hours-table td { font-size: 0.82rem; padding: 4px 0; }

  /* WhatsApp float */
  .wa-float { bottom: 20px; right: 16px; width: 52px; height: 52px; }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE 480px
   ============================================================ */
@media (max-width: 480px) {
  .container { padding: 0 12px; }

  h1 { font-size: clamp(1.6rem, 8vw, 2rem); }

  /* Single column everything */
  .systems-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }

  /* Nav logo sizing on tiny screens */
  .nav-logo img { max-height: 32px; }

  /* Hero adjustments */
  .hero { min-height: 85vh; }
  .hero-sm { min-height: 220px; }
  .hero-content h1 { font-size: clamp(1.5rem, 7vw, 1.9rem); }

  /* Footer */
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Forms */
  input, select, textarea { font-size: 16px; } /* Prevents iOS zoom on focus */

  /* Inline grids in product pages */
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="repeat(3,1fr)"] { grid-template-columns: 1fr !important; }
  [style*="repeat(2,1fr)"] { grid-template-columns: 1fr !important; }
}
