/* =============================================================
   NAPKIN — style.css
   Dark · Elegant · Minimal
   ============================================================= */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --bg:        #0C0C0C;
  --surface:   #141414;
  --surface-2: #1C1C1C;
  --gold:      #C4983A;
  --gold-dim:  #8A6A25;
  --text:      #F0EDE6;
  --muted:     #7A7570;
  --border:    #242424;
  --white:     #FFFFFF;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --max-w:    1100px;
  --section:  clamp(5rem, 10vw, 9rem);
  --radius:   6px;
  --radius-lg:14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:      220ms;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--font-serif); line-height: 1.15; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 700; color: var(--text); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem);   font-weight: 600; color: var(--text); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem);font-weight: 600; color: var(--text); }
p  { max-width: 60ch; color: var(--muted); line-height: 1.75; }
em { font-style: italic; color: var(--gold); }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.section { padding-block: var(--section); }

.section-header {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.section-header h2 { margin-bottom: 0; }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  max-width: none;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8em 1.8em;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: background var(--dur) var(--ease-out),
              color var(--dur) var(--ease-out),
              border-color var(--dur) var(--ease-out),
              transform var(--dur) var(--ease-out);
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.btn-primary { background: var(--gold); color: #0C0C0C; font-weight: 600; }
.btn-primary:hover { background: #D4A840; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-full { width: 100%; justify-content: center; padding-block: 1em; }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding-block: 1.25rem;
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur), padding var(--dur);
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  padding-block: 0.9rem;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.logo-mark {
  width: 32px;
  height: 32px;
  background: var(--gold);
  color: #0C0C0C;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
}
.logo-name {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

/* Nav */
.nav { display: none; }
.nav-list { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 0.4em 0.75em;
  border-radius: var(--radius);
  transition: color var(--dur);
}
.nav-link:hover, .nav-link.is-active { color: var(--text); }
.nav-cta { margin-left: 0.5rem; }

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1rem clamp(1.25rem, 5vw, 2.5rem) 1.5rem;
}
.nav.is-open .nav-list {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  width: 100%;
}
.nav.is-open .nav-link { display: block; width: 100%; padding: 0.65em 0.75em; font-size: 1rem; }
.nav.is-open .nav-cta  { margin-left: 0; margin-top: 0.75rem; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(196,152,58,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(196,152,58,0.04) 0%, transparent 60%);
}

/* Subtle grid texture */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(7rem, 14vw, 11rem) clamp(1.25rem, 5vw, 2.5rem) 5rem;
  max-width: 820px;
  margin-inline: auto;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  max-width: none;
}

.hero-heading {
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-scroll-line {
  position: absolute;
  bottom: 0;
  left: clamp(1.25rem, 5vw, 2.5rem);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  opacity: 0.4;
}

/* ── Services ───────────────────────────────────────────────── */
.services { background: var(--surface); }

.services-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.service-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  transition: border-color var(--dur), transform var(--dur);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--dur);
}
.service-card:hover { border-color: var(--gold-dim); transform: translateY(-3px); }
.service-card:hover::before { opacity: 1; }

.service-number {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 1.5rem;
  user-select: none;
}

.service-icon {
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.service-card h3 { margin-bottom: 0.75rem; }
.service-card > p { margin-bottom: 1.5rem; font-size: 0.95rem; }

.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.service-list li {
  font-size: 0.85rem;
  color: var(--muted);
  padding-left: 1.1rem;
  position: relative;
}
.service-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.7rem;
  top: 0.15em;
}

.services-addon {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
}
.addon-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.addon-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
  max-width: none;
}
.services-addon h4 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.3rem;
}
.services-addon p { font-size: 0.88rem; max-width: 50ch; }

/* ── Process ────────────────────────────────────────────────── */
.process { background: var(--bg); }
.process .section-header { text-align: left; }

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-block: 2rem;
}

.step-num {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
  flex-shrink: 0;
}

.step-content h3 { margin-bottom: 0.5rem; font-size: 1.15rem; }
.step-content p   { font-size: 0.92rem; }

