﻿/* ===================================
   Grey Mountain Custom Homes
   Global Theme + Layout System
=================================== */
:root {
  --primary: #676d72;
  --secondary: #1f2327;
  --accent: #ece9e2;
  --surface: #f7f5f1;
  --surface-alt: #efece6;
  --text: #111316;
  --muted: #4f565d;
  --line: rgba(31, 35, 39, 0.14);
  --line-soft: rgba(31, 35, 39, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 42px rgba(9, 12, 15, 0.12);
  --shadow-soft: 0 10px 28px rgba(10, 14, 18, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-height: 84px;
}

/* ===================================
   Base Reset + Typography
=================================== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f4f1ec 0%, #f7f5f1 40%, #f2efea 100%);
  line-height: 1.65;
}

body.has-menu-open {
  overflow: hidden;
}

body.has-project-modal-open {
  overflow: hidden;
}

img {
  width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

p {
  margin: 0;
  color: var(--muted);
}

ul {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0.01em;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.2rem, 5.4vw, 4.8rem);
}

h2 {
  font-size: clamp(1.95rem, 4vw, 3.1rem);
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.85rem);
}

h4 {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.section {
  padding: clamp(4.2rem, 8vw, 7.1rem) 0;
}

.section-head {
  margin-bottom: clamp(1.8rem, 4vw, 2.8rem);
}

.section-head p {
  max-width: 720px;
  margin-top: 1rem;
}

.kicker {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  color: var(--primary);
}

/* ===================================
   Buttons + Utilities
=================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 50px;
  padding: 0.68rem 1.45rem;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform 0.34s var(--ease), box-shadow 0.34s var(--ease), border-color 0.34s var(--ease), background-color 0.34s var(--ease), color 0.34s var(--ease);
}

.btn-solid {
  background: linear-gradient(120deg, #f2efe8, #d5d9de);
  color: #14181c;
  box-shadow: 0 10px 28px rgba(213, 218, 226, 0.45);
}

.btn-solid:hover,
.btn-solid:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(226, 232, 241, 0.55), 0 0 0 5px rgba(236, 239, 244, 0.15);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.btn-dark {
  background: var(--secondary);
  color: #fff;
}

.btn-dark:hover,
.btn-dark:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(16, 20, 24, 0.28);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #8a959e;
  outline-offset: 2px;
}

.card-surface {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ===================================
   Header + Navigation
=================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  border-bottom: 1px solid transparent;
  background: rgba(244, 241, 236, 0.86);
  backdrop-filter: blur(10px);
  transition: background-color 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.site-header.is-scrolled {
  background: rgba(248, 246, 241, 0.95);
  border-color: var(--line-soft);
  box-shadow: 0 8px 18px rgba(19, 24, 29, 0.08);
}

.nav-wrap {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  width: clamp(124px, 16vw, 168px);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  width: 30px;
  height: 24px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #22282f;
  margin: 5px 0;
  transition: transform 0.26s ease, opacity 0.26s 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);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(1.15rem, 1.8vw, 1.95rem);
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 1.25rem;
  overflow: visible;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.main-nav > * {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.main-nav > a,
.dropdown-toggle {
  position: relative;
  font: inherit;
  background: transparent;
  border: 0;
  margin: 0;
  padding: 0 0 6px;
  cursor: pointer;
  font-size: 0.88rem;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 700;
  color: #252b32;
  white-space: nowrap;
}

.main-nav > a::after,
.dropdown-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), #a4adb5);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.33s var(--ease);
}

.main-nav > a:hover::after,
.main-nav > a.active::after,
.dropdown-toggle:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.has-dropdown {
  position: relative;
}

.dropdown-toggle {
  appearance: none;
  -webkit-appearance: none;
  line-height: 1;
}

.dropdown-toggle[data-services-toggle] {
  gap: 0.34rem;
}

.dropdown-toggle[data-services-toggle]::before {
  content: "\25BE";
  order: 2;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.78;
  transition: opacity 0.24s ease;
}

.has-dropdown:hover .dropdown-toggle[data-services-toggle]::before,
.has-dropdown.open .dropdown-toggle[data-services-toggle]::before,
.dropdown-toggle[data-services-toggle][aria-expanded="true"]::before {
  opacity: 1;
}

.dropdown-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 14px);
  width: 300px;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(20, 24, 28, 0.12);
  background: rgba(250, 248, 244, 0.99);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.dropdown-menu a {
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  font-size: 0.86rem;
  color: #2b3138;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: #ebe8e1;
  color: #13171c;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-cta {
  margin-left: 0.9rem;
  min-height: 48px;
  min-width: 190px;
  padding-inline: 1.15rem;
  font-size: 0.82rem;
  letter-spacing: 0.065em;
  flex: 0 0 auto;
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
  box-shadow: 0 10px 22px rgba(15, 20, 25, 0.2);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: #2a3138;
  border-color: #2a3138;
  color: #fff;
}

@media (min-width: 1025px) {
  .site-header .container {
    width: min(1720px, 98vw);
  }

  .site-header .nav-wrap {
    min-height: 82px;
  }
}

@media (max-width: 1520px) {
  .main-nav {
    gap: 0.95rem;
  }

  .main-nav > a,
  .dropdown-toggle {
    font-size: 0.8rem;
    letter-spacing: 0.045em;
  }

  .nav-cta {
    min-width: 168px;
    padding-inline: 0.85rem;
    font-size: 0.76rem;
  }
}

@media (max-width: 1320px) {
  .main-nav {
    gap: 0.82rem;
  }

  .main-nav > a,
  .dropdown-toggle {
    font-size: 0.76rem;
  }

  .nav-cta {
    min-width: 158px;
    font-size: 0.72rem;
  }
}

/* ===================================
   Hero + Internal Hero
=================================== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #0f1318;
}

.hero-bg,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-bg {
  object-fit: cover;
  object-position: center bottom;
  transform: scale(1);
  opacity: 1;
  transition: opacity 1.25s var(--ease), object-position 1.25s var(--ease), transform 1.25s var(--ease);
}

.hero .hero-bg.is-fading {
  opacity: 0;
}

.hero .hero-bg.is-collage {
  object-position: center center;
  transform: scale(1.02);
}

.hero .hero-bg.is-hero-home {
  object-fit: contain;
  object-position: center center;
}

.hero .hero-bg.is-steprock {
  object-fit: contain;
  object-position: center center;
}

.hero-overlay {
  background: linear-gradient(120deg, rgba(8, 11, 15, 0.8) 0%, rgba(14, 18, 23, 0.56) 45%, rgba(17, 22, 27, 0.32) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  max-width: 940px;
}

.hero-content .kicker {
  color: rgba(255, 255, 255, 0.82);
}

.hero-content h1,
.hero-sub {
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}

.hero-sub {
  max-width: 880px;
  margin: 1rem auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.55;
}

.hero-cta {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.sub-hero {
  position: relative;
  min-height: 52vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.sub-hero .hero-overlay {
  background: linear-gradient(120deg, rgba(14, 18, 22, 0.72) 0%, rgba(25, 30, 36, 0.5) 100%);
}

.sub-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding-bottom: clamp(2.2rem, 4vw, 3.2rem);
  max-width: 820px;
}

.sub-hero-content p {
  color: rgba(255, 255, 255, 0.84);
  margin-top: 1rem;
}

/* ===================================
   Layout Blocks
=================================== */
.split-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.4rem, 3vw, 3.6rem);
  align-items: center;
}

