/* ============================================
   COASTAL COTTAGE — Design System
   Adapted from Podly aesthetic
   Font: Geist  |  Accent: #007CFF
   ============================================ */

/* ---- TOKENS ---- */
:root {
  /* Color */
  --black: #000000;
  --black-90: #000000e6;
  --black-70: #000000b3;
  --black-50: #00000080;
  --black-30: #0000004d;
  --black-10: #0000001a;
  --white: #ffffff;
  --white-90: #ffffffe6;
  --white-70: #ffffffb3;
  --white-50: #ffffff80;
  --white-30: #ffffff4d;
  --white-10: #ffffff1a;
  --accent: #007CFF;
  --accent-light: #339dff;
  --accent-dark: #0060c7;
  --accent-30: #007CFF4d;
  --accent-10: #007CFF1a;
  --paragraph: #555555;
  --surface: #f5f5f5;
  --surface-light: #eaeaea;
  --border: #d4d4d4;
  --border-light: #e8e8e8;

  /* Typography */
  --font: 'Geist', sans-serif;
  --text-xs: 14px;
  --text-s: 16px;
  --text-m: 18px;
  --text-l: 20px;
  --text-xl: 24px;
  --lh-tight: 0.92em;
  --lh-snug: 1.1em;
  --lh-heading: 1.2em;
  --lh-body: 1.5em;
  --lh-relaxed: 1.7em;
  --ls-tight: -1.2px;
  --ls-snug: -1px;
  --ls-normal: 0;
  --ls-wide: 0.5px;
  --ls-wider: 0.8px;

  /* Spacing */
  --sp-xs: 4px;
  --sp-s: 8px;
  --sp-m: 12px;
  --sp-ml: 16px;
  --sp-l: 20px;
  --sp-xl: 24px;
  --sp-2xl: 30px;
  --sp-3xl: 40px;
  --sp-4xl: 60px;
  --sp-5xl: 80px;
  --sp-6xl: 100px;
  --sp-7xl: 130px;
  --section: clamp(80px, 10vw, 130px);

  /* Radius */
  --r-xs: 2px;
  --r-s: 4px;
  --r-m: 8px;
  --r-l: 12px;
  --r-pill: 100px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 0.35s;
  --dur-fast: 0.2s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font);
  font-size: var(--text-s);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all var(--dur); }
ul, ol { list-style: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: var(--font); }

::selection {
  background: var(--accent);
  color: var(--white);
}

/* ---- LAYOUT ---- */
.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  padding: var(--section) 0;
  position: relative;
  overflow: hidden;
}

.section.no-pad-top { padding-top: 0; }
.section.no-pad-bottom { padding-bottom: 0; }
.section.small-pad { padding: var(--sp-4xl) 0; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: var(--lh-heading);
  color: var(--black);
}

h1 {
  font-size: clamp(42px, 6vw, 80px);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  text-transform: uppercase;
  font-weight: 600;
}

h2 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: var(--ls-snug);
  text-transform: uppercase;
}

h3 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
}

h4 {
  font-size: clamp(20px, 2.5vw, 26px);
}

h5 { font-size: 22px; }
h6 { font-size: 18px; }

p {
  color: var(--paragraph);
  line-height: var(--lh-relaxed);
  margin: 0;
}

.text-white { color: var(--white); }
.text-accent { color: var(--accent); }
.text-paragraph { color: var(--paragraph); }

/* Section label — uppercase tag */
.label {
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--accent);
  margin-bottom: var(--sp-xl);
  display: block;
}

.label.text-white { color: var(--white-70); }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-ml);
  padding: 16px 32px;
  font-size: var(--text-s);
  font-weight: 500;
  text-transform: uppercase;
  line-height: var(--lh-snug);
  color: var(--white);
  background: var(--black);
  border-radius: var(--r-pill);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  letter-spacing: var(--ls-wide);
  width: fit-content;
  align-self: flex-start;
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--accent-30);
}

.btn-primary span { position: relative; z-index: 1; }

.btn-primary .btn-dot {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white-30);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.4s var(--ease);
}

.btn-primary .btn-dot::after {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--white);
}

