/* ==========================================================================
   Planet Builders — Global Styles
   ========================================================================== */

:root {
  /* Brand palette extracted from the Planet Builders & Interiors logo:
     crimson red (accent/CTA) + charcoal grey (structural/dark). Token names
     (--navy-*, --orange-*) are kept from the previous theme so every
     component rule below still resolves correctly — only the underlying
     values changed. --navy-* now drives dark structural surfaces (header,
     footer, hero) using charcoal grey; --orange-* now drives the crimson
     accent/CTA color, matching the logo's red roof mark. */
  --navy-950: #1f1f1f;
  --navy-900: #333333;
  --navy-800: #454545;
  --navy-700: #555555;
  --navy-100: #f5f5f5;
  --orange-600: #7d1422;
  --orange-500: #a51c30;
  --orange-400: #c02840;
  --orange-100: #f9eaec;
  --off-white: #faf7f7;
  --white: #ffffff;
  --ink: #2a2a2a;
  --ink-soft: #555555;
  --border: #e6e0e1;

  --font-heading: 'Outfit', 'Rubik', sans-serif;
  --font-body: 'Rubik', 'Outfit', sans-serif;

  --container: 1200px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --shadow-sm: 0 4px 16px rgba(51, 51, 51, 0.08);
  --shadow-md: 0 12px 32px rgba(51, 51, 51, 0.12);
  --shadow-lg: 0 24px 64px rgba(51, 51, 51, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; color: var(--ink-soft); }

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

.icon {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex-shrink: 0;
}

.text-orange { color: var(--orange-500); }

/* Reveal-on-scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  min-height: 44px;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--orange-400); outline-offset: 2px; }

.btn--orange { background: var(--orange-500); color: var(--white); }
.btn--orange:hover { background: var(--orange-600); }

.btn--navy { background: var(--navy-900); color: var(--white); }
.btn--navy:hover { background: var(--navy-800); }

.btn--white { background: var(--white); color: var(--navy-900); }
.btn--white:hover { background: var(--navy-100); }

.btn--outline {
  background: transparent;
  color: var(--navy-900);
  border: 2px solid var(--navy-900);
  padding: 12px 26px;
}
.btn--outline:hover { background: var(--navy-900); color: var(--white); }

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
  padding: 12px 26px;
}
.btn--outline-light:hover { background: var(--white); color: var(--navy-900); border-color: var(--white); }

.btn--sm { padding: 8px 18px; font-size: 0.85rem; min-height: 36px; }
.btn--lg { padding: 16px 34px; font-size: 1rem; }

/* ---------- Section heads ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.eyebrow__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-500);
}
.eyebrow--center { justify-content: center; width: 100%; }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head__desc { margin-top: 12px; }
.section-head--split {
  text-align: left;
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.section-head--split h2 { margin-bottom: 0; }

section { padding: 96px 0; }
@media (max-width: 640px) {
  section { padding: 64px 0; }
}

/* ==========================================================================
   Top bar
   ========================================================================== */
.topbar {
  background: var(--navy-950);
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar__contact { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar__contact a { display: inline-flex; align-items: center; gap: 8px; transition: color 0.2s; }
.topbar__contact a:hover { color: var(--orange-400); }
.topbar__right { display: flex; align-items: center; gap: 20px; }
.topbar__social { display: flex; gap: 12px; }
.topbar__social a {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  transition: background 0.2s;
  font-size: 0.9rem;
}
.topbar__social a:hover { background: var(--orange-500); }

@media (max-width: 720px) {
  .topbar__contact { display: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__img { height: 56px; width: auto; flex-shrink: 0; }
.logo--light .logo__img { height: 60px; }
.footer .logo { margin-bottom: 20px; }

/* Legacy inline-SVG mark, kept for any page still using it */
.logo__mark {
  width: 40px; height: 40px;
  color: var(--orange-500);
  flex-shrink: 0;
}
.logo__mark svg { width: 100%; height: 100%; }
.logo__text {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--navy-900);
}
.logo__text strong { font-weight: 800; }
.logo--light .logo__text { color: var(--white); }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav a:hover, .nav a.active { color: var(--orange-500); }
.nav a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--orange-500);
  border-radius: 2px;
}

.header__actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav a { width: 100%; padding: 10px 0; }
  .header__actions .btn--orange { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  padding-bottom: 0;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-top: 24px;
}

.hero__desc { max-width: 480px; font-size: 1.05rem; }

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}
.hero__tags span {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  box-shadow: var(--shadow-sm);
}

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

.hero__media { position: relative; }
.hero__images {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
  align-items: end;
}
.hero__images img {
  border-radius: var(--radius-lg);
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow-md);
}
.hero__images img:first-child { height: 380px; }
.hero__images img:last-child { height: 280px; }