.split-grid.reverse {
  grid-template-columns: 1fr 1.05fr;
}

.split-text p {
  margin-top: 1rem;
}

.split-text p + p {
  margin-top: 0.9rem;
}

.media-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.media-card img {
  aspect-ratio: 4/3;
  object-fit: cover;
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 1.2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-card {
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
  padding: 1.6rem;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), border-color 0.32s var(--ease);
}

.content-card:hover {
  transform: translateY(-6px);
  border-color: rgba(103, 109, 114, 0.38);
  box-shadow: 0 16px 36px rgba(10, 14, 18, 0.14);
}

.content-card p {
  margin-top: 0.8rem;
  font-size: 0.95rem;
}

/* Home-only featured services image hover treatment */
.featured-services .content-card {
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), border-color 0.32s var(--ease), background-image 0.32s var(--ease), color 0.32s var(--ease);
}

.featured-services .content-card:nth-child(-n + 4):hover,
.featured-services .content-card:nth-child(-n + 4):focus-within {
  background-image: linear-gradient(rgba(21, 26, 31, 0.6), rgba(21, 26, 31, 0.6)), url("../images/design.png");
}

.featured-services .content-card:nth-child(n + 5):hover,
.featured-services .content-card:nth-child(n + 5):focus-within {
  background-image: linear-gradient(rgba(21, 26, 31, 0.6), rgba(21, 26, 31, 0.6)), url("../images/home1.jpg");
}

