/* ============================================================
   TRISTAN WEB — Design System
   Bleu nuit profond + orange chaleureux + crème
   Fraunces (display) + Inter (body)
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700;9..144,900&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Couleurs — éditables via Tweaks */
  --bg: #FAFAFA;
  --bg-cream: #F5EFE6;
  --bg-card: #FFFFFF;
  --ink: #1F4E79;        /* bleu nuit profond */
  --ink-2: #1A1A1A;      /* noir doux */
  --muted: #5C6470;
  --line: #E7E2D8;
  --accent: #FF6B35;     /* CTA orange chaleureux */
  --accent-2: #10B981;   /* vert (success / option) */
  --accent-ink: #FFFFFF;

  /* Type */
  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', system-ui, sans-serif;

  /* Espacement */
  --rad: 14px;
  --rad-lg: 22px;
  --shadow-soft: 0 1px 2px rgba(31,78,121,.04), 0 8px 32px rgba(31,78,121,.06);
  --shadow-hover: 0 4px 12px rgba(31,78,121,.08), 0 20px 48px rgba(31,78,121,.12);

  /* Layout */
  --container: 1180px;
}

[data-theme="dark"] {
  --bg: #0E1620;
  --bg-cream: #1A2330;
  --bg-card: #18222E;
  --ink: #E8EEF5;
  --ink-2: #FFFFFF;
  --muted: #8FA0B3;
  --line: #243245;
  --accent-ink: #FFFFFF;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, opacity .2s ease;
}

/* ============================================================
   TYPOGRAPHY
============================================================ */

.display {
  font-family: var(--display);
  font-weight: 500;
  font-style: normal;
  font-variation-settings: "opsz" 144, "SOFT" 50;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink);
  text-wrap: balance;
}

h1.display { font-size: clamp(44px, 6vw, 88px); }
h2.display { font-size: clamp(34px, 4vw, 56px); font-weight: 500; }
h3.display { font-size: clamp(24px, 2.2vw, 34px); font-weight: 500; }

.eyebrow {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

.lead {
  font-size: clamp(18px, 1.4vw, 21px);
  color: var(--muted);
  line-height: 1.55;
  text-wrap: pretty;
  max-width: 56ch;
}

.tag-ital {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

/* ============================================================
   LAYOUT
============================================================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: clamp(64px, 9vw, 130px) 0;
}

.section-cream {
  background: var(--bg-cream);
}

.section-ink {
  background: var(--ink);
  color: #fff;
}
.section-ink .display { color: #fff; }
.section-ink .lead { color: rgba(255,255,255,.7); }

.grid {
  display: grid;
  gap: 28px;
}

/* ============================================================
   NAV
============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,250,250,.85);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .3s ease;
}

[data-theme="dark"] .nav {
  background: rgba(14,22,32,.85);
}

.nav.scrolled {
  border-bottom-color: var(--line);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}
.brand-mark::after{
  content:"";
  position:absolute; right:-6px; bottom:-6px;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 4px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  opacity: .75;
  position: relative;
}

.nav-links a:hover { opacity: 1; color: var(--ink); }

.nav-links a.active {
  opacity: 1;
  color: var(--ink);
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-burger {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  color: var(--ink-2);
  align-items: center;
  justify-content: center;
}

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 24px 28px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
    gap: 18px;
  }
}

/* ============================================================
   BUTTONS
============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 4px 14px rgba(255,107,53,.28);
}
.btn-primary:hover {
  background: #ff5519;
  box-shadow: 0 8px 22px rgba(255,107,53,.36);
}

.btn-ink {
  background: var(--ink);
  color: #fff;
}
.btn-ink:hover { background: #173a5c; }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-link {
  background: transparent;
  color: var(--ink);
  padding: 0;
  border-radius: 0;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.btn-lg {
  padding: 17px 28px;
  font-size: 16px;
}

.btn .arrow {
  width: 16px; height: 16px;
  display: inline-block;
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   CARDS
============================================================ */

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  padding: 32px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.card-num {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-cream);
  color: var(--ink);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 18px;
}

[data-theme="dark"] .card-num { background: var(--bg-cream); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.chip-accent {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.chip-success {
  background: rgba(16,185,129,.12);
  border-color: rgba(16,185,129,.3);
  color: var(--accent-2);
}

/* ============================================================
   HERO (home)
============================================================ */

.hero {
  padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 80px);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.hero-title {
  margin: 18px 0 24px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 38px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
.hero-meta-item svg { color: var(--accent-2); flex-shrink: 0; }

/* Hero visual — collage / mockup */
.hero-visual {
  position: relative;
  aspect-ratio: 4/4.4;
  min-height: 440px;
}

.float-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

/* Reassurance bar */
.reassure {
  background: var(--ink);
  color: #fff;
  padding: 18px 0;
  overflow: hidden;
}
.reassure-track {
  display: flex;
  gap: 60px;
  align-items: center;
  animation: scroll-left 28s linear infinite;
  white-space: nowrap;
  width: max-content;
}
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.reassure-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: .9;
}
.reassure-item svg { color: var(--accent); }
.reassure-dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.3); }

/* ============================================================
   FOR-WHOM CARDS
============================================================ */

.for-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 880px) {
  .for-grid { grid-template-columns: 1fr; }
}

