/* ============================================================
   Alpine Drywall (Calgary) Ltd. — 2026 design system
   ============================================================ */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
img, svg { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; font-size: inherit; color: inherit; }

/* TOKENS */
:root {
  --bg:          #ffffff;
  --bg-soft:     #f6f7f9;
  --bg-dark:     #0f172a;
  --bg-darker:   #0a0f1c;
  --ink:         #0f172a;
  --ink-soft:    #334155;
  --ink-mute:    #64748b;
  --ink-faint:   #94a3b8;
  --line:        #e2e8f0;
  --line-strong: #cbd5e1;
  --accent:      #ea580c;
  --accent-2:    #c2410c;
  --accent-soft: #fff5ee;
  --steel:       #1e3a5f;
  --good:        #16a34a;

  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --maxw:      1200px;
  --maxw-text: 720px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t:    0.25s var(--ease);

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px rgba(15, 23, 42, 0.05), 0 10px 15px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 25px rgba(15, 23, 42, 0.08), 0 10px 10px rgba(15, 23, 42, 0.04);
}

/* BASE */
body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}
h1 { font-size: clamp(2.25rem, 5.5vw, 4rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.65rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }

p { color: var(--ink-soft); }
p + p { margin-top: 1rem; }

strong { color: var(--ink); font-weight: 600; }

/* LAYOUT */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(1.25rem, 3.5vw, 2.5rem); }
section { padding: clamp(4rem, 8vw, 7rem) 0; }

/* EYEBROW */
.eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: var(--t);
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost-light { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-outline { border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }

.btn .arrow { transition: transform var(--t); }
.btn:hover .arrow { transform: translateX(3px); }

/* HEADER / NAV */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.brand img { height: 44px; width: auto; }
.brand-text { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; }
.brand-text span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  transition: color var(--t);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-cta {
  background: var(--ink);
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  border-radius: 2px;
  font-size: 0.78rem !important;
  letter-spacing: 0.05em;
  transition: var(--t);
}
.nav-cta:hover { background: var(--accent) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); transition: var(--t); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t);
  }
  .nav-links.open { max-height: 500px; padding: 1rem; }
  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child { border-bottom: none; }
}

