/* =======================================================
   Darling Media — Core Styles (navbar list + forms + tables)
   ======================================================= */

/* ====== Brand Variables ====== */
:root {
  --bg: #D9BCAF;         /* warm beige-pink */
  --ink: #011627;        /* deep navy text */
  --burgundy: #795663;   /* mauve rose primary */
  --sapphire: #283D3B;   /* pine teal secondary */
  --emerald: #8A9688;    /* soft sage gray accent */
  --banner: #F4EEE9;     /* light banner background */
  --gold: #D9BCAF;       /* subtle highlight */
  --white: #ffffff;
  --surface: #ffffff;
  --shadow: 0 4px 6px rgba(0,0,0,.10);
  --radius: 12px;

  /* Typography */
  --font-body: 'Lora', serif;
  --font-heading: 'Cormorant Garamond', serif;
  --font-luxury: 'Cinzel', serif;
}

/* ====== Base ====== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  margin: 0 0 .5rem;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--burgundy); }
h2 { font-size: clamp(1.4rem, 2.5vw, 2rem); color: var(--sapphire); }
h3 { font-size: 1.25rem; color: var(--emerald); }
p  { margin: 0 0 1rem; }

/* ===== Luxury Heading Utilities ===== */
.luxury-title {
  font-family: var(--font-luxury);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.1;
}
.luxury-sub {
  font-family: var(--font-luxury);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ===== Layout Helpers ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;   /* nice little side padding on all pages */
}
.grid { display: grid; gap: 2rem; }
.two-col { grid-template-columns: 1.1fr .9fr; align-items: center; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  justify-items: center;   /* center each card in its grid cell */
  text-align: center;      /* center text inside cards */
  padding: 2rem 1rem;      /* breathing room around the grid */
}

/* Base card (neutral so it works for full-width sections like “Longer Bio”) */
.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

/* Cards inside a .cards grid get centered/narrow look */
.cards .card {
  max-width: 340px;        /* consistent visual width */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Section titles inside card grids */
.cards > h2 {
  grid-column: 1 / -1;     /* span full grid width */
  text-align: center;
  font-family: var(--font-luxury);
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: 1.25rem;
}

/* ===== Header / Navbar (with UL/LI) ===== */
.site-header {
  background: var(--burgundy);
  color: var(--white);
  padding: 1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow);
  width: 100%;        /* full width of the viewport */
  max-width: 100%;
}

.site-header .brand img {
  height: 60px;
  width: auto;
  display: block;
}

/* Nav list */
.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;

  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  align-items: center;
}
.navbar li { margin: 0; padding: 0; }

.navbar a {
  color: var(--white);
  font-weight: 700;
  padding: .25rem .5rem;
  border-radius: 6px;
  transition: background-color .2s ease, outline .2s ease, box-shadow .2s ease;
}
.navbar a:hover,
.navbar a:focus {
  background: rgba(255,255,255,0.12);
}
.navbar a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.navbar a.active {
  outline: 2px solid var(--emerald);
  outline-offset: 2px;
}

/* ===== Page Banner ===== */
.page-header {
  background: var(--banner);
  padding: 3rem 1.25rem 2.5rem;
  text-align: center;
  border-bottom: 2px solid var(--gold);
}
.page-header h1 {
  margin: 0 0 .5rem;
  font-family: var(--font-heading);
  color: var(--burgundy);
  letter-spacing: .02em;
}
.page-header p { font-size: 1.1rem; }

/* ===== Buttons ===== */
.button, .btn {
  display: inline-block;
  background: var(--burgundy);
  color: var(--white);
  padding: .65rem 1rem;
  border-radius: 10px;
  font-weight: 800;
  box-shadow: var(--shadow);
  transition: transform .12s ease, filter .12s ease, background-color .12s ease, box-shadow .12s ease;
  border: none;
  cursor: pointer;
}
.button:hover, .btn:hover,
.button:focus, .btn:focus {
  background: var(--sapphire);
  filter: brightness(1.02);
  transform: translateY(-1px);
}
.btn:active { transform: translateY(0); }

/* ===== Forms (global) ===== */
.contact-form,
.newsletter-form,
form.standard {
  width: 100%;
  max-width: 720px;          /* overridden by page section if needed */
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  border: 1px solid rgba(0,0,0,0.05);
}

.form-group { margin-bottom: 1rem; }

label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--sapphire);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1.5px solid var(--emerald);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

textarea { resize: vertical; min-height: 140px; }

input::placeholder, textarea::placeholder { color: rgba(1,22,39,0.5); }