.for-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  padding: 36px 32px;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.for-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.for-card h3 {
  font-family: var(--display);
  font-size: 24px;
  color: var(--ink);
  margin: 18px 0 10px;
  font-weight: 500;
}
.for-card p { color: var(--muted); font-size: 15px; }
.for-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--bg-cream);
  display: grid; place-items: center;
  color: var(--accent);
  margin-bottom: 8px;
}
.for-card ul {
  margin-top: 18px;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px dashed var(--line);
  font-size: 14px;
  color: var(--muted);
}
.for-card li {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 0;
}
.for-card li::before {
  content: "·";
  color: var(--accent);
  font-weight: 700;
  font-size: 20px;
  line-height: 0;
}

/* ============================================================
   METHOD — 5 STEPS
============================================================ */

.method {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 50px;
  border-top: 1px dashed var(--line);
}
@media (max-width: 880px) {
  .method { grid-template-columns: 1fr; }
}

.method-step {
  padding: 36px 24px;
  border-right: 1px dashed var(--line);
  position: relative;
}
.method-step:last-child { border-right: none; }
@media (max-width: 880px) {
  .method-step { border-right: none; border-bottom: 1px dashed var(--line); }
  .method-step:last-child { border-bottom: none; }
}

.method-num {
  font-family: var(--display);
  font-style: italic;
  color: var(--accent);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 14px;
  display: block;
}
.method-step h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.method-step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.method-step .timing {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: var(--bg-cream);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ============================================================
   WHY-ME (arguments)
============================================================ */

.why-grid {
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 720px) {
  .why-grid { grid-template-columns: 1fr; }
}

.why-card {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  padding: 36px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 22px;
  transition: all .2s ease;
}
.why-card:hover {
  background: var(--bg-card);
  border-color: transparent;
  box-shadow: var(--shadow-soft);
}
.why-card .num {
  font-family: var(--display);
  font-size: 36px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}
.why-card h4 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 8px;
}
.why-card p { color: var(--muted); font-size: 15px; }

/* ============================================================
   TESTIMONIALS
============================================================ */

.testi-grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 880px) {
  .testi-grid { grid-template-columns: 1fr; }
}

.testi {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.testi .quote {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  text-wrap: pretty;
  flex: 1;
}
.testi-person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.testi-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--ink));
  display: grid; place-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}
.testi-meta strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}
.testi-meta span {
  font-size: 13px;
  color: var(--muted);
}
.testi-placeholder {
  background: repeating-linear-gradient(
    45deg,
    var(--bg-cream),
    var(--bg-cream) 8px,
    transparent 8px,
    transparent 16px
  );
  border: 2px dashed var(--line);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  min-height: 240px;
  padding: 24px;
}
.testi-placeholder span {
  font-family: var(--display);
  font-style: italic;
  color: var(--ink);
  font-size: 17px;
}

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