.featured-services .content-card:hover h4,
.featured-services .content-card:hover p,
.featured-services .content-card:focus-within h4,
.featured-services .content-card:focus-within p {
  color: #f6f8fa;
}

.surface-alt {
  background: radial-gradient(circle at 10% 12%, #ebe9e3 0%, #f8f5f1 46%, #f2efea 100%);
}

.process-path-bg {
  background-image: linear-gradient(rgba(243, 239, 233, 0.62), rgba(241, 236, 229, 0.62)), url("../images/design2.jpeg");
  background-size: 100% 100%, 100% auto;
  background-position: center, center 24%;
  background-repeat: no-repeat;
}

.process-path-bg .section-head .kicker {
  color: #343c43;
  font-weight: 900;
}

.process-path-bg .section-head h2 {
  color: #171b20;
  font-weight: 800;
}

.process-path-bg .section-head p {
  color: #2f363d;
  font-weight: 700;
}

.property-search-shell {
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.property-search-shell h2 {
  max-width: 780px;
  margin: 0 auto;
}

.property-search-shell > p:not(.kicker) {
  max-width: 720px;
  margin: 1rem auto 0;
}

.property-search-shell > .kicker {
  margin-top: 0;
}

.property-search-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}

.neutral-property-hero,
.neutral-property-card {
  background:
    radial-gradient(circle at top, rgba(242, 239, 232, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(35, 40, 45, 0.98), rgba(63, 53, 43, 0.92) 52%, rgba(24, 27, 31, 0.96));
}

.neutral-property-hero::before,
.neutral-property-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0, transparent 32%, rgba(255, 255, 255, 0.08) 32%, rgba(255, 255, 255, 0.08) 34%, transparent 34%, transparent 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 42%);
}

