/* Rook Facility Services — Styles */


/* ============================================================
   TOKENS
   ============================================================ */
:root {
  --purple:       #3D0082;
  --purple-deep:  #26004E;
  --purple-mid:   #5400A8;
  --emerald:      #006E3C;
  --emerald-lit:  #008A4C;
  --brass:        #D4AF37;
  --brass-dark:   #B89422;
  /* Richer, more saturated gold for small bold text on white/light
     surfaces — the plain --brass token has very low contrast on white
     (it only reads as "bright" against the dark purple sections), so
     headings that sit on white use this instead to look equally vivid. */
  --brass-onwhite: #CC9900;

  /* Light-mode surfaces */
  --bg:           #F5F3F0;
  --bg-alt:       #EDEBF4;
  --surface:      #FFFFFF;
  --text-1:       #180E2A;
  --text-2:       #5E5070;
  --border:       #DDD6EC;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:       #180E2A;
    --bg-alt:   #231540;
    --surface:  #2A1850;
    --text-1:   #EDE9F6;
    --text-2:   #A898C0;
    --border:   #3D2A60;
  }
}
:root[data-theme="dark"] {
  --bg:       #180E2A;
  --bg-alt:   #231540;
  --surface:  #2A1850;
  --text-1:   #EDE9F6;
  --text-2:   #A898C0;
  --border:   #3D2A60;
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Rajdhani', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--purple-deep);
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  border-bottom: 2px solid rgba(212,175,55,0.25);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-rook-icon {
  width: 30px;
  height: 40px;
  flex-shrink: 0;
}
.logo-tagline {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--emerald-lit);
  margin-top: 3px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--brass); }

.nav-dropdown { position: relative; }
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
  padding: 0;
}
.nav-dropdown-trigger:hover { color: var(--brass); }
.nav-dropdown-caret {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.2s;
}
.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown:focus-within .nav-dropdown-caret { transform: rotate(225deg); margin-top: 3px; }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 0;
  min-width: 170px;
  background: var(--purple-deep);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 6px;
  box-shadow: 0 16px 32px rgba(0,0,0,0.35);
  padding: 8px 0;
  list-style: none;
  display: none;
  flex-direction: column;
  z-index: 220;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  white-space: nowrap;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.nav-dropdown-menu li a:hover { background: rgba(212,175,55,0.1); color: var(--brass); }

.nav-cta {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--brass);
  color: var(--purple-deep);
  padding: 9px 22px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--brass-dark); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--purple);
  height: min(calc(100vh - 148px), 820px);
  min-height: 520px;
  display: grid;
  grid-template-columns: 58% 42%;
  position: relative;
  overflow: hidden;
}

/* ── Left column: 2 rows ── */
.hero-left {
  display: grid;
  grid-template-rows: 1fr auto;
  position: relative;
  z-index: 2;
}
.hero-left-top {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 64px 0 80px;
}
.hero-left-bottom {
  padding: 20px 64px 48px 80px;
  display: flex;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--emerald-lit);
  margin-bottom: 20px;
}
.eyebrow-line {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--emerald-lit);
  flex-shrink: 0;
}
.hero-h1 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 900;
  font-size: clamp(56px, 6vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-h1 .brass { color: var(--brass); }
.hero-sub {
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  text-align: left;
}

.hero-trust {
  display: flex;
  gap: 72px;
}
.trust-stat { text-align: center; }
.trust-number {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 900;
  font-size: 54px;
  color: var(--brass);
  line-height: 1;
  white-space: nowrap;
}
.trust-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  margin-top: 4px;
}

/* ── Right column: 2 rows ── */
.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  background: var(--purple);
  overflow: hidden;
}

/* Castle fills background of right column */

/* Buttons — row 1: align to bottom, same level as headline */
.hero-right-top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 24px 40px 24px;
}

/* Service line — row 2: align with stats */
.hero-right-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 40px 48px;
  margin-top: 0;
}


/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--brass);
  color: var(--purple-deep);
  width: 220px;
  text-align: center;
  padding: 14px 0;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--brass-dark); transform: translateY(-1px); }