.hero__badge-spin {
  position: absolute;
  top: -20px;
  right: 6%;
  width: 108px;
  height: 108px;
  z-index: 2;
  color: var(--navy-900);
}
.hero__badge-spin svg:first-child {
  width: 100%;
  height: 100%;
  animation: spin 16s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero__badge-core {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__badge-core svg {
  width: 34px; height: 34px;
  background: var(--orange-500);
  color: var(--white);
  fill: currentColor;
  border-radius: 50%;
  padding: 10px;
  box-sizing: content-box;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--navy-900);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-top: 64px;
  padding: 40px 24px;
  color: var(--white);
  position: relative;
}
.stat { text-align: center; padding: 0 16px; border-right: 1px solid rgba(255,255,255,0.12); }
.stat:last-child { border-right: none; }
.stat__num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--orange-400);
}
.stat__num em { font-style: normal; }
.stat__label { font-size: 0.9rem; color: rgba(255,255,255,0.75); }

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__badge-spin { top: -12px; right: 12px; width: 84px; height: 84px; }
  .hero__stats { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stat:nth-child(2) { border-right: none; }
}
@media (max-width: 640px) {
  .hero__images img:first-child { height: 260px; }
  .hero__images img:last-child { height: 200px; }
  .hero__stats { grid-template-columns: 1fr; gap: 24px; }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 20px; }
  .stat:last-child { border-bottom: none; padding-bottom: 0; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about { background: var(--white); }
.about__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about__media { position: relative; }
.about__img--1 { border-radius: var(--radius-lg); width: 100%; height: 420px; object-fit: cover; box-shadow: var(--shadow-md); }
.about__img--2 {
  position: absolute;
  bottom: -40px;
  right: -32px;
  width: 55%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 6px solid var(--white);
  box-shadow: var(--shadow-lg);
}
.about__badge {
  position: absolute;
  top: 24px; left: 24px;
  background: var(--orange-500);
  color: var(--white);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.3;
  box-shadow: var(--shadow-md);
  max-width: 160px;
}
.about__badge span { display: block; font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; }
.about__badge em { font-style: normal; }

.about__points { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.about__points li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--navy-800); }
.about__points .icon { color: var(--orange-500); width: 1.2em; height: 1.2em; }

@media (max-width: 900px) {
  .about__inner { grid-template-columns: 1fr; }
  .about__media { margin-bottom: 56px; }
}
@media (max-width: 520px) {
  .about__img--2 { width: 62%; height: 160px; right: -12px; bottom: -32px; }
}

/* ==========================================================================
   Services
   ========================================================================== */
.services { background: var(--off-white); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 18px;
  background: var(--navy-900);
  color: var(--orange-400);
  margin-bottom: 24px;
}
.service-card__icon svg { width: 30px; height: 30px; fill: currentColor; }
.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--navy-900);
  transition: gap 0.2s ease, color 0.2s ease;
}
.service-card__link:hover { color: var(--orange-500); gap: 10px; }

