/* =========================================
   Central West Building — Global Styles
   Palette + type taken from the site's own
   design tokens (Elementor kit 5).
   ========================================= */

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

:root {
  --orange:     #F08D24;
  --dark:       #1E1E27;
  --navy:       #15335D;
  --light:      #F5F5F5;
  --gray-mid:   #DADADA;
  --body:       #7A7A7A;
  --secondary:  #54595F;
  --hero-veil:  #13131DEB;

  /* Elementor boxed container is 1140px of content; +48 for our own padding */
  --w-90: 1188px;
  --w-80: 960px;
  --w-65: 984px;

  --font: 'Open Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.about-text ul, .our-work .tab-panel ul, .vtabs .tab-panel ul,
.history ul, .legal-body ul { list-style: disc; padding-left: 40px; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--w-90); margin: 0 auto; padding: 0 24px; }
.container.w80 { max-width: var(--w-80); }
.container.w65 { max-width: var(--w-65); }

/* ── Headings ── */
h1, h2, h3 { font-family: var(--font); font-weight: 700; color: var(--dark); }

.section-title {
  font-size: 3rem;
  line-height: 3.8rem;
  letter-spacing: -0.1rem;
  text-transform: uppercase;
}
.section-title.light { color: var(--light); }

.sub-title {
  font-size: 1.65rem;
  letter-spacing: -0.05rem;
  line-height: 1.3;
}