.btn-ghost {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.3);
  width: 220px;
  text-align: center;
  padding: 13px 0;
  border-radius: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: #fff; border-color: rgba(255,255,255,0.6); }

.hero-actions-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-actions-left {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.hero-actions-right .btn-primary,
.hero-actions-right .btn-ghost {
  text-align: center;
  white-space: nowrap;
}

/* Service tagline — same visual weight as trust stats */
.hero-service-line {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 3vw, 38px);
  letter-spacing: 0.12em;
  color: var(--emerald-lit);
  text-align: center;
  white-space: nowrap;
  line-height: 1;
  width: 100%;
}


/* ROOK logo — ghost background in right column */
.hero-right-wordmark {
  position: absolute;
  top: 10%;
  height: 78%;
  width: auto;
  max-width: none;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

.hero-accent-stripe { display: none; }

/* ============================================================
   SECTION SHARED
   ============================================================ */
.section-label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 14px;
}

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 900;
  font-size: clamp(34px, 3.5vw, 52px);
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--text-1);
  text-wrap: balance;
}

/* ============================================================
   PILLAR BANNER
   ============================================================ */
/* Theme gradient divider */
.theme-divider {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--purple-deep) 0%,
    var(--purple) 20%,
    var(--emerald) 45%,
    var(--brass) 70%,
    var(--purple) 88%,
    var(--purple-deep) 100%
  );
}

/* ============================================================
   PILLARS
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pillar {
  padding: 28px 20px 28px;
  border: 1.5px solid #5400A8;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
  background: #ffffff;
  color: var(--text-1);
  display: flex;
  flex-direction: column;
}

.pillar-bg-num {
  position: absolute;
  top: 12px;
  right: 20px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 900;
  font-size: 90px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: opacity 0.3s;
  color: rgba(61,0,130,0.07);
  z-index: 0;
}

.pillar-icon-wrap {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pillar-brand-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: contrast(1.08) saturate(1.1);
}

.pillar-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 900;
  font-size: 26px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--purple);
  position: relative;
  z-index: 1;
}
.pillar:hover {
  background: #faf8ff;
}

.pillar-tagline {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 10px;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}

.pillar-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.pillar-see-details {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5400A8;
  border: 1px solid #5400A8;
  border-radius: 3px;
  padding: 7px 14px;
  position: relative;
  z-index: 1;
  transition: background 0.15s, color 0.15s;
}
.pillar-see-details:hover { background: #5400A8; color: #fff; }

/* Pillar: CLEAN */
.pillar.clean .pillar-name { color: var(--brass-onwhite); }
.pillar.clean .pillar-tagline { color: var(--emerald-lit); opacity: 1; }

/* Pillar: RENEW */
.pillar.renew .pillar-name { color: var(--brass-onwhite); }
.pillar.renew .pillar-tagline { color: var(--emerald-lit); opacity: 1; }

/* Pillar: BUILD */
.pillar.build .pillar-name { color: var(--brass-onwhite); }
.pillar.build .pillar-tagline { color: var(--emerald-lit); opacity: 1; }

/* Pillar background follows --surface token, which the dark-mode token blocks
   already redefine. No extra rule needed here. */

/* ============================================================
   TITLE-ROWS (Properties/Voices, Why Rook/Estimate)
   ============================================================ */
.tr-wrap { scroll-margin-top: 24px; }

.tr-row {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 0;
  background: #fff;
  scroll-margin-top: 24px;
  --bg: #ffffff;
  --bg-alt: #EDEBF4;
  --text-1: #180E2A;
  --text-2: #5E5070;
  --border: #DDD6EC;
}

.tr-row:not(.tr-row--screen) .tr-title,
.tr-row:not(.tr-row--screen) .tr-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tr-row--screen {
  min-height: calc(100vh - 66px);
}
.tr-row--screen .tr-title,
.tr-row--screen .tr-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tr-title {
  background: var(--purple);
  color: #fff;
  padding: 40px 56px;
}
.tr-title .section-label { color: var(--brass); }
.tr-title .section-title { color: #fff; font-size: clamp(24px, 2.2vw, 34px); }

.tr-content {
  background: #fff;
  padding: 40px 80px;
}

.properties-desc {
  margin-top: 0;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text-2);
  max-width: 680px;
}


