/* =========================================================
   Hope Elizabeth Foundation
   Editorial layout — borrowed structurally from La Palmilla.
   Palette pulled from the foundation's logo.
   ========================================================= */

:root {
  --bg:         #FAFAF7;
  --surface:    #FFFFFF;
  --ink:        #1A1A1A;
  --ink-soft:   #555555;
  --hint:       #8A8A8A;
  --mint:       #94E3C9;
  --mint-deep:  #5BBFA3;
  --mint-wash:  #E8F7F0;
  --rule:       rgba(26, 26, 26, 0.10);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max-prose:    640px;
  --max-content:  1080px;
  --pad-x:        40px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 200ms ease, border-color 200ms ease, opacity 200ms ease;
}

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

/* ---------- Headings ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 300;
  margin: 0;
  letter-spacing: 0.5px;
}

h1 { font-size: 72px; line-height: 1.05; letter-spacing: 2px; }
h2 { font-size: 42px; line-height: 1.15; }
h3 { font-size: 22px; line-height: 1.3; font-weight: 400; }

p { margin: 0 0 18px; color: var(--ink-soft); }

/* ---------- Section labels ---------- */

.section-label,
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--mint-deep);
  margin: 0 0 18px;
  display: block;
}

.section-divider {
  width: 60px;
  height: 1px;
  background: var(--mint-deep);
  margin: 28px auto;
}

.section-divider-left {
  width: 60px;
  height: 1px;
  background: var(--mint-deep);
  margin: 24px 0 28px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: all 220ms ease;
}
.btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn-outline {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--bg);
}

.btn-outline-white {
  border-color: rgba(255,255,255,0.85);
  color: #fff;
}
.btn-outline-white:hover {
  background: #fff;
  color: var(--ink);
}

.btn-mint {
  border-color: var(--mint-deep);
  color: var(--mint-deep);
}
.btn-mint:hover {
  background: var(--mint-deep);
  color: var(--bg);
}

/* ---------- Nav ---------- */

nav.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--pad-x);
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 50;
  max-width: none;
  margin: 0;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
}
.nav-brand img {
  height: 64px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.nav-links a {
  color: var(--ink);
  border-bottom: 1px solid transparent;
  padding-bottom: 4px;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--mint-deep);
  border-bottom-color: var(--mint-deep);
}

/* ---------- Hero ---------- */

.hero {
  min-height: 78vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 80px var(--pad-x);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-logo {
  height: 280px;
  width: auto;
  margin: 0 auto 40px;
  display: block;
}

.hero-subtitle {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--mint-deep);
  margin: 0 0 20px;
}

.hero-tagline {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 300;
  font-style: italic;
  color: var(--ink-soft);
  line-height: 1.35;
  margin: 0 auto 40px;
  max-width: 620px;
  letter-spacing: 0.5px;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--mint-deep);
  margin: 28px auto;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Intro / centered content sections ---------- */

.content-section {
  padding: 100px var(--pad-x);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.content-section .section-title {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

.section-text {
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
  font-weight: 300;
}

.section-text.centered {
  max-width: 680px;
  margin: 0 auto;
}

/* ---------- Split (image + content, alternating) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: 520px;
}

.split.reverse {
  direction: rtl;
}
.split.reverse > * {
  direction: ltr;
}

.split-image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--mint-wash);
  min-height: 420px;
  position: relative;
}

/* placeholder mint pattern for splits without photos */
.split-image.placeholder {
  background:
    radial-gradient(circle at 30% 30%, rgba(148, 227, 201, 0.5), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(148, 227, 201, 0.35), transparent 50%),
    var(--mint-wash);
}
.split-image.placeholder-dark {
  background:
    radial-gradient(circle at 30% 30%, rgba(199, 126, 77, 0.4), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(199, 126, 77, 0.25), transparent 50%),
    #18233F;
}

.split-content {
  padding: 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
}

.split-content .section-title {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--ink);
  margin: 0;
}

.split-content .section-text {
  margin: 0 0 32px;
  max-width: 460px;
}

/* ---------- Banner (full-width image with overlay text) ---------- */

.banner {
  background-size: cover;
  background-position: center;
  background-color: var(--mint-deep);
  color: #fff;
  padding: 140px var(--pad-x);
  text-align: center;
  position: relative;
}

.banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.5);
}