.neutral-property-hero::after,
.neutral-property-card::after {
  content: "";
  position: absolute;
  inset: 14% 12%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: calc(var(--radius) - 4px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.neutral-property-card {
  position: relative;
  min-height: 100%;
  aspect-ratio: 4 / 3;
}

.about-video-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.about-video-bg,
.about-video-overlay {
  position: absolute;
  inset: 0;
}

.about-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.about-video-overlay {
  background: transparent;
}

.about-video-content {
  position: relative;
  z-index: 1;
  max-width: min(1160px, 92vw);
}

.about-video-content .split-text {
  max-width: 620px;
}

.about-video-content .kicker,
.about-video-content h2 {
  color: #111316;
}

.about-video-content p {
  color: #1b2025;
}

.process-list {
  display: grid;
  gap: 1rem;
  list-style: none;
}

.process-list li {
  border-left: 3px solid var(--primary);
  padding: 0.9rem 0.95rem;
  background: rgba(255, 255, 255, 0.72);
  font-weight: 600;
  color: #2b3138;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.check-list li {
  position: relative;
  padding-left: 1.2rem;
  color: #343b43;
}

.check-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  position: absolute;
  left: 0;
  top: 0.52rem;
}

/* ===================================
   Process Steps + Timeline
=================================== */
.steps-stack {
  display: grid;
  gap: 1.2rem;
}

.step-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.92fr) 1.08fr;
  gap: 1.6rem;
  align-items: center;
  border-radius: var(--radius);
  padding: 1.35rem;
  border: 1px solid var(--line-soft);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.step-badge {
  width: min(240px, 100%);
  aspect-ratio: 1/1;
  border-radius: 50%;
  margin: 0 auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(31, 35, 39, 0.14);
  background: radial-gradient(circle at 30% 22%, #f7f5f1 0%, #efece6 58%, #e4dfd6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 12px 24px rgba(20, 24, 28, 0.08);
}

.step-badge-number {
  display: inline-flex;
  min-width: 48px;
  height: 48px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(33, 39, 45, 0.08);
  color: #1b2025;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.step-badge-title {
  font-size: clamp(1.15rem, 1.65vw, 1.5rem);
  line-height: 1.15;
  color: #171b20;
  margin: 0;
}

.step-content {
  padding: 0.1rem 0.4rem 0.1rem 0;
}

.step-content p {
  margin-top: 0.85rem;
}

/* ===================================
   Portfolio + Filters + Modal
=================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.filter-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-weight: 600;
  color: #2d343b;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.filter-btn:hover,
.filter-btn:focus-visible,
.filter-btn.active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
  transform: translateY(-2px);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.project-card {
  position: relative;
  isolation: isolate;
  background: #fff;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 18px 34px rgba(11, 15, 20, 0.14);
}

.project-card-media {
  position: relative;
  overflow: hidden;
}

.project-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 20, 24, 0.05) 0%, rgba(16, 20, 24, 0.2) 100%);
  pointer-events: none;
  opacity: 0.82;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-card-media::after,
.project-card:focus-within .project-card-media::after {
  opacity: 0.9;
}

.project-card img {
  aspect-ratio: 4/3;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover img,
.project-card:focus-within img {
  transform: scale(1.04);
}

.project-card-content {
  padding: 1rem 1rem 1.2rem;
}

.project-meta {
  margin-top: 0.55rem;
  font-size: 0.88rem;
  color: #5d646c;
}

.project-role {
  margin-top: 0.45rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #313840;
}

.experience-grid .project-card img,
.leadership-feature-grid .project-card img {
  aspect-ratio: 16/9;
}

.experience-grid .project-card .btn {
  margin-top: 0.95rem;
}

.leadership-feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.project-card-compact .project-card-content {
  padding: 0.8rem 0.85rem 1rem;
}

.project-card-compact h3 {
  font-size: clamp(1.05rem, 1.55vw, 1.3rem);
}

.project-card-link {
  display: block;
  color: inherit;
}

.project-inline-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #252b32;
  border-bottom: 1px solid rgba(37, 43, 50, 0.28);
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.project-card:hover .project-inline-link,
.project-card:focus-within .project-inline-link {
  color: #0f1419;
  border-color: rgba(15, 20, 25, 0.55);
}

.project-card[hidden] {
  display: none;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1500;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(11, 14, 18, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.project-modal.open {
  opacity: 1;
  visibility: visible;
}

.project-modal-inner {
  width: min(760px, 100%);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}

.project-modal-body {
  padding: 1.3rem;
}

.modal-close {
  border: 0;
  background: rgba(17, 21, 26, 0.08);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  margin: 1rem;
  margin-left: auto;
  display: block;
}

/* ===================================
   Start Project Popup
=================================== */
.start-project-modal {
  position: fixed;
  inset: 0;
  z-index: 1750;
  background: rgba(10, 14, 18, 0.66);
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
  overflow-y: auto;
}

.start-project-modal.open {
  opacity: 1;
  visibility: visible;
}

.start-project-dialog {
  width: min(680px, 100%);
  max-height: calc(100vh - 2rem);
  background-image: linear-gradient(rgba(240, 236, 229, 0.8), rgba(234, 229, 221, 0.8)), url("../images/mountain.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(21, 26, 31, 0.12);
  border-radius: var(--radius);
  box-shadow: 0 22px 40px rgba(7, 10, 14, 0.26);
  padding: 1.1rem;
  position: relative;
  overflow-y: auto;
}

.start-project-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  border: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(18, 22, 27, 0.08);
  font-size: 1.3rem;
  cursor: pointer;
}

.start-project-dialog > p {
  margin-top: 0.55rem;
}

.start-project-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.start-project-field {
  display: grid;
  gap: 0.33rem;
}

.start-project-field.full {
  grid-column: 1 / -1;
}

.start-project-field label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #2b3138;
}