/* Property type grid — full-width strip under both columns */
.prop-grid--horizontal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.prop-type {
  background: #fff;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 3px solid var(--purple);
  transition: background 0.25s;
}
.prop-type:hover {
  background: var(--bg-alt);
}

.prop-icon {
  width: 32px;
  height: 32px;
  color: var(--emerald);
  margin-bottom: 4px;
}
.prop-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple);
}
.prop-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  max-width: 460px;
}

/* ============================================================
   HOW WE WORK
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.process-step {
  position: relative;
  border: 1.5px solid var(--emerald);
  padding: 24px 28px;
}

.step-num {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--text-2);
  margin-bottom: 10px;
  opacity: 0.5;
}

.step-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brass-onwhite);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
}

/* ============================================================
   TESTIMONIAL ROTATOR
   ============================================================ */
.testimonial-rotator {
  position: relative;
  margin-top: 22px;
  min-height: 220px;
  padding-bottom: 28px;
}

.testimonial-slide {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}
.testimonial-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.testimonial-quote {
  font-size: 16px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.75;
  color: var(--text-2);
}
.testimonial-quote::before { content: '\201C'; }
.testimonial-quote::after  { content: '\201D'; }

.testimonial-meta {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.testimonial-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple);
}
.testimonial-role {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-top: 4px;
}

.testimonial-dots {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 8px;
}
.t-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s;
}
.t-dot.active { background: var(--purple); }

/* ============================================================
   VALUES / TRUST
   ============================================================ */
.values-list {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.value-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  border: 1.5px solid var(--emerald);
  padding: 20px 24px;
}

.value-icon {
  width: 32px;
  height: 32px;
  color: var(--emerald);
  flex-shrink: 0;
  margin-top: 2px;
}

.value-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple);
  margin-bottom: 3px;
}

.value-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}

/* ============================================================
   QUOTE / CTA
   ============================================================ */
.quote-sub {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 300;
  color: var(--text-2);
  line-height: 1.7;
  max-width: none;
}

.estimate-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  color: var(--text-1);
}

.contact-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--purple);
}

/* Quote Form */
.quote-form {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 52px 44px;
}
.quote-form--compact {
  padding: 28px 28px;
}

.form-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple);
  margin-bottom: 32px;
}
.quote-form--compact .form-title {
  font-size: 16px;
  margin-bottom: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid--compact {
  gap: 12px;
}
.form-grid--compact .form-title { margin-bottom: 0; }
.quote-form--compact textarea { min-height: 64px; }

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-field.full { grid-column: span 2; }

.form-field label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-2);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: #fff;
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--purple-mid);
  color: var(--text-1);
  font-family: 'Rajdhani', sans-serif;
  font-size: 15px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(24,14,42,0.3); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--purple);
  background: #fff;
}
.form-field select { appearance: none; cursor: pointer; }
.form-field select option { background: #fff; color: var(--text-1); }
.form-field textarea { resize: vertical; min-height: 96px; }

.form-submit {
  grid-column: span 2;
  margin-top: 8px;
  background: var(--brass);
  color: var(--purple-deep);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: none;
  padding: 16px;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--brass-dark); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--purple-deep);
  border-top: 1px solid rgba(212,175,55,0.18);
  padding: 26px 80px;
}

.footer-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 28px;
}

.footer-logo-full {
  width: 140px;
  height: auto;
  flex-shrink: 0;
}

.footer-desc {
  font-size: 14px;
  font-weight: 300;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}

.footer-bottom {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}

.footer-legal {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
  white-space: nowrap;
}

.footer-badge {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   MOBILE NAV
   ============================================================ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.75);
  transition: transform 0.25s, opacity 0.25s, width 0.25s;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  top: 66px;
  left: 0;
  right: 0;
  height: auto;
  background: var(--purple-deep);
  border-bottom: 2px solid rgba(212,175,55,0.2);
  z-index: 199;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.mobile-nav.open {
  max-height: 660px;
  padding: 8px 0 16px;
}
.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.mobile-nav a {
  display: block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  padding: 14px 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s, background 0.2s;
}
.mobile-nav a:hover { color: var(--brass); background: rgba(255,255,255,0.04); }