input:focus, textarea:focus, select:focus {
  border-color: var(--sapphire);
  box-shadow: 0 0 0 4px rgba(40,61,59,0.15);
  background: #fff;
}

input[type="submit"] { /* for forms that use input submit */
  composes: btn;
}

/* ===== Tables ===== */
table {
  width: 100%;
  border-collapse: collapse;
}

.contact-table {
  margin-top: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contact-table th {
  background: var(--sapphire);
  color: var(--white);
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 700;
}

.contact-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #ddd;
}

.contact-table tr:nth-child(even) {
  background-color: #f8f8f8;
}

.contact-table a {
  color: var(--burgundy);
  text-decoration: underline;
}

.contact-table a:hover {
  color: var(--sapphire);
}

/* ===== Calendar (Events page only) ===== */
.events-page .cal { --r:12px; --gap:.5rem; --shadow:0 4px 10px rgba(0,0,0,.08); }
.events-page .cal {
  margin: 1.25rem 0 2rem;
  background:#fff;
  border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow:hidden;
  border:1px solid rgba(0,0,0,.08);
}

.events-page .cal__bar {
  display:flex; align-items:center; justify-content:space-between;
  padding:.75rem 1rem;
  background: var(--banner, #F4EEE9);
}
.events-page .cal__title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size:1.1rem; font-weight:700;
}
.events-page .cal__nav { display:flex; gap:.5rem; }
.events-page .cal__btn {
  border:1px solid rgba(0,0,0,.15);
  background:#fff;
  border-radius:10px;
  padding:.4rem .6rem;
  cursor:pointer;
}
.events-page .cal__btn:focus-visible { outline:2px solid var(--sapphire); outline-offset:2px; }

.events-page .cal__legend {
  display:flex; gap:1rem; align-items:center;
  padding:.5rem 1rem;
  font-size:.9rem; color:#333;
  border-top:1px solid rgba(0,0,0,.06);
  background:#fff;
}
.events-page .dot { display:inline-block; width:.6rem; height:.6rem; border-radius:50%; margin-right:.35rem; vertical-align:middle; }
.events-page .dot--has  { background: var(--burgundy); }
.events-page .dot--virt { background: var(--sapphire); }

.events-page .cal__grid {
  display:grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--gap);
  padding: .75rem;
}
.events-page .cal__dow {
  font-size:.8rem; text-transform:uppercase; letter-spacing:.08em; opacity:.7; text-align:center;
}
.events-page .cal__cell {
  min-height:80px;
  border:1px solid rgba(0,0,0,.06);
  border-radius:10px;
  padding:.5rem;
  position:relative;
  background:#fff;
  display:flex; flex-direction:column;
}
.events-page .cal__cell--muted { background:#faf7f6; color:#777; }
.events-page .cal__num { font-weight:700; font-size:.95rem; }

.events-page .cal__badges { margin-top:auto; display:flex; flex-wrap:wrap; gap:.25rem; }
.events-page .cal__badge {
  font-size:.7rem; padding:.15rem .35rem; border-radius:999px;
  background: var(--burgundy); color:#fff;
}
.events-page .cal__badge--virtual { background: var(--sapphire); }

.events-page .cal__cell button { all:unset; cursor:pointer; position:absolute; inset:0; border-radius:10px; }
.events-page .cal__cell:focus-within { outline:2px solid var(--sapphire); outline-offset:2px; }

.events-page .cal__drawer {
  border-top:1px solid rgba(0,0,0,.08);
  background:#fff;
  padding:.75rem 1rem;
  display:none;
}
.events-page .cal__drawer[aria-hidden="false"] { display:block; }
.events-page .cal__drawer h4 {
  margin:.25rem 0 .5rem;
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
}
.events-page .cal__list { display:grid; gap:.5rem; }
.events-page .cal__item { display:flex; align-items:start; gap:.6rem; }
.events-page .cal__pill {
  font-size:.7rem; white-space:nowrap;
  border:1px solid rgba(0,0,0,.12); padding:.1rem .4rem; border-radius:999px;
}
.events-page .cal__item .go { margin-left:auto; }

@media (min-width: 800px){
  .events-page .cal__cell { min-height:110px; }
}

/* ===== Optional helpers used on the Events page ===== */
/* Chips (filter buttons) */
.events-page .chip {
  display:inline-block;
  background:#fff;
  border:1.5px solid var(--emerald);
  padding:.4rem .7rem;
  border-radius:999px;
  margin:.25rem .35rem 1rem 0;
  cursor:pointer;
  font-weight:700;
}
.events-page .chip[aria-pressed="true"] {
  background: var(--sapphire);
  color:#fff;
  border-color: var(--sapphire);
}

/* Search bar wrapper */
.events-page .controls .searchbar {
  display:flex; align-items:stretch; gap:.4rem;
  margin: .25rem 0 1rem;
}
.events-page .controls .searchbar input[type="search"] {
  flex:1;
}
.events-page #clearBtn {
  border:1px solid rgba(0,0,0,.15);
  background:#fff; border-radius:10px; padding:.4rem .6rem; cursor:pointer;
}