/* Orange rule under section headings */
.rule {
  width: 25%;
  max-width: 190px;
  height: 0.5rem;
  background: var(--orange);
  border: none;
  margin: 10px 0 26px;
}
.rule.center { margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  padding: 14px 28px;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-orange { background: var(--orange); color: var(--dark); border-color: var(--orange); }
.btn-orange:hover { background: #d97c11; border-color: #d97c11; }

.btn-ghost { background: transparent; color: var(--light); border-color: var(--orange); }
.btn-ghost:hover { background: var(--orange); color: var(--dark); }

.btn-dark { background: var(--dark); color: var(--light); border-color: var(--dark); }
.btn-dark:hover { color: var(--orange); }

.btn-navy { background: var(--navy); color: var(--light); border-color: var(--navy); }
.btn-navy:hover { background: #0f2748; border-color: #0f2748; }

/* ── Top bar ── */
.top-bar {
  background: var(--orange);
  color: var(--dark);
  font-size: 0.8rem;
  padding: 0.5% 0;
  position: relative;
  z-index: 12;
}

/* ── Header (transparent, overlays the hero) ── */
.hero-wrap { position: relative; }

.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding-top: 2%;
}
.header-inner {
  max-width: var(--w-90);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo img { width: 230px; height: auto; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  position: relative;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
  padding-bottom: 6px;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 3px;
  background: var(--orange);
  transition: width .25s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: rgba(245,245,245,0.23);
  border: none;
  border-radius: 4px;
  padding: 10px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--light); }

/* ── Hero carousel ── */
.hero { position: relative; }
.hero-slide {
  position: relative;
  min-height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { display: flex; }

.hero-box {
  width: 100%;
  max-width: 1140px;
  margin: 0 24px;
  background: var(--hero-veil);
  border-radius: 5px;
  padding: 5% 6%;
  text-align: center;
}
.hero-box .hero-eyebrow {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}
.hero-box h2 {
  font-size: 3.6rem;
  line-height: 1.15;
  letter-spacing: -0.05rem;
  color: var(--light);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero-box p {
  color: var(--light);
  max-width: 720px;
  margin: 0 auto 30px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-dots {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px;
  z-index: 4;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(245,245,245,0.45);
  padding: 0;
}
.hero-dot.active { background: var(--orange); }

/* ── About ── */
.about-head { padding: 5% 0 0; margin-bottom: 2%; }
.about-body { padding-bottom: 10%; }
.about-cols { display: flex; align-items: stretch; }
.about-text { width: 70%; display: flex; flex-direction: column; justify-content: center; }
.about-text .inner { width: 90%; }
.about-text p { color: var(--dark); margin-bottom: 16px; }
.about-text ul { margin-top: 6px; }
.about-text li { margin-bottom: 4px; color: var(--dark); }

.years-box {
  width: 30%;
  border: 1rem solid var(--orange);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 22px;
  text-align: center;
}
.years-box .num {
  font-family: 'Inter', sans-serif;
  font-size: 10rem;
  font-weight: 800;
  line-height: 1;
  color: var(--dark);
}
.years-box .lbl { color: var(--dark); }

/* ── Our Work (dark) ── */
.our-work { background: var(--dark); padding: 10% 0 5%; }

/* ── Tabs ── */
.tab-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10%; }
.tab-btn {
  background: transparent;
  border: 2px solid transparent;
  border-radius: 5px;
  color: var(--light);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.5% 2%;
  transition: border-color .2s ease, color .2s ease;
}
.tab-btn:hover { color: var(--orange); }
.tab-btn.active { border-color: var(--orange); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.our-work .tab-panel h3 {
  font-size: 3rem;
  line-height: 3.8rem;
  letter-spacing: -0.1rem;
  color: var(--orange);
  text-transform: uppercase;
}
.our-work .tab-panel p,
.our-work .tab-panel li { color: var(--light); }
.our-work .tab-panel > p { margin-bottom: 10px; }
.our-work .tab-panel ul { margin: 10px 0 20px; }
.our-work .tab-panel li { margin-bottom: 4px; }

/* Gallery — 3 per row, 1 per row under 1024px */
.gallery { display: flex; flex-wrap: wrap; margin: 26px -5px 0; }
.gallery-item { width: calc(33.33% - 10px); margin: 5px; }
.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 3px;
}
.gallery.capped .gallery-item:nth-child(n+13) { display: none; }
.gallery.capped.expanded .gallery-item:nth-child(n+13) { display: block; }
.gallery-action { margin-top: 26px; text-align: center; }

/* ── Our Services (light) ── */
.our-services { padding: 5% 0 10%; }

.vtabs { display: flex; gap: 40px; align-items: flex-start; }
.vtabs .tab-nav {
  flex: 0 0 240px;
  flex-direction: column;
  gap: 0;
  margin-bottom: 0;
}
/* Service tabs are plain text with a 3px right rule, orange when active */
.vtabs .tab-btn {
  color: var(--dark);
  font-size: 0.95rem;
  font-weight: 400;
  text-transform: none;
  text-align: left;
  justify-content: flex-start;
  width: 100%;
  padding: 14px 18px 14px 0;
  border: none;
  border-right: 3px solid var(--gray-mid);
  border-radius: 0;
}
.vtabs .tab-btn:hover { color: var(--dark); border-right-color: var(--orange); }
.vtabs .tab-btn.active { border-right-color: var(--orange); }
.vtabs .tab-body { flex: 1; }
.vtabs .tab-panel h3 { font-size: 1.65rem; letter-spacing: -0.05rem; margin-bottom: 10px; }
.vtabs .tab-panel p { color: var(--dark); margin-bottom: 14px; }
.vtabs .tab-panel li { margin-bottom: 4px; color: var(--dark); }

/* Three photo cards */
.promo-row { display: flex; gap: 20px; margin-top: 5%; }
.promo-card {
  position: relative;
  width: 33%;
  flex: 1;
  border-radius: 5px;
  padding: 5%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.promo-card::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--dark);
  opacity: 0.8;
  z-index: -1;
}
.promo-icon { text-align: right; }
.promo-icon svg { width: 2rem; height: 2rem; fill: var(--orange); display: inline-block; }
.promo-card h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--light);
}
.promo-card hr {
  width: 25%;
  height: 0.25rem;
  background: var(--orange);
  border: none;
  margin: 12px 0 14px;
}
.promo-card p { color: var(--light); }

/* ── Company history ── */
.history { background: var(--light); padding: 10% 0; }
.history p { color: var(--dark); margin-bottom: 16px; }
.history ul { margin: 0 0 16px; }
.history li { margin-bottom: 4px; color: var(--dark); }

/* ── Testimonials ── */
.testimonials { padding: 10% 0; }

/* One orange-bordered box holding the testimonial carousel */
.tm-carousel {
  border: 2px solid var(--orange);
  border-radius: 5px;
  padding: 2%;
}
/* All slides share one grid cell, so the box is always as tall as the
   longest testimonial and never resizes between slides (matches Swiper). */
.tm-track { display: grid; }
.tm-slide {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.tm-slide.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.tm-slide .tm-card + .tm-card { margin-top: 26px; }

.tm-dots { display: flex; gap: 9px; justify-content: center; margin-top: 22px; }
.tm-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  border: none; padding: 0;
  background: var(--gray-mid);
}
.tm-dot.active { background: var(--dark); }

.tm-card { display: flex; flex-direction: column; }
.tm-card .quote { color: var(--dark); margin-bottom: 14px; flex: 1; }
.tm-card .who {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--dark);
}
.tm-card .role { color: var(--body); font-size: 0.85rem; }