.btn-primary:hover .btn-dot {
  background: var(--white-30);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-m);
  padding: 16px 28px;
  font-size: var(--text-s);
  font-weight: 500;
  text-transform: uppercase;
  line-height: var(--lh-snug);
  color: var(--black);
  background: transparent;
  border: 1px solid var(--black-30);
  border-radius: var(--r-pill);
  transition: all var(--dur);
  letter-spacing: var(--ls-wide);
}

.btn-outline:hover {
  border-color: var(--black);
  background: var(--black-10);
  transform: translateY(-2px);
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-m);
  font-size: var(--text-s);
  font-weight: 600;
  text-transform: capitalize;
  color: var(--accent);
  transition: all var(--dur);
}

.link-btn:hover { color: var(--accent-light); gap: var(--sp-ml); }

.link-btn .arrow {
  display: inline-block;
  transition: transform var(--dur);
}

.link-btn:hover .arrow { transform: translateX(4px); }

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 24px 0;
  transition: all 0.4s var(--ease);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.navbar.scrolled .nav-link {
  color: var(--black-70);
}

.navbar.scrolled .nav-link:hover {
  color: var(--accent);
}

.navbar.scrolled .logo-white {
  display: none;
}

.navbar.scrolled .logo-dark {
  display: block;
}

.navbar.scrolled .menu-toggle span {
  background: var(--black);
}

.navbar-inner {
  display: flex;
  align-items: center;
}

.brand {
  height: 32px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  height: 100%;
  width: auto;
}

.logo-white {
  filter: brightness(0) invert(1);
}

.logo-dark {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  margin-right: 40px;
}

.nav-link {
  font-size: var(--text-s);
  font-weight: 500;
  text-transform: uppercase;
  line-height: var(--lh-snug);
  color: var(--white-90);
  padding: 0;
  transition: color var(--dur);
}

.nav-link:hover { color: var(--accent); }

.nav-cta-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-m);
  padding: 10px 22px;
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--white);
  background: var(--black);
  border-radius: var(--r-pill);
  line-height: var(--lh-snug);
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  flex-shrink: 0;
}

.nav-cta-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white-30);
  position: relative;
  flex-shrink: 0;
  transition: background 0.4s var(--ease);
}

.nav-cta-dot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--white);
}

.nav-cta-link:hover {
  background: var(--accent);
}

.nav-cta-link:hover .nav-cta-dot {
  background: var(--white-30);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  padding: 0;
  z-index: 101;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--white);
  transition: all var(--dur) var(--ease);
  transform-origin: right center;
}

.menu-toggle span:nth-child(1) { width: 24px; }
.menu-toggle span:nth-child(2) { width: 18px; }
.menu-toggle span:nth-child(3) { width: 24px; }

.menu-toggle.open span:nth-child(1) {
  transform: rotate(-45deg) translate(0, 0);
  width: 24px;
}
.menu-toggle.open span:nth-child(2) { opacity: 0; width: 0; }
.menu-toggle.open span:nth-child(3) {
  transform: rotate(45deg) translate(0, 0);
  width: 24px;
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--black);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.mobile-nav.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--white-70);
  transition: color var(--dur);
  letter-spacing: var(--ls-snug);
}

.mobile-nav a:hover { color: var(--accent); }

/* ---- HERO / BANNER ---- */
.banner {
  min-height: 100vh;
  max-height: 1200px;
  display: flex;
  align-items: flex-end;
  padding: var(--sp-7xl) 0 var(--sp-4xl);
  position: relative;
  overflow: hidden;
}

.banner-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner .overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(214deg, rgba(0,0,0,0.7), transparent 46%),
    linear-gradient(65deg, rgba(0,0,0,0.7), transparent);
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3xl);
}

.banner h1,
.banner h2,
.banner h3,
.banner p,
.inner-banner h1,
.inner-banner h2,
.inner-banner p {
  color: var(--white);
}

.banner .label {
  color: var(--white-70);
}

.banner .btn-primary {
  color: var(--white);
  background: var(--black);
}

.banner .btn-primary:hover {
  background: var(--accent);
}

.banner-paragraph {
  max-width: 400px;
}

.banner-paragraph p {
  color: var(--white-70);
  font-size: var(--text-m);
  line-height: var(--lh-relaxed);
}

