/* ============================================================
   DADAK LLC — Brand Stylesheet
   Custom Home Builder | Bergen County, NJ
   Colors: #F7F8FA | #E2E6EB | #3A7CA5 | #2C4A65 | #1A2330
   Font:   Montserrat
   ============================================================ */

/* ---- CSS VARIABLES ---- */
:root {
  /* Brand Colors */
  --bg:           #F7F8FA;   /* Page & light section background    */
  --bg-alt:       #E2E6EB;   /* Alternate section bg, borders      */
  --blue:         #3A7CA5;   /* Primary brand blue — CTAs, accents */
  --blue-dark:    #2C4A65;   /* Dark blue — nav, dark sections     */
  --blue-darkest: #1A2330;   /* Darkest — footer, hero overlays    */
  --blue-light:   #5B9EC9;   /* Lighter blue — hover on dark bg    */
  --blue-pale:    #A8C8E2;   /* Very light blue — text on dark bg  */
  --white:        #FFFFFF;
  --text:         #1A2330;   /* Primary body text                  */
  --text-light:   #4A6070;   /* Secondary / descriptive text       */
  --text-muted:   #5C7A8A;   /* Captions, meta — 4.6:1 on white    */

  /* Typography */
  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spacing */
  --section-pad:    96px;
  --section-pad-sm: 60px;
  --container:      1200px;
  --container-narrow: 800px;

  /* Animation */
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s var(--ease);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(26, 35, 48, 0.08);
  --shadow-md: 0 8px 24px rgba(26, 35, 48, 0.12);
  --shadow-lg: 0 16px 48px rgba(26, 35, 48, 0.18);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

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

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

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

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

.container--narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-pad) 0; }
.section--alt  { background: var(--bg); }
.section--gray { background: var(--bg-alt); }

.section--navy {
  background: var(--blue-dark);
  color: var(--white);
}

.section--dark {
  background: var(--blue-darkest);
  color: var(--white);
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem);   font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.625rem); font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 600; }
h5 { font-size: 1rem;     font-weight: 600; }

p {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.75;
}

.section--navy p,
.section--dark p {
  color: rgba(255, 255, 255, 0.78);
}

/* Eyebrow label */
.eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  display: block;
  margin-bottom: 10px;
}

.section--navy .eyebrow,
.section--dark .eyebrow {
  color: var(--blue-pale);
}

.section-header        { margin-bottom: 52px; }
.section-header--center {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 52px;
}

/* Dark section heading color overrides */
.section--navy h1,
.section--navy h2,
.section--navy h3,
.section--dark h1,
.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
}

.btn--primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  border: 2px solid var(--blue-dark);
  color: var(--blue-dark);
}

.btn--outline:hover {
  background: var(--blue-dark);
  color: var(--white);
}

.btn--outline-white {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.65);
  color: var(--white);
}

.btn--outline-white:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.btn--lg { padding: 17px 36px; font-size: 0.9375rem; }

/* ---- NAVIGATION ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition);
}

/* Transparent state: dark bg with white text */
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img {
  height: 44px;
  width: auto;
}

/* Logo swap based on nav scroll state */
.nav .nav__logo .logo--white { display: block; }
.nav .nav__logo .logo--navy  { display: none;  }
.nav--scrolled .nav__logo .logo--white { display: none;  }
.nav--scrolled .nav__logo .logo--navy  { display: block; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav__link {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-pale);
  transition: width var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after { width: 100%; }

.nav--scrolled .nav__link { color: var(--blue-dark); }
.nav--scrolled .nav__link::after { background: var(--blue); }

/* CTA button in nav */
.nav__cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 10px 20px;
  border-radius: 3px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition);
}

.nav__cta::after { display: none; }

.nav__cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

/* Scrolled state: white bg */
.nav--scrolled {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}

/* Mobile hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 1px;
}

.nav--scrolled .nav__hamburger span { background: var(--blue-dark); }

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--blue-darkest);
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.52;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26, 35, 48, 0.88) 0%,
    rgba(44, 74, 101, 0.55) 55%,
    rgba(26, 35, 48, 0.15) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: var(--white);
}

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

.hero__title span {
  color: var(--blue-pale);
}

.hero__subtitle {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 40px;
  max-width: 540px;
  line-height: 1.75;
  font-weight: 400;
}

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

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  animation: bounce 2.2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ---- TRUST BAR ---- */
.trust-bar {
  background: var(--blue-dark);
  padding: 22px 0;
  border-bottom: 3px solid var(--blue);
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
  flex-wrap: wrap;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-bar__item svg { color: var(--blue-pale); flex-shrink: 0; }

.trust-bar__divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.2);
}