.mobile-nav-group-label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  opacity: 0.85;
  padding: 16px 32px 6px;
}
.mobile-nav-group-label:not(:first-child) {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 6px;
}

.mobile-nav a.mobile-nav-sublink {
  padding: 12px 32px 12px 44px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  position: relative;
}
.mobile-nav a.mobile-nav-sublink::before {
  content: '';
  position: absolute;
  left: 32px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--emerald-lit);
}
.mobile-nav .mobile-cta {
  margin: 16px 32px 0;
  display: block;
  background: var(--brass);
  color: var(--purple-deep);
  font-family: 'Rajdhani', sans-serif;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 14px 24px;
  text-align: center;
  border: none;
  transition: background 0.2s;
}
.mobile-nav .mobile-cta:hover { background: var(--brass-dark); color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .hero-left { padding: 80px 48px; }

  .tr-row { grid-template-columns: 1fr; }
  .tr-title, .tr-content { padding: 32px 48px; }
  .prop-grid--horizontal { grid-template-columns: 1fr; }
  .prop-type { padding: 32px 48px; }
  nav { padding: 0 32px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .mobile-nav { display: block; }

  .pillars { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  nav { padding: 0 20px; }

  .hero { height: auto; min-height: 0; padding-bottom: 40px; }
  .hero-left { padding: 0; }
  .hero-left-top { padding: 40px 20px 0; }
  .hero-left-bottom { padding: 20px 20px 32px; }
  .hero-h1 { font-size: clamp(32px, 10vw, 48px); margin-bottom: 16px; }
  .hero-sub { font-size: 15px; }
  .hero-sub br { display: none; }
  .pillar-tagline { white-space: normal; }
  .hero-actions-left { gap: 12px; }
  .btn-primary, .btn-ghost { width: 158px; font-size: 12px; }

  .hero-trust { flex-direction: column; gap: 16px; }
  .trust-stat { text-align: left; }
  .trust-number { font-size: 34px; }

  .creds-strip { flex-direction: column; align-items: flex-start; padding: 20px 20px; gap: 14px; overflow-x: visible; }
  .creds-list { flex-direction: column; flex-wrap: wrap; gap: 12px; width: 100%; }
  .cred-item { white-space: normal; }
  .cred-name, .cred-num { white-space: normal; }

  /* Sections that were sized to fill one screen on desktop should just size
     to their content on mobile — a fixed full-screen height only creates
     huge empty gaps once content reflows to more, shorter lines. */
  .tr-row--screen { min-height: 0; }
  .tr-row--screen .tr-title,
  .tr-row--screen .tr-content { display: block; }

  .tr-wrap, .tr-row, .tr-title, .tr-content,
  .pillars, .pillar, .pillar-see-details { min-width: 0; }

  .pillar { padding: 40px 20px; }
  .pillar-desc { max-width: none; }

  .tr-row { grid-template-columns: 1fr; }
  .tr-title, .tr-content { padding: 32px 20px; }
  .tr-title .section-title { font-size: clamp(22px, 6.5vw, 30px); }

  .prop-grid--horizontal { grid-template-columns: 1fr; }
  .prop-type { padding: 28px 20px; }

  .process-steps { grid-template-columns: 1fr; gap: 24px; }

  /* Wrapped quote + meta text runs taller on narrow screens than the
     desktop-tuned min-height, which pushed the absolutely-positioned
     dots up into the author name. Give it room and let the dots sit
     below in normal flow instead of overlapping. */
  .testimonial-rotator { min-height: 340px; padding-bottom: 36px; }
  .testimonial-dots { bottom: 4px; }
  .value-desc { white-space: normal; }
  .values-list { grid-template-columns: 1fr; grid-auto-flow: row; }

  .estimate-grid { grid-template-columns: 1fr; }
  .quote-form { padding: 32px 20px; }
  .quote-form--compact { padding: 24px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full,
  .form-submit { grid-column: span 1; }

  footer { padding: 28px 20px; }
  .footer-main { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-brand-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-logo-full { width: 150px; }
  .footer-bottom { align-items: flex-start; text-align: left; gap: 6px; }
}


/* ── Credentials Modal ── */
.prop-type--clickable {
  cursor: pointer;
  position: relative;
}
.prop-type--clickable:hover { background: var(--bg-alt) !important; }
.prop-see-more {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-top: 4px;
}
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,0,30,0.75);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--surface);
  border-radius: 12px;
  padding: 48px 40px;
  max-width: 520px;
  width: 90%;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-2);
  cursor: pointer;
  line-height: 1;
}
.modal-label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 10px;
}
.modal-title {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 900;
  font-size: 32px;
  color: var(--purple);
  margin-bottom: 12px;
}
.modal-sub {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 28px;
}
.modal-logos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 32px;
}
.modal-company {
  background: var(--bg-alt);
  border-left: 3px solid var(--emerald);
  padding: 12px 16px;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--text-1);
  border-radius: 0 6px 6px 0;
}
.modal-cta {
  display: inline-block;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-dark);
  border-bottom: 2px solid var(--brass-dark);
  padding-bottom: 3px;
  text-decoration: none;
}