.cta-block {
  background: var(--ink);
  color: #fff;
  border-radius: var(--rad-lg);
  padding: clamp(40px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  top: -50%; left: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(255,107,53,.18), transparent 60%);
  pointer-events: none;
}
.cta-block::after {
  content: "";
  position: absolute;
  bottom: -50%; right: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(16,185,129,.12), transparent 60%);
  pointer-events: none;
}
.cta-block .display { color: #fff; position: relative; }
.cta-block .lead {
  color: rgba(255,255,255,.7);
  margin: 18px auto 32px;
  position: relative;
}
.cta-block .hero-cta { justify-content: center; position: relative; }

/* ============================================================
   FOOTER
============================================================ */

.footer {
  background: var(--ink-2);
  color: rgba(255,255,255,.7);
  padding: 80px 0 30px;
}
[data-theme="dark"] .footer { background: #060B12; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.footer .brand { color: #fff; }
.footer .brand-mark { background: #fff; color: var(--ink); }

.footer h5 {
  color: #fff;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer a { font-size: 14px; color: rgba(255,255,255,.7); }
.footer a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
}

/* ============================================================
   PAGE HEADER (sub pages)
============================================================ */

.page-head {
  padding: clamp(60px, 8vw, 110px) 0 clamp(40px, 6vw, 70px);
}
.page-head .eyebrow { margin-bottom: 20px; }
.page-head h1 { margin-bottom: 24px; }

/* ============================================================
   ABOUT
============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 880px) { .about-grid { grid-template-columns: 1fr; } }

.about-photo {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--rad-lg);
  overflow: hidden;
  background: var(--bg-cream);
  border: 1px solid var(--line);
}
.photo-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--bg-cream) 0%, #EBE2D4 100%);
  color: var(--muted);
  text-align: center;
  padding: 32px;
  font-size: 14px;
  gap: 14px;
}
.photo-placeholder svg { color: var(--ink); opacity: .35; }
.photo-tag {
  position: absolute;
  bottom: 24px; left: 24px;
  background: var(--bg-card);
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
}
.photo-tag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 4px rgba(16,185,129,.18); }

.story p {
  font-size: 17px;
  color: var(--ink-2);
  margin-bottom: 18px;
  line-height: 1.65;
}
.story p:first-of-type {
  font-size: 21px;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 28px;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 720px) { .values { grid-template-columns: 1fr; } }
.value {
  padding: 24px;
  background: var(--bg-cream);
  border-radius: 14px;
}
.value h5 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 6px;
}
.value p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.value .icon-mark {
  display: inline-block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 8px;
}

/* ============================================================
   PRICING / SERVICES
============================================================ */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 880px) { .pricing-grid { grid-template-columns: 1fr; } }

.plan {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  padding: 40px 36px;
  display: flex; flex-direction: column;
  gap: 18px;
  position: relative;
}
.plan-popular {
  border-color: var(--ink);
  box-shadow: var(--shadow-hover);
  background: var(--bg-card);
}
.plan-popular::before {
  content: "Le plus choisi";
  position: absolute;
  top: -14px; left: 32px;
  background: var(--accent);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.plan-name {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
}
.plan-sub { color: var(--muted); font-size: 14px; }
.plan-price {
  display: flex; align-items: baseline; gap: 6px;
  margin: 12px 0;
}
.plan-price .amount {
  font-family: var(--display);
  font-size: 64px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.plan-price .unit { color: var(--muted); font-size: 15px; font-weight: 500; }
.plan-price .plus {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}
.plan ul {
  list-style: none;
  margin: 14px 0;
  display: flex; flex-direction: column; gap: 12px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}
.plan li {
  display: flex; gap: 12px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}
.plan li svg {
  flex-shrink: 0;
  color: var(--accent-2);
  margin-top: 4px;
}
.plan .btn { margin-top: auto; }

/* Comparison table */
.compare {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  overflow: hidden;
  margin-top: 50px;
}
.compare table {
  width: 100%;
  border-collapse: collapse;
}
.compare th, .compare td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  vertical-align: middle;
}
.compare th {
  background: var(--bg-cream);
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink);
  font-size: 17px;
}
.compare th:first-child { width: 40%; }
.compare tr:last-child td { border-bottom: none; }
.compare td:not(:first-child) { text-align: center; }
.compare td .yes { color: var(--accent-2); font-weight: 600; }
.compare td .no { color: var(--muted); opacity: .5; }

/* FAQ */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 24px 0;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.faq-q:hover { color: var(--accent); }
.faq-q .plus-mark {
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: transform .25s ease, background .2s ease;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
}
.faq-item.open .plus-mark {
  transform: rotate(45deg);
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding-bottom: 24px;
}

/* ============================================================
   PORTFOLIO
============================================================ */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 720px) { .portfolio-grid { grid-template-columns: 1fr; } }

.project {
  border-radius: var(--rad-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  transition: all .25s ease;
  cursor: pointer;
}
.project:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.project-img {
  aspect-ratio: 16/10;
  position: relative;
  overflow: hidden;
}
.project-placeholder {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  padding: 28px;
}
.project-info {
  padding: 26px 28px;
  display: flex; flex-direction: column; gap: 12px;
}
.project-info .meta {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.project-info h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
}
.project-info .link {
  font-size: 14px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 4px;
  display: inline-flex; align-items: center; gap: 6px;
}

/* Mock browsers for portfolio */
.mock-browser {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}
.mock-bar {
  background: var(--bg-cream);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--line);
}
.mock-bar .dot { width: 10px; height: 10px; border-radius: 50%; }
.mock-bar .dot:nth-child(1) { background: #FF6157; }
.mock-bar .dot:nth-child(2) { background: #FFBD2E; }
.mock-bar .dot:nth-child(3) { background: #28C940; }
.mock-bar .url {
  flex: 1;
  margin-left: 10px;
  background: var(--bg);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--muted);
}
.mock-content {
  flex: 1;
  padding: 18px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-cream) 100%);
  position: relative;
  overflow: hidden;
}

/* ============================================================
   CONTACT
============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-side {
  display: flex; flex-direction: column; gap: 32px;
}
.contact-info {
  display: flex; flex-direction: column; gap: 4px;
}
.contact-info .label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}
.contact-info .value {
  font-family: var(--display);
  font-size: 24px;
  color: var(--ink);
  font-weight: 500;
}
.contact-info .value a:hover { color: var(--accent); }

.contact-card {
  background: var(--bg-cream);
  border-radius: var(--rad-lg);
  padding: 28px;
}
.contact-card h4 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}
.contact-card p { color: var(--muted); font-size: 14px; margin-bottom: 16px; }

.form {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  padding: 40px;
  display: grid; gap: 22px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  font-family: var(--body);
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--ink-2);
  transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.field textarea { resize: vertical; min-height: 130px; }

.form-foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
.form-foot .note {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   TWEAKS — Floating panel
============================================================ */

.tweak-panel {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 290px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  z-index: 100;
  box-shadow: var(--shadow-hover);
  display: none;
}
.tweak-panel.show { display: block; }
.tweak-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.tweak-head h6 {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.tweak-close {
  width: 26px; height: 26px;
  border: none;
  background: var(--bg-cream);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink);
}
.tweak-section { margin-bottom: 14px; }
.tweak-section label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}
.tweak-swatches { display: flex; gap: 6px; }
.tweak-sw {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
}
.tweak-sw.active { border-color: var(--ink); }
.tweak-radio { display: flex; gap: 6px; }
.tweak-radio button {
  flex: 1;
  font-family: var(--body);
  font-size: 12px;
  padding: 8px;
  background: var(--bg-cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink-2);
}
.tweak-radio button.active {
  background: var(--ink);
  color: #fff;
  border-color: transparent;
}

/* ============================================================
   UTIL
============================================================ */

.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-lg { margin-top: 60px; }
.flex-center { display: flex; align-items: center; justify-content: center; gap: 14px; }

/* Animations on scroll */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .8s ease, transform .8s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