/* ---- SERVICES GRID ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}

.service-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--blue-darkest);
}

.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
  opacity: 0.55;
}

.service-card:hover .service-card__img {
  transform: scale(1.06);
  opacity: 0.4;
}

.service-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 35, 48, 0.92) 0%, rgba(26, 35, 48, 0.15) 55%);
}

.service-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  color: var(--white);
}

.service-card__eyebrow {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-pale);
  margin-bottom: 8px;
}

.service-card__title {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.service-card__desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9375rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.service-card__link {
  color: var(--blue-pale);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--transition), color var(--transition);
}

.service-card:hover .service-card__link {
  gap: 12px;
  color: var(--white);
}

/* ---- PORTFOLIO GRID ---- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  cursor: pointer;
}

.portfolio-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.portfolio-item:hover .portfolio-item__img { transform: scale(1.07); }

.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 35, 48, 0.78);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  text-align: center;
}

.portfolio-item:hover .portfolio-item__overlay,
.portfolio-item:focus-within .portfolio-item__overlay { opacity: 1; }

.portfolio-item__title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
}

.portfolio-item__tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-pale);
}

/* Filter tabs */
.portfolio-filter {
  display: flex;
  flex-direction: column;
  margin-bottom: 40px;
}

.portfolio-filter__row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.portfolio-filter__row + .portfolio-filter__row {
  border-top: 1px solid var(--bg-alt);
}

.portfolio-filter__label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  width: 96px;
  flex-shrink: 0;
}

.filter-btn {
  padding: 8px 18px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--bg-alt);
  border-radius: 3px;
  color: var(--text-light);
  transition: all var(--transition);
  background: transparent;
  font-family: var(--font);
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: var(--white);
}

/* ---- ABOUT SPLIT ---- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-split__img { position: relative; }

.about-split__img img {
  width: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.about-split__img::before {
  content: '';
  position: absolute;
  top: -14px;
  left: -14px;
  right: 14px;
  bottom: 14px;
  border: 2px solid var(--blue);
  border-radius: 2px;
  z-index: -1;
}

.about-split__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.stat-item__number {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--blue-dark);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-item__label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- PROCESS STEPS ---- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5%);
  right: calc(12.5%);
  height: 2px;
  background: var(--bg-alt);
}

.process-step {
  text-align: center;
  padding: 0 16px;
  position: relative;
}

.process-step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--blue-dark);
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--blue-dark);
}

.process-step__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ---- TESTIMONIALS ---- */
.testimonials { position: relative; overflow: hidden; }

.testimonial-slider {
  display: flex;
  transition: transform 0.55s var(--ease);
}

.testimonial {
  flex: 0 0 100%;
  text-align: center;
  padding: 0 72px;
}

.testimonial__quote {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.75;
  margin-bottom: 32px;
}

.testimonial__author {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-pale);
}

.testimonial__location {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 4px;
}

/* Testimonial with photo layout */
.testimonial--with-photo {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  text-align: left;
  padding: 0 24px;
}

.testimonial__project-img {
  width: 260px;
  flex-shrink: 0;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 2px;
  border: 2px solid rgba(255,255,255,0.15);
}

.testimonial__body { flex: 1; }

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
  border: none;
}

.dot.active {
  background: var(--blue-pale);
  transform: scale(1.3);
}

/* ---- AREAS GRID ---- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.area-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 12px;
  border: 2px solid var(--bg-alt);
  border-radius: 3px;
  text-align: center;
  transition: all var(--transition);
  color: var(--text);
  background: var(--white);
}

.area-card svg { color: var(--blue); transition: color var(--transition); }

.area-card__name {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.area-card__sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color var(--transition);
}

/* Hover: pointer-capable devices only — prevents stuck dark state on touch */
@media (hover: hover) {
  .area-card:hover {
    border-color: var(--blue-dark);
    background: var(--blue-dark);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
  }
  .area-card:hover svg { color: var(--blue-pale); }
  /* Raised to 0.88 to meet WCAG AA contrast on the dark blue background */
  .area-card:hover .area-card__sub { color: rgba(255,255,255,0.88); }
}