/* Banner bottom bar: indicators left, arrows right */
.banner-bottom {
  position: absolute;
  bottom: var(--sp-3xl);
  left: 15px;
  right: 15px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.banner-indicators {
  display: flex;
  gap: var(--sp-xl);
}

.banner-arrows {
  display: flex;
  gap: var(--sp-m);
}

.banner-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--white-50);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  color: var(--white);
}

.banner-arrow:hover {
  border-color: var(--accent);
  background: var(--accent);
}

.banner-arrow svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.banner-indicator {
  display: flex;
  flex-direction: column;
  gap: var(--sp-s);
  cursor: pointer;
  opacity: 0.5;
  transition: opacity var(--dur);
}

.banner-indicator.active { opacity: 1; }

.banner-indicator-text {
  font-size: var(--text-xs);
  color: var(--white-70);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.banner-indicator-num {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--white);
}

.banner-indicator-line {
  width: 100%;
  height: 2px;
  background: var(--white-30);
  position: relative;
  overflow: hidden;
}

.banner-indicator-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--white);
  transition: width 0.6s var(--ease);
}

.banner-indicator.active .banner-indicator-fill { width: 100%; }

/* Inner page banner */
.inner-banner {
  padding: 200px 0 80px;
  position: relative;
  overflow: hidden;
}

.inner-banner .banner-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inner-banner .overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, var(--black-70), var(--black-90));
}

.inner-banner .container {
  position: relative;
  z-index: 2;
}

.inner-banner h1 {
  max-width: 700px;
}

.inner-banner .breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-s);
  margin-bottom: var(--sp-xl);
}

.breadcrumb a,
.breadcrumb span {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--white-50);
}

.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--white-30); }

/* ---- SECTION TITLE PATTERNS ---- */
.title-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--sp-ml);
  margin-bottom: var(--sp-4xl);
}

.title-wrap.center { align-items: center; text-align: center; }

.title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--sp-3xl);
  margin-bottom: var(--sp-4xl);
}

.title-row .title-wrap { margin-bottom: 0; }

/* ---- CARDS ---- */
/* Project card (portfolio) — Podly style */
.project-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--sp-3xl);
  padding: var(--sp-3xl) 0;
  border-bottom: 1px solid var(--border);
}

.project-card-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--black);
  transition: color var(--dur);
}

a:hover .project-title { color: var(--accent); }

.project-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-m);
  margin-top: var(--sp-m);
}

.project-meta span {
  font-size: var(--text-xs);
  color: var(--paragraph);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.project-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--paragraph);
}

.project-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-ml);
}

.project-images img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--r-xs);
  transition: transform 0.6s var(--ease);
}

.project-images img:first-child { height: 100%; }

.project-card:hover .project-images img {
  transform: scale(1.02);
}

/* Community card */
.community-card {
  position: relative;
  border-radius: var(--r-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.community-card-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.community-card:hover .community-card-img {
  transform: scale(1.04);
}

.community-card-body {
  padding: var(--sp-2xl) 0;
  background: transparent;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-ml);
}

.community-card-body h3 { font-size: 22px; text-transform: none; }

.community-badge {
  position: absolute;
  top: var(--sp-ml);
  left: var(--sp-ml);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  background: var(--black-70);
  backdrop-filter: blur(10px);
  color: var(--white);
  border-radius: var(--r-xs);
  z-index: 2;
}

.community-badge.accent { background: var(--accent); }

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-s);
}

.tag {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-10);
  border: 1px solid var(--accent-30);
  border-radius: var(--r-s);
  letter-spacing: 0.02em;
}

/* Floor plan card */
.fp-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--surface);
  transition: all var(--dur);
  border: 1px solid var(--border-light);
}

.fp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  border-color: var(--accent-30);
}

.fp-card-img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: var(--surface-light);
  padding: var(--sp-l);
}

.fp-card-body {
  padding: var(--sp-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-ml);
  flex: 1;
}

.fp-card-body h3 { text-transform: none; font-size: 22px; }

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-s);
}

.spec-tag {
  padding: 6px 14px;
  font-size: 13px;
  color: var(--paragraph);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-s);
}

.spec-tag strong {
  color: var(--accent-dark);
  font-weight: 600;
}

