/* =========================================================
   Krafto — replica styles
   Design tokens copied from the original Framer export
   ========================================================= */

@font-face {
  font-family: 'Space Grotesk';
  src: url('assets/SpaceGrotesk-VariableFont_wght.ttf');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #0090B8;
  --green-dark: #004F89;
  --sage: #AEC4D0;
  --sage-20: rgba(174, 196, 208, 0.2);
  --sage-60: rgba(174, 196, 208, 0.6);
  --bg: #f6f6f6;
  --bg-alt: #f7f7f7;
  --white: #fefefe;
  --dark-green: #004F89;
  --text: #333333;
  --text-body: #465150;
  --text-body-70: rgba(70, 81, 80, 0.7);
  --muted: #666666;
  --near-black: #181d27;
  --black: #000000;

  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container: 1300px;
  --radius: 10px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  max-width: 100%;
  scrollbar-color: var(--dark-green) transparent;
}

::-webkit-scrollbar { width: 12px; height: 12px; background: transparent; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--dark-green); border-radius: 999px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--green); background-clip: padding-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

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

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

ul { list-style: none; margin: 0; padding: 0; }

button { font-family: inherit; cursor: pointer; }

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

.mono { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--dark-green); font-weight: 700; }

/* =========================================================
   PRELOADER
   ========================================================= */

body.is-preloading { overflow: hidden; }

.preloader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}

.preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.preloader-logo {
  height: 60px;
  width: auto;
  color: var(--dark-green);
  animation: preloader-pulse 1.3s ease-in-out infinite;
}

.preloader-bar {
  width: 180px;
  height: 4px;
  border-radius: 999px;
  background: var(--sage-20);
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--dark-green);
  transition: width 0.3s var(--ease);
  animation: preloader-progress 2.4s ease-out forwards;
}

@keyframes preloader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.65; }
}

@keyframes preloader-progress {
  0% { width: 0%; }
  70% { width: 78%; }
  100% { width: 88%; }
}

@media (prefers-reduced-motion: reduce) {
  .preloader-logo { animation: none; }
  .preloader-bar-fill { animation: none; width: 60%; }
}

/* =========================================================
   Reveal-on-scroll (used across every section)
   ========================================================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--reveal-delay, 0) * 90ms);
}

[data-reveal-delay="1"] { --reveal-delay: 1; }
[data-reveal-delay="2"] { --reveal-delay: 2; }
[data-reveal-delay="3"] { --reveal-delay: 3; }

[data-reveal-dir="left"] { transform: translateX(-80px); }
[data-reveal-dir="right"] { transform: translateX(80px); }

[data-reveal].is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; opacity: 1; transform: none; }
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 32px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.3px;
  border: 1px solid transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}

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

.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 10px 24px -8px rgba(0, 144, 184, 0.55);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--dark-green);
  border-color: rgba(0, 79, 137, 0.2);
}

.btn-outline:hover {
  background: var(--dark-green);
  color: var(--white);
  transform: translateY(-2px);
}

/* hover slide-up text swap, replicating the stacked-text buttons */
.btn-swap-inner {
  position: relative;
  display: inline-block;
  height: 1.2em;
  overflow: hidden;
}

.btn-swap-text {
  display: block;
  transition: transform 0.45s var(--ease);
}

.btn-swap-text:first-child {
  transform: translateY(0);
}

.btn-swap-text:last-child {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(0);
}

.btn-swap:hover .btn-swap-text:first-child { transform: translateY(-100%); }
.btn-swap:hover .btn-swap-text:last-child { transform: translateY(-100%); }

/* =========================================================
   Eyebrow / section titles
   ========================================================= */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.eyebrow-num {
  color: var(--green);
}

.eyebrow-pipe {
  opacity: 0.5;
  font-weight: 400;
}

.eyebrow-light { color: rgba(255, 255, 255, 0.7); }
.eyebrow-light .eyebrow-num { color: var(--sage); }

.section-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.clients-copyright {
  font-size: 20px;
  font-weight: 500;
  color: var(--text-body);
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.section-title {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.06em;
  font-weight: 500;
}

.section-title-light { color: var(--white); }

.projects-title-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  transition: color 0.3s var(--ease);
}
.projects-title-link:hover { color: var(--dark-green); }
.projects-title-link-text { display: inline-block; transform-origin: left center; transition: transform 0.3s var(--ease); }
.projects-title-link:hover .projects-title-link-text { transform: scale(1.05); }
.projects-title-link svg { flex-shrink: 0; transition: transform 0.3s var(--ease); }
.projects-title-link:hover svg { transform: translate(0.1em, -0.1em); }

.section-sub {
  max-width: 420px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

.section-sub-light { color: rgba(246, 246, 246, 0.8); }

.section-head { margin-bottom: 80px; }

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark-green);
  background: var(--bg);
  padding: 4px 12px;
  border-radius: 32px;
  white-space: nowrap;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 30px 0;
}

