/* ============================================================
   Crane & Crown — Design System & Custom Stylesheet
   ============================================================ */

:root {
  /* Color Palette - HSL tailored for consistency & premium feel */
  --ink: hsl(210, 16%, 13%);          /* Crane Slate */
  --paper: hsl(45, 20%, 96%);         /* Warm Organic Ivory */
  --gold: hsl(45, 68%, 46%);          /* Crest Gold */
  --gold-hover: hsl(45, 68%, 52%);    /* Slightly lighter Gold */
  --crimson: hsl(6, 63%, 41%);        /* Wattle Crimson (sparingly used) */
  --feather: hsl(160, 5%, 54%);       /* Muted Grey-Sage */
  --white: hsl(0, 0%, 100%);          /* Crisp white for cards */
  --card-bg: hsl(210, 12%, 18%);      /* Dark card background */
  --input-bg: hsl(210, 12%, 21%);     /* Input background for dark form */
  --input-border: hsl(210, 10%, 28%); /* Input border */
  
  /* Borders and Lines */
  --line-light: rgba(32, 38, 43, 0.08);
  --line-dark: rgba(244, 243, 239, 0.08);
  
  /* Layout constraints */
  --max-w: 1100px;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}

body {
  font-family: 'Karla', system-ui, -apple-system, sans-serif;
  background-color: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'Marcellus', Georgia, serif;
  font-weight: 400;
  line-height: 1.25;
  color: var(--ink);
}

strong {
  font-weight: 600;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Scroll Animations Class ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-smooth);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Header Navigation ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 243, 239, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-light);
  transition: var(--transition-fast);
}

nav.scrolled {
  background: rgba(244, 243, 239, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand svg {
  flex: none;
}

.brand span {
  font-family: 'Marcellus', serif;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  font-weight: 400;
}

.nav-cta {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 12px 24px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.nav-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--ink);
  z-index: -1;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-cta:hover {
  color: var(--paper);
}

.nav-cta:hover::before {
  transform: translateY(0);
}

/* ---------- Hero Section ---------- */
header.hero-wrapper {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-light);
  background: radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.06) 0%, rgba(244, 243, 239, 0) 60%);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  padding: 96px 0 112px;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--feather);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  font-weight: 500;
}

.eyebrow::before {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero h1 em {
  font-style: normal;
  color: var(--crimson);
  position: relative;
  display: inline-block;
}

.hero p.lede {
  font-size: 1.15rem;
  max-width: 36em;
  color: #3b4247;
  margin-bottom: 40px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  border-radius: 4px;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 16px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.btn-solid {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}

.btn-solid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0f1315;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-solid:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-ghost {
  border: 1px solid var(--ink);
  color: var(--ink);
}

.btn-ghost::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--ink);
  z-index: -1;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-ghost:hover {
  color: var(--paper);
}

.btn-ghost:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.crane-figure {
  display: flex;
  justify-content: center;
  position: relative;
}

.crane-figure svg {
  width: 100%;
  max-width: 360px;
  height: auto;
}

/* Subtle SVG Animation */
@keyframes crestSway {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(1.5deg) translateY(-1px); }
}

.crane-crest-left, .crane-crest-right {
  transform-origin: 150px 100px;
  animation: crestSway 6s ease-in-out infinite;
}

.crane-crest-right {
  animation-delay: 3s;
}

/* ---------- Pairing statement band ---------- */
.band {
  background: var(--ink);
  color: var(--paper);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}

.band::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 80%, rgba(201, 162, 39, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.band .wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
}

.band h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  max-width: 24em;
  color: var(--paper);
}

.band h2 span {
  color: var(--gold);
}

.band p {
  color: #b0b7bb;
  max-width: 44em;
  margin-top: 14px;
  font-weight: 300;
  font-size: 1.05rem;
}

.band-mark {
  width: 72px;
  height: 72px;
  flex: none;
}

/* ---------- General Sections ---------- */
section {
  padding: 104px 0;
  border-bottom: 1px solid var(--line-light);
}

.sec-head {
  margin-bottom: 56px;
  max-width: 42em;
}

.sec-head .eyebrow {
  margin-bottom: 18px;
}

.sec-head h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
}

.sec-head p {
  margin-top: 16px;
  color: #3b4247;
  font-size: 1.08rem;
  font-weight: 300;
}

/* ---------- Duo Section (What we are / are not) ---------- */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.duo-card {
  padding: 48px;
  border-radius: 8px;
  transition: var(--transition-smooth);
}

.duo-card.are {
  background: var(--white);
  border: 1px solid var(--line-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.015);
}

.duo-card.are:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

.duo-card.arenot {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid rgba(255, 255, 255, 0.02);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.duo-card.arenot:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.duo-card h3 {
  font-size: 1.4rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.duo-card.arenot h3 {
  color: var(--paper);
}

.duo-card.are h3::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
}

.duo-card.arenot h3::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--crimson);
  border-radius: 50%;
}

.duo-card p {
  margin-bottom: 18px;
  font-weight: 300;
}

.duo-card.arenot p {
  color: #b8bfc2;
}

.duo-card p:last-child {
  margin-bottom: 0;
}

