/* ============================================================
   PAUL ISHERWOOD — paulisherwood.com
   Twilight Indigo Palette · Accent Library
   Version 4.0 · Ready for Netlify
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;1,400;1,500&family=Playfair+Display:ital,wght@0,500;0,600;1,400;1,500&family=Inter:wght@400;500;600&display=swap');

:root {
  /* ── Base Palette ── */
  --bg:         #EDF1FB;
  --bg-2:       #E0E8F8;
  --warm-white: #F7F9FE;
  --dark:       #1E2F6B;
  --darker:     #141F4A;
  --mid:        #354F9E;
  --soft:       #6278B8;
  --border:     #B8C8E8;
  --divider:    #C8D4EC;

  /* ── Accent Library ── */
  --aqua:         #00A8B8;
  --aqua-glow:    #5ACAD8;
  --orange:       #E8822A;
  --orange-glow:  #F4A85A;
  --lime:         #76C010;
  --lime-glow:    #A8E040;
  --coral:        #E8607A;
  --coral-glow:   #F4909E;
  --yellow:       #C9A000;
  --yellow-glow:  #DDB830;

  /* ── Typography ── */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;
  --font-sans:    'Inter', sans-serif;
  --max-width:    1080px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--mid);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.82;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin-bottom: 1.5em; }
p:last-child { margin-bottom: 0; }
em { font-style: italic; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--dark);
  line-height: 1.18;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(34px, 5vw, 54px); }
h2 { font-size: clamp(26px, 3.2vw, 38px); }
h3 { font-size: clamp(20px, 2.4vw, 26px); }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--warm-white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 16px rgba(30,47,107,0.07);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--dark);
  font-weight: 500;
}
.nav-logo span {
  display: block;
  font-family: var(--font-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--soft);
  letter-spacing: 0.04em;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 3px;
}
.nav-links a:hover { color: var(--dark); }
.nav-links a.active { color: var(--dark); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 1px;
}
.nav-cta {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--dark);
  padding: 8px 18px;
  border: 1.5px solid;
  transition: all 0.22s;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--dark); }
.nav-mobile {
  display: none;
  background: var(--warm-white);
  padding: 16px 32px 24px;
  border-top: 1px solid var(--border);
}
.nav-mobile a {
  display: block;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--mid);
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile a:hover { color: var(--dark); }
.nav-mobile.open { display: block; }
.page-body { padding-top: 68px; }

/* ── Hero ── */
.hero {
  background: var(--bg-2);
  padding: 92px 32px 84px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 22px;
}
.hero-eyebrow-line { width: 36px; height: 1px; opacity: 0.65; }
.hero-eyebrow-text {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.hero-tagline {
  font-family: var(--font-body);
  font-style: italic;
  font-size: clamp(16px, 1.9vw, 20px);
  color: var(--soft);
  margin: 14px auto 0;
  max-width: 480px;
  line-height: 1.65;
}

/* ── Photo ring ── */
.photo-outer {
  display: inline-block;
  border-radius: 50%;
  padding: 3px;
  margin: 30px auto 0;
}
.photo-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.photo-inner svg { opacity: 0.2; color: var(--dark); }

.hero-intro {
  font-size: clamp(17px, 1.9vw, 19px);
  color: var(--mid);
  max-width: 500px;
  margin: 24px auto 0;
  line-height: 1.85;
}
.hero-cta {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Sections ── */
.section      { padding: 88px 32px; }
.section-alt  { background: var(--bg-2); padding: 88px 32px; }
.section-sm   { padding: 64px 32px; }
.section-dark {
  background: var(--dark);
  padding: 88px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 350px;
  background: radial-gradient(ellipse at 50% 30%,
    rgba(201,160,0,0.11) 0%, transparent 65%);
  pointer-events: none;
}
.section-divider { border-top: 1px solid var(--divider); }
.container { max-width: var(--max-width); margin: 0 auto; }
.center { text-align: center; }

/* ── Labels & rules ── */
.sec-label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  display: block;
  text-align: center;
  margin-bottom: 10px;
}
.accent-rule {
  display: block;
  width: 48px; height: 1px;
  margin: 0 auto;
}
.yellow-rule {
  display: block;
  width: 48px; height: 1px;
  background: var(--yellow);
  margin: 0 auto;
  opacity: 0.5;
}

/* ── Pull quote ── */
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(19px, 2.3vw, 26px);
  color: var(--bg);
  line-height: 1.68;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  opacity: 0.92;
  position: relative;
}
.pull-quote-attr {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--yellow-glow);
  letter-spacing: 0.1em;
  margin-top: 24px;
  text-align: center;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.07em;
  padding: 13px 30px;
  transition: all 0.24s;
  cursor: pointer;
  text-align: center;
}
.btn-primary {
  background: var(--dark);
  color: var(--bg);
  border: 1.5px solid var(--dark);
}
.btn-primary:hover { background: var(--mid); border-color: var(--mid); }
.btn-outline {
  border: 1.5px solid var(--soft);
  color: var(--dark);
  background: transparent;
}
.btn-outline:hover { border-color: var(--dark); }

/* ── Forms ── */
.form-wrap { max-width: 440px; margin: 0 auto; }
.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 6px;
}
.form-field {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--dark);
  background: var(--warm-white);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  display: block;
  transition: border-color 0.22s;
}
.form-field::placeholder { color: var(--soft); opacity: 0.5; }
textarea.form-field { resize: vertical; min-height: 130px; line-height: 1.7; }
.form-submit {
  width: 100%;
  padding: 15px 24px;
  background: var(--dark);
  color: var(--bg);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.07em;
  border: none;
  cursor: pointer;
  display: block;
  transition: background 0.22s;
}
.form-submit:hover { background: var(--mid); }
.form-note {
  font-family: var(--font-sans);
  font-size: 11px;
  color: var(--soft);
  margin-top: 10px;
  text-align: center;
  line-height: 1.6;
}

/* ── Footer ── */
.footer {
  background: var(--darker);
  padding: 56px 32px 44px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 180px;
  background: radial-gradient(ellipse at 50% 0%,
    rgba(90,202,216,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.footer-top {
  display: block;
  height: 1px;
  background: rgba(90,202,216,0.16);
  margin-bottom: 38px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--bg);
  font-weight: 500;
  margin-bottom: 5px;
  position: relative;
}
.footer-role {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 26px;
  position: relative;
}
.footer-nav a {
  font-family: var(--font-sans);
  font-size: 12px;
  color: rgba(237,241,251,0.38);
  letter-spacing: 0.05em;
  transition: color 0.2s;
}
.footer-copy {
  font-family: var(--font-sans);
  font-size: 11px;
  color: rgba(237,241,251,0.18);
  letter-spacing: 0.04em;
  position: relative;
}

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.12s; }
.d2 { transition-delay: 0.26s; }

/* ── Shared JS ── */
/* Nav toggle and fade-in observer injected per page */

/* ── Responsive ── */
@media (max-width: 680px) {
  .section, .section-alt, .section-dark, .section-sm { padding: 64px 20px; }
  .hero { padding: 72px 20px 64px; }
  .nav-inner { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { padding: 16px 20px 24px; }
  .footer { padding: 44px 20px 36px; }
}