.area-card:focus-visible {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(44,74,101,0.22);
  outline: none;
}
.area-card:focus-visible svg { color: var(--blue-pale); }
.area-card:focus-visible .area-card__sub { color: rgba(255,255,255,0.88); }

/* Touch tap feedback (replaces hover for touch devices) */
.area-card:active {
  background: var(--bg-alt);
  border-color: var(--blue);
}

/* Areas index page cards — replaces removed inline onmouseover/onmouseout */
@media (hover: hover) {
  .areas-idx-card:hover {
    border-color: var(--blue) !important;
    box-shadow: 0 4px 20px rgba(58,124,165,0.12) !important;
  }
}
.areas-idx-card:focus-visible {
  border-color: var(--blue-dark) !important;
  box-shadow: 0 4px 20px rgba(44,74,101,0.18) !important;
  outline: 2px solid var(--blue-dark);
  outline-offset: 2px;
}

/* ---- CONTACT FORM ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}

.contact-info__phone {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin: 20px 0 6px;
  letter-spacing: -0.01em;
}

.contact-info__phone a { color: inherit; transition: color var(--transition); }
.contact-info__phone a:hover { color: var(--blue); }

.contact-form { display: flex; flex-direction: column; gap: 14px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-group label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--bg-alt);
  border-radius: 3px;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition);
  font-family: var(--font);
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  border-color: var(--blue);
  outline: 3px solid rgba(58, 124, 165, 0.45);
  outline-offset: 2px;
}

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

/* ---- FOOTER ---- */
.footer {
  background: var(--blue-darkest);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}

.footer__logo { height: 40px; width: auto; margin-bottom: 14px; }

.footer__tagline {
  font-size: 0.875rem;
  max-width: 240px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.footer__heading {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}

.footer__links { display: flex; flex-direction: column; gap: 9px; }

.footer__link {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--transition);
}

.footer__link:hover { color: var(--blue-pale); }

.footer__contact-item {
  display: flex;
  gap: 10px;
  font-size: 0.875rem;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.78);
}

.footer__contact-item a:hover { color: var(--blue-pale); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.72);
}

/* ---- UTILITY ---- */
.text-blue   { color: var(--blue); }
.text-navy   { color: var(--blue-dark); }
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }

.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }

/* Skip navigation link (keyboard accessibility) */
.skip-link {
  position: absolute;
  top: 0; left: 0;
  padding: 12px 20px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  z-index: 9999;
  transform: translateY(-100%);
  transition: transform 0.2s;
  border-radius: 0 0 4px 0;
}
.skip-link:focus { transform: translateY(0); }

/* Global focus-visible ring for keyboard users */
*:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

/* ---- SCROLL ANIMATIONS ---- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.visible:nth-child(2) { transition-delay: 0.08s; }
.fade-up.visible:nth-child(3) { transition-delay: 0.16s; }
.fade-up.visible:nth-child(4) { transition-delay: 0.24s; }
.fade-up.visible:nth-child(5) { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
}

/* ---- MOBILE DRAWER ---- */
.nav__drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(340px, 85vw);
  height: 100vh;
  background: var(--white);
  z-index: 2000;
  transition: right var(--transition);
  padding: 24px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.nav__drawer.open { right: 0; }

.nav__drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 35, 48, 0.55);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.nav__drawer-overlay.visible { opacity: 1; pointer-events: auto; }

.nav__drawer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 48px;
}

.nav__drawer-link {
  display: block;
  padding: 13px 0;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  border-bottom: 1px solid var(--bg-alt);
  transition: color var(--transition);
}

.nav__drawer-link:hover { color: var(--blue); }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  background: var(--bg);
  padding: 12px 0;
  border-bottom: 1px solid var(--bg-alt);
}