.header-inner { padding: 0; max-width: var(--container); }

.navbar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled .navbar {
  box-shadow: 0 12px 30px -12px rgba(0, 79, 137, 0.25);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
}

.brand-word {
  display: block;
  height: clamp(32px, 4vw, 42px);
  width: auto;
  color: var(--dark-green);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-body);
  padding-bottom: 4px;
  background: none;
  border: none;
}

.nav-link .line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: var(--green);
  transition: width 0.35s var(--ease);
}

.nav-link:hover .line { width: 100%; }

.nav-dropdown { position: relative; }

.nav-dropdown-btn { cursor: pointer; }

.chevron { transition: transform 0.3s var(--ease); }

.nav-dropdown.is-open .chevron { transform: rotate(180deg); }

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translate(-50%, 8px);
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.18);
  padding: 10px;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}

.nav-dropdown.is-open .nav-dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown-panel a {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.nav-dropdown-panel a:hover {
  background: var(--sage-20);
  color: var(--green);
}

.nav-cta { flex-shrink: 0; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  border-radius: 8px;
}

.burger span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: var(--dark-green);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  margin: 0 30px;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: max-height 0.4s var(--ease), padding 0.4s var(--ease);
}

.mobile-menu.is-open {
  max-height: 480px;
  padding: 12px 24px 20px;
}

.mobile-link {
  padding: 12px 0;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-body);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding: 40px 0 30px;
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: -20px;
}

.hero-text-col {
  display: flex;
  flex-direction: column;
  gap: 36px;
  max-width: 514px;
  flex: 1 1 300px;
}

.hero-location {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: var(--muted);
}

.hero-sub {
  max-width: none;
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.hero-facts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  flex: 1 1 300px;
}

.hero-fact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--sage);
}

.hero-fact-label {
  font-size: 16px;
  color: var(--dark-green);
}

.hero-fact-value {
  font-size: 16px;
  font-weight: 500;
  color: var(--dark-green);
  white-space: nowrap;
}

.hero-title {
  font-size: clamp(52px, 13vw, 188px);
  line-height: 1.02;
  letter-spacing: 0;
  font-weight: 700;
  margin: 0;
  color: var(--dark-green);
  text-align: center;
}

.hero-title .char {
  display: inline-block;
  opacity: 0.001;
  filter: blur(10px);
  animation: charIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i) * 45ms + 200ms);
}

.hero-title .char.is-space { width: 0.3em; }

@keyframes charIn {
  to { opacity: 1; filter: blur(0); }
}

