/* ================================================================
   Ryan's Website — premium dark studio look
   Fonts: Fraunces (display) + Space Grotesk (UI/body)
   ================================================================ */

:root {
  --bg: #0b0b10;
  --bg-alt: #101017;
  --surface: #15151d;
  --line: #24242e;
  --text: #eef0ee;
  --muted: #a2a6ad;
  --accent: #c6f24e;
  --accent-ink: #101400;
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1120px, 92vw); margin: 0 auto; }
.container-narrow { width: min(760px, 92vw); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Typography ---------- */

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; }

h1 { font-size: clamp(2.9rem, 8vw, 5.6rem); }
h2 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.45rem; line-height: 1.2; }

h1 em, .about-text em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-sub { color: var(--muted); max-width: 46ch; margin-bottom: 2.5rem; }
.section-sub a { color: var(--accent); }

a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(198, 242, 78, 0.35);
}

.btn-ghost { color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-outline { color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }

.btn-lg { padding: 1.05rem 2.4rem; font-size: 1.05rem; }

.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 16, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
}
.logo-mark { color: var(--accent); }

.nav-menu { display: flex; align-items: center; gap: 1.7rem; list-style: none; }
.nav-menu a { text-decoration: none; font-size: 0.95rem; font-weight: 500; color: var(--muted); transition: color 0.15s; }
.nav-menu a:hover { color: var(--text); }

.nav-cta {
  color: var(--accent-ink) !important;
  background: var(--accent);
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-weight: 700 !important;
}
.nav-cta:hover { box-shadow: 0 6px 20px rgba(198, 242, 78, 0.35); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(5rem, 12vh, 9rem) 0 clamp(4rem, 9vh, 7rem);
  overflow: hidden;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 52ch;
  margin: 1.6rem 0 2.4rem;
}

.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-glow {
  position: absolute;
  top: -20%; right: -12%;
  width: 620px; height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 242, 78, 0.14) 0%, transparent 62%);
  pointer-events: none;
}

/* ---------- Proof strip ---------- */

.proof-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 1.1rem 0;
}

.proof-row {
  display: flex;
  gap: 1.2rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

.proof-item { font-size: 0.88rem; color: var(--muted); display: flex; align-items: center; gap: 0.6rem; white-space: nowrap; }
.proof-item strong { color: var(--text); }

.dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(198, 242, 78, 0.9);
  animation: pulse 2.4s infinite;
}
@keyframes pulse { 50% { opacity: 0.45; } }

/* ---------- Sections ---------- */

.section { padding: clamp(4.5rem, 10vh, 7.5rem) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Package cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
  align-items: stretch;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem 1.8rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-6px); border-color: #3a3a48; }

.card-featured { border-color: var(--accent); position: relative; }
.card-featured:hover { border-color: var(--accent); }

.badge {
  position: absolute;
  top: -13px; left: 1.8rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
}

.price { margin: 0.6rem 0 1rem; color: var(--muted); }
.price strong { color: var(--text); font-size: 1.9rem; font-family: var(--font-display); font-weight: 600; }

.card-desc { color: var(--muted); font-size: 0.98rem; margin-bottom: 1.4rem; }

.ticks { list-style: none; margin-bottom: 1.6rem; }
.ticks li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
}
.ticks li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--accent);
  font-weight: 700;
}

.timeframe {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: auto 0 1.3rem;
}

.card .btn { text-align: center; }