.banner.banner-mint {
  background: var(--mint-wash);
  color: var(--ink);
}
.banner.banner-mint::before { display: none; }
.banner.banner-mint .banner-text { color: var(--ink-soft); }
.banner.banner-mint .section-label { color: var(--mint-deep); }

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.banner-title {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 300;
  line-height: 1.15;
  margin: 0 0 24px;
  color: inherit;
}

.banner-text {
  font-size: 16px;
  line-height: 1.85;
  color: rgba(255,255,255,0.85);
  margin: 0 auto 36px;
  max-width: 560px;
  font-weight: 300;
}

/* ---------- Quote ---------- */

.quote-section {
  padding: 120px var(--pad-x);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.quote-text {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 24px;
  letter-spacing: 0.3px;
}

.quote-attr {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--hint);
  margin: 0;
}

/* ---------- Coming Soon tag ---------- */

.coming-soon {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--hint);
  border: 1px solid var(--rule);
  padding: 10px 22px;
  margin: 8px 0 0;
  background: transparent;
}

/* ---------- Card grid (used on JSP page) ---------- */

.container {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section {
  padding: 100px 0;
}

.section--first { padding-top: 80px; }

.section-head {
  margin-bottom: 56px;
  max-width: var(--max-prose);
}
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h1 { font-size: 56px; }
.section-head h2 { font-size: 36px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: border-color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.card:hover {
  border-color: var(--mint-deep);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26, 26, 26, 0.05);
}
.card .eyebrow { margin-bottom: 16px; }
.card h3 { margin-bottom: 12px; }
.card p {
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 24px;
  flex-grow: 1;
}
.card .open {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--mint-deep);
}

/* ---------- Footer ---------- */

footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 80px var(--pad-x) 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: var(--max-content);
  margin: 0 auto 60px;
}

.footer-logo {
  height: 80px;
  width: auto;
  margin-bottom: 18px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: 0.5px;
}

.footer-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  font-weight: 300;
  margin: 0;
}

.footer-heading {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin: 0 0 22px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
  font-weight: 300;
}
.footer-links a:hover {
  color: var(--mint);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 28px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.40);
  max-width: var(--max-content);
  margin: 0 auto;
}

/* ---------- Fade-in on scroll ---------- */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Wine Dark Sea theme (John Shepherd Project) ---------- */

body.theme-dark {
  --bg:        #0E1626;
  --surface:   #18233F;
  --ink:       #ECE4D6;
  --ink-soft:  #B5AC9C;
  --hint:      #7C8195;
  --mint:      #C77E4D;
  --mint-deep: #DD9560;
  --mint-wash: rgba(199, 126, 77, 0.08);
  --rule:      rgba(236, 228, 214, 0.10);
}

body.theme-dark a { color: var(--ink); }
body.theme-dark a:hover {
  color: var(--mint-deep);
  border-bottom-color: var(--mint-deep);
}
body.theme-dark .nav-links a:hover,
body.theme-dark .nav-links a.active {
  color: var(--mint-deep);
  border-bottom-color: var(--mint-deep);
}
body.theme-dark .btn {
  border-color: var(--ink);
  color: var(--ink);
}
body.theme-dark .btn:hover {
  background: var(--ink);
  color: var(--bg);
}
body.theme-dark .card {
  background: var(--surface);
  border: 1px solid var(--rule);
}
body.theme-dark .card:hover {
  border-color: var(--mint);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
}
body.theme-dark footer {
  background: #050B14;
}

/* ---------- Mobile ---------- */

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 860px) {
  h1 { font-size: 44px; letter-spacing: 1px; }
  h2 { font-size: 30px; }
  .split { grid-template-columns: 1fr; }
  .split.reverse { direction: ltr; }
  .split-content { padding: 56px 32px; }
  .split-image { min-height: 300px; }
  .content-section { padding: 64px var(--pad-x); }
  .content-section .section-title { font-size: 32px; }
  .hero { min-height: 70vh; padding: 60px var(--pad-x); }
  .hero-logo { height: 180px; margin-bottom: 28px; }
  .hero-tagline { font-size: 22px; }
  .banner { padding: 80px var(--pad-x); }
  .banner-title { font-size: 32px; }
  .quote-section { padding: 64px var(--pad-x); }
  .quote-text { font-size: 22px; }
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  :root { --pad-x: 24px; }
  .nav-brand img { height: 52px; }
  .hero-logo { height: 140px; }
  .section-head h1 { font-size: 38px; }
  .section-head h2 { font-size: 26px; }
  .split-content { padding: 48px 24px; }
}