.services__cta { text-align: center; margin-top: 48px; }

@media (max-width: 1100px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .services__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Process
   ========================================================================== */
.process {
  background: var(--navy-900);
  color: var(--white);
  position: relative;
}
.process .eyebrow { color: var(--orange-400); }
.process h2 { color: var(--white); }
.process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.process__step {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}
.process__num {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--orange-400);
  margin-bottom: 16px;
}
.process__step h3 { color: var(--white); }
.process__step p { color: rgba(255,255,255,0.7); margin: 0; }

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

/* ==========================================================================
   Projects
   ========================================================================== */
.projects { background: var(--navy-950); color: var(--white); }
.projects .eyebrow { color: var(--orange-400); }
.projects h2 { color: var(--white); }
.projects__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.project-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.project-card img { width: 100%; height: 260px; object-fit: cover; }
.project-card__body { padding: 28px; }
.project-card__body h3 { color: var(--white); margin-bottom: 12px; }
.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
}
.project-card__meta span { display: inline-flex; align-items: center; gap: 6px; }
.projects .service-card__link { color: var(--orange-400); }
.projects .service-card__link:hover { color: var(--white); }

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

/* ==========================================================================
   Why Choose Us
   ========================================================================== */
.why__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}
.why__media img { border-radius: var(--radius-lg); width: 100%; height: 520px; object-fit: cover; box-shadow: var(--shadow-md); }
.why__content .btn { margin-bottom: 32px; }
.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.why__item { display: flex; gap: 14px; align-items: flex-start; }
.why__item .icon {
  width: 40px; height: 40px;
  color: var(--orange-500);
  background: var(--orange-100);
  border-radius: 12px;
  padding: 8px;
  flex-shrink: 0;
}
.why__item h4 { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; margin: 0 0 4px; color: var(--navy-900); }
.why__item p { margin: 0; font-size: 0.9rem; }

@media (max-width: 900px) {
  .why__inner { grid-template-columns: 1fr; }
  .why__media img { height: 320px; }
}
@media (max-width: 560px) {
  .why__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact { background: var(--off-white); }
.contact__grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 32px;
  align-items: stretch;
}
.contact__form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--navy-800);
  margin-bottom: 8px;
}
.form-field input, .form-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--off-white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field textarea { resize: vertical; min-height: 110px; }
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--orange-500);
  box-shadow: 0 0 0 3px var(--orange-100);
  background: var(--white);
}
.form-status { margin: 12px 0 0; font-weight: 600; color: var(--navy-800); min-height: 1.2em; }

.contact__info {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  justify-content: center;
}
.contact__info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact__info-item .icon { width: 22px; height: 22px; color: var(--orange-400); flex-shrink: 0; margin-top: 4px; }
.contact__info-item h4 { color: var(--white); font-size: 1rem; margin: 0 0 6px; }
.contact__info-item p { color: rgba(255,255,255,0.7); margin: 0; }
.contact__social a { background: rgba(255,255,255,0.08); }
.contact__social { margin-top: 12px; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .contact__form, .contact__info { padding: 28px 22px; }
}

/* ==========================================================================
   Team
   ========================================================================== */
.team { background: var(--white); }
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.team-card { text-align: center; }
.team-card__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  aspect-ratio: 4/5;
}
.team-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.team-card:hover .team-card__img img { transform: scale(1.05); }
.team-card h3 { margin-bottom: 4px; }
.team-card p { color: var(--orange-500); font-weight: 600; margin-bottom: 14px; }
.team-card__social { display: flex; justify-content: center; gap: 10px; }
.team-card__social a {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--off-white);
  color: var(--navy-900);
  transition: background 0.2s ease, color 0.2s ease;
}
.team-card__social a:hover { background: var(--orange-500); color: var(--white); }

