/* ============================================
   VALENTIS DEVELOPMENTS — DESIGN TOKENS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300..700;1,9..40,300..700&family=Fraunces:ital,opsz,wght@0,9..144,100..900;1,9..144,100..900&display=swap');

:root {
  --bg: #F2EDE3;
  --bg-deep: #E6DECB;
  --ink: #15120D;
  --ink-soft: #3A3328;
  --muted: #8C7E68;
  --terra: #B8451F;
  --terra-deep: #7E2D11;
  --line: rgba(21, 18, 13, 0.18);

  --font-display: 'Fraunces', serif;
  --font-body: 'DM Sans', sans-serif;

  --max-w: 1280px;
  --gutter: 24px;
  --section-py: 140px;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

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

/* ============================================
   UTILITIES
   ============================================ */

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

.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variation-settings: 'opsz' 72;
  text-wrap: pretty;
}

.section-heading em {
  font-style: italic;
  font-weight: 300;
  color: var(--terra-deep);
}

.lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 600px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background: rgba(242, 237, 227, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav-wordmark {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 32px;
  width: auto;
  mix-blend-mode: multiply;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 450;
  color: var(--ink-soft);
  transition: color 0.25s;
}

.nav-links a:hover { color: var(--terra); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: var(--ink);
  color: var(--bg) !important;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.25s, transform 0.25s;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

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

.hero {
  padding-top: 120px;
  padding-bottom: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-bottom: 80px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 32px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.5vw, 64px);
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 28px;
  font-variation-settings: 'opsz' 144;
  text-wrap: pretty;
}

.hero h1 em {
  font-style: italic;
  font-weight: 300;
  color: var(--terra-deep);
}

.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 40px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.25s, transform 0.25s;
}

.btn-primary:hover {
  background: var(--ink-soft);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.25s;
}

.btn-secondary:hover { color: var(--terra); }

.hero-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 4px;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

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

.marquee-wrap {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 40s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding-right: 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 20px;
  color: var(--ink);
  font-variation-settings: 'opsz' 48;
}

.marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terra);
  flex-shrink: 0;
}

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

/* ============================================
   SERVICES
   ============================================ */

.services {
  padding: var(--section-py) 0;
}

.services-header {
  margin-bottom: 64px;
  max-width: 640px;
}

.services-header .lead {
  margin-top: 24px;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.service-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  padding: 48px 40px;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: default;
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.service-card:hover .service-card-bg {
  transform: scale(1.05);
}

.service-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21, 18, 13, 1) 0%, rgba(21, 18, 13, 0.75) 50%, rgba(21, 18, 13, 0.35) 100%);
  z-index: 1;
}

.service-card-content {
  position: relative;
  z-index: 2;
  color: var(--bg);
}

.service-tag {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(242, 237, 227, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(242, 237, 227, 0.9);
  margin-bottom: 20px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  margin-bottom: 16px;
  font-variation-settings: 'opsz' 48;
}

.service-card p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(242, 237, 227, 0.8);
  margin-bottom: 24px;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--bg);
  transition: gap 0.3s;
}

.service-cta:hover { gap: 14px; }

/* ============================================
   DESIGN LANGUAGE
   ============================================ */

.design-language {
  padding: var(--section-py) 0;
  background: var(--bg);
}

.design-language-header {
  margin-bottom: 64px;
  max-width: 640px;
}

.design-language-header .lead {
  margin-top: 24px;
}

.design-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.design-tile {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: default;
}

.design-tile:nth-child(1) {
  grid-row: 1 / 3;
  min-height: 560px;
}

.design-tile:nth-child(2) { min-height: 270px; }
.design-tile:nth-child(3) { min-height: 270px; }
.design-tile:nth-child(4) {
  grid-column: 1 / -1;
  min-height: 360px;
}

.design-tile-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.design-tile-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.design-tile:hover .design-tile-bg {
  transform: scale(1.03);
}

.design-tile-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(to top, rgba(21, 18, 13, 0.65) 0%, transparent 100%);
  transform: translateY(10px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.design-tile:hover .design-tile-caption {
  transform: translateY(0);
  opacity: 1;
}

.design-tile-caption span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: var(--bg);
  font-variation-settings: 'opsz' 48;
}

/* ============================================
   LOCATIONS
   ============================================ */

.locations {
  padding: var(--section-py) 0;
  background: var(--ink);
  color: var(--bg);
}

.locations .eyebrow { color: var(--muted); }

.locations .section-heading {
  color: var(--bg);
  margin-bottom: 16px;
}