/* ---------- Work / browser mockups ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
}

.browser {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.browser:hover { transform: translateY(-6px) scale(1.01); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }

.browser-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  background: #1b1b24;
  border-bottom: 1px solid var(--line);
}
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #34343f; }
.browser-bar span:first-child { background: #4a4a56; }
.browser-bar p {
  margin-left: auto; margin-right: auto;
  font-size: 0.7rem; color: var(--muted);
  background: #24242e;
  padding: 2px 14px;
  border-radius: 6px;
}

.browser figcaption {
  padding: 0.9rem 1.2rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.mock { aspect-ratio: 4 / 4.4; overflow: hidden; font-family: var(--font-body); }

/* Restaurant mock */
.mock-restaurant { background: #171310; color: #efe6d8; display: flex; flex-direction: column; }
.mr-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid #2c251d;
}
.mr-nav i { font-family: var(--font-display); font-style: italic; font-size: 0.85rem; }
.mr-nav u { display: flex; gap: 8px; text-decoration: none; }
.mr-nav b { width: 18px; height: 4px; border-radius: 2px; background: #3d3428; }
.mr-hero { padding: 26px 16px 18px; }
.mr-kicker { font-size: 0.55rem; letter-spacing: 0.25em; color: #c98d4b; margin-bottom: 8px; }
.mr-title { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; margin-bottom: 14px; }
.mr-btn {
  display: inline-block; font-size: 0.62rem; font-weight: 700;
  background: #c98d4b; color: #171310;
  padding: 6px 14px; border-radius: 999px;
}
.mr-menu { margin-top: auto; padding: 0 16px 18px; }
.mr-menu div {
  display: flex; justify-content: space-between;
  font-size: 0.66rem; color: #cbbfa8;
  padding: 7px 0; border-top: 1px dashed #33291d;
}

/* Trades mock */
.mock-trades { background: #f4f6fb; color: #101c3d; display: flex; flex-direction: column; }
.mt-nav {
  display: flex; justify-content: space-between; align-items: center;
  background: #101c3d; color: #fff; padding: 11px 14px;
}
.mt-nav i { font-style: normal; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.06em; }
.mt-call { font-size: 0.6rem; font-weight: 700; background: #ffd12e; color: #101c3d; padding: 4px 10px; border-radius: 4px; }
.mt-hero { padding: 22px 16px; }
.mt-title { font-weight: 700; font-size: 1.35rem; line-height: 1.12; margin-bottom: 8px; }
.mt-sub { font-size: 0.64rem; color: #4a5473; margin-bottom: 14px; }
.mt-btn {
  display: inline-block; font-size: 0.62rem; font-weight: 700;
  background: #101c3d; color: #fff; padding: 7px 14px; border-radius: 6px;
}
.mt-tiles { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 14px 16px; }
.mt-tiles div {
  background: #fff; border: 1px solid #dde3f0; border-radius: 8px;
  font-size: 0.56rem; font-weight: 700; text-align: center;
  padding: 12px 4px; line-height: 1.35;
}

/* Boutique mock */
.mock-boutique { background: #faf7f2; color: #262019; display: flex; flex-direction: column; }
.mb-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid #e8e1d5;
}
.mb-nav i { font-family: var(--font-display); font-style: italic; font-size: 0.85rem; }
.mb-nav u { display: flex; gap: 8px; text-decoration: none; }
.mb-nav b { width: 16px; height: 3px; border-radius: 2px; background: #d7cebd; }
.mb-hero { padding: 24px 16px 14px; display: flex; justify-content: space-between; align-items: baseline; }
.mb-title { font-family: var(--font-display); font-size: 1.15rem; }
.mb-link { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; }
.mb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 4px 16px 16px; margin-top: auto; }
.mb-img { aspect-ratio: 3/3.6; border-radius: 6px; margin-bottom: 6px; }
.mb-img-1 { background: linear-gradient(160deg, #d9c9ae, #b39b78); }
.mb-img-2 { background: linear-gradient(160deg, #c8beb1, #8f857a); }
.mb-img-3 { background: linear-gradient(160deg, #e3cfc4, #b98d7e); }
.mb-item p { font-size: 0.58rem; font-weight: 500; }
.mb-item span { font-size: 0.55rem; color: #8a8175; }

/* ---------- Process steps ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
  counter-reset: step;
}

.steps li {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 500;
  font-style: italic;
  color: var(--accent);
  display: block;
  margin-bottom: 0.8rem;
}

.steps h3 { margin-bottom: 0.7rem; }
.steps p { color: var(--muted); font-size: 0.98rem; }

/* ---------- About ---------- */

.about-row {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3.5rem;
  align-items: center;
}

.monogram {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse 90% 70% at 20% 15%, rgba(198, 242, 78, 0.16), transparent 60%),
    linear-gradient(160deg, #1a1a23, #101016);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.6rem 1.8rem;
  overflow: hidden;
  position: relative;
}
.monogram::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(198, 242, 78, 0.25);
  border-radius: calc(var(--radius) - 8px);
  pointer-events: none;
}
.monogram-letter {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(7rem, 22vw, 11rem);
  line-height: 0.9;
  color: var(--accent);
  margin-top: auto;
  margin-bottom: auto;
}
.monogram-caption {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}
.about-img { border-radius: var(--radius); }

.about-text p { margin-bottom: 1.1rem; }
.about-text p:not(.eyebrow) { color: var(--muted); }
.about-text h2 { margin-bottom: 1.4rem; }

/* ---------- FAQ ---------- */

.faq-list { margin-top: 2.6rem; }

.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list details:first-child { border-top: 1px solid var(--line); }

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 1.3rem 2.4rem 1.3rem 0;
  position: relative;
  transition: color 0.15s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute; right: 0.2rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list summary:hover { color: var(--accent); }
.faq-list details p { color: var(--muted); padding: 0 0 1.4rem; max-width: 62ch; }

/* ---------- Contact ---------- */

.section-contact {
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(198, 242, 78, 0.07), transparent),
    var(--bg);
}

.contact-form { margin-top: 2.6rem; }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field-wide { grid-column: 1 / -1; }

.field label { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  transition: border-color 0.15s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field input::placeholder, .field textarea::placeholder { color: #62666e; }
.field select:required:invalid { color: #62666e; }

.hidden-field { display: none; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 3.5rem 0 0;
}

.footer-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin-bottom: 0.5rem; }
.footer-tag { color: var(--muted); font-size: 0.92rem; max-width: 30ch; }

.footer-head {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.8rem;
}

.footer-row a { color: var(--text); text-decoration: none; font-size: 0.95rem; }
.footer-row a:hover { color: var(--accent); }
.footer-row p { margin-bottom: 0.45rem; }

.footer-legal {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Policies page ---------- */

.policy-page { padding: clamp(4rem, 9vh, 6.5rem) 0 5rem; }
.policy-page h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: 0.8rem; }
.policy-updated { color: var(--muted); font-size: 0.92rem; margin-bottom: 2.2rem; }

.policy-toc {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
  margin-bottom: 3.5rem;
}
.policy-toc a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  border: 1.5px solid var(--line);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  transition: border-color 0.15s;
}
.policy-toc a:hover { border-color: var(--accent); }

.policy-section { margin-bottom: 3.2rem; scroll-margin-top: 90px; }
.policy-section h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.policy-section p { color: var(--muted); margin-bottom: 1rem; }
.policy-section ul { list-style: none; }
.policy-section li {
  color: var(--muted);
  padding: 1rem 0 1rem 1.6rem;
  border-left: 2px solid var(--line);
  margin-bottom: 0.6rem;
}
.policy-section li strong { color: var(--text); }
.policy-section a { color: var(--accent); }

/* ---------- Scroll reveal ---------- */

/* Reveal styles only apply when JS is running (html.js) so content
   is never hidden for crawlers or users without JavaScript. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .cards, .work-grid, .steps { grid-template-columns: 1fr; }
  .about-row { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { max-width: 320px; }
  .footer-row { grid-template-columns: 1fr; gap: 1.8rem; }
  .mock { aspect-ratio: 4 / 3.4; }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    background: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
  }
  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    display: block;
    width: 18px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-toggle-bar { position: relative; }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: rotate(-90deg) translateX(-6px); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { opacity: 0; }

  .nav-menu {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 4vw 1.2rem;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu a { display: block; padding: 0.8rem 0; font-size: 1.05rem; }
  .nav-menu .nav-cta { display: inline-block; margin-top: 0.6rem; padding: 0.7rem 1.4rem; }

  .form-grid { grid-template-columns: 1fr; }
  .proof-row { flex-direction: column; gap: 0.7rem; }
  .proof-item { white-space: normal; }
  .hero-ctas .btn { width: 100%; text-align: center; }
}