@media (max-width: 900px) {
  .team__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .team__grid { grid-template-columns: 1fr; max-width: 320px; margin-left: auto; margin-right: auto; }
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials { background: var(--navy-900); color: var(--white); }
.testimonials .eyebrow { color: var(--orange-400); }
.testimonials h2 { color: var(--white); }
.testimonials__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (min-width: 901px) {
  .testimonials__track { grid-auto-rows: 1fr; }
}
.testi-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.testi-card__stars { color: var(--orange-400); letter-spacing: 2px; margin-bottom: 16px; }
.testi-card p { color: rgba(255,255,255,0.85); }
.testi-card__person { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.testi-card__person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testi-card__person h4 { color: var(--white); font-size: 0.95rem; margin: 0; }
.testi-card__person span { font-size: 0.82rem; color: rgba(255,255,255,0.6); }

.testimonials__dots { display: none; justify-content: center; gap: 8px; margin-top: 32px; }
.testimonials__dots button {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}
.testimonials__dots button.is-active { background: var(--orange-500); transform: scale(1.2); }

@media (max-width: 900px) {
  .testimonials__track {
    grid-template-columns: 100%;
    grid-auto-flow: column;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .testimonials__track::-webkit-scrollbar { display: none; }
  .testi-card { scroll-snap-align: center; }
  .testimonials__dots { display: flex; }
}

/* ==========================================================================
   Blog
   ========================================================================== */
.blog { background: var(--off-white); }
.blog__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-card img { width: 100%; height: 200px; object-fit: cover; }
.blog-card__body { padding: 26px; }
.blog-card__meta { font-size: 0.8rem; color: var(--orange-500); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.blog-card h3 { font-size: 1.1rem; margin: 10px 0 16px; }

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

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { background: var(--white); }
.faq__inner {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr;
  gap: 48px;
  align-items: start;
}
.accordion { margin-top: 32px; display: grid; gap: 14px; }
.accordion__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--off-white);
}
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy-900);
}
.accordion__trigger .icon { color: var(--orange-500); width: 20px; height: 20px; transition: transform 0.25s ease; flex-shrink: 0; }
.accordion__item.is-open .accordion__trigger .icon { transform: rotate(45deg); }
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.accordion__panel p { padding: 0 24px 20px; margin: 0; }
.accordion__item.is-open .accordion__panel { max-height: 220px; }

.faq__card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  margin-top: 32px;
  position: relative;
  overflow: hidden;
}
.faq__card-badge {
  display: inline-block;
  background: var(--orange-500);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.faq__card h3 { color: var(--white); font-size: 1.3rem; }
.faq__card p { color: rgba(255,255,255,0.7); }

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

/* ==========================================================================
   Newsletter
   ========================================================================== */
.newsletter { background: var(--orange-500); }
.newsletter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.newsletter h2 { color: var(--white); max-width: 560px; margin: 0; }
.newsletter__form { display: flex; gap: 12px; flex-wrap: wrap; }
.newsletter__form input {
  padding: 15px 20px;
  border-radius: 999px;
  border: none;
  min-width: 280px;
  font-family: inherit;
  font-size: 0.95rem;
}
.newsletter__form input:focus { outline: 3px solid var(--navy-900); }
.newsletter .btn--orange { background: var(--navy-900); }
.newsletter .btn--orange:hover { background: var(--navy-950); }

@media (max-width: 640px) {
  .newsletter__form { width: 100%; }
  .newsletter__form input { min-width: 0; flex: 1; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--navy-950); color: rgba(255,255,255,0.75); padding-top: 80px; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__col h4 { color: var(--white); font-size: 1rem; margin-bottom: 20px; }
.footer__col a, .footer__col p { display: block; margin-bottom: 12px; color: rgba(255,255,255,0.65); transition: color 0.2s; }
.footer__col a:hover { color: var(--orange-400); }
.footer__col--brand p { max-width: 280px; }
.footer__col--brand .topbar__social { margin-top: 20px; }

.footer__newsletter { display: flex; gap: 8px; margin-top: 4px; }
.footer__newsletter input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-family: inherit;
}
.footer__newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.footer__newsletter input:focus { outline: none; border-color: var(--orange-500); }
.footer__newsletter button {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--orange-500);
  color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.footer__newsletter button:hover { background: var(--orange-600); }

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 24px;
  font-size: 0.85rem;
  flex-wrap: wrap;
}
.footer__legal { display: flex; gap: 24px; }
.footer__legal a:hover { color: var(--orange-400); }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom-inner { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   Back to top
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--orange-500);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
  z-index: 60;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--orange-600); }