.hero-carousel-wrap {
  width: 100%;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-carousel-stage {
  width: 100%;
  height: clamp(430px, 52vw, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
}

.hero-carousel {
  position: relative;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  animation: heroCarouselSpin 26s linear infinite;
}


.hero-carousel-card {
  position: absolute;
  top: calc(clamp(304px, 30vw, 400px) * -0.5);
  left: 0;
  width: clamp(228px, 23vw, 300px);
  height: clamp(304px, 30vw, 400px);
  transform-style: preserve-3d;
  transform-origin: 0% 50%;
  transform: rotateY(calc(var(--i) * 60deg));
}

.hero-carousel-card-face {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--dark-green);
  box-shadow: 0 20px 40px -16px rgba(0, 79, 137, 0.35);
  backface-visibility: hidden;
}

.hero-carousel-card-back {
  transform: rotateY(180deg);
}

.hero-carousel-card-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@keyframes heroCarouselSpin {
  from { transform: rotateX(16deg) rotateY(0deg); }
  to { transform: rotateX(16deg) rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel { animation: none; transform: rotateX(16deg) rotateY(20deg); }
}


/* =========================================================
   CLIENTS / MARQUEE
   ========================================================= */

.clients { padding: 90px 0 65px; }

.section-head-row .mono { font-size: 14px; }

.partner-row-wrap {
  margin-top: 0;
  overflow: hidden;
  contain: layout paint;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.partner-row {
  display: flex;
  width: max-content;
  animation: partnerScroll 22s linear infinite;
}


.partner-group {
  display: flex;
  align-items: center;
  gap: 72px;
  padding-right: 72px;
}

.partner-group li { flex: none; opacity: 0.7; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.partner-group li:hover { opacity: 1; transform: translateY(-2px); }

@keyframes partnerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .partner-row { animation: none; }
}

/* =========================================================
   SERVICES (accordion)
   ========================================================= */

.services { padding: 80px 0; }

.accordion {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.service-card {
  background: transparent;
  border: 1px dashed var(--sage);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.service-card.is-open {
  background: var(--white);
  border-color: transparent;
}

.service-card-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: 30px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

.service-text-col {
  flex: 1 1 60%;
  display: flex;
  flex-direction: column;
  gap: 36px;
  min-width: 0;
}

.service-text-col h3 {
  font-size: clamp(30px, 4.4vw, 64px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.09;
}

.service-collapsible {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  max-height: 0;
  margin-top: -36px;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.55s var(--ease), opacity 0.4s var(--ease), margin-top 0.55s var(--ease);
}

.service-card.is-open .service-collapsible {
  max-height: 150px;
  margin-top: 0;
  opacity: 1;
}

.service-collapsible p {
  flex: 1 1 260px;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.025em;
  color: var(--muted);
  margin: 0;
  text-align: left;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 12px;
  flex: 0 0 260px;
}

.service-image {
  flex: 0 0 0px;
  width: 0;
  height: 0;
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  transition: flex-basis 0.55s var(--ease), width 0.55s var(--ease), height 0.55s var(--ease), opacity 0.4s var(--ease);
}

.service-card.is-open .service-image {
  flex: 0 0 400px;
  width: 400px;
  height: 298px;
  opacity: 1;
}

.service-image img {
  width: 400px;
  height: 298px;
  object-fit: cover;
  display: block;
}

/* =========================================================
   PROJECTS
   ========================================================= */

.projects { padding: 65px 0 130px; }

.project-stack {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.project-card {
  position: sticky;
  top: 20px;
  z-index: 1;
  background: var(--bg);
  padding-bottom: 4px;
}

.project-link {
  display: block;
}

.project-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1300/560;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100px, 12%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sage);
  color: var(--dark-green);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0);
  transition: opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1), transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.project-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-top: 32px;
  flex-wrap: wrap;
}

.project-text { flex: 1 1 500px; max-width: 700px; }

.project-tags {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 14px;
}

.project-text h4 {
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.project-text p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 620px;
}

.project-facts {
  flex: 0 0 340px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 16px;
  line-height: 24px;
}

.fact-row span:first-child { color: var(--dark-green); }
.fact-row span:last-child { color: var(--muted); font-weight: 500; }

/* =========================================================
   PROJECTS HUB (gallery of all projects)
   ========================================================= */

.projects-hub-hero { padding: 60px 0 20px; text-align: center; }
.projects-hub-hero .section-title { margin-bottom: 8px; }
.projects-hub-hero .section-sub { margin: 0 auto; }

.projects-grid-section { padding: 40px 0 100px; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}

.project-grid-card {
  display: block;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.project-grid-card-image {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.project-grid-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease);
}
.project-grid-card:hover .project-grid-card-image img { transform: scale(1.05); }
.project-grid-card:hover .project-badge { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.project-grid-card-tag {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark-green);
  margin-bottom: 8px;
}

.project-grid-card h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--text);
}

.project-grid-card-meta {
  font-size: 14px;
  color: var(--muted);
}

.project-grid-card-cta .project-grid-card-image {
  background: var(--dark-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background 0.3s var(--ease);
}
.project-grid-card-cta:hover .project-grid-card-image { background: var(--sage); }
.project-grid-card-cta:hover .project-grid-card-cta-icon { color: var(--dark-green); transform: translate(4px, -4px); }
.project-grid-card-cta-icon { transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
.project-grid-card-cta .project-grid-card-tag { color: var(--dark-green); }
.project-grid-card-cta h3 { color: var(--dark-green); }

/* =========================================================
   PROJECT DETAIL PAGE
   ========================================================= */

.project-detail-hero { padding: 60px 0 0; }

.project-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 32px;
  text-decoration: none;
  transition: color 0.3s var(--ease);
}
.project-back:hover { color: var(--dark-green); }
.project-back svg { flex-shrink: 0; }

.project-hero-title {
  font-size: clamp(44px, 8vw, 120px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--dark-green);
  margin: 0 0 80px;
  text-align: left;
  overflow-wrap: break-word;
}

.project-hero-row {
  display: flex;
  align-items: stretch;
  gap: 24px;
  margin-bottom: 80px;
}

.project-hero-info {
  flex: 1 0 0;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.project-hero-desc {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0.4px;
  color: var(--muted);
  margin: 0;
}

.project-hero-facts { display: flex; flex-direction: column; gap: 8px; width: 100%; }

.project-hero-fact {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--sage);
}
.project-hero-fact span:first-child { flex: 1 0 0; color: var(--text-body); font-size: 16px; letter-spacing: 0.4px; }
.project-hero-fact span:last-child { flex: 0 0 auto; color: var(--text); font-weight: 500; font-size: 16px; letter-spacing: -0.3px; }

.project-hero-image {
  flex: 1 0 0;
  aspect-ratio: 1.42 / 1;
  border-radius: 8px;
  overflow: hidden;
}
.project-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.project-detail-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 700px;
  padding-bottom: 80px;
  border-bottom: 1px solid var(--sage-20);
}

.project-detail-body h2 {
  font-size: 24px;
  font-weight: 500;
  color: var(--dark-green);
  margin: 0 0 12px;
}
.project-detail-body p { font-size: 17px; line-height: 1.7; color: var(--muted); margin: 0; }

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.placeholder-media {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, var(--sage-20), var(--sage-20) 12px, transparent 12px, transparent 24px);
  border: 1.5px dashed var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  padding: 20px;
}