/* ── Team ── */
.team { padding-bottom: 10%; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.team-card { background: var(--gray-mid); border-radius: 5px; padding: 36px; }
.team-card .role {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.team-card p { color: var(--dark); }
.team-card .lines { margin-top: 16px; }
.team-card .lines p { font-weight: 700; }
.team-card .lines a:hover { color: var(--orange); }

/* ── CTA banner ── */
.cta { background: var(--light); padding: 5% 0; text-align: center; }
.cta img { width: 25%; max-width: 260px; margin: 0 auto 2%; }
.cta .eyebrow {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--orange);
}
.cta h2 { color: var(--navy); text-transform: uppercase; font-size: 2.4rem; letter-spacing: -0.05rem; }
.cta p { color: var(--dark); margin: 14px 0 26px; }

/* ── Contact ── */
.contact { padding: 5% 0 10%; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 34px; }
.contact-col p { color: var(--dark); }
.contact-col a:hover { color: var(--orange); }

.form-box { background: var(--gray-mid); border-radius: 5px; padding: 5%; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #fff;
  border: none;
  border-radius: 3px;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--dark);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form button { width: 100%; }
.form-note { display: none; font-weight: 600; color: #216c3c; }
.form-note.visible { display: block; }
.form-note.error { color: #b3261e; }

/* Honeypot: hidden from people, visible to bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none;
}

/* ── Footer ── */
.site-footer { background: var(--dark); color: var(--light); padding: 2% 0; }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 30px 0; }
.footer-col h3 { color: var(--light); font-size: 1rem; font-weight: 700; text-transform: uppercase; }
.footer-col hr {
  width: 25%; height: 0.25rem; background: var(--orange);
  border: none; margin: 10px 0 16px;
}
.footer-col p { color: var(--light); }
.footer-col a:hover { color: var(--orange); }
.newsletter { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.newsletter input {
  width: 100%;
  background: #fff;
  border: none;
  border-radius: 3px;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--dark);
}

.footer-bottom {
  background: var(--dark);
  border-top: 1px solid var(--light);
  color: var(--light);
  text-align: center;
  padding: 18px 0;
  font-size: 0.85rem;
}

/* ── Legal pages ── */
.legal-header { padding: 26px 0; border-bottom: 1px solid var(--gray-mid); margin-bottom: 40px; }
.legal-header .inner {
  max-width: var(--w-90); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.legal-header img { width: 200px; }

.legal-body { padding: 0 0 90px; }
.legal-body h1 {
  font-size: 3rem; line-height: 3.8rem; letter-spacing: -0.1rem; text-transform: uppercase;
}
.legal-body h2 { font-size: 1.3rem; margin: 30px 0 10px; }
.legal-body h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.legal-header .btn { text-transform: none; }
.legal-body p, .legal-body li { color: var(--dark); margin-bottom: 12px; }
.legal-body ul { margin-bottom: 16px; }
.legal-body li { margin-bottom: 4px; }
.legal-body a { color: var(--orange); text-decoration: underline; }
.legal-body .effective { font-style: italic; color: var(--body); margin-top: 26px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .section-title, .our-work .tab-panel h3, .legal-body h1 {
    font-size: 2rem; line-height: 2.25rem;
  }
  .hero-box h2 { font-size: 2rem; letter-spacing: -0.08rem; }
  .about-cols { flex-wrap: wrap; }
  .about-text, .years-box { width: 100%; }
  .about-text .inner { width: 100%; }
  .years-box { margin-top: 30px; padding: 30px; }
  .years-box .num { font-size: 6rem; }
  .gallery-item { width: 100%; margin: 5px 5px 15px; }
  .vtabs { flex-direction: column; gap: 24px; }
  .vtabs .tab-nav { flex: none; flex-direction: row; flex-wrap: wrap; width: 100%; }
  .vtabs .tab-btn { width: auto; }
  .promo-row { flex-wrap: wrap; }
  .promo-card { width: 100%; flex: 1 1 100%; padding: 34px; }
  .team-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .cta img { width: 50%; }
  .cta h2 { font-size: 2rem; }
  .form-box { padding: 30px; }
}

@media (max-width: 860px) {
  body { font-size: 0.9rem; }
  .top-bar { text-align: center; font-size: 0.7rem; }
  .nav-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px); right: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    background: var(--dark);
    padding: 20px 26px;
    border-radius: 5px;
    min-width: 200px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { color: var(--light); }
  .logo img { width: 170px; }
  .hero-box { padding: 40px 24px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .tab-nav { gap: 8px; }
  .tab-btn { padding: 8px 14px; font-size: 0.9rem; }
}