/* Floor plan gallery */
.fp-gallery {
  position: relative;
}

.fp-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--surface-light);
  border-radius: var(--r-m);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.fp-gallery-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--sp-xl);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.fp-gallery-img.active {
  opacity: 1;
}

.fp-gallery-thumbs {
  display: flex;
  gap: var(--sp-m);
  margin-top: var(--sp-ml);
}

.fp-gallery-thumb {
  width: 100px;
  height: 70px;
  object-fit: contain;
  background: var(--surface-light);
  border: 2px solid var(--border-light);
  border-radius: var(--r-s);
  padding: var(--sp-s);
  cursor: pointer;
  transition: all var(--dur);
  opacity: 0.5;
}

.fp-gallery-thumb:hover {
  opacity: 0.8;
  border-color: var(--accent-30);
}

.fp-gallery-thumb.active {
  opacity: 1;
  border-color: var(--accent);
}

/* Floor plan detail specs */
.fp-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--sp-ml);
}

.fp-spec-item {
  padding: var(--sp-xl);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-m);
  text-align: center;
}

.fp-spec-item .spec-value {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}

.fp-spec-item .spec-label {
  font-size: var(--text-xs);
  color: var(--paragraph);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-top: var(--sp-s);
}

/* Lifestyle gallery grid */
.lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-ml);
}

.lifestyle-grid img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--r-s);
  transition: transform 0.6s var(--ease);
}

.lifestyle-grid img:hover {
  transform: scale(1.03);
}

/* Cross-link cards */
.crosslink-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-xl);
}

.crosslink-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-ml);
  padding: var(--sp-2xl);
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-m);
  transition: all var(--dur);
}

.crosslink-card:hover {
  border-color: var(--accent-30);
  transform: translateY(-3px);
}

.crosslink-card h4 {
  text-transform: none;
}

/* Warranty badge */
.warranty-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-m);
  padding: var(--sp-ml) var(--sp-xl);
  background: var(--accent-10);
  border: 1px solid var(--accent-30);
  border-radius: var(--r-m);
  color: var(--accent-dark);
  font-size: var(--text-s);
  font-weight: 600;
}

@media (max-width: 767px) {
  .fp-gallery-main { aspect-ratio: 4/3; }
  .fp-gallery-thumb { width: 70px; height: 50px; }
  .lifestyle-grid { grid-template-columns: 1fr; }
  .crosslink-grid { grid-template-columns: 1fr; }
}


/* Process steps (How It Works) */
.process-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3xl);
  align-items: center;
  padding: var(--sp-3xl) 0;
}

.process-step + .process-step {
  border-top: 1px solid var(--border);
}

.process-step--reverse .process-text {
  order: 2;
}

.process-step--reverse .process-img-wrap {
  order: 1;
}

.process-timeline {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--accent);
  margin-bottom: var(--sp-s);
}

.process-heading {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  text-transform: none;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: var(--sp-xl);
}

.process-subheading {
  font-size: var(--text-s);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--black);
  margin-bottom: var(--sp-s);
}

.process-desc {
  font-size: var(--text-s);
  color: var(--paragraph);
  line-height: var(--lh-body);
  max-width: 440px;
  margin-bottom: var(--sp-xl);
}

.process-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-s);
}

.process-list li {
  font-size: var(--text-s);
  color: var(--paragraph);
  padding-left: 20px;
  position: relative;
}

.process-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.process-img-wrap {
  position: relative;
  border-radius: var(--r-s);
  overflow: hidden;
}

.process-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  display: block;
}

.process-badge {
  position: absolute;
  top: var(--sp-m);
  right: var(--sp-m);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--white);
  background: var(--black-90);
  backdrop-filter: blur(6px);
  border-radius: var(--r-xs);
}

.process-step--reverse .process-badge {
  right: auto;
  left: var(--sp-m);
}

/* ---- PORTFOLIO GALLERY SECTIONS ---- */
.gallery-section {
  margin-bottom: var(--sp-4xl);
}

.gallery-section:last-child {
  margin-bottom: 0;
}

.gallery-section-title {
  font-size: var(--text-l);
  font-weight: 600;
  text-transform: none;
  margin-bottom: var(--sp-xl);
  padding-bottom: var(--sp-m);
  border-bottom: 1px solid var(--border);
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-m);
}

