/* =========================================================================
   Alain Dacier Fotografie — dark editorial theme
   Built on the Schmeits design system scale (spacing, radii, type-scale,
   motion) but re-skinned dark/black with a warm amber accent, per Alain's
   huisstijl. Headings + wordmark in an elegant high-contrast serif;
   UI/body in a clean grotesque.
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Archivo:wght@400;500;600;700&display=swap');

:root {
  /* ---- Brand: dark ---- */
  --black:    #0B0B0C;   /* page */
  --panel:    #131316;   /* alt sections */
  --card:     #18181C;   /* cards / surfaces */
  --card-2:   #1F1F24;   /* raised */

  /* warm off-white ink on black */
  --fg-1: #F3EFE8;       /* headings */
  --fg-2: rgba(243,239,232,0.70);  /* body */
  --fg-3: rgba(243,239,232,0.48);  /* secondary / captions */
  --fg-muted: rgba(243,239,232,0.32);

  /* hairlines */
  --line:        rgba(243,239,232,0.10);
  --line-strong: rgba(243,239,232,0.20);

  /* ---- Accent: muted gold ---- */
  --amber:       #C8A45A;
  --amber-bright:#DBBB74;
  --amber-press: #AE8C44;
  --amber-tint:  rgba(200,164,90,0.14);
  --amber-soft:  rgba(200,164,90,0.07);

  --success: #6FBF8B;
  --danger:  #E06A5A;

  /* ---- Type ---- */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:  'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --text-xs: 12px;  --text-sm: 14px;  --text-base: 16px; --text-md: 18px;
  --text-lg: 20px;  --text-xl: 24px;  --text-2xl: 30px;  --text-3xl: 38px;
  --text-4xl: 48px; --text-5xl: 60px; --text-6xl: 76px;  --text-7xl: 104px;

  --leading-tight: 1.05;
  --leading-snug: 1.2;
  --leading-normal: 1.55;
  --leading-relaxed: 1.7;

  --tracking-tight: -0.02em;
  --tracking-wide: 0.18em;   /* eyebrow labels — wide caps */

  /* ---- Spacing (from DS) ---- */
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:20px;
  --space-6:24px; --space-8:32px; --space-10:40px; --space-12:48px;
  --space-16:64px; --space-20:80px; --space-24:96px; --space-32:128px;

  /* ---- Radii (restrained, editorial) ---- */
  --radius-xs:2px; --radius-sm:4px; --radius-md:6px; --radius-lg:10px;
  --radius-xl:16px; --radius-pill:999px;

  /* ---- Shadow ---- */
  --shadow-md: 0 12px 30px -12px rgba(0,0,0,0.6);
  --shadow-lg: 0 30px 70px -20px rgba(0,0,0,0.75);
  --shadow-amber: 0 14px 36px -12px rgba(200,164,90,0.35);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.22,1,0.36,1);
  --ease-in-out: cubic-bezier(0.65,0,0.35,1);
  --dur-fast:140ms; --dur-base:280ms; --dur-slow:520ms;

  /* ---- Layout ---- */
  --container-max: 1280px;
  --container-pad: 32px;
  --nav-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--fg-2);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* subtle film grain overlay on the whole page */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Layout helpers ---- */
.wrap { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.wrap-tight { max-width: 920px; margin: 0 auto; padding: 0 var(--container-pad); }
section { position: relative; }
.section { padding: var(--space-32) 0; }
.section-sm { padding: var(--space-20) 0; }
.panel { background: var(--panel); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ---- Typography ---- */
h1,h2,h3,h4 { font-family: var(--font-serif); color: var(--fg-1); font-weight: 500; margin: 0; }
.display {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(52px, 8vw, var(--text-7xl));
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--fg-1);
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 6vw, var(--text-6xl)); line-height: 1.04; letter-spacing: var(--tracking-tight); }
h2 { font-size: clamp(32px, 4.5vw, var(--text-5xl)); line-height: 1.08; letter-spacing: var(--tracking-tight); }
h3 { font-size: var(--text-3xl); line-height: 1.12; }
h4 { font-size: var(--text-xl); font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.01em; }