.gallery-img {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-cta {
  background: var(--dark-green);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  color: var(--white);
  margin-bottom: 80px;
}
.project-cta-text { text-align: left; }
.project-cta h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 500; margin: 0 0 8px; color: var(--white); }
.project-cta p { color: rgba(255, 255, 255, 0.75); margin: 0; font-size: 16px; max-width: 480px; }
.project-cta .btn { flex-shrink: 0; }

.project-nav-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 40px 0 100px;
  border-top: 1px solid var(--sage-20);
}

.project-prev-btn {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--dark-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-green);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.project-prev-btn:hover { background: var(--dark-green); color: var(--white); transform: translateX(-4px); }

.project-next {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  gap: 24px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.project-next-label { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 8px; display: block; }
.project-next-title { font-size: clamp(22px, 3vw, 32px); font-weight: 500; color: var(--dark-green); margin: 0; }
.project-next-arrow {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid var(--dark-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark-green);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.project-next:hover .project-next-arrow { background: var(--dark-green); color: var(--white); transform: translateX(4px); }

/* =========================================================
   CONTACT
   ========================================================= */

.contact {
  position: relative;
  padding: 130px 0;
  overflow: hidden;
  isolation: isolate;
}

.contact-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: var(--dark-green);
  opacity: 0.4;
  z-index: -1;
}

.contact-inner {
  display: grid;
  grid-template-columns: 640px 1fr;
  gap: 60px;
  align-items: stretch;
}

.contact-form-wrapper { order: 0; }

.contact-form {
  background: var(--bg);
  border-radius: 8px;
  padding: 48px 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.form-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.form-logo { height: clamp(34px, 4vw, 42px); }

.form-head h4 {
  width: 100%;
  text-align: center;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.06em;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  color: var(--dark-green);
}

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  padding: 16px 12px;
  border-radius: 8px;
  border: none;
  background: var(--white);
  color: var(--text-body);
  transition: box-shadow 0.25s var(--ease);
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--sage-20);
}

.field-radio-group {
  display: flex;
  gap: 10px;
}

.field-radio-option {
  flex: 1 1 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 12px;
  border-radius: 8px;
  background: var(--white);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  cursor: pointer;
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.field-radio-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
}

.field-radio-option:has(input:checked),
.field-radio-option.is-checked {
  background: var(--dark-green);
  color: var(--white);
}

.field-radio-option:has(input:focus-visible) {
  box-shadow: 0 0 0 3px var(--sage-20);
}

.form-fields { position: relative; }

.form-status {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  margin-top: 12px;
  font-size: 13px;
  color: var(--green);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.form-status.is-visible { opacity: 1; transform: translateY(0); }
.form-status.is-error { color: #d64545; }

.contact-text-wrapper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 60px;
}

.contact-title-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-title-block .eyebrow { margin-bottom: 0; }

.contact-title-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-title-text .section-title { margin: 0; font-size: clamp(40px, 6vw, 72px); }
.contact-title-text .section-sub { margin: 0; max-width: 592px; font-size: 20px; line-height: 1.4; }

.contact-features {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.contact-feature {
  display: flex;
  flex-direction: column;
}

.contact-feature img { filter: brightness(0) invert(1); margin-bottom: 16px; }
.contact-feature-icon { color: var(--white); margin-bottom: 16px; }

.contact-feature h5 { color: var(--white); font-size: 20px; font-weight: 600; margin: 0 0 10px; }
.contact-feature p { margin: 0; font-size: 18px; line-height: 1.7; color: rgba(255, 255, 255, 0.7); }

.contact-facts {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.fact-row-light {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 16px;
}

.fact-row-label { flex-shrink: 0; color: rgba(255, 255, 255, 0.6); }

.fact-row-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
  margin-bottom: 4px;
}

.fact-row-value { flex-shrink: 0; color: var(--white); font-weight: 500; }

/* =========================================================
   SUCCESS MODAL
   ========================================================= */

body.modal-open { overflow: hidden; }

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 22, 40, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 44px 32px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: translateY(16px) scale(0.96);
  transition: transform 0.35s var(--ease);
}

.modal-overlay.is-open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--dark-green);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.modal-close:hover { background: var(--sage-20); }

.modal-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--dark-green);
  color: var(--white);
}