.back-to-top .icon { width: 22px; height: 22px; }

/* ==========================================================================
   Floating WhatsApp button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 61;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.whatsapp-float:hover { background: #1ebd5a; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.whatsapp-float .icon { width: 30px; height: 30px; fill: currentColor; }
.whatsapp-float__ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  opacity: 0.55;
  animation: whatsapp-ping 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes whatsapp-ping {
  0% { transform: scale(1); opacity: 0.55; }
  100% { transform: scale(1.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float__ping { animation: none; display: none; }
}

/* When back-to-top is visible (scrolled down), stack WhatsApp above it instead of overlapping */
.whatsapp-float.is-stacked { bottom: 88px; }

@media (max-width: 640px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .back-to-top { right: 16px; bottom: 16px; }
  .whatsapp-float.is-stacked { bottom: 76px; }
}

/* Focus visibility globally */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--orange-400);
  outline-offset: 2px;
}

/* ==========================================================================
   Page Hero (sub-pages: about, services, portfolio, testimonials, contact)
   ========================================================================== */
.page-hero {
  background: var(--navy-900);
  color: var(--white);
  padding: 56px 0 40px;
  position: relative;
  overflow: hidden;
}
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.72); max-width: 620px; margin: 0; }

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 20px;
  list-style: none;
  padding: 0;
}
.breadcrumbs li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs a { color: rgba(255,255,255,0.85); font-weight: 600; transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--orange-400); }
.breadcrumbs .sep { color: rgba(255,255,255,0.35); }
.breadcrumbs [aria-current="page"] { color: var(--orange-400); }

/* ==========================================================================
   Sub-page content layout (prose + sidebar)
   ========================================================================== */
.page-content { background: var(--white); padding: 80px 0; }
.page-content__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: start;
}
.prose h2 { margin-top: 40px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 20px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose img { border-radius: var(--radius-lg); margin: 24px 0; box-shadow: var(--shadow-sm); }

@media (max-width: 900px) {
  .page-content__grid { grid-template-columns: 1fr; }
}

/* ---------- Related links / sidebar cards ---------- */
.sidebar-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}
.sidebar-card h3 { font-size: 1.05rem; margin-bottom: 16px; }
.related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.related-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--navy-800);
  transition: background 0.2s ease, color 0.2s ease;
}
.related-list a:hover { background: var(--navy-900); color: var(--white); }
.related-list .icon { width: 16px; height: 16px; flex-shrink: 0; }

.sidebar-card--cta { background: var(--navy-900); color: var(--white); text-align: center; }
.sidebar-card--cta h3 { color: var(--white); }
.sidebar-card--cta p { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.sidebar-card--cta .btn { width: 100%; margin-top: 8px; }

/* ==========================================================================
   Portfolio grid (sub-page)
   ========================================================================== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.portfolio-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4/5;
}
.portfolio-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-item__tag {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--orange-500);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}
.portfolio-item__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 20px;
  background: linear-gradient(180deg, transparent, rgba(6,15,36,0.85));
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
}

@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   404 page
   ========================================================================== */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px;
  background: var(--off-white);
}
.error-page__code {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(4rem, 12vw, 8rem);
  color: var(--orange-500);
  line-height: 1;
  margin-bottom: 8px;
}
.error-page__links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