p { margin: 0 0 var(--space-4); text-wrap: pretty; }
.lead { font-size: var(--text-lg); line-height: var(--leading-relaxed); color: var(--fg-2); font-weight: 400; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--amber);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--amber); display: inline-block;
}
.eyebrow.center { justify-content: center; }

.serif-accent { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--amber); }

small, .caption { font-size: var(--text-sm); color: var(--fg-3); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 15px 26px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; line-height: 1;
  transition: all var(--dur-base) var(--ease-out);
  background: none; color: inherit;
}
.btn .arrow { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--amber); color: #1A1206; }
.btn-primary:hover { background: var(--amber-bright); box-shadow: var(--shadow-amber); }
.btn-primary:active { background: var(--amber-press); }
.btn-outline { border-color: var(--line-strong); color: var(--fg-1); }
.btn-outline:hover { border-color: var(--amber); color: var(--amber); }
.btn-ghost { color: var(--fg-1); padding-left: 0; padding-right: 0; }
.btn-ghost:hover { color: var(--amber); }
.btn-lg { padding: 18px 34px; font-size: var(--text-base); }
.btn-sm { padding: 11px 18px; font-size: var(--text-xs); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---- Badges / chips ---- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-sans); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.04em; padding: 6px 12px; border-radius: var(--radius-pill);
}
.badge-amber { background: var(--amber-tint); color: var(--amber-bright); }
.badge-line { border: 1px solid var(--line-strong); color: var(--fg-2); }
.badge-success { background: rgba(111,191,139,0.15); color: var(--success); }
.badge-danger { background: rgba(224,106,90,0.15); color: var(--danger); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---- Photo placeholders ----
   Elegant duotone plates so the layout reads as finished even before
   Alain's real photos are dropped in. data-label shows what belongs there. */
.photo {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #232227 0%, #141318 55%, #0E0D11 100%);
  border: 1px solid var(--line);
  display: flex; align-items: flex-end;
  isolation: isolate;
}
.photo::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 80% at 25% 15%, rgba(200,164,90,0.10), transparent 55%),
    repeating-linear-gradient(115deg, rgba(255,255,255,0.022) 0 2px, transparent 2px 9px);
}
.photo::after {
  content: ""; position: absolute; z-index: 1; left: 50%; top: 46%;
  transform: translate(-50%,-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(243,239,232,0.22);
  background:
    radial-gradient(circle at 50% 50%, transparent 9px, rgba(243,239,232,0.16) 9px 10px, transparent 11px),
    conic-gradient(from 20deg, rgba(243,239,232,0.10), transparent 60%);
  opacity: 0.7;
}
.photo[data-label]::before { } /* keep */
.photo .ph-label {
  position: relative; z-index: 2;
  font-family: var(--font-sans); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--fg-3);
  padding: var(--space-4) var(--space-5);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 3; }

/* ---- Form fields ---- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 600; color: var(--fg-1); }
.field .req { color: var(--amber); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans); font-size: var(--text-base); color: var(--fg-1);
  background: var(--card); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 14px 16px; outline: none;
  transition: all var(--dur-fast) var(--ease-out); width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--fg-muted); }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft);
}
.field .hint { font-size: var(--text-xs); color: var(--fg-3); }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field .err { font-size: var(--text-xs); color: var(--danger); display: none; }
.field.invalid .err { display: block; }

/* ---- Utility ---- */
.muted { color: var(--fg-3); }
.center { text-align: center; }
.stack-sm > * + * { margin-top: var(--space-3); }
.row { display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: center; }
.grid { display: grid; }
.reveal { opacity: 1; transform: none; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 720px) {
  :root { --container-pad: 20px; --nav-h: 64px; }
  .section { padding: var(--space-20) 0; }
}
