/* =============================================
   SAUVEGARDE DU PATRIMOINE MARITIME GIRONDIN
   Section de Floirac
   Archetype: Refined Editorial / Literary Magazine
   ============================================= */

:root {
  --ivory:     #f7f3ec;
  --ink:       #1a1a18;
  --blue:      #1B3A5C;
  --gold:      #C8A96E;
  --ink-lt:    #3a3530;
  --ink-mute:  #5a5450;
  --rule-h:    #888480;
  --rule-m:    #c5bfb4;
  --rule-l:    #ddd8cf;
  --serif:     Georgia, 'Times New Roman', 'Times', serif;
  --site-max:  1200px;
  --body-max:  700px;
  --gutter:    clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

html { font-size: 18px; scroll-behavior: smooth; }

body {
  background-color: var(--ivory);
  color: var(--ink);
  font-family: var(--serif);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: normal;
  color: var(--ink);
  line-height: 1.15;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.65rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.65rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.4em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color 0.15s; }
a:hover { color: var(--ink); }

/* ---- Typographic Components ---- */

.section-label {
  display: block;
  font-family: var(--serif);
  font-variant: small-caps;
  letter-spacing: 0.18em;
  font-size: 0.71rem;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.kicker {
  display: block;
  font-family: var(--serif);
  font-variant: small-caps;
  letter-spacing: 0.15em;
  font-size: 0.71rem;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.55rem;
}

p.drop-cap::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 5.2rem;
  line-height: 0.82;
  padding-right: 0.1em;
  padding-bottom: 0.04em;
  color: var(--blue);
  font-weight: normal;
}

.pull-quote {
  margin: 3.5rem auto;
  max-width: 600px;
  padding: 2rem 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule-m);
  text-align: center;
}
.pull-quote blockquote {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  font-style: italic;
  line-height: 1.5;
  color: var(--blue);
}
.pull-quote cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.73rem;
  font-style: normal;
  font-variant: small-caps;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
}

/* ---- Layout ---- */