/* Hero right logo stack */
.hero-logo-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 40px 32px;
  width: 100%;
}
.hero-castle-img {
  width: 62%;
  max-width: 280px;
  object-fit: contain;
}
.hero-wordmark-img {
  width: 88%;
  max-width: 360px;
  object-fit: contain;
}

/* ── Credentials strip ── */
.creds-strip {
  background: var(--purple-deep);
  padding: 20px 80px;
  display: flex;
  align-items: center;
  gap: 90px;
  flex-wrap: nowrap;
  overflow-x: auto;
}
.creds-label {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  white-space: nowrap;
  flex-shrink: 0;
}
.creds-list {
  display: flex;
  gap: 56px;
  flex-wrap: nowrap;
}
.cred-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.cred-badge {
  width: 20px;
  height: 20px;
  background: var(--emerald);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.cred-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.9);
  line-height: 1.2;
}
.cred-num {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

/* ============================================================
   PROJECTS PAGE
   ============================================================ */
.projects-hero {
  background: var(--purple-deep);
  padding: 72px 80px 56px;
  text-align: center;
}
.projects-hero .section-label { color: var(--brass); justify-content: center; display: flex; }
.projects-hero .section-title { color: #fff; }
.projects-hero-sub {
  max-width: 560px;
  margin: 20px auto 0;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
}

.project-detail {
  padding: 72px 80px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 24px;
}
.project-detail:nth-child(odd) { background: var(--bg-alt); }

.project-detail-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.project-detail-icon {
  width: 56px;
  height: 56px;
  object-fit: contain;
}
.project-detail-head .section-title { margin: 0; color: var(--brass-dark); }

.project-detail-copy {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 640px;
  margin-bottom: 40px;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project-gallery-placeholder {
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  opacity: 0.5;
}

@media (max-width: 900px) {
  .project-gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .projects-hero { padding: 56px 24px 40px; }
  .project-detail { padding: 48px 24px; }
  .project-gallery { grid-template-columns: 1fr; }
}

/* ============================================================
   ABOUT / TEAM PAGE
   ============================================================ */
.team-section {
  padding: 72px 80px;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 24px;
}
.team-section:nth-child(odd) { background: var(--bg-alt); }

.team-section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.team-section-head .section-label { justify-content: center; display: flex; }
.team-section-head .section-title { margin-bottom: 12px; }
.team-section-copy {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-2);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.team-grid--crew {
  grid-template-columns: repeat(4, 1fr);
}

.team-card { text-align: left; }

.team-photo {
  aspect-ratio: 1 / 1;
  border: 2px dashed var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  opacity: 0.5;
  margin-bottom: 16px;
}

.team-name {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--purple);
}
.team-role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-dark);
  margin-top: 3px;
}
.team-bio {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  margin-top: 10px;
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid--crew { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .team-section { padding: 48px 24px; }
  .team-grid, .team-grid--crew { grid-template-columns: 1fr; gap: 28px; }
}
