/* ============================================================
   AI-INCLUDED.CO.UK — SHARED STYLESHEET
   All pages link to this file. Page-specific styles live
   in a <style> block within each HTML file.
   ============================================================ */

/* ── TOKENS ── */
:root {
  --amber: #D49010;          /* lifted from #C8860A for better contrast */
  --amber-light: #E8A020;
  --amber-pale: #F0C060;
  --amber-text: #E8A020;      /* amber at readable contrast for small text on dark bg */
  --cream: #EDE4D0;
  --smoke: #E8E0D8;           /* warm near-white — readable without eye fatigue, not clinical */
  --coal: #0D0B08;
  --charcoal: #161410;
  --panel: #1A1714;
  --panel-lighter: #221E1A;
  --border: rgba(200,134,10,0.25);
  --border-bright: rgba(200,134,10,0.5);
}

/* ── RESET ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── BASE ── */
body {
  background: var(--coal);
  color: var(--cream);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 20%, rgba(200,134,10,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(200,134,10,0.03) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13,11,8,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1;
}

.logo-line { display: flex; gap: 0; align-items: stretch; }

.nav-logo .l {
  font-family: 'Arial', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
}

.nav-logo .l.hi {
  background: #C00000;
  color: #ffffff;
  font-weight: 700;
}

.logo-julian { padding-left: 28px; }

.nav-links { display: flex; gap: 36px; list-style: none; }

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--smoke);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--amber); }

/* ── DOMAIN BAR ── */
.domain-bar { width: 100%; background: var(--amber); position: sticky; top: 64px; z-index: 99; }

.domain-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 64px;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
}

.db-letter {
  font-family: 'Arial', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--coal);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 22px;
}

.db-sep {
  font-family: 'Arial', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: var(--coal);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 9px;
  height: 22px;
}

/* ── PAGE WRAPPER ── */
.page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 64px 80px;
}

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  padding: 96px 0 64px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 80px;
  height: 2px;
  background: var(--amber);
}

.page-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber-text);
  margin-bottom: 20px;
}

.page-header h1 {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 20px;
}

.page-header p {
  font-size: 18px;
  color: var(--smoke);
  max-width: 540px;
  line-height: 1.6;
}

/* ── SECTION UTILITIES ── */
.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.4em;
  color: var(--amber-text);
  text-transform: uppercase;
  margin-bottom: 40px;
}

/* ── CTA BUTTONS ── */
.cta-cluster { display: flex; gap: 16px; flex-wrap: wrap; }

.cta-primary {
  display: inline-block;
  padding: 14px 28px;
  background: var(--amber);
  color: var(--coal);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}

.cta-primary:hover { background: var(--amber-light); }

.cta-secondary {
  display: inline-block;
  padding: 14px 28px;
  border: 1px solid var(--border-bright);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.cta-secondary:hover { border-color: var(--amber); color: var(--amber); }

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 64px 48px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.footer-name {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--smoke);
}

.footer-name strong { color: var(--cream); font-weight: 500; }

.footer-links { display: flex; gap: 28px; }

.footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--smoke);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--amber); }

/* ── FEEDBACK WIDGET ── */
#aif-strip {
  position: sticky;
  top: 86px; /* nav 64px + domain-bar 22px */
  z-index: 98;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  transition: opacity 0.6s ease, max-height 0.5s ease;
  max-height: 200px;
  overflow: hidden;
}

#aif-strip.aif-done {
  opacity: 0.45;
  max-height: 28px;
  pointer-events: none;
}

#aif-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 64px;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}

#aif-icon { font-size: 14px; flex-shrink: 0; }

#aif-question {
  color: var(--smoke);
  font-size: 13px;
  letter-spacing: 0.01em;
  flex: 1;
}

#aif-buttons { display: flex; gap: 8px; flex-shrink: 0; }

.aif-btn {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  padding: 5px 14px;
  transition: background 0.2s, color 0.2s;
}

.aif-btn-yes  { background: var(--amber); color: var(--coal); }
.aif-btn-yes:hover  { background: var(--amber-light); }
.aif-btn-no   { background: transparent; border: 1px solid var(--border-bright); color: var(--smoke); }
.aif-btn-no:hover   { border-color: var(--amber); color: var(--amber); }
.aif-btn-submit { background: var(--amber); color: var(--coal); margin-top: 10px; }
.aif-btn-submit:hover { background: var(--amber-light); }
.aif-btn-submit:disabled { opacity: 0.5; cursor: default; }

#aif-panel {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 64px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border);
}

.aif-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber-text);
  display: block;
  margin-bottom: 5px;
}

.aif-optional { font-weight: 400; text-transform: none; color: var(--smoke); letter-spacing: 0; }

.aif-textarea, .aif-input {
  width: 100%;
  max-width: 560px;
  background: var(--charcoal);
  border: 1px solid var(--border);
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 8px 12px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.aif-textarea:focus, .aif-input:focus { border-color: var(--amber); }
.aif-input { resize: none; }

.aif-gdpr {
  font-size: 11px;
  color: var(--smoke);
  opacity: 0.7;
  margin-top: 4px;
  font-style: italic;
}

.aif-error { color: #F97316; font-size: 12px; margin-left: 10px; }

#aif-thanks {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 64px;
  height: 36px;
  display: flex;
  align-items: center;
  font-size: 13px;
  color: var(--smoke);
}

#aif-thanks strong { color: var(--amber); }

@media (max-width: 900px) {
  #aif-inner, #aif-panel, #aif-thanks { padding-left: 28px; padding-right: 28px; }
  #aif-question { display: none; }
  #aif-strip.aif-done { max-height: 24px; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-inner, .page, footer { padding-left: 28px; padding-right: 28px; }
  .domain-inner { padding: 0 28px; }
  .nav-links { gap: 20px; }
  .footer-inner { flex-direction: column; gap: 20px; text-align: center; }
}