/* ==========================================================================
   Wellington Visuals — Design Tokens
   Edit colors/fonts here to re-theme the whole site.
   ========================================================================== */

:root {
  /* Brand colors */
  --gold: #D4A574;
  --gold-soft: #E9CDA3;
  --ocean: #1A3A52;
  --ocean-light: #4A7A9B;
  --sunset: #E8825F;
  --charcoal: #2B2B2B;
  --cream: #F5F3EF;

  /* Surface system (dark) */
  --bg: #0A0D10;
  --bg-alt: #10151B;
  --surface: rgba(245, 243, 239, 0.045);
  --surface-strong: rgba(245, 243, 239, 0.08);
  --border: rgba(245, 243, 239, 0.12);
  --border-strong: rgba(245, 243, 239, 0.2);

  /* Text */
  --text: var(--cream);
  --text-muted: #A7B0B8;
  --text-faint: #6D7680;

  /* Gradients */
  --gradient-accent: linear-gradient(135deg, var(--gold) 0%, var(--sunset) 100%);
  --gradient-deep: radial-gradient(circle at 30% 20%, rgba(74, 122, 155, 0.35), transparent 60%);

  /* Typography */
  --font-display: 'Space Grotesk', 'Arial Narrow', sans-serif;
  --font-body: 'Outfit', 'Segoe UI', sans-serif;

  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 200ms;
  --dur-med: 400ms;
  --dur-slow: 800ms;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --container-w: 1200px;
}

/* ==========================================================================
   Reset
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul, ol { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 768px) {
  .container { padding-inline: 2.5rem; }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--gold);
  color: var(--bg);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 1000;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ==========================================================================
   Custom cursor + grain (desktop, motion-enabled only — see main.js)
   ========================================================================== */

.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  border-radius: 50%;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity var(--dur-fast) ease;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border-strong);
  transition: opacity var(--dur-fast) ease, width var(--dur-fast) var(--ease-out), height var(--dur-fast) var(--ease-out), border-color var(--dur-fast) ease;
}
body.cursor-active .cursor-dot,
body.cursor-active .cursor-ring { opacity: 1; }
body.cursor-active { cursor: none; }
body.cursor-active a, body.cursor-active button { cursor: none; }
.cursor-ring.cursor-hover {
  width: 54px;
  height: 54px;
  border-color: var(--gold);
}

.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Glass utility
   ========================================================================== */

.glass {
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border);
}

/* ==========================================================================
   Header / Nav
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.5rem;
  transition: padding var(--dur-med) var(--ease-out);
}
.site-header.scrolled { padding: 0.6rem 1.5rem; }

.nav {
  max-width: var(--container-w);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-lg);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  padding-left: 0.5rem;
}
.nav-logo-dot { color: var(--gold); }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-menu a:not(.nav-cta) {
  color: var(--text-muted);
  transition: color var(--dur-fast) ease;
  position: relative;
}
.nav-menu a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--dur-fast) var(--ease-out);
}
.nav-menu a:not(.nav-cta):hover { color: var(--text); }
.nav-menu a:not(.nav-cta):hover::after { width: 100%; }

.nav-cta {
  background: var(--gradient-accent);
  color: var(--bg);
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) ease;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 165, 116, 0.35);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin-inline: auto;
  transition: transform var(--dur-fast) var(--ease-out), opacity var(--dur-fast) ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 767px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 0.25rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out), visibility var(--dur-med);
  }
  .nav-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-menu a:not(.nav-cta) { padding: 0.75rem; }
  .nav-cta { margin-top: 0.5rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  will-change: transform;
}
.hero-glow-a {
  width: 40vw;
  height: 40vw;
  top: -10%;
  right: -10%;
  background: radial-gradient(circle, rgba(232, 130, 95, 0.28), transparent 70%);
}
.hero-glow-b {
  width: 35vw;
  height: 35vw;
  bottom: -15%;
  left: -10%;
  background: radial-gradient(circle, rgba(74, 122, 155, 0.28), transparent 70%);
}

.hero-inner { position: relative; z-index: 2; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-size: clamp(2.75rem, 9vw, 7rem);
  line-height: 0.98;
}

.hero-title-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  max-width: 42ch;
  margin-top: 2rem;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 999px;
  transform: translateX(-50%);
  animation: scrollcue 1.8s ease infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 22px; }
  100% { opacity: 0; top: 22px; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) ease, background var(--dur-fast) ease, border-color var(--dur-fast) ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--bg);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(212, 165, 116, 0.35);
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--gold);
  background: rgba(212, 165, 116, 0.08);
  transform: translateY(-3px);
}

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

/* ==========================================================================
   Section shells
   ========================================================================== */

.section {
  padding: var(--space-2xl) 0;
  position: relative;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015) 20%, rgba(255,255,255,0.015) 80%, transparent);
}

.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin-top: 0.5rem;
}