.gallery-mosaic img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--r-s);
  cursor: pointer;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}

.gallery-mosaic img:hover {
  transform: scale(1.02);
  opacity: 0.9;
}

.gallery-mosaic img.hero-img {
  grid-column: span 2;
  height: 360px;
}

@media (max-width: 767px) {
  .gallery-mosaic {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-mosaic img {
    height: 180px;
  }
  .gallery-mosaic img.hero-img {
    grid-column: span 2;
    height: 240px;
  }
}

/* ---- GALLERY GRID ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-ml);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xs);
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; }
.gallery-item.wide { grid-column: span 2; }

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--black-70));
  opacity: 0;
  transition: opacity var(--dur);
  display: flex;
  align-items: flex-end;
  padding: var(--sp-l);
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-overlay span {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

/* ---- FAQ ---- */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  padding: var(--sp-xl) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-3xl);
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 500;
  color: var(--black);
  text-align: left;
  transition: color var(--dur);
  cursor: pointer;
  background: none;
  border: none;
}

.faq-question:hover { color: var(--accent); }

.faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: '';
  position: absolute;
  background: var(--accent);
  transition: transform var(--dur) var(--ease);
}

.faq-icon::before {
  width: 16px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  width: 2px;
  height: 16px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.faq-item.open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding-bottom: var(--sp-xl);
}

.faq-answer p {
  font-size: var(--text-s);
  line-height: var(--lh-relaxed);
}

/* ---- FORMS ---- */
/* Underline-style inputs (Podly) */
.form-field {
  width: 100%;
  padding: 16px 0;
  font-size: var(--text-s);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--black);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--black-30);
  outline: none;
  transition: all 0.3s var(--ease);
  border-radius: 0;
  -webkit-appearance: none;
}

.form-field:focus {
  border-bottom-color: var(--black);
  padding-left: 16px;
}

.form-field::placeholder {
  color: var(--black-50);
  text-transform: uppercase;
}

.form-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-l);
}

select.form-field {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2300000080' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

select.form-field option {
  background: var(--white);
  color: var(--black);
}

textarea.form-field {
  resize: vertical;
  min-height: 100px;
  text-transform: none;
}

/* Multi-step form */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeInUp 0.4s var(--ease-out);
}

.form-progress {
  display: flex;
  align-items: center;
  gap: var(--sp-s);
  margin-bottom: var(--sp-3xl);
}

.form-progress-step {
  width: 48px;
  height: 3px;
  background: var(--black-10);
  border-radius: var(--r-pill);
  transition: background var(--dur);
}

.form-progress-step.active { background: var(--accent); }
.form-progress-step.complete { background: var(--accent); }

.form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-3xl);
}

/* Boxed form variant */
.form-boxed {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--r-l);
  padding: var(--sp-3xl);
}

.form-boxed .form-field {
  border-bottom-color: var(--border);
}

.form-boxed .form-field:focus {
  border-bottom-color: var(--accent);
}


/* Radio / option cards */
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-ml);
}

.option-card {
  padding: var(--sp-xl);
  border: 1px solid var(--border);
  border-radius: var(--r-m);
  cursor: pointer;
  transition: all var(--dur);
  text-align: center;
}

.option-card:hover { border-color: var(--accent-30); }

.option-card.selected {
  border-color: var(--accent);
  background: var(--accent-10);
}

.option-card h4 {
  font-size: var(--text-s);
  text-transform: none;
  font-weight: 500;
  margin-bottom: var(--sp-xs);
}

.option-card p {
  font-size: var(--text-xs);
}

/* ---- FOOTER ---- */
.footer {
  background: #111111;
  border-top: 1px solid #2a2a2a;
  color: var(--white);
}

.footer h2 {
  color: var(--white);
}

.footer p {
  color: #8a8f98;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--sp-3xl);
  padding: var(--sp-5xl) 0 var(--sp-4xl);
}

.footer-title h2 {
  max-width: 500px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: var(--sp-ml);
  align-items: flex-end;
}

.footer-contact-link {
  font-size: var(--text-s);
  color: #8a8f98;
  transition: color var(--dur);
}

