/*
Theme Name: Carotank Road
Theme URI: https://carotankroad.com
Author: Carotank Road Ventures
Description: Carotank Road Ventures. Edit homepage content via Pages in the WordPress admin.
Version: 6.0
License: Proprietary
Text Domain: carotankroad
*/

/* ─── RESET ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── TOKENS ──────────────────────────────────────────────────────────────── */
:root {
  --xdnavy : #0a1220;
  --dnavy  : #0f1a2e;
  --navy   : #1a2744;
  --rule   : #2e3d5e;
  --cyan   : #28c3eb;
  --cyan-xd: rgba(40,195,235,.06);
  --white  : #f5f4f0;
  --grey   : #8a9099;
}

/* ─── BASE ────────────────────────────────────────────────────────────────── */
body {
  background: var(--xdnavy);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Film-grain texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .5;
  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='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
}

/* ─── NAV ─────────────────────────────────────────────────────────────────── */
.site-nav {
  position: fixed;
  inset-block-start: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 64px;
  background: linear-gradient(to bottom, rgba(10,18,32,.97) 0%, transparent 100%);
  transition: padding .3s, background .3s, border-color .3s;
}
.site-nav.is-scrolled {
  padding: 18px 64px;
  background: rgba(10,18,32,.98);
  border-bottom: 1px solid var(--rule);
}
.site-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}
.site-logo em { font-style: normal; color: var(--cyan); }

.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-link {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  transition: color .25s;
}
.nav-link:hover { color: var(--white); }
.nav-link--cta {
  color: var(--xdnavy);
  background: var(--cyan);
  padding: 9px 20px;
  border-radius: 1px;
  transition: opacity .2s;
}
.nav-link--cta:hover { color: var(--xdnavy); opacity: .85; }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 201;
}
.nav-toggle span { display: block; width: 22px; height: 1px; background: var(--white); }
.nav-close {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  align-self: flex-end;
  margin-bottom: 24px;
}

/* ─── PAGE WRAPPER ────────────────────────────────────────────────────────── */
.page-wrap { /* intentionally empty — sections set their own bg */ }

/* ─── HERO ────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px 64px 96px;
  position: relative;
  overflow: hidden;
  background: var(--xdnavy);
}

/* Conic compass decoration */
.hero::after {
  content: '';
  position: absolute;
  right: -6%; top: 50%;
  transform: translateY(-50%);
  width: 680px; height: 680px;
  border-radius: 50%;
  border: 1px solid rgba(40,195,235,.06);
  background:
    radial-gradient(circle, var(--cyan-xd) 0%, transparent 60%),
    conic-gradient(from 0deg,
      transparent 44deg, rgba(40,195,235,.04) 45deg, transparent 46deg,
      transparent 89deg, rgba(40,195,235,.04) 90deg, transparent 91deg,
      transparent 134deg,rgba(40,195,235,.04) 135deg,transparent 136deg,
      transparent 179deg,rgba(40,195,235,.04) 180deg,transparent 181deg,
      transparent 224deg,rgba(40,195,235,.04) 225deg,transparent 226deg,
      transparent 269deg,rgba(40,195,235,.04) 270deg,transparent 271deg,
      transparent 314deg,rgba(40,195,235,.04) 315deg,transparent 316deg);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.hero-eyebrow::before { content: ''; display: block; width: 28px; height: 1px; background: var(--cyan); }

.hero-headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(46px, 6.5vw, 86px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--white);
  max-width: 820px;
  position: relative;
  z-index: 1;
}
.hero-headline em { font-style: italic; color: var(--cyan); }

.hero-body {
  margin-top: 28px;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: .06em;
  line-height: 1.9;
  color: var(--grey);
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.hero-rule { width: 44px; height: 1px; background: var(--cyan); margin-top: 40px; position: relative; z-index: 1; }

.hero-stats {
  margin-top: 32px;
  display: flex;
  gap: 56px;
  position: relative;
  z-index: 1;
}
.stat-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 300;
  color: var(--white);
  line-height: 1;
  letter-spacing: -.01em;
}
.stat-value em { font-style: italic; color: var(--cyan); }
.stat-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 6px;
}