.modal-box h4 { font-size: 24px; margin: 0; }
.modal-box p { margin: 0 0 8px; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 320px; }
.modal-box > .btn { width: 100%; justify-content: center; }

.seo-modal-box {
  max-width: 760px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--white);
  align-items: stretch;
  text-align: left;
  padding: 48px 40px 40px;
  gap: 32px;
}
.seo-modal-box h4 { font-size: clamp(22px, 3vw, 28px); text-align: left; }
.seo-modal-block { display: flex; flex-direction: column; gap: 16px; }
.seo-modal-block h5 { font-size: 18px; font-weight: 600; color: var(--dark-green); margin: 0; }
.seo-modal-block p { max-width: 100%; font-size: 15px; line-height: 1.6; color: var(--text-body); margin: 0; }
.seo-modal-block .tags { flex-basis: auto; gap: 8px; }
.seo-modal-block .tag { font-size: 13px; font-weight: 400; }

.lightbox-overlay { padding: 40px; }

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 22, 40, 0.35);
  transform: scale(0.96);
  transition: transform 0.35s var(--ease);
}
.lightbox-overlay.is-open .lightbox-img { transform: scale(1); }

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--dark-green);
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.lightbox-close:hover { background: var(--sage-20); transform: scale(1.05); }

.project-hero-image img,
.gallery-img { cursor: zoom-in; }

/* =========================================================
   COOKIE CONSENT
   ========================================================= */

.cookie-consent {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s var(--ease);
}
.cookie-consent.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

.cookie-consent-box {
  width: 100%;
  max-width: 640px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 22, 40, 0.2);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cookie-consent-text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-body); }

.cookie-consent-more {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 500;
  color: var(--dark-green);
  text-decoration: underline;
  cursor: pointer;
}

.cookie-consent-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.cookie-consent-btn { padding: 10px 22px; font-size: 14px; }

.cookie-reopen-btn {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 900;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--dark-green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(0, 22, 40, 0.35);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.cookie-reopen-btn:hover { background: var(--green); transform: translateY(-2px); }
.cookie-reopen-btn[hidden] { display: none; }

.privacy-modal-box .seo-modal-block p { color: var(--text-body); }
.privacy-modal-box .seo-modal-block a { color: var(--dark-green); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */

.testimonials { padding: 130px 0 75px; }

.testimonial-marquee-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  contain: layout paint;
}

.marquee-lane {
  display: flex;
  overflow: hidden;
  padding: 8px 0;
}

.marquee-track {
  display: flex;
  gap: 24px;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  gap: 24px;
  animation: reviewMarquee 22s linear infinite;
}

.marquee-track-reverse .marquee-group {
  animation-direction: reverse;
}


@keyframes reviewMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 24px)); }
}

.review-card {
  flex: none;
  width: 370px;
  min-height: 340px;
  border-radius: 18px;
  border: 1px solid rgba(0, 79, 137, 0.08);
  background: var(--white);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}

.review-card:nth-child(even) {
  background: #eaeaea;
}

.review-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card-head img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

.review-card-name { font-size: 19px; font-weight: 500; color: var(--dark-green); margin: 0; }
.review-card-username { font-size: 17px; font-weight: 500; color: var(--muted); margin: 0; }

.review-card-body {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-body);
  margin: 0;
}

.review-card-body-sm {
  font-size: 15px;
  line-height: 1.45;
}

.marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 25%;
  pointer-events: none;
  z-index: 2;
}

.marquee-fade-left { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee-fade-right { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }

@media (prefers-reduced-motion: reduce) {
  .marquee-group { animation: none; }
}

/* =========================================================
   PRICING
   ========================================================= */

.pricing { padding: 75px 0; }

.pricing-frame {
  background: transparent;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pricing-card {
  background: var(--bg);
  border: 1.5px solid var(--dark-green);
  border-radius: 8px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  will-change: transform;
}

.pricing-card:hover {
  transform: scale(1.05);
  box-shadow: 0 24px 48px -20px rgba(0, 79, 137, 0.35);
  position: relative;
  z-index: 2;
}

.pricing-card-dark {
  background: var(--dark-green);
  border-color: var(--dark-green);
  color: rgba(255, 255, 255, 0.7);
}

.pricing-head h6 { font-size: 20px; margin-bottom: 8px; }
.pricing-card-dark .pricing-head h6 { color: var(--white); }

.pricing-card:nth-child(3) .pricing-head { min-height: 280px; }

.pricing-subhead {
  margin: 0 0 16px;
  min-height: 36px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--dark-green);
}
.pricing-card-dark .pricing-subhead { color: var(--sage); }

.price-label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 4px 0;
}
.pricing-card-dark .price-label { color: rgba(255, 255, 255, 0.5); }