.start-project-field input,
.start-project-field select,
.start-project-field textarea {
  width: 100%;
  min-height: 45px;
  border: 1px solid rgba(28, 33, 39, 0.2);
  border-radius: 9px;
  padding: 0.62rem 0.72rem;
  font: inherit;
  color: #151a20;
  background: #fcfbf8;
}

.start-project-field textarea {
  min-height: 112px;
  resize: vertical;
}

.start-project-actions {
  margin-top: 0.95rem;
}

/* ===================================
   FAQ + Accordion
=================================== */
.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  border: 0;
  text-align: left;
  background: transparent;
  padding: 1.15rem 1rem;
  font: inherit;
  color: #1c2228;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question span {
  font-size: 1.3rem;
  line-height: 1;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.faq-answer p {
  padding: 0 1rem 1.1rem;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

/* ===================================
   Insights / Blog
=================================== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.article-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(11, 14, 18, 0.13);
}

.article-card img {
  aspect-ratio: 16/10;
  object-fit: cover;
}

.article-card-body {
  padding: 1rem;
}

.article-tag {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5a6169;
}

/* ===================================
   Tables / Comparison
=================================== */
.comparison-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 620px;
}

.comparison-table th,
.comparison-table td {
  text-align: left;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  color: #333a41;
}

.comparison-table th {
  background: #f3f0ea;
  font-weight: 700;
  color: #171b20;
}

/* ===================================
   Footer
=================================== */
.site-footer {
  background: #12171b;
  color: rgba(255, 255, 255, 0.86);
  padding-top: 3.2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1.4rem;
  padding-bottom: 2.2rem;
}

.footer-brand img {
  width: 162px;
}

.footer-brand p {
  margin-top: 0.95rem;
  color: rgba(255, 255, 255, 0.67);
  max-width: 360px;
}

.footer-col h3 {
  font-family: "Manrope", "Segoe UI", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.84rem;
  margin-bottom: 0.85rem;
}

.footer-links {
  display: grid;
  gap: 0.45rem;
}

.footer-links a,
.footer-col p,
.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.93rem;
}

.footer-links a:hover,
.footer-col a:hover {
  color: #fff;
}

.footer-social {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  font-weight: 800;
  text-transform: uppercase;
  transition: background-color 0.24s ease, color 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.social-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  display: block;
}