/* ---------- Vetting Steps Section ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step {
  background: var(--white);
  padding: 40px 32px;
  border-radius: 6px;
  border: 1px solid var(--line-light);
  transition: var(--transition-smooth);
  position: relative;
}

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
}

.step:hover::before {
  transform: scaleX(1);
}

.step .glyph {
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  color: var(--gold);
  transition: transform 0.3s ease;
}

.step:hover .glyph {
  transform: scale(1.1);
}

.step h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  font-weight: 400;
}

.step p {
  font-size: 0.96rem;
  color: #3b4247;
  font-weight: 300;
  line-height: 1.6;
}

/* ---------- Who This Is For Section ---------- */
.sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.side {
  background: var(--white);
  padding: 48px;
  border-radius: 8px;
  border: 1px solid var(--line-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
  transition: var(--transition-smooth);
  border-top: 4px solid var(--gold);
}

.side:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.025);
}

.side.ug {
  border-top-color: var(--crimson);
}

.side.wide {
  grid-column: 1 / -1;
  border-top-color: var(--feather);
  background: radial-gradient(circle at 90% 90%, rgba(140, 148, 145, 0.04) 0%, transparent 60%), var(--white);
}

.side .eyebrow {
  margin-bottom: 16px;
}

.side h3 {
  font-size: 1.45rem;
  margin-bottom: 20px;
}

.side p {
  font-weight: 300;
  margin-bottom: 16px;
  color: #333a40;
}

.side p:last-child {
  margin-bottom: 0;
}

/* ---------- Plain Truths Section ---------- */
.truths {
  max-width: 48em;
  margin-top: 24px;
}

.truth {
  display: flex;
  gap: 28px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line-light);
  transition: transform 0.3s ease;
}

.truth:hover {
  transform: translateX(8px);
}

.truth:last-child {
  border-bottom: none;
}

.truth .tick {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 4px;
  color: var(--crimson);
}

.truth p {
  font-weight: 300;
  font-size: 1.05rem;
}

/* ---------- Register Form Section ---------- */
#register {
  background: var(--ink);
  color: var(--paper);
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

#register::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 90% 10%, rgba(201, 162, 39, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

#register .sec-head h2 {
  color: var(--paper);
}

#register .sec-head p {
  color: #b0b7bb;
}

#register .eyebrow {
  color: var(--feather);
}

form {
  max-width: 680px;
  position: relative;
}

.field {
  margin-bottom: 24px;
}

label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: #b8bfc2;
  font-weight: 500;
}

input[type=text],
input[type=email],
input[type=tel],
select,
textarea {
  width: 100%;
  padding: 16px 20px;
  font-family: 'Karla', sans-serif;
  font-size: 1rem;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 4px;
  color: var(--paper);
  transition: var(--transition-fast);
}

/* Focus and hover states on inputs */
input[type=text]:hover,
input[type=email]:hover,
input[type=tel]:hover,
select:hover,
textarea:hover {
  border-color: rgba(201, 162, 39, 0.4);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.check {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
  cursor: pointer;
  user-select: none;
}

.check input {
  margin-top: 5px;
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  flex: none;
  cursor: pointer;
}

.check span {
  font-size: 0.94rem;
  color: #b0b7bb;
  font-weight: 300;
  line-height: 1.5;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

.submit-btn {
  background: var(--gold);
  color: var(--ink);
  border: none;
  cursor: pointer;
  font-family: 'Karla', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 18px 44px;
  border-radius: 4px;
  transition: var(--transition-fast);
  box-shadow: 0 4px 15px rgba(201, 162, 39, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.submit-btn:hover {
  background: var(--gold-hover);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.3);
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.form-note {
  font-size: 0.86rem;
  color: var(--feather);
  margin-top: 24px;
  max-width: 44em;
  font-weight: 300;
  line-height: 1.6;
}

/* Success notification card */
.success {
  display: none;
  background: hsl(136, 17%, 16%);
  border: 1px solid var(--gold);
  border-radius: 6px;
  padding: 36px 40px;
  max-width: 680px;
  animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.success h3 {
  color: var(--gold);
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.success p {
  color: #b0b7bb;
  font-weight: 300;
  line-height: 1.6;
}

.error-msg {
  display: none;
  color: #e28a7c;
  margin-top: 16px;
  font-size: 0.95rem;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ---------- Footer ---------- */
footer {
  background: #111417;
  color: #727a80;
  padding: 56px 0;
  font-size: 0.88rem;
  font-weight: 300;
}

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

footer .col {
  max-width: 420px;
}

footer p {
  margin-bottom: 12px;
}

footer p:last-child {
  margin-bottom: 0;
}

footer a {
  color: #a0a8ad;
  border-bottom: 1px dotted rgba(160, 168, 173, 0.4);
}

footer a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 64px 0 80px;
    gap: 48px;
    text-align: center;
  }
  
  .eyebrow {
    justify-content: center;
  }
  
  .eyebrow::before {
    display: none;
  }
  
  .hero p.lede {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .crane-figure {
    order: -1;
  }
  
  .crane-figure svg {
    max-width: 240px;
  }
  
  .duo {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .duo-card {
    padding: 36px;
  }
  
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .sides {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .side {
    padding: 36px;
  }
  
  .band .wrap {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  
  .band-mark {
    margin: 0 auto;
  }
  
  section {
    padding: 80px 0;
  }
}

@media (max-width: 580px) {
  .steps {
    grid-template-columns: 1fr;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .wrap {
    padding: 0 24px;
  }
  
  .nav-inner {
    padding: 16px 24px;
  }
  
  .submit-btn {
    width: 100%;
    justify-content: center;
  }
  
  footer .wrap {
    flex-direction: column;
    gap: 32px;
  }
}
