/* ═══════════════════════════════════════════════════════════
   Stoneclad Technologies — Global Stylesheet
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

/* ─── Design Tokens ─────────────────────────────────────── */
:root {
  --navy:      #1a3a4a;
  --navy-mid:  #2a4f63;
  --navy-light:#3d6b82;
  --teal:      #00b4a6;
  --teal-dark: #009488;
  --teal-light:#33c5b9;
  --teal-glow: rgba(0,180,166,0.12);
  --sky:       #e8f7f6;
  --sky-light: #e4f5f4;
  --white:     #ffffff;
  --off-white: #f7fafa;
  --gray-50:   #fafcfc;
  --gray-100:  #f0f5f5;
  --gray-200:  #dde8e7;
  --gray-400:  #8fa3a1;
  --gray-700:  #3d5250;
  --text:      #1e3535;
  --text-light:#4a6b68;
  --text-muted:#7a9e9b;

  --font-head: 'Raleway', sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  --max-w: 1160px;
  --radius: 6px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 12px rgba(26,58,74,0.07);
  --shadow-md: 0 8px 32px rgba(26,58,74,0.11);
  --shadow-lg: 0 20px 60px rgba(26,58,74,0.14);
  --overlay-hero:   rgba(26,58,74,0.85);
  --overlay-subtle: rgba(26,58,74,0.55);
  --transition: 0.25s ease;

  --header-h: 90px;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::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(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal); }
ul { list-style: none; }
address { font-style: normal; }

/* ─── Focus styles (keyboard nav / accessibility) ────── */
:focus-visible {
  outline: 2px solid var(--teal-dark);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ─── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ─── Buttons ───────────────────────────────────────────── */
.btn, .btn-cta, .btn-outline {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  padding: 0.75rem 1.75rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-cta {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}
.btn-cta:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,148,136,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal-dark);
}
.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo-link { flex-shrink: 0; }
.logo-img { width: 197px; height: 55px; object-fit: contain; }

/* Nav */
.main-nav { flex: 1; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-list > li { position: relative; }

.nav-list > li > a,
.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.85rem;
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-mid);
  border-radius: var(--radius);
  border: none;
  background: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-list > li > a:hover,
.dropdown-toggle:hover,
.nav-list > li > a.active {
  color: var(--teal);
  background: var(--teal-glow);
}
.chevron {
  font-size: 0.7rem;
  transition: transform var(--transition);
  display: inline-block;
}
.has-dropdown.open .chevron { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 230px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s ease;
  z-index: 200;
}
.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 0.6rem 1rem;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy-mid);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.dropdown a:hover {
  color: var(--teal);
  background: var(--teal-glow);
  padding-left: 1.25rem;
}

.header-cta { margin-left: auto; font-size: 0.78rem; padding: 0.6rem 1.25rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem 3rem;
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  gap: 3rem;
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; align-items: center; }
.footer-logo { width: 130px; margin-bottom: 1.5rem; opacity: 0.95; }
.footer-social { display: flex; gap: 1rem; justify-content: center; }
.social-link {
  color: rgba(255,255,255,0.6);
  transition: all var(--transition);
  display: flex;
  align-items: center;
}
.social-link:hover { color: var(--teal); transform: translateY(-2px); }

.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-family: var(--font-head);
  font-size: 0.875rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  transition: all var(--transition);
}
.footer-col a:hover { color: var(--teal); padding-left: 4px; }

.footer-contact h4 {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-contact p {
  color: rgba(255,255,255,0.6);
  font-family: var(--font-head);
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
}
.footer-contact a { color: rgba(255,255,255,0.6); }
.footer-contact a:hover { color: var(--teal); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.25rem 2rem;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--teal); }

/* ─── Page wrapper ──────────────────────────────────────── */
.page-body {
  padding-top: var(--header-h);
  min-height: 100vh;
}

/* ─── Section utilities ─────────────────────────────────── */
.section { padding: 5rem 2rem; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.75rem;
}
.section-title { margin-bottom: 1rem; }
.section-subtitle { color: var(--text-light); font-size: 1.1rem; max-width: 600px; }

.section--alt { background: var(--off-white); }
.section--dark { background: var(--navy); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p, .section--dark .section-subtitle { color: rgba(255,255,255,0.72); }

/* Light teal accent section */
.section--sky { background: var(--sky-light); }

/* ─── Hero Banner ───────────────────────────────────────── */
.page-hero {
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  padding: 2rem 2rem 1.5rem;
  overflow: hidden;
  background: var(--navy);
  background-blend-mode: multiply;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--overlay-subtle) 0%, var(--overlay-hero) 100%);
  z-index: 0;
}

.page-hero-inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  z-index: 1;
}
.page-hero h1 { color: var(--white); }
.page-hero .breadcrumb {
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 0.5rem;
}
.page-hero .breadcrumb a { color: var(--teal); }

/* ─── Cards ──────────────────────────────────────────────── */
.card-grid {
  display: grid;
  gap: 1.5rem;
}
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--teal);
}
.card-img { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 1.5rem; }
.card-body h4 { color: var(--navy); margin-bottom: 0.5rem; }
.card-body p { color: var(--text-light); font-size: 0.95rem; }

/* ─── Service tiers ──────────────────────────────────────── */
.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.tier {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
}
.tier:hover, .tier.featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px var(--teal-glow);
}
.tier-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal-dark);
  display: block;
  margin-bottom: 0.5rem;
}
.tier h3 { font-size: 1rem; color: var(--navy); margin-bottom: 0.75rem; }
.tier p { font-size: 0.9rem; color: var(--text-light); }

/* ─── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  background-size: cover;
  background-position: center;
  padding: 5rem 2rem;
  text-align: center;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-hero);
  z-index: 0;
}
.cta-banner-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p  { color: rgba(255,255,255,0.72); margin-bottom: 2rem; }

/* ─── Feature list ───────────────────────────────────────── */
.feature-check { color: var(--teal-dark); font-weight: 700; margin-right: 0.5rem; }
.features-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin: 1.25rem 0 2rem;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy-mid);
}
.features-inline span::before { content: '✓ '; color: var(--teal-dark); }

/* ─── Two-column layouts ──────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.two-col--flip .col-img { order: -1; }

/* ─── Bullet list blocks ─────────────────────────────────── */
.bullet-list {
  list-style: none;
  display: grid;
  gap: 0.5rem;
}
.bullet-list li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-light);
}
.bullet-list li::before {
  content: '→';
  color: var(--teal-dark);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* ─── Process steps ──────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}
.process-step {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--gray-200);
  position: relative;
}
.step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

/* ─── Contact form ───────────────────────────────────────── */
.contact-form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-mid);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-glow);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.required { color: var(--teal-dark); }

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 2; grid-row: 1; }
  .footer-nav { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  :root { --header-h: 80px; }
  .hamburger { display: flex; }
  .header-cta { display: none; }

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-top: 1px solid var(--gray-200);
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li > a, .dropdown-toggle { width: 100%; justify-content: space-between; }
  .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; border-radius: 0; background: var(--gray-100); padding: 0.25rem 0; display: none; }
  .has-dropdown.open .dropdown { display: block; }

  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col--flip .col-img { order: 0; }
  .card-grid--3 { grid-template-columns: 1fr; }
  .card-grid--2 { grid-template-columns: 1fr; }
  .tiers-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: auto; grid-row: auto; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .section { padding: 3.5rem 1.25rem; }
}