.footer-contact-link:hover { color: var(--accent); }

.footer-middle {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3xl);
  padding: var(--sp-3xl) 0;
  border-top: 1px solid #2a2a2a;
}

.footer-links {
  display: flex;
  gap: var(--sp-4xl);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-m);
}

.footer-col a {
  font-size: var(--text-xs);
  color: #8a8f98;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
}

.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-xl) 0;
  border-top: 1px solid #2a2a2a;
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: #8a8f98;
}

/* ---- LIGHTBOX ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--black-90);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--r-m);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--white-10);
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
  transition: background var(--dur);
}

.lightbox-close:hover { background: var(--white-30); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--white-30);
  border-radius: 50%;
  background: var(--white-10);
  backdrop-filter: blur(5px);
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  transition: all var(--dur);
}

.lightbox-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.lightbox-nav.prev { left: 24px; }
.lightbox-nav.next { right: 24px; }

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.vis {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger > .reveal:nth-child(6) { transition-delay: 0.40s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- PROCESS TIMELINE (portfolio detail) ---- */
.timeline {
  position: relative;
  padding-left: var(--sp-3xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--sp-3xl);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--sp-3xl));
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--white);
}

.timeline-item h4 {
  font-size: var(--text-m);
  text-transform: none;
  margin-bottom: var(--sp-s);
}

/* ---- STAT BLOCKS ---- */
.stats-row {
  display: flex;
  gap: var(--sp-4xl);
  padding: var(--sp-3xl) 0;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  letter-spacing: var(--ls-tight);
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--paragraph);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  margin-top: var(--sp-s);
}

/* ---- UTILITY ---- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-xl); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-xl); }
.flex-col { display: flex; flex-direction: column; }
.gap-s { gap: var(--sp-s); }
.gap-m { gap: var(--sp-ml); }
.gap-l { gap: var(--sp-xl); }
.gap-xl { gap: var(--sp-3xl); }
.mt-s { margin-top: var(--sp-ml); }
.mt-m { margin-top: var(--sp-xl); }
.mt-l { margin-top: var(--sp-3xl); }

/* ---- SCROLL IMAGE BREAK ---- */
.scroll-image-break {
  width: 100%;
  height: clamp(300px, 40vw, 500px);
  overflow: hidden;
}

.scroll-image-break img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  transform: translateY(-10%);
  transition: transform 0.1s linear;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991px) {
  .nav-menu, .nav-cta { display: none; }
  .menu-toggle { display: flex; }

  .banner { align-items: center; padding-top: 160px; }
  .banner-indicators { display: none; }

  .project-card { grid-template-columns: 1fr; }
  .project-images { grid-template-columns: 1fr 1fr; }
  .project-images img:first-child { height: 280px; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.wide { grid-column: span 1; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .option-grid { grid-template-columns: 1fr; }

  .process-step { grid-template-columns: 1fr; gap: var(--sp-xl); }
  .process-step--reverse .process-text { order: 1; }
  .process-step--reverse .process-img-wrap { order: 2; }
  .process-step--reverse .process-badge { right: var(--sp-m); left: auto; }

  .footer-top { flex-direction: column; }
  .footer-contacts { align-items: flex-start; }
  .footer-middle { flex-direction: column; }

  .title-row { flex-direction: column; align-items: flex-start; }

  .stats-row { flex-wrap: wrap; gap: var(--sp-xl); }

  .form-field-row { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .banner h1 { font-size: clamp(32px, 8vw, 48px); }
  .inner-banner { padding: 150px 0 60px; }
  .inner-banner h1 { font-size: clamp(28px, 7vw, 42px); }

  .project-images { grid-template-columns: 1fr; }
  .project-images img, .project-images img:first-child { height: 220px; }

  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.tall { grid-row: span 1; }

  .stats-row { flex-direction: column; }

  .footer-links { flex-direction: column; gap: var(--sp-xl); }
  .footer-bottom { flex-direction: column; gap: var(--sp-m); text-align: center; }
}

@media (max-width: 479px) {
  .banner { min-height: auto; height: 100svh; }
  .btn-outline { width: 100%; justify-content: center; }
  .community-card-img { height: 240px; }
  .fp-card-img { height: 200px; }
}