.hero-scroll {
  position: absolute;
  bottom: 36px; right: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 1;
}
.hero-scroll span {
  font-size: 9px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--grey);
  writing-mode: vertical-rl;
}
.hero-scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scroll-pulse 2.2s ease-in-out infinite;
}
@keyframes scroll-pulse { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* ─── SECTIONS ────────────────────────────────────────────────────────────── */
.section { padding: 112px 64px; }
.section--dark  { background: var(--dnavy); }
.section--deep  { background: var(--xdnavy); }
.section--mid   { background: var(--navy); }
.section--ruled { border-top: 1px solid var(--rule); }

.section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::before { content: ''; display: block; width: 28px; height: 1px; background: var(--cyan); flex-shrink: 0; }

.section-headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(30px, 3.8vw, 52px);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--white);
  margin-bottom: 24px;
}
.section-headline em { font-style: italic; color: var(--cyan); }

.text-lg {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--white);
  letter-spacing: .03em;
  margin-bottom: 18px;
}
.text-sm {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--grey);
  letter-spacing: .04em;
  margin-bottom: 16px;
}

.pullquote {
  border-left: 1px solid var(--cyan);
  padding-left: 28px;
  margin: 36px 0;
}
.pullquote p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--white);
  letter-spacing: .01em;
}

/* ─── TWO-COL LAYOUT ──────────────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* ─── STEPS ───────────────────────────────────────────────────────────────── */
.steps { border: 1px solid var(--rule); }
.step {
  padding: 28px 32px;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: background .3s;
}
.step:last-child { border-bottom: none; }
.step:hover { background: var(--cyan-xd); }
.step::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--cyan);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .35s;
}
.step:hover::before { transform: scaleY(1); }
.step-number {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}
.step-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 8px;
}
.step-body {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--grey);
  letter-spacing: .03em;
}

/* ─── VENTURE CARDS ───────────────────────────────────────────────────────── */
.ventures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 48px; }

.venture-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--rule);
  padding: 40px 36px;
  position: relative;
  transition: background .3s, border-color .3s;
  text-decoration: none;
  display: block;
}
.venture-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 1px;
  background: var(--cyan);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .4s;
}
.venture-card:hover { background: var(--cyan-xd); border-color: rgba(40,195,235,.18); }
.venture-card:hover::before { transform: scaleY(1); }

.venture-card--locked { cursor: default; }
.venture-card--locked:hover { background: rgba(255,255,255,.03); border-color: var(--rule); }
.venture-card--locked::before { display: none; }

.venture-sector {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.venture-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 300;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -.01em;
  margin-bottom: 4px;
}
.venture-name em { font-style: normal; color: var(--cyan); }
.venture-tagline {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 18px;
}
.venture-desc {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--grey);
  letter-spacing: .03em;
  margin-bottom: 20px;
}
.venture-status-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}
.venture-status-live::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse { 0%,100% { opacity: .5; } 50% { opacity: 1; } }

.venture-status-pipe { font-size: 9px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); }

.venture-link {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.venture-link .arrow { transition: transform .2s; }
.venture-card:hover .arrow { transform: translateX(4px); }

/* ─── ENGAGEMENTS ─────────────────────────────────────────────────────────── */
.engagement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 48px; }
.engagement-panel { border: 1px solid var(--rule); padding: 48px 40px; }

.engagement-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.engagement-row:last-child { border-bottom: none; }
.engagement-name { font-size: 14px; font-weight: 300; color: var(--white); letter-spacing: .02em; }
.engagement-sector { font-size: 9px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--grey); margin-top: 3px; }
.engagement-dot { width: 4px; height: 4px; background: var(--cyan); border-radius: 50%; flex-shrink: 0; }

.country-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
}
.country-row:last-child { border-bottom: none; }
.country-bar { width: 1px; height: 26px; background: var(--cyan); flex-shrink: 0; }
.country-name { font-size: 13px; font-weight: 300; color: var(--white); letter-spacing: .04em; }

/* ─── CONTACT ─────────────────────────────────────────────────────────────── */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--rule);
}
.contact-left {
  padding: 96px 64px;
  border-right: 1px solid var(--rule);
  background: var(--xdnavy);
}
.contact-right { padding: 96px 64px; background: var(--dnavy); }

.contact-headline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -.01em;
  color: var(--white);
  margin-bottom: 18px;
}
.contact-headline em { font-style: italic; color: var(--cyan); }
.contact-note { font-size: 13px; font-weight: 300; color: var(--grey); line-height: 1.85; letter-spacing: .04em; max-width: 320px; }

.contact-links { margin-top: 44px; }
.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: padding-left .3s;
}
.contact-link:first-child { border-top: 1px solid var(--rule); }
.contact-link:hover { padding-left: 8px; }
.contact-link-address { font-size: 13px; font-weight: 300; color: var(--white); letter-spacing: .02em; }
.contact-link-type { font-size: 9px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); margin-top: 3px; }
.contact-link-arrow { color: var(--cyan); font-size: 15px; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--grey);
}
.form-field input,
.form-field textarea,
.form-field select {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--rule);
  border-radius: 1px;
  padding: 11px 13px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 300;
  color: var(--white);
  outline: none;
  -webkit-appearance: none;
  transition: border-color .2s, background .2s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus { border-color: var(--cyan); background: var(--cyan-xd); }
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(138,144,153,.4); }
.form-field select option { background: var(--navy); color: var(--white); }
.form-field textarea { resize: vertical; min-height: 96px; }
.form-note { font-size: 11px; font-weight: 300; color: var(--grey); line-height: 1.7; letter-spacing: .03em; }
.form-submit {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--xdnavy);
  background: var(--cyan);
  border: none;
  padding: 12px 24px;
  border-radius: 1px;
  cursor: pointer;
  transition: opacity .2s;
}
.form-submit:hover { opacity: .85; }

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--xdnavy);
  border-top: 1px solid var(--rule);
  padding: 32px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(245,244,240,.35);
  text-decoration: none;
}
.footer-logo em { font-style: normal; color: var(--cyan); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey);
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 10px; letter-spacing: .06em; color: rgba(138,144,153,.3); }

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .site-nav, .site-nav.is-scrolled { padding: 18px 24px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--xdnavy);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    z-index: 202;
    gap: 0;
  }
  .nav-links.is-open { display: flex; }
  .nav-close { display: block; }
  .nav-link {
    padding: 16px 0;
    border-bottom: 1px solid var(--rule);
    width: 100%;
    font-size: 13px;
    color: var(--white);
  }
  .nav-link--cta { margin-top: 24px; }

  .hero { padding: 110px 24px 72px; }
  .hero::after { display: none; }
  .hero-scroll { right: 24px; }
  .hero-stats { flex-wrap: wrap; gap: 28px; }

  .section { padding: 80px 24px; }
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .ventures { grid-template-columns: 1fr; }
  .engagement-grid { grid-template-columns: 1fr; }
  .contact-split { grid-template-columns: 1fr; }
  .contact-left { border-right: none; border-bottom: 1px solid var(--rule); padding: 64px 24px; }
  .contact-right { padding: 64px 24px; }
  .form-row { grid-template-columns: 1fr; }

  .site-footer { flex-direction: column; gap: 16px; text-align: center; padding: 28px 24px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}
@media (max-width: 480px) {
  .hero-headline { font-size: 42px; }
  .hero-stats { gap: 20px; }
}
