@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Unbounded:wght@500;600;700&display=swap");

:root {
  --pine: #0f2f26;
  --pine-mid: #1a4a3c;
  --sage: #3d6b5a;
  --mist: #e8efe9;
  --paper: #f4f7f4;
  --ink: #142019;
  --muted: #5a6b62;
  --copper: #c17a3a;
  --copper-light: #e8a86a;
  --line: rgba(15, 47, 38, 0.12);
  --radius: 4px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Unbounded", sans-serif;
  --font-body: "Manrope", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* —— grain overlay —— */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* —— nav —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s, box-shadow 0.4s;
}

.site-header.is-scrolled {
  background: rgba(244, 247, 244, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header.is-scrolled .logo,
.site-header.is-scrolled .nav-links a,
.site-header.is-scrolled .nav-toggle {
  color: var(--pine);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 102;
  transition: color 0.3s;
}

.logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  opacity: 0.7;
  letter-spacing: 0.04em;
  margin-top: 0.1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  position: relative;
  transition: color 0.25s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--copper);
  transition: width 0.35s var(--ease);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #fff;
}

.site-header.is-scrolled .nav-links a:hover,
.site-header.is-scrolled .nav-links a.is-active {
  color: var(--pine);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  background: var(--copper);
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  transition: background 0.25s, transform 0.25s;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--pine);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  color: #fff;
  z-index: 102;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px auto;
  transition: 0.3s var(--ease);
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* —— buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--copper);
  color: #fff;
}

.btn-primary:hover {
  background: #a8652e;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn-dark {
  background: var(--pine);
  color: #fff;
}

.btn-dark:hover {
  background: var(--pine-mid);
}

.btn-outline {
  background: transparent;
  color: var(--pine);
  border: 1.5px solid var(--pine);
}

.btn-outline:hover {
  background: var(--pine);
  color: #fff;
}

/* —— hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 22s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 47, 38, 0.35) 0%, rgba(15, 47, 38, 0.55) 40%, rgba(10, 28, 22, 0.88) 100%),
    linear-gradient(90deg, rgba(15, 47, 38, 0.5) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3rem) 0 5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.25rem;
  animation: riseIn 0.9s var(--ease) both;
}

.hero-brand em {
  font-style: normal;
  color: var(--copper-light);
}

.hero h1 {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  max-width: 32rem;
  line-height: 1.5;
  opacity: 0.92;
  margin-bottom: 0.75rem;
  animation: riseIn 0.9s 0.12s var(--ease) both;
}

.hero p {
  font-size: 1rem;
  max-width: 28rem;
  opacity: 0.78;
  margin-bottom: 2rem;
  animation: riseIn 0.9s 0.22s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: riseIn 0.9s 0.32s var(--ease) both;
}

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

.page-hero {
  position: relative;
  padding: calc(var(--nav-h) + 4rem) 0 4rem;
  background: var(--pine);
  color: #fff;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(193, 122, 58, 0.25), transparent),
    linear-gradient(135deg, var(--pine) 0%, var(--pine-mid) 100%);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  animation: riseIn 0.7s var(--ease) both;
}

.page-hero p {
  max-width: 36rem;
  opacity: 0.8;
  animation: riseIn 0.7s 0.1s var(--ease) both;
}

/* —— sections —— */
.section {
  padding: 5.5rem 0;
}

.section-mist {
  background: var(--mist);
}

.section-pine {
  background: var(--pine);
  color: #fff;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.85rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--pine);
}

.section-pine .section-title {
  color: #fff;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.section-pine .section-lead {
  color: rgba(255, 255, 255, 0.72);
}

/* —— reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* —— feature strip —— */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--line);
  transition: background 0.35s;
}

.feature:last-child {
  border-right: none;
}

.feature:hover {
  background: var(--mist);
}

.feature-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--copper);
  margin-bottom: 0.75rem;
}

.feature h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pine);
  margin-bottom: 0.4rem;
}

.feature p {
  font-size: 0.875rem;
  color: var(--muted);
}