/* HERO */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--bg-darker);
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, var(--bg-darker) 0%, rgba(10,15,28,0.92) 45%, rgba(10,15,28,0.55) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 6rem 0 4rem;
}
.hero h1 { color: #fff; margin-bottom: 1.5rem; }
.hero h1 .accent { color: var(--accent); display: block; }
.hero .lead {
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  color: rgba(255,255,255,0.82);
  max-width: 580px;
  margin-bottom: 2.5rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 580px;
}
.hero-stat .num {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-stat .label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
}

@media (max-width: 600px) {
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

/* SECTION HEAD */
.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head.left { text-align: left; }
.section-head h2 { margin-bottom: 1rem; }
.section-head .lead {
  max-width: var(--maxw-text);
  margin: 0 auto;
  font-size: 1.075rem;
  color: var(--ink-soft);
}
.section-head.left .lead { margin: 0; }

/* PILLARS */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pillar {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2.25rem;
  transition: var(--t);
}
.pillar:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar h3 { margin-bottom: 0.65rem; }
.pillar p { color: var(--ink-mute); font-size: 0.97rem; }

@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* SERVICES (two-up) */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: var(--t);
}
.service-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.service-card .img { aspect-ratio: 16/10; overflow: hidden; background: var(--bg-soft); }
.service-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.service-card:hover .img img { transform: scale(1.04); }
.service-card .body { padding: 2rem; }
.service-card h3 { margin-bottom: 0.75rem; }
.service-card .features { margin-top: 1.25rem; display: flex; flex-direction: column; gap: 0.55rem; }
.service-card .features li {
  display: flex;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.service-card .features li::before {
  content: '';
  flex-shrink: 0;
  margin-top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

@media (max-width: 820px) { .services { grid-template-columns: 1fr; } }

/* SPLIT */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

.split .img-frame {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split .img-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split .checklist { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
.split .checklist li {
  display: flex;
  gap: 0.7rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.split .checklist li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 800;
}

@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* DARK SECTION */
.section-dark {
  background: var(--bg-dark);
  color: #fff;
}
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.7); }
.section-dark .eyebrow { color: var(--accent); }
.section-dark .checklist li { color: rgba(255,255,255,0.78); }
.section-dark .lead { color: rgba(255,255,255,0.75); }

/* ASSOCIATIONS */
.assoc {
  padding: 3rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.assoc-label {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1.5rem;
}
.assoc-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  justify-content: center;
  align-items: center;
}
.assoc-row img {
  height: 44px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: var(--t);
}
.assoc-row img:hover { opacity: 1; filter: none; }

/* PAGE HERO (sub-pages) */
.page-hero {
  background: var(--bg-dark);
  color: #fff;
  padding: clamp(5rem, 10vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
  text-align: center;
  position: relative;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  width: 80px;
  margin: 0 auto;
}
.page-hero h1 { color: #fff; margin-bottom: 1rem; }
.page-hero .lead { color: rgba(255,255,255,0.78); max-width: 620px; margin: 0 auto; }

/* COR BLOCK */
.cor-block {
  background: #fff;
  border-radius: 8px;
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-lg);
  margin-top: -3rem;
  position: relative;
  border-top: 4px solid var(--accent);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2.5rem;
  align-items: center;
}
.cor-block .cor-logo {
  background: var(--bg-soft);
  padding: 1.5rem;
  border-radius: 6px;
}
.cor-block .cor-logo img { width: 100%; }
@media (max-width: 720px) {
  .cor-block { grid-template-columns: 1fr; text-align: center; }
  .cor-block .cor-logo { max-width: 160px; margin: 0 auto; }
}

/* PROTOCOL CARDS */
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.protocol {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2rem;
  transition: var(--t);
}
.protocol:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.protocol .pillar-icon { background: var(--bg-soft); }
.protocol h3 { margin-bottom: 0.5rem; }
.protocol p { color: var(--ink-mute); font-size: 0.93rem; }
@media (max-width: 820px) { .protocol-grid { grid-template-columns: 1fr; } }

/* TEAM */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.team-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: var(--t);
}
.team-card:hover { box-shadow: var(--shadow-md); }
.team-card .photo { aspect-ratio: 3/4; overflow: hidden; background: var(--bg-soft); }
.team-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.team-card:hover .photo img { transform: scale(1.03); }
.team-card .body { padding: 1.5rem 1.5rem 1.75rem; }
.team-card h3 { margin-bottom: 0.25rem; font-size: 1.2rem; }
.team-card .role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.team-card ul { display: flex; flex-direction: column; gap: 0.4rem; }
.team-card li {
  font-size: 0.88rem;
  color: var(--ink-mute);
  display: flex;
  gap: 0.5rem;
}
.team-card li::before { content: '•'; color: var(--accent); }
@media (max-width: 980px) { .team { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .team { grid-template-columns: 1fr; } }

/* CTA BAND */
.cta-band {
  background: var(--bg-dark);
  color: #fff;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: #fff; margin-bottom: 1rem; }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 620px; margin: 0 auto 2rem; }
.cta-band .btn { font-size: 0.95rem; padding: 1.1rem 2rem; }

/* FOOTER */
.footer {
  background: var(--bg-darker);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 1.75rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-grid h5 {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand .brand-text { color: #fff; font-size: 1.15rem; }
.footer-brand p { color: rgba(255,255,255,0.6); margin-top: 1rem; max-width: 280px; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
}
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-bottom a:hover { color: var(--accent); }
.wizardweb-credit a { border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 1px; }
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* FADE IN */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.fade-in.visible { opacity: 1; transform: none; }

/* SELECTION */
::selection { background: var(--accent); color: #fff; }