.step-connector {
  width: 1px;
  height: 24px;
  background: linear-gradient(to bottom, var(--border), transparent);
  margin-left: 24px;
}

/* ── Portfolio ──────────────────────────────────────────────── */
.portfolio { background: var(--surface); }

.portfolio-grid {
  display: grid;
  gap: 1.5rem;
}

.portfolio-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--dur);
}
.portfolio-card:hover { border-color: var(--gold-dim); }

.portfolio-preview {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg);
}
.portfolio-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease-out);
}
.portfolio-card:hover .portfolio-preview img { transform: scale(1.04); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--dur);
}
.portfolio-card:hover .portfolio-overlay { opacity: 1; }

.portfolio-info { padding: 1.5rem; }

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}
.portfolio-tags span {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(196,152,58,0.1);
  border: 1px solid rgba(196,152,58,0.2);
  padding: 0.2em 0.6em;
  border-radius: 999px;
}

.portfolio-info h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.portfolio-info p  { font-size: 0.88rem; }

/* Empty card */
.portfolio-card--empty {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
}
.portfolio-empty-inner {
  text-align: center;
  padding: 2rem;
}
.portfolio-empty-icon {
  color: var(--border);
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
}
.portfolio-empty-inner p {
  margin-inline: auto;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 20ch;
}

/* ── Testimonials ───────────────────────────────────────────── */
.testimonials { background: var(--bg); }

.section-sub {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: none;
}

.testimonials-grid {
  display: grid;
  gap: 1.25rem;
}

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  position: relative;
}
.testimonial::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: 0.75rem;
  left: 1.5rem;
  line-height: 1;
}

.testimonial p {
  font-size: 0.95rem;
  color: var(--text);
  font-style: italic;
  margin-bottom: 1.25rem;
  padding-top: 1.5rem;
  max-width: none;
}

.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.t-author { font-weight: 600; font-size: 0.85rem; color: var(--text); }
.t-role   { font-size: 0.78rem; color: var(--muted); }

/* ── Contact ────────────────────────────────────────────────── */
.contact { background: var(--surface); }

.contact-inner {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.contact-text h2 { margin-bottom: 1rem; }
.contact-text p  { font-size: 0.95rem; }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }

.form-row {
  display: grid;
  gap: 1.1rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.label-opt { color: var(--border); font-weight: 400; }

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75em 1em;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: border-color var(--dur);
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); opacity: 0.6; }
.form-group select option { background: var(--surface-2); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 110px; }

.form-note {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  max-width: none;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.footer-logo-link { display: inline-flex; }

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.footer-nav a { font-size: 0.85rem; color: var(--muted); transition: color var(--dur); }
.footer-nav a:hover { color: var(--text); }

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--muted);
  max-width: none;
}

/* ── Reveal ─────────────────────────────────────────────────── */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
}
.js-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js-ready .reveal-delay-1.is-visible { transition-delay: 100ms; }
.js-ready .reveal-delay-2.is-visible { transition-delay: 200ms; }

/* ── Focus ──────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

/* ── Responsive — tablet ≥640px ─────────────────────────────── */
@media (min-width: 640px) {
  .services-grid     { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .form-row          { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .testimonials-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Responsive — desktop ≥900px ────────────────────────────── */
@media (min-width: 900px) {
  .nav        { display: flex; }
  .nav-toggle { display: none; }

  .contact-inner { grid-template-columns: 1fr 1.2fr; }

  .process-steps {
    flex-direction: row;
    align-items: flex-start;
  }
  .step {
    flex: 1;
    flex-direction: column;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-block: 0;
  }
  .step-connector {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, var(--border), transparent);
    margin-left: 0;
    margin-top: 24px;
    flex-shrink: 0;
    width: clamp(2rem, 4vw, 4rem);
  }
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-ready .reveal { opacity: 1; transform: none; transition: none; }
  .service-card, .portfolio-preview img, .btn { transition: none; }
}