.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price h4 { font-size: 40px; }
.pricing-card-dark .price h4 { color: var(--white); }
.price h5 { font-size: 15px; font-weight: 500; color: var(--muted); }
.pricing-card-dark .price h5 { color: rgba(255, 255, 255, 0.6); }

.pricing-desc { margin: 14px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.pricing-card-dark .pricing-desc { color: rgba(255, 255, 255, 0.6); }

.pricing-divider {
  height: 1px;
  background: rgba(51, 51, 51, 0.6);
  margin: 24px 0;
}
.pricing-card-dark .pricing-divider { background: rgba(255, 255, 255, 0.85); }

.pricing-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.included-label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 14px;
}
.pricing-card-dark .included-label { color: rgba(255, 255, 255, 0.5); }

.check-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 8px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-body);
}
.pricing-card-dark .check-list li { color: rgba(255, 255, 255, 0.75); }

.check {
  flex-shrink: 0;
  margin-top: 2px;
  width: 18px;
  height: 18px;
  position: relative;
}

.check::after {
  content: '';
  position: absolute;
  top: 45%;
  left: 50%;
  width: 8px;
  height: 4px;
  border-left: 1.5px solid var(--green);
  border-bottom: 1.5px solid var(--green);
  transform: translate(-50%, -50%) rotate(-45deg);
}
.check-list-white .check::after { border-color: var(--sage); }

.pricing-footnote {
  margin-top: auto;
  padding-top: 18px;
  font-size: 12.5px;
  font-style: italic;
  line-height: 1.5;
  color: var(--muted);
}
.pricing-card-dark .pricing-footnote { color: rgba(255, 255, 255, 0.45); }

.pricing-card > .btn { margin-top: 28px; }

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin: 24px 0 4px;
}

.pricing-swipe-hint { display: none; }

/* =========================================================
   FAQ (accordion)
   ========================================================= */

.faq { padding: 75px 0; }

.faq-grid {
  display: grid;
  grid-template-columns: 530px 1fr;
  gap: 64px;
}

.faq-side { display: flex; }

.faq-mail-card {
  background: var(--white);
  border-radius: 8px;
  padding: 56px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  width: 100%;
}

.faq-avatar {
  display: block;
  height: 56px;
  width: auto;
  color: var(--dark-green);
}

.faq-mail-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.faq-mail-card h5 { font-size: 36px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.25; margin: 0; }
.faq-mail-card p { font-size: 18px; line-height: 1.7; color: var(--muted); margin: 0; max-width: 380px; }

.faq-mail-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  transition: transform 0.3s var(--ease);
}

.faq-mail-row:hover { transform: translateX(4px); }
.faq-mail-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.faq-mail-label { font-size: 16px; font-weight: 600; color: var(--dark-green); }
.faq-mail-email { font-size: 18px; font-weight: 400; color: var(--dark-green); }

.faq-mail-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--dark-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-main { display: flex; flex-direction: column; gap: 64px; }

.faq-list { display: flex; flex-direction: column; }

.faq-item {
  padding-bottom: 18px;
  margin-bottom: 34px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}

.faq-item.is-open { border-bottom-color: var(--sage); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 20px;
  font-weight: 600;
  color: var(--dark-green);
}

.faq-plus {
  flex-shrink: 0;
  position: relative;
  width: 24px;
  height: 24px;
  transition: transform 0.35s var(--ease), width 0.35s var(--ease), height 0.35s var(--ease);
}

.faq-item.is-open .faq-plus {
  width: 34px;
  height: 34px;
  transform: rotate(45deg);
}

.faq-plus::before,
.faq-plus::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--dark-green);
  border-radius: 1px;
}

.faq-plus::before { width: 100%; height: 1.5px; transform: translate(-50%, -50%); }
.faq-plus::after { width: 1.5px; height: 100%; transform: translate(-50%, -50%); }

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

.faq-item.is-open .faq-answer { max-height: 200px; opacity: 1; }

.faq-answer-inner {
  padding-top: 14px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.faq-answer-inner p { margin: 0; }

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: var(--dark-green);
  color: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-top: 40px;
  padding: 130px 0 30px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 140px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-about {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 464px;
}

.footer-title-wrap { display: flex; flex-direction: column; gap: 20px; }

.footer-about h4 {
  color: var(--white);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -3px;
  line-height: 1.2;
  max-width: 344px;
  margin: 0;
}

.footer-about p {
  max-width: 100%;
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.3px;
  line-height: 1.7;
  color: rgba(246, 246, 246, 0.8);
}

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

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  color: var(--dark-green);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.social-icon svg { width: 20px; height: 20px; }

.social-icon:hover {
  background: var(--green);
  transform: translateY(-3px);
}

.footer-links {
  display: flex;
  align-items: flex-start;
  gap: 48px;
  max-width: 390px;
}

.footer-col { display: flex; flex-direction: column; gap: 20px; max-width: 171px; }

.footer-col-title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.5;
  color: var(--white);
}