.breadcrumb ol {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.breadcrumb a { color: var(--blue-dark); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* ---- PAGE HEADER (Interior pages) ---- */
.page-header {
  background: var(--blue-dark);
  padding: 140px 0 72px;
}

.page-header__eyebrow { color: var(--blue-pale); }
.page-header h1       { color: var(--white); margin-top: 10px; }
.page-header p        { color: rgba(255,255,255,0.75); max-width: 580px; margin-top: 14px; }

/* ---- DETAIL / ICON CARDS ---- */
.icon-card {
  background: var(--white);
  border: 2px solid var(--bg-alt);
  border-radius: 3px;
  padding: 32px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.icon-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.icon-card__icon {
  width: 48px;
  height: 48px;
  background: var(--bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* ---- QUOTE BLOCK ---- */
.quote-block {
  border-left: 4px solid var(--blue);
  padding: 20px 24px;
  background: var(--bg);
  border-radius: 0 3px 3px 0;
  margin: 28px 0;
}

.quote-block p { font-style: italic; color: var(--text-light); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
  :root { --section-pad: 72px; }
  .services-grid    { grid-template-columns: 1fr 1fr; }
  .portfolio-grid   { grid-template-columns: 1fr 1fr; }
  .areas-grid       { grid-template-columns: repeat(3, 1fr); }
  .footer__grid     { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process-steps    { grid-template-columns: 1fr 1fr; gap: 40px; }
  .process-steps::before { display: none; }
  .about-split      { gap: 48px; }
  .about-stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 24px !important; }
}

@media (max-width: 768px) {
  :root { --section-pad: 56px; }

  .nav__links    { display: none; }
  .nav__hamburger { display: flex; }

  .hero          { min-height: 100svh; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .services-grid   { grid-template-columns: 1fr; }
  .portfolio-grid  { grid-template-columns: 1fr 1fr; }
  .about-split     { grid-template-columns: 1fr; gap: 36px; }
  .about-split__img::before { display: none; }
  .contact-grid    { grid-template-columns: 1fr; gap: 40px; }
  .areas-grid      { grid-template-columns: repeat(2, 1fr); }
  .testimonial     { padding: 0 20px; }
  .testimonial--with-photo { flex-direction: column; }
  .testimonial__project-img { width: 100%; }
  .form-row        { grid-template-columns: 1fr; }
  .footer__bottom  { flex-direction: column; gap: 10px; text-align: center; }
  .trust-bar__divider { display: none; }
  .trust-bar__inner   { gap: 20px; }
}

@media (max-width: 480px) {
  .portfolio-grid  { grid-template-columns: 1fr; }
  .areas-grid      { grid-template-columns: 1fr 1fr; }
  .about-split__stats { grid-template-columns: 1fr 1fr; }
  .process-steps   { grid-template-columns: 1fr; }

  /* Long buttons (e.g. "Learn More About Our Process") become full-width
     so they don't overflow the viewport on small phones */
  .text-center .btn--lg {
    width: 100%;
    justify-content: center;
  }
}

/* FAQ <details> — prevent a sliver of answer text from peeking out
   when a previously-open item is closed */
details { overflow: hidden; }

details summary svg {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
details[open] summary svg {
  transform: rotate(180deg);
}

/* ---- NAV CLEARANCE: inner-page breadcrumb bar ---- */
/* Pushes the breadcrumb below the 80px fixed nav so it isn't hidden behind it */
.site-breadcrumb {
  margin-top: 80px;
}

/* Breadcrumb separator via CSS — keeps separator out of the accessible list count */
.site-breadcrumb ol li + li::before {
  content: "/";
  color: rgba(255, 255, 255, 0.4);
  margin-right: 8px;
}

/* ---- INLINE GRID COLLAPSE: inner-page section layouts ---- */
/*
 * Inner pages (area pages, service pages, process, about) use inline
 * style="display:grid;grid-template-columns:..." for section grids.
 * CSS class-based media queries cannot override inline styles, so we
 * target them via attribute selector with !important.
 * On ≤768px: collapse all inline grids to a single column.
 */
@media (max-width: 768px) {
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 36px !important;
  }
  /* Reset flex/grid order so DOM order drives stacking (text before visual) */
  [style*="grid-template-columns"] > * {
    order: unset !important;
  }
  /* Inner-page hero/CTA buttons: fill width when in an inline flex-wrap container */
  [style*="display:flex"][style*="flex-wrap:wrap"] .btn {
    width: 100%;
    justify-content: center;
  }
}