/* Tabs (Upcoming / Past) */
.events-page .tabs { display:flex; gap:.5rem; margin: 1rem 0; }
.events-page .tab {
  border:1.5px solid var(--emerald);
  background:#fff; color: var(--ink);
  padding:.5rem .9rem; border-radius:10px; cursor:pointer; font-weight:700;
}
.events-page .tab[aria-selected="true"] {
  background: var(--burgundy); color:#fff; border-color: var(--burgundy);
}

/* Event card badges if you use .badge classes */
.events-page .badge {
  display:inline-block;
  font-size:.75rem; font-weight:700;
  padding:.2rem .5rem; border-radius:999px;
  margin-left:.4rem; /* space after the type pill */
  background:#eee; color:#333;
}
.events-page .badge--virtual { background: var(--sapphire); color:#fff; }
.events-page .badge--inperson { background: var(--burgundy); color:#fff; }

/* Notice line */
.events-page .notice {
  background:#fff; border:1px solid rgba(0,0,0,.08);
  border-radius:10px; padding:.6rem .8rem; margin:.5rem 0 1rem;
  box-shadow: var(--shadow);
}

/* ===== Events page header fixes ===== */
.events-page .site-header {
  background: var(--sapphire); /* darker so it separates from the hero */
}

/* Quiet the big H1 inside the site header on the Events page */
.events-page .site-header .brand h1 {
  font-size: 1rem;
  line-height: 1.2;
  margin: 0;
  color: var(--white);
  opacity: 0.85;
  font-weight: 700;
}

/* Make the hero/page title distinct from the site header */
.events-page .page-header {
  /* soft layered gradient that uses your palette */
  background:
    radial-gradient(1200px 400px at 50% -60%, rgba(255,255,255,.65), rgba(255,255,255,0)),
    linear-gradient(180deg, var(--banner) 0%, #fff 100%);
  border-bottom: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,.06) inset;
  padding: 3.25rem 1.25rem 2.25rem;
  margin-bottom: 1rem; /* space before the calendar label */
}

.events-page .page-header h1 {
  color: var(--burgundy);
  font-size: clamp(2.2rem, 4vw, 3rem);
  letter-spacing: .015em;
}

.events-page .page-header p {
  max-width: 62ch;
  margin-inline: auto;
  color: rgba(1,22,39,.85);
}

/* Small section label above the calendar to avoid two “headers” colliding */
.events-page .section-eyebrow {
  display: inline-block;
  font-family: var(--font-luxury);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .85rem;
  color: var(--sapphire);
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  padding: .35rem .6rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  margin: .25rem 0 0.75rem;
}

/* Slightly lighten the calendar bar so it doesn’t mimic the hero */
.events-page .cal__bar {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

/* Give the calendar block a little extra top gap from the hero */
.events-page .cal {
  margin-top: .5rem;
}


/* ===== Footer ===== */
footer.site-footer, .site-footer, body footer {
  background: var(--sapphire) !important;
  color: var(--white);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 2rem;
}
footer.site-footer,
.site-footer,
body footer {
  width: 100%;
  max-width: 100%;
}
footer.site-footer a, .site-footer a, body footer a {
  color: var(--gold);
  text-decoration: underline;
  transition: color .3s ease;
}
footer.site-footer a:hover, .site-footer a:hover, body footer a:hover {
  color: var(--burgundy);
}


/* ===== Utilities ===== */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  .site-header { flex-direction: column; gap: .5rem; }
  .contact-form, .newsletter-form { padding: 1.25rem; }
}

/* === Force header background to fill full height on mobile === */
@media (max-width: 768px) {
  .site-header {
    align-items: center;
    justify-content: center;
    background: var(--burgundy); /* ensures no gaps show */
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .navbar ul {
    width: 100%;
    justify-content: center;   /* makes nav span the width */
    text-align: center;
  }
}

/* ===================================================
   FORCE FULL-WIDTH SECTIONS (Header, Banner, Footer)
   =================================================== */

.full-bleed {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
}

/* Make sure header/footer still look correct inside */
.full-bleed.site-header,
.full-bleed.site-footer,
.full-bleed.page-banner {
  padding-left: 1rem;
  padding-right: 1rem;
}