.social-icon:hover,
.social-icon:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  transform: translateY(-2px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1rem 0 1.45rem;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer-bottom p,
.footer-bottom a {
  margin: 0;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ===================================
   Scroll Reveals + Hero Load
=================================== */
.reveal,
.reveal-item {
  opacity: 0;
  will-change: opacity, transform;
}

.reveal[data-anim="fade-up"],
.reveal-item[data-anim="fade-up"] {
  transform: translateY(30px);
}

.reveal-item[data-anim="slide-left"] {
  transform: translateX(-34px);
}

.reveal-item[data-anim="slide-right"] {
  transform: translateX(34px);
}

.reveal.in-view,
.reveal-item.in-view {
  opacity: 1;
  transform: translate(0, 0);
  transition: transform 0.82s var(--ease), opacity 0.82s var(--ease);
  transition-delay: var(--item-delay, 0ms);
}

.hero-load {
  opacity: 0;
  transform: translateY(16px);
  animation: heroIn 0.85s var(--ease) forwards;
}

.hero-delay-1 {
  animation-delay: 120ms;
}

.hero-delay-2 {
  animation-delay: 260ms;
}

.hero-delay-3 {
  animation-delay: 420ms;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================
   Chatbot
=================================== */
.chatbot-shell {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1600;
}

.chatbot-toggle {
  min-height: 56px;
  padding: 0.45rem 0.95rem 0.45rem 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 22, 27, 0.15);
  background: #fff;
  color: #1e242b;
  box-shadow: 0 14px 24px rgba(14, 18, 22, 0.2);
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
}

.chatbot-smiley {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 36, 43, 0.1);
}

.chatbot-help-text {
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  color: #1e242b;
}

.chatbot-smiley svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: min(360px, 92vw);
  background: #fff;
  border: 1px solid rgba(19, 24, 29, 0.12);
  border-radius: 14px;
  box-shadow: 0 20px 38px rgba(10, 14, 18, 0.25);
  overflow: hidden;
  display: none;
}

.chatbot-shell.open .chatbot-panel {
  display: block;
}

.chatbot-head {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  background: #f2efe9;
}

.chatbot-head h3 {
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.94rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.chatbot-log {
  max-height: 280px;
  overflow-y: auto;
  padding: 0.9rem;
  display: grid;
  gap: 0.7rem;
  background: #fff;
}

.chatbot-msg {
  padding: 0.6rem 0.72rem;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chatbot-msg.bot {
  background: #f2efe8;
  color: #222830;
}

.chatbot-msg.user {
  background: #232a31;
  color: #fff;
  justify-self: end;
}

.chatbot-quick {
  border-top: 1px solid var(--line-soft);
  padding: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.chatbot-quick button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.38rem 0.75rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.chatbot-quick button:hover,
.chatbot-quick button:focus-visible {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
}

/* ===================================
   Responsive
=================================== */
@media (max-width: 1180px) {
  .main-nav > a,
  .dropdown-toggle {
    font-size: 0.74rem;
  }

  .nav-cta {
    min-width: 152px;
    padding-inline: 0.72rem;
  }
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .main-nav {
    position: fixed;
    top: calc(var(--header-height) + 8px);
    right: 4vw;
    width: min(360px, 92vw);
    max-height: calc(100vh - 120px);
    overflow: auto;
    background: rgba(248, 246, 241, 0.99);
    border: 1px solid rgba(16, 20, 24, 0.12);
    box-shadow: var(--shadow);
    border-radius: 14px;
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .main-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .has-dropdown {
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    text-align: left;
    padding-right: 0;
  }

  .dropdown-menu {
    position: static;
    width: 100%;
    box-shadow: none;
    border: 1px solid var(--line-soft);
    background: #fff;
    margin-top: 0.6rem;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .has-dropdown.open .dropdown-menu {
    display: grid;
  }

  .split-grid,
  .split-grid.reverse,
  .grid-2,
  .grid-3,
  .grid-4,
  .article-grid,
  .project-grid,
  .footer-top,
  .step-card {
    grid-template-columns: 1fr;
  }

  .step-badge {
    width: min(220px, 100%);
  }

  .step-content {
    padding-right: 0;
  }

  .about-video-overlay {
    background: transparent;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100svh - var(--header-height));
  }

  .hero-cta {
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 3.7rem 0;
  }

  .start-project-grid {
    grid-template-columns: 1fr;
  }

  .start-project-dialog {
    padding: 1rem 0.85rem;
  }
}

@media (max-width: 1024px) {
  .experience-grid,
  .leadership-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .experience-grid,
  .leadership-feature-grid {
    grid-template-columns: 1fr;
  }
}