/* —— split —— */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.split-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.split:hover .split-media img {
  transform: scale(1.04);
}

.split-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(15, 47, 38, 0.35));
  pointer-events: none;
}

.split-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  letter-spacing: -0.02em;
  color: var(--pine);
  margin-bottom: 1rem;
}

.split-body p {
  color: var(--muted);
  margin-bottom: 1rem;
}

.split-body p:last-of-type {
  margin-bottom: 1.75rem;
}

/* —— product grid —— */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(15, 47, 38, 0.1);
}

.product-img {
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

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

.product:hover .product-img img {
  transform: scale(1.06);
}

.product-body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.product-body h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--pine);
  margin-bottom: 0.4rem;
}

.product-body p {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.product-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--copper);
}

/* —— steps —— */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.75rem 1.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  counter-increment: step;
}

.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--copper-light);
  display: block;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.875rem;
  opacity: 0.72;
}

/* —— price table —— */
.price-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
}

.price-table th,
.price-table td {
  padding: 1.1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 0.925rem;
}

.price-table th {
  background: var(--pine);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table tr:hover td {
  background: var(--mist);
}

.price-table .price {
  font-weight: 700;
  color: var(--copper);
  white-space: nowrap;
}

/* —— contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
}

.contact-info dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.35rem;
}

.contact-info dd {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  color: var(--pine);
  font-weight: 600;
}

.contact-info dd a:hover {
  color: var(--copper);
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--line);
}

.contact-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(61, 107, 90, 0.15);
}

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

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.form-success {
  display: none;
  padding: 1rem;
  background: var(--mist);
  color: var(--pine);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-success.is-shown {
  display: block;
  animation: riseIn 0.4s var(--ease);
}

/* —— tech list —— */
.tech-list {
  display: grid;
  gap: 1rem;
}

.tech-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.tech-item:last-child {
  border-bottom: none;
}

.tech-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mist);
  color: var(--pine);
}

.tech-item h3 {
  font-size: 1.05rem;
  color: var(--pine);
  margin-bottom: 0.3rem;
}

.tech-item p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* —— cta band —— */
.cta-band {
  padding: 4.5rem 0;
  background:
    linear-gradient(120deg, rgba(15, 47, 38, 0.92), rgba(26, 74, 60, 0.85)),
    url("../images/frame.jpg") center / cover;
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin-bottom: 0.75rem;
}

.cta-band p {
  opacity: 0.8;
  margin-bottom: 1.75rem;
  max-width: 28rem;
  margin-inline: auto;
}

/* —— footer —— */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-brand span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  opacity: 0.6;
  margin-top: 0.25rem;
}

.footer-col h4 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-light);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  transition: color 0.25s;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: var(--copper-light);
}

.footer-bottom a:hover {
  color: #fff;
}

/* —— content prose —— */
.prose {
  max-width: 42rem;
}

.prose p {
  margin-bottom: 1rem;
  color: var(--muted);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--pine);
  margin: 2rem 0 0.85rem;
}

.prose ul {
  margin: 1rem 0 1.5rem;
}

.prose li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--copper);
}

/* —— gallery —— */
.gallery {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

.gallery-main {
  grid-row: span 2;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.gallery-side {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

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

.gallery > *:hover img {
  transform: scale(1.05);
}

/* —— mobile —— */
@media (max-width: 960px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }

  .feature:nth-child(2) {
    border-right: none;
  }

  .feature:nth-child(1),
  .feature:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .split,
  .contact-grid,
  .footer-grid,
  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery-main {
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }

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

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

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: var(--pine);
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 1.15rem;
    color: #fff !important;
  }

  .site-header.is-scrolled .nav-links a {
    color: #fff !important;
  }

  .product-grid,
  .features,
  .steps {
    grid-template-columns: 1fr;
  }

  .feature {
    border-right: none !important;
    border-bottom: 1px solid var(--line);
  }

  .hero-content {
    padding-bottom: 3.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .price-table {
    display: block;
    overflow-x: auto;
  }
}