.container {
  max-width: var(--site-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.narrow {
  max-width: var(--body-max);
  margin-left: auto;
  margin-right: auto;
}

.section-pad { padding-top: 5rem; padding-bottom: 5rem; }
.section-pad-sm { padding-top: 3rem; padding-bottom: 3rem; }

hr { border: none; border-top: 1px solid var(--rule-m); margin: 0; }

/* ---- Navigation ---- */

.site-header {
  background: var(--ivory);
  border-bottom: 2px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 200;
}

.nav-inner {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0.8rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-lockup:hover { text-decoration: none; }
.brand-lockup .logo-icon { height: 40px; width: auto; }
.brand-lockup .wordmark { height: 27px; width: auto; max-width: 240px; }

.site-nav { display: flex; align-items: center; }
.site-nav li { list-style: none; }
.site-nav a {
  display: block;
  padding: 0.3rem 0.75rem;
  font-family: var(--serif);
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-size: 0.77rem;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s;
}
.site-nav a:hover, .site-nav a.active { color: var(--blue); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--ink); }

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

.site-footer {
  background: var(--blue);
  color: rgba(247,243,236,0.8);
  padding-top: 4rem;
  border-top: 3px solid var(--gold);
  margin-top: 5rem;
}

.footer-grid {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--gutter) 3rem;
  display: grid;
  grid-template-columns: 210px 1fr 280px;
  gap: 3rem;
}

.footer-brand .logo-icon { height: 42px; margin-bottom: 0.7rem; filter: brightness(0) invert(1); }
.footer-brand .wordmark { height: 24px; width: auto; display: block; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.79rem; line-height: 1.7; color: rgba(247,243,236,0.55); font-style: italic; margin-bottom: 0; }

.footer-nav-col h4, .footer-contact-col h4 {
  font-family: var(--serif);
  font-variant: small-caps;
  letter-spacing: 0.15em;
  font-size: 0.69rem;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
  font-weight: normal;
}

.footer-nav-col ul { columns: 2; column-gap: 1.5rem; }
.footer-nav-col ul li { margin-bottom: 0.45rem; break-inside: avoid; }
.footer-nav-col ul a { font-size: 0.81rem; color: rgba(247,243,236,0.65); text-decoration: none; transition: color 0.15s; }
.footer-nav-col ul a:hover { color: var(--ivory); text-decoration: none; }

.footer-contact-col address { font-style: normal; }
.footer-contact-col p { font-size: 0.81rem; line-height: 1.8; margin-bottom: 0.6rem; color: rgba(247,243,236,0.65); }
.footer-contact-col a { color: rgba(247,243,236,0.75); font-size: 0.81rem; text-decoration: none; word-break: break-all; transition: color 0.15s; display: inline; }
.footer-contact-col a:hover { color: var(--ivory); }

.footer-colophon {
  border-top: 1px solid rgba(247,243,236,0.13);
  padding: 1.2rem var(--gutter);
  text-align: center;
}
.footer-colophon p { font-size: 0.73rem; color: rgba(247,243,236,0.38); font-style: italic; margin: 0; }

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

.hero {
  position: relative;
  min-height: 88vh;
  background: var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,8,6,0.84) 0%, rgba(10,8,6,0.46) 45%, rgba(10,8,6,0.14) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--site-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter) 5rem;
}
.hero-kicker {
  display: block;
  font-variant: small-caps;
  letter-spacing: 0.2em;
  font-size: 0.71rem;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero h1 {
  color: var(--ivory);
  max-width: 820px;
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
  line-height: 1.1;
}
.hero-sub {
  color: rgba(247,243,236,0.88);
  max-width: 580px;
  font-size: 1.04rem;
  line-height: 1.72;
  font-style: italic;
}

/* ---- Impact Strip ---- */

.impact-strip {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.impact-strip .inner {
  max-width: var(--site-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.impact-item {
  padding: 2.5rem 1rem;
  text-align: center;
  border-right: 1px solid var(--rule-m);
}
.impact-item:last-child { border-right: none; }
.impact-item .num { display: block; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; color: var(--blue); margin-bottom: 0.4rem; }
.impact-item .lbl { display: block; font-variant: small-caps; letter-spacing: 0.1em; font-size: 0.71rem; text-transform: uppercase; color: var(--ink-lt); }

/* ---- Highlights Grid ---- */

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
}
.highlight-card {
  padding: 2.5rem 2rem 2.5rem 0;
  border-right: 1px solid var(--rule-l);
}
.highlight-card:last-child { border-right: none; padding-right: 0; }
.highlight-card .icon { font-size: 1.3rem; margin-bottom: 1rem; display: block; }
.highlight-card h3 { font-size: 1.02rem; margin-bottom: 0.65rem; border-bottom: 1px solid var(--rule-l); padding-bottom: 0.65rem; }
.highlight-card p { font-size: 0.87rem; line-height: 1.7; color: var(--ink-lt); margin: 0; }

/* ---- Photo Mat ---- */

.photo-mat {
  background: white;
  padding: 1.2rem 1.2rem 0.6rem;
  width: 100%;
}
.photo-mat img { width: 100%; display: block; }
.photo-caption { font-style: italic; font-size: 0.77rem; color: var(--ink-mute); margin-top: 0.5rem; padding-bottom: 0.2rem; line-height: 1.5; }

.photo-full { margin: 3rem 0; }
.photo-full img { width: 100%; height: 500px; object-fit: cover; display: block; }
.photo-full .photo-caption { font-style: italic; font-size: 0.77rem; color: var(--ink-mute); margin-top: 0.6rem; line-height: 1.5; }

/* ---- Programmes Register ---- */

.programmes-register { margin: 3rem 0; }
.prog-entry {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule-l);
}
.prog-entry:first-child { border-top: 2px solid var(--ink); }
.prog-num { font-size: 0.7rem; color: var(--gold); font-variant: small-caps; letter-spacing: 0.1em; padding-top: 0.35rem; text-align: center; }
.prog-body h3 { font-size: 1.12rem; margin-bottom: 0.3rem; }
.prog-blurb { font-style: italic; font-size: 0.88rem; color: var(--ink-lt); margin-bottom: 0; }
.prog-detail { font-size: 0.86rem; color: var(--ink-lt); line-height: 1.72; margin-top: 0.75rem; margin-bottom: 0; }

/* ---- Two-column layouts ---- */

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.two-col-wide { display: grid; grid-template-columns: 3fr 2fr; gap: 4rem; align-items: start; }

/* ---- Trustees ---- */

.trustees-list { border-top: 2px solid var(--ink); margin: 2rem 0; }
.trustee-row {
  display: flex;
  gap: 3rem;
  align-items: baseline;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--rule-l);
}
.t-name { font-size: 1rem; flex: 0 0 230px; }
.t-role { font-style: italic; font-size: 0.87rem; color: var(--ink-lt); }

/* ---- Ways Grid ---- */

.ways-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 2px solid var(--ink);
  margin: 3rem 0;
}
.way-card { padding: 2.5rem 2rem 2.5rem 0; border-right: 1px solid var(--rule-l); }
.way-card:last-child { border-right: none; padding-right: 0; }
.way-card .icon { font-size: 1.3rem; margin-bottom: 1rem; display: block; }
.way-card h3 { font-size: 1.02rem; margin-bottom: 0.65rem; border-bottom: 1px solid var(--rule-l); padding-bottom: 0.65rem; }
.way-card p { font-size: 0.87rem; line-height: 1.7; color: var(--ink-lt); margin: 0; }