.footer-link-list { display: flex; flex-direction: column; gap: 12px; }

.footer-nav-link {
  color: rgba(246, 246, 246, 0.8);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.3px;
  line-height: 1.5;
  width: fit-content;
}

.footer-nav-link .line { background: var(--sage); }

.footer-bottom-block {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 24px;
}

.footer-bottom-address {
  justify-self: start;
  max-width: 307px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1.214;
  color: var(--white);
  margin: 0;
}

.footer-bottom-email {
  justify-self: center;
  color: var(--white);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1.214;
}

.footer-bottom-copyright {
  justify-self: end;
  color: var(--bg);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1.214;
}

.footer-bottom a:hover { color: var(--sage); }

.footer-wordmark-text {
  display: block;
  width: 100%;
  height: auto;
  color: rgba(254, 254, 254, 0.14);
  user-select: none;
}

/* =========================================================
   Back to top + custom cursor accent
   ========================================================= */

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--dark-green);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.3s var(--ease);
  z-index: 90;
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green); }

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  pointer-events: none;
  z-index: 999;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease, width 0.25s ease, height 0.25s ease, background 0.25s ease;
}

.cursor-dot.is-active { opacity: 0.5; }
.cursor-dot.is-hover { width: 36px; height: 36px; opacity: 0.15; }

@media (hover: none) {
  .cursor-dot { display: none; }
}

/* =========================================================
   Responsive
   ========================================================= */

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

  .faq-grid { grid-template-columns: 1fr; }

  .contact-inner { grid-template-columns: 1fr; }
  .contact-form-wrapper { order: 2; }

  .service-card.is-open .service-image { flex-basis: 280px; width: 280px; }
  .service-image img { width: 280px; }
  .project-facts { flex-basis: 260px; }
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .burger { display: flex; }
  .footer-inner { gap: 60px; }
  .footer-top { flex-direction: column; align-items: center; }
  .footer-bottom { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; }
  .footer-bottom-address, .footer-bottom-email, .footer-bottom-copyright { justify-self: center; }
  .footer-about { max-width: 100%; align-items: center; text-align: center; }
  .footer-title-wrap { align-items: center; }
  .socials { justify-content: center; }
  .footer-links { flex-direction: column; align-items: center; width: 100%; }
  .footer-col { align-items: center; text-align: center; }
  .footer-link-list { align-items: center; }

  .service-card-inner { flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 45px 30px; }
  .service-card.is-open .service-card-inner { padding: 30px; }
  .service-card.is-open .service-image { width: 100%; flex-basis: auto; margin-top: 50px; }
  .service-image img { width: 100%; height: 220px; }
  .service-text-col { align-items: center; text-align: center; }
  .service-collapsible p { text-align: center; }

  .project-row { flex-direction: column; gap: 40px; }
  .project-facts { flex-basis: auto; width: 100%; }
  .project-text { flex-basis: auto; text-align: center; }

  .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }

  .project-detail-hero { padding: 40px 0 0; }
  .project-hero-title { text-align: center; margin-bottom: 48px; }
  .project-hero-row { flex-direction: column; gap: 40px; margin-bottom: 48px; }
  .project-hero-info { max-width: 100%; align-items: center; text-align: center; }
  .project-hero-facts { text-align: left; }
  .project-hero-image { flex: none; width: 100%; aspect-ratio: 4 / 3; }
  .project-detail-body { max-width: 100%; }
  .project-gallery { grid-template-columns: 1fr 1fr; }
  .project-cta { flex-direction: column; text-align: center; padding: 40px 24px; }
  .project-cta-text { text-align: center; }
  .project-cta p { max-width: 100%; }
  .project-nav-row { flex-direction: column; gap: 24px; padding: 32px 0 72px; }
  .project-next { flex-direction: column; text-align: center; gap: 16px; }
}

/* Pricing becomes a one-card-at-a-time swipeable carousel. Extended past the
   900px tablet breakpoint to 1024px so portrait iPad Pro (834-1024px) also
   gets the carousel instead of a cramped 2-column grid. */
