/* DELVORN — css/style.css */
:root {
  --bg: #FAF7F2;
  --paper: #F0EBE3;
  --ink: #1A1816;
  --muted: #6A5A2A;
  --accent: #7A6A3A;
  --line: rgba(26, 24, 22, 0.12);
  --card-bg: #fffaf4;
  --display: 'EB Garamond', Georgia, serif;
  --body: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1160px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Top bar */
.topbar {
  text-align: center;
  background: var(--paper);
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Site Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  font: 700 2.1rem var(--display);
  color: var(--ink);
  text-decoration: none;
}
.wordmark:hover {
  text-decoration: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-inline: auto;
}

.main-nav a,
.main-nav summary {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav summary:hover {
  color: var(--accent);
}

.main-nav details {
  position: relative;
}

.main-nav summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.main-nav summary::-webkit-details-marker {
  display: none;
}
.main-nav summary::after {
  content: '▾';
  font-size: 0.75rem;
  margin-left: 0.25rem;
}

.dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: -1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 0.8rem;
  display: grid;
  gap: 0.5rem;
  width: 270px;
  box-shadow: 0 12px 30px rgba(26, 24, 22, 0.12);
  border-radius: 8px;
  z-index: 120;
}

.dropdown a {
  font-size: 0.9rem;
  padding: 0.35rem 0.6rem;
  border-radius: 4px;
}
.dropdown a:hover {
  background: var(--paper);
  text-decoration: none;
}

.phone {
  white-space: nowrap;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-family: var(--body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 5.5rem 0 5rem;
  background: var(--paper);
}

.hero h1 {
  font: 700 clamp(2.8rem, 6.5vw, 5.5rem)/0.96 var(--display);
  max-width: 850px;
  margin: 1rem 0;
  color: var(--ink);
}

.hero p {
  font-size: 1.15rem;
  max-width: 670px;
  line-height: 1.6;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.date {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section h2 {
  font: 700 clamp(2rem, 4vw, 3.2rem)/1.05 var(--display);
  margin: 0 0 1.5rem;
  color: var(--ink);
}

.section-intro {
  max-width: 700px;
  font-size: 1.1rem;
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

/* Feature and Article Grids */
.article-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.article-card,
.feature-card {
  border: 1px solid var(--line);
  padding: 1.75rem;
  background: var(--card-bg);
  border-radius: 8px;
}

.article-card h3,
.feature-card h3 {
  font: 700 1.6rem/1.15 var(--display);
  margin: 0.6rem 0;
  color: var(--ink);
}

.article-card p,
.feature-card p {
  font-size: 0.95rem;
  color: var(--ink);
}

.feature-card img,
.article-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.read {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 0.92rem;
}

/* Article List in Index */
.article-list-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.article-list-items article {
  border: 1px solid var(--line);
  padding: 1.75rem;
  background: var(--card-bg);
  border-radius: 8px;
}

.article-list-items h3 {
  font: 700 1.5rem/1.15 var(--display);
  margin: 0.6rem 0;
}

.article-list-items img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 1rem;
}

/* Band / Accent */
.band {
  background: var(--accent);
  color: #fff;
}
.band h2, .band h3, .band p, .band li, .band span {
  color: #fff;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat strong {
  display: block;
  font: 700 3.2rem var(--display);
  color: inherit;
  line-height: 1;
}

.stat span {
  font-size: 0.9rem;
  color: inherit;
  margin-top: 0.4rem;
  display: block;
}

/* Tables */
.overview-table,
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
}

.overview-table th,
.overview-table td,
table th,
table td {
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.overview-table th,
table th {
  background: var(--paper);
  font-weight: 600;
  color: var(--ink);
  font-size: 0.92rem;
}

.overview-table tbody tr:nth-child(even),
table tbody tr:nth-child(even) {
  background: rgba(240, 235, 227, 0.35);
}

/* Quote */
.quote {
  font: 700 clamp(1.5rem, 3vw, 2.2rem)/1.25 var(--display);
  border-left: 4px solid var(--accent);
  padding: 1.25rem 2rem;
  margin: 2rem 0;
  background: var(--paper);
  border-radius: 0 8px 8px 0;
  color: var(--ink);
}

/* Timeline / Sequence */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  list-style: none;
  padding: 0;
}

.timeline article,
.timeline li {
  border-top: 2px solid var(--accent);
  padding-top: 1.25rem;
}

.timeline h3 {
  font: 700 1.5rem var(--display);
  margin: 0 0 0.5rem;
}

.timeline p {
  font-size: 0.92rem;
}

/* Callout */
.callout {
  background: #eee6d6;
  border: 1px solid #d9c9a8;
  padding: 2rem;
  border-radius: 8px;
}

.callout h2 {
  margin-top: 0;
}

/* Newsletter & Contact Forms */
.newsletter {
  display: flex;
  gap: 0.75rem;
  max-width: 600px;
  margin: 1.25rem 0;
}

.newsletter input,
.contact-form input,
.contact-form textarea {
  border: 1px solid var(--line);
  background: #fffaf4;
  padding: 0.9rem 1rem;
  font: inherit;
  font-size: 0.95rem;
  border-radius: 6px;
  width: 100%;
}

.newsletter input:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}

.button,
button[type="submit"],
.button:not(.text-button) {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 0.85rem 1.5rem;
  font: 600 0.92rem var(--body);
  border-radius: 6px;
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
  transition: background 0.15s ease;
}

.button:hover,
button[type="submit"]:hover {
  background: #64552d;
  color: #fff;
  text-decoration: none;
}

/* Article Template */
.article-header {
  padding: 4.5rem 0 2rem;
}

.article-header h1 {
  font: 700 clamp(2.4rem, 5vw, 4.4rem)/1.05 var(--display);
  max-width: 850px;
  margin: 0.5rem 0 1rem;
  color: var(--ink);
}

.article-body {
  max-width: 820px;
}

.article-body img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  margin: 1.5rem 0 2rem;
}

.article-body h2 {
  font: 700 2.1rem var(--display);
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.article-body p {
  font-size: 1.05rem;
  line-height: 1.7;
}

.lead {
  font-size: 1.2rem !important;
  line-height: 1.65;
  color: var(--ink);
  font-weight: 400;
}

.key-box {
  background: var(--paper);
  padding: 1.75rem;
  margin: 2.5rem 0;
  border-radius: 8px;
  border-left: 4px solid var(--accent);
}

.key-box h2 {
  margin-top: 0 !important;
  font-size: 1.6rem !important;
}

.key-box ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.key-box li {
  margin: 0.4rem 0;
}

/* Legal Sections */
.legal {
  padding-top: 2rem;
}

.legal h2 {
  font: 700 1.9rem var(--display);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal p {
  max-width: 850px;
  font-size: 1rem;
  line-height: 1.7;
}

.legal ul, .legal ol {
  max-width: 850px;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.legal li {
  margin: 0.5rem 0;
}

/* Contact Grid & Map */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.map {
  min-height: 400px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.map iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: 0;
}

/* Site Footer */
.site-footer {
  background: #241f1a;
  color: #fff;
  padding-top: 4.5rem;
  margin-top: 4rem;
}

.site-footer a,
.site-footer p,
.site-footer h3 {
  color: rgba(255, 255, 255, 0.88);
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3.5rem;
  padding-bottom: 3rem;
}

.footer-grid h3 {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-grid > div > a:not(.wordmark) {
  display: block;
  margin: 0.5rem 0;
  font-size: 0.92rem;
}

.footer-mark {
  color: #fff !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.75rem 0;
  font-size: 0.82rem;
}

.footer-bottom p {
  margin: 0.35rem 0;
  color: rgba(255, 255, 255, 0.65);
}

/* Cookie Banner */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: #faf7f2;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  width: min(920px, calc(100% - 2rem));
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.9rem;
}

.cookie-banner button {
  border-radius: 6px;
  padding: 0.6rem 1.1rem;
  font-size: 0.88rem;
  margin: 0.2rem;
  font-family: var(--body);
  font-weight: 500;
  cursor: pointer;
}

.cookie-banner .text-button {
  background: transparent;
  color: var(--muted);
  border: 0;
  text-decoration: underline;
}

/* Responsive Breakpoints */
@media (max-width: 960px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 860px) {
  .nav-wrap {
    justify-content: space-between;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav details {
    width: 100%;
  }
  .dropdown {
    position: static;
    width: 100%;
    box-shadow: none;
    border: none;
    padding: 0.5rem 0 0.5rem 1rem;
  }
  .menu-toggle {
    display: block;
  }
  .phone {
    display: none;
  }
  .article-grid,
  .feature-grid,
  .article-list-items,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .hero {
    padding: 4rem 0 3.5rem;
  }
  .hero h1 {
    font-size: clamp(2.4rem, 8vw, 3.8rem);
  }
  .section {
    padding: 3.5rem 0;
  }
  .overview-table,
  table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .newsletter {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .stats,
  .timeline {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