.locations .lead {
  color: rgba(242, 237, 227, 0.7);
  margin-bottom: 64px;
}

.locations-list {
  border-top: 1px solid rgba(242, 237, 227, 0.12);
}

.location-row {
  display: grid;
  grid-template-columns: 48px 1fr 1.5fr auto 40px;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(242, 237, 227, 0.12);
  transition: padding-left 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
}

.location-row:hover {
  padding-left: 16px;
}

.location-num {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.location-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--bg);
  font-variation-settings: 'opsz' 48;
}

.location-name em {
  font-style: italic;
  font-weight: 300;
  transition: color 0.3s;
}

.location-row:hover .location-name em {
  color: var(--terra);
}

.location-areas {
  font-size: 14px;
  color: rgba(242, 237, 227, 0.5);
  line-height: 1.5;
}

.location-status {
  display: inline-flex;
  padding: 5px 14px;
  border: 1px solid rgba(242, 237, 227, 0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(242, 237, 227, 0.6);
  white-space: nowrap;
}

.location-arrow {
  font-size: 18px;
  color: rgba(242, 237, 227, 0.4);
  transition: transform 0.3s, color 0.3s;
}

.location-row:hover .location-arrow {
  transform: translateX(4px);
  color: var(--terra);
}

/* ============================================
   PROCESS
   ============================================ */

.process {
  padding: var(--section-py) 0;
}

.process-header {
  margin-bottom: 80px;
  max-width: 540px;
}

.process-header .lead {
  margin-top: 24px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 1px;
  background: var(--line);
}

.process-step {
  text-align: center;
  padding: 0 20px;
}

.step-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  transition: background 0.35s, color 0.35s;
  position: relative;
  background: var(--bg);
  z-index: 1;
}

.process-step:hover .step-circle {
  background: var(--ink);
  color: var(--bg);
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 12px;
  font-variation-settings: 'opsz' 48;
}

.process-step p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-align: left;
}

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

.contact {
  padding: var(--section-py) 0;
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
}

.contact-watermark {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(120px, 18vw, 280px);
  color: var(--bg);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  font-variation-settings: 'opsz' 144;
  opacity: 0.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  position: relative;
  z-index: 1;
}

.contact-info .lead {
  margin-top: 24px;
  margin-bottom: 40px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  transition: color 0.25s;
}

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

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.25s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--terra);
}

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

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%238C7E68' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-submit {
  align-self: flex-start;
  margin-top: 8px;
}

.form-success {
  padding: 20px;
  background: rgba(184, 69, 31, 0.08);
  border-radius: 6px;
  font-size: 15px;
  color: var(--ink);
  display: none;
}

.form-success.visible { display: block; }

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

.footer {
  padding: 32px 0;
  background: var(--ink);
}

.footer-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-logo {
  height: 32px;
  width: auto;
}

.footer-copy {
  font-size: 12px;
  color: rgba(242, 237, 227, 0.4);
}

@media (max-width: 720px) {
  .footer-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ============================================
   RESPONSIVE — TABLET (1024px)
   ============================================ */

@media (max-width: 1024px) {
  :root {
    --section-py: 100px;
  }

  .hero-grid {
    gap: 40px;
  }

  .services-grid {
    gap: 20px;
  }

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

  .design-tile:nth-child(1) {
    grid-row: auto;
    min-height: 340px;
  }

  .location-row {
    grid-template-columns: 40px 1fr auto 32px;
  }

  .location-areas { display: none; }

}

/* ============================================
   RESPONSIVE — MOBILE (720px)
   ============================================ */

@media (max-width: 720px) {
  :root {
    --section-py: 80px;
    --gutter: 20px;
  }

  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(242, 237, 227, 0.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--line);
  }

  .hero {
    padding-top: 100px;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-image {
    aspect-ratio: 16/10;
    order: -1;
  }

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

  .service-card { min-height: 380px; }

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

  .design-tile:nth-child(1) {
    grid-row: auto;
    min-height: 300px;
  }

  .design-tile:nth-child(4) {
    grid-column: auto;
    min-height: 260px;
  }

  .location-row {
    grid-template-columns: 32px 1fr auto;
    gap: 12px;
    padding: 20px 0;
  }

  .location-arrow { display: none; }
  .location-status { font-size: 11px; padding: 4px 10px; }
  .location-name { font-size: 20px; }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .process-steps::before { display: none; }

  .process-step {
    text-align: left;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 20px;
    padding: 0;
  }

  .process-step .step-circle {
    margin: 0;
  }

  .process-step .step-text {
    padding-top: 4px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

}