@media (max-width: 1024px) {
  .pricing-frame { padding: 10px; }
  .pricing-card:nth-child(3) .pricing-head { min-height: 0; }

  .pricing-grid {
    display: flex;
    flex-wrap: nowrap;
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .pricing-grid::-webkit-scrollbar { display: none; }
  .pricing-card {
    flex: 0 0 100%;
    width: 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
  .pricing-card:hover { transform: none; box-shadow: none; }

  .pricing-swipe-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    color: var(--muted);
    font-size: 13px;
  }
  .pricing-swipe-hint svg { flex-shrink: 0; opacity: 0.7; }
}

/* .container is edge-to-edge (only 30px padding) below its 1300px cap,
   so the 80px reveal-in offset can push content past the viewport edge
   anywhere up to where the centering margin outside the container
   finally absorbs it (~1400px), not just on phones. */
@media (max-width: 1400px) {
  [data-reveal-dir="left"] { transform: translateX(-24px); }
  [data-reveal-dir="right"] { transform: translateX(24px); }
}

@media (max-width: 700px) {
  .review-card { width: 320px; }

  .hero-title { font-size: clamp(44px, 16vw, 90px); }
  .site-header { padding: 12px 14px 0; }
  .project-stack { gap: 56px; }
  .service-text-col { gap: 16px; }
  .service-collapsible { margin-top: -16px; }
  .faq-grid { grid-template-columns: 1fr; }
  .project-gallery { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; gap: 40px; }

  /* Keep the mobile footer short: drop the watermark logo and the
     address/email lines, keep just the copyright */
  .footer-wordmark-text,
  .footer-bottom-address,
  .footer-bottom-email { display: none; }

  /* ---- Center page content on mobile (desktop layout untouched) ---- */
  .section-head-row { flex-direction: column; align-items: center; text-align: center; }
  .eyebrow { justify-content: center; }
  .section-title { text-align: center; }
  .section-sub { text-align: center; }

  .hero-text-col { align-items: center; text-align: center; }

  .contact-title-block { align-items: center; text-align: center; }
  .contact-title-text { align-items: center; }
  .contact-features { align-items: center; text-align: center; }
  .contact-feature { align-items: center; }

  .tags { flex: 1 1 100%; width: 100%; justify-content: center; }

  .faq-mail-card { align-items: center; text-align: center; }
  .faq-mail-content { align-items: center; }

  .faq-side, .faq-mail-card, .faq-mail-row, .faq-mail-text { min-width: 0; }
  .faq-mail-row { flex-wrap: wrap; justify-content: center; }
  .faq-mail-email { overflow-wrap: break-word; word-break: break-word; }

  /* Ensure the back-to-top button never sits under a mobile browser's
     bottom chrome / home-indicator safe area */
  .to-top {
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .cookie-consent {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .cookie-consent-box { padding: 22px; }
  .cookie-consent-actions { flex-direction: column-reverse; }
  .cookie-consent-btn { width: 100%; justify-content: center; }
  .cookie-reopen-btn {
    left: calc(16px + env(safe-area-inset-left, 0px));
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }

  /* Keep the sticky header clear of the notch / status bar now that
     the page extends edge-to-edge (viewport-fit=cover) */
  .site-header {
    padding-left: calc(14px + env(safe-area-inset-left, 0px));
    padding-right: calc(14px + env(safe-area-inset-right, 0px));
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
  }

  /* The tags now wrap onto more lines at full mobile width, so the
     open accordion needs more room to avoid clipping them */
  .service-card.is-open .service-collapsible { max-height: 340px; }

  /* Scale down the hero 3D carousel so it fits comfortably on phone screens.
     The clip boundary is pushed out to the true screen edge (via negative
     margin + matching padding) so card shadows have room to fade out
     instead of being cut off right at the content margin. */
  .hero-carousel-stage {
    height: clamp(280px, 70vw, 380px);
    width: calc(100% + 60px);
    margin-left: -30px;
    margin-right: -30px;
    padding-left: 30px;
    padding-right: 30px;
    overflow: hidden;
  }
  .hero-carousel-card {
    top: calc(clamp(197px, 49vw, 266px) * -0.5);
    width: clamp(148px, 37vw, 200px);
    height: clamp(197px, 49vw, 266px);
  }

  /* Center the plan name inside each pricing "frame" */
  .pricing-head h6 { text-align: center; }

  /* Pull the coordinates block away from the (now smaller) hero carousel
     instead of the desktop-tuned negative overlap margin */
  .hero-top-row { margin-top: 32px; }

  /* Make sure the collapsed/open service name is dead-center, not just
     the text within its own column */
  .service-card-inner { justify-content: center; }

  /* Tighter section rhythm on mobile: desktop paddings (75-130px) are
     too generous for a small screen and make scrolling feel sparse */
  .clients { padding: 48px 0 40px; }
  .services { padding: 50px 0; }
  .projects { padding: 50px 0 60px; }
  .testimonials { padding: 60px 0 48px; }
  .pricing { padding: 50px 0; }
  .faq { padding: 50px 0; }
  .contact { padding: 50px 0; }

  /* Balance the footer's closing info by size/importance instead of
     repeating the same large size three times */
  .footer-bottom-address { font-size: 19px; }
  .footer-bottom-email { font-size: 21px; }
  .footer-bottom-copyright { font-size: 14px; font-weight: 500; }
}