/* ---- CTA Block ---- */

.cta-block {
  text-align: center;
  padding: 5rem var(--gutter);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule-m);
}
.cta-block h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); max-width: 540px; margin: 0 auto 2.25rem; line-height: 1.2; }

.btn {
  display: inline-block;
  background: transparent;
  border: 1.5px solid var(--blue);
  color: var(--blue);
  font-family: var(--serif);
  font-variant: small-caps;
  letter-spacing: 0.15em;
  font-size: 0.81rem;
  padding: 0.82rem 2.4rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--blue); color: var(--ivory); text-decoration: none; }
.btn-dark { background: var(--blue); color: var(--ivory); border-color: var(--blue); }
.btn-dark:hover { background: #142d4a; border-color: #142d4a; color: var(--ivory); }

/* ---- Page Header ---- */

.page-header { padding: 5rem 0 3.5rem; border-bottom: 2px solid var(--ink); }
.page-header h1 { max-width: 740px; margin-bottom: 1.2rem; }
.page-header .intro-dek { font-style: italic; font-size: 1.04rem; max-width: 600px; line-height: 1.65; color: var(--ink-lt); }

/* ---- Blog ---- */

.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--rule-m);
}
.blog-featured img { width: 100%; height: 360px; object-fit: cover; }
.blog-featured-text h2 { margin-bottom: 0.7rem; }
.blog-featured-text .art-dek { font-style: italic; font-size: 0.98rem; color: var(--ink-lt); margin-bottom: 1.25rem; }

.blog-list { margin-top: 3rem; }
.blog-list-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule-l);
  align-items: start;
}
.blog-list-item img { width: 200px; height: 130px; object-fit: cover; }
.blog-list-item h3 { font-size: 1.08rem; margin-bottom: 0.3rem; }
.blog-list-item h3 a { color: var(--ink); text-decoration: none; }
.blog-list-item h3 a:hover { color: var(--blue); }
.blog-list-item .art-dek { font-style: italic; font-size: 0.88rem; color: var(--ink-lt); margin: 0.35rem 0 0.7rem; }

.read-more-link {
  font-family: var(--serif);
  font-variant: small-caps;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 1px;
}
.read-more-link:hover { color: var(--ink); text-decoration: none; }

/* ---- Article ---- */

.article-header { padding: 4rem 0 3rem; border-bottom: 2px solid var(--ink); margin-bottom: 4rem; }
.article-header h1 { max-width: 800px; margin-bottom: 1.5rem; font-size: clamp(1.9rem, 4.5vw, 3.4rem); line-height: 1.12; }
.article-dek {
  font-style: italic;
  font-size: 1.1rem;
  max-width: 640px;
  line-height: 1.62;
  color: var(--ink-lt);
  border-top: 1px solid var(--rule-m);
  padding-top: 1.1rem;
  margin-top: 0.5rem;
}

.article-body { max-width: 660px; margin: 0 auto; font-size: 1.01rem; line-height: 1.8; }
.article-body p { margin-bottom: 1.5em; }
.article-body p:last-child { margin-bottom: 0; }