.section-head.center {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
}

/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-2xl);
    align-items: start;
  }
}

.about-body p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 60ch;
}
.about-body p + p { margin-top: 1.25rem; }
.about-body em { color: var(--text); font-style: normal; font-weight: 500; }

.about-stats {
  display: flex;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-faint);
  margin-top: 0.25rem;
}

/* ==========================================================================
   Cards / Services
   ========================================================================== */

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.card {
  padding: 2rem;
  border-radius: var(--radius-md);
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med) ease, background var(--dur-med) ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-strong);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(212, 165, 116, 0.1);
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.card-icon svg { width: 24px; height: 24px; }

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* ==========================================================================
   Selected Work
   ========================================================================== */

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .work-grid { grid-template-columns: repeat(3, 1fr); }
}

.work-card {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--dur-med) var(--ease-out), border-color var(--dur-med) ease;
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.work-card-visual {
  height: 180px;
  position: relative;
}
.work-card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 30% 120%, rgba(0,0,0,0.35), transparent 60%);
}
.work-visual-1 { background: linear-gradient(135deg, #1A3A52, #4A7A9B); }
.work-visual-2 { background: linear-gradient(135deg, #2B2B2B, #1A3A52); }
.work-visual-3 { background: linear-gradient(135deg, #4A7A9B, #E9CDA3); }
.work-visual-4 { background: linear-gradient(135deg, #E8825F, #D4A574); }
.work-visual-5 { background: linear-gradient(135deg, #D4A574, #1A3A52); }

.work-card-body { padding: 1.5rem; }
.work-card-body-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  min-height: 244px;
  text-align: center;
  align-items: center;
}

.work-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.work-meta { color: var(--text-faint); font-size: 0.85rem; margin-bottom: 1rem; }

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.9rem;
}
.work-link svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out); }
.work-card:hover .work-link svg { transform: translate(2px, -2px); }

.work-card-more {
  background: var(--gradient-deep), var(--surface);
  border-style: dashed;
}

/* ==========================================================================
   Why work with me
   ========================================================================== */

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 3rem; }
}
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}

.why-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
}
.why-item h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.why-item p { color: var(--text-muted); font-size: 0.95rem; }

/* ==========================================================================
   Process
   ========================================================================== */

.process-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 780px;
  margin-inline: auto;
}

.process-item {
  display: flex;
  gap: 1.75rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.process-item:first-child { padding-top: 0; }
.process-item:last-child { border-bottom: none; }

.process-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-faint);
  flex-shrink: 0;
  width: 3ch;
}

.process-item h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.process-item p { color: var(--text-muted); font-size: 0.95rem; }

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .testimonial-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
  padding: 2rem;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
}

.quote-mark {
  width: 32px;
  height: 24px;
  fill: var(--gold);
  opacity: 0.6;
  margin-bottom: 1rem;
}

.testimonial-card blockquote p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
}

.testimonial-card figcaption {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.testimonial-name { font-weight: 600; }
.testimonial-role { font-size: 0.85rem; color: var(--text-faint); }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-container { max-width: 760px; }

.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-item:first-child { border-top: 1px solid var(--border); }

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  padding: 1.5rem 0.25rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.accordion-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold);
  transition: transform var(--dur-med) var(--ease-out);
}
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(180deg); }

.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows var(--dur-med) var(--ease-out);
}
.accordion-panel > p {
  min-height: 0;
  overflow: hidden;
  color: var(--text-muted);
  padding-right: 2rem;
  padding-bottom: 0;
  transition: padding-bottom var(--dur-med) var(--ease-out);
}
.accordion-item.open .accordion-panel {
  grid-template-rows: 1fr;
}
.accordion-item.open .accordion-panel > p {
  padding-bottom: 1.5rem;
}

/* ==========================================================================
   CTA
   ========================================================================== */

.cta-section {
  text-align: center;
  position: relative;
  padding: var(--space-3xl) 0;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background: var(--gradient-deep);
  pointer-events: none;
}

.cta-inner { position: relative; z-index: 2; }

.cta-inner h2 {
  font-size: clamp(2.25rem, 6vw, 4rem);
  margin-top: 0.75rem;
}

.cta-sub {
  color: var(--text-muted);
  max-width: 46ch;
  margin: 1.5rem auto 2.5rem;
  font-size: 1.05rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.75rem;
  margin-top: 3rem;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--dur-fast) ease;
}
.contact-links a:hover { color: var(--gold); }
.contact-links svg { width: 18px; height: 18px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.footer-email { color: var(--text-muted); }
.footer-email:hover { color: var(--gold); }

@media (min-width: 700px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ==========================================================================
   Reveal-on-scroll (JS toggles .in-view)
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ==========================================================================
   Touch-device overrides
   ========================================================================== */

@media (hover: none) and (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
  body.cursor-active { cursor: auto; }
}