/* ---- Contact ---- */

.contact-layout { display: grid; grid-template-columns: 3fr 2fr; gap: 5rem; align-items: start; }

.form-group { margin-bottom: 1.75rem; }
.form-group label { display: block; font-variant: small-caps; letter-spacing: 0.14em; font-size: 0.69rem; text-transform: uppercase; color: var(--ink-lt); margin-bottom: 0.45rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule-m);
  padding: 0.5rem 0 0.4rem;
  font-family: var(--serif);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
  border-radius: 0;
  -webkit-appearance: none;
}
.form-group input:focus, .form-group textarea:focus { border-bottom-color: var(--blue); }
.form-group textarea { min-height: 130px; resize: vertical; padding-top: 0.4rem; }

.colophon-block { border: 1px solid var(--rule-m); padding: 2rem 1.75rem; }
.colophon-block h3 { font-size: 0.88rem; font-variant: small-caps; letter-spacing: 0.12em; color: var(--gold); margin-bottom: 1.2rem; border-bottom: 1px solid var(--rule-l); padding-bottom: 0.7rem; font-weight: normal; }
.colophon-block p, .colophon-block address { font-size: 0.84rem; line-height: 1.8; font-style: normal; color: var(--ink-lt); margin-bottom: 0.7rem; }
.colophon-block p:last-child, .colophon-block address:last-child { margin-bottom: 0; }
.colophon-block a { color: var(--blue); word-break: break-all; font-size: 0.82rem; }

/* ---- Mission Block ---- */

.mission-block {
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 3.5rem 0;
  margin: 4rem 0;
}
.mission-block .inner { max-width: 720px; margin: 0 auto; text-align: center; padding: 0 var(--gutter); }
.mission-block .section-label { text-align: center; margin-bottom: 1.5rem; }
.mission-block p { font-size: 1.04rem; line-height: 1.78; color: var(--ink-lt); }

/* ---- Prose ---- */

.prose { max-width: 660px; margin: 0 auto; font-size: 1.01rem; line-height: 1.8; }
.prose p { margin-bottom: 1.4em; }
.prose p:last-child { margin-bottom: 0; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 180px 1fr; }
  .footer-contact-col { grid-column: 1 / -1; }
  .two-col, .two-col-wide { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .blog-featured { grid-template-columns: 1fr; }
  .blog-featured img { height: 280px; }
  .highlights-grid { grid-template-columns: 1fr 1fr; }
  .highlight-card:nth-child(2) { border-right: none; }
  .highlight-card:nth-child(3) { border-top: 1px solid var(--rule-l); }
  .ways-grid { grid-template-columns: 1fr 1fr; }
  .way-card:nth-child(2) { border-right: none; }
  .way-card:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--rule-l); }
}

@media (max-width: 680px) {
  html { font-size: 17px; }
  :root { --gutter: 1.25rem; }
  .highlights-grid { grid-template-columns: 1fr; }
  .highlight-card { border-right: none; border-top: 1px solid var(--rule-l); padding: 2rem 0; }
  .highlight-card:first-child { border-top: none; }
  .ways-grid { grid-template-columns: 1fr; }
  .way-card { border-right: none; border-top: 1px solid var(--rule-l); padding: 2rem 0; }
  .way-card:first-child { border-top: none; }
  .way-card:nth-child(3) { grid-column: auto; }
  .impact-strip .inner { grid-template-columns: 1fr; }
  .impact-item { border-right: none; border-bottom: 1px solid var(--rule-l); padding: 1.75rem 0; }
  .impact-item:last-child { border-bottom: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav-col ul { columns: 1; }
  .hero { min-height: 78vh; }
  .hero h1 { font-size: 2.1rem; }
  .trustee-row { flex-direction: column; gap: 0.15rem; }
  .t-name { flex: none; }
  .blog-list-item { grid-template-columns: 1fr; }
  .blog-list-item img { width: 100%; height: 200px; }
  .prog-entry { grid-template-columns: 1fr; gap: 0; }
  .prog-num { display: none; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--ivory);
    border-bottom: 2px solid var(--ink);
    padding: 0.5rem 0;
    z-index: 300;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.65rem var(--gutter); font-size: 0.85rem; }
  .nav-toggle { display: flex; }
}
