/* The Somm School – plain HTML/CSS site
   Look: moody wine-bar atmosphere with editorial restraint.
   Dark photo bands alternate with warm ivory reading sections; gold used sparingly. */

:root {
  --wine: #6b1d2a;
  --wine-dark: #4a121c;
  --gold: #b8955a;
  --gold-light: #d8bf8f;
  --charcoal: #1c2036; /* deep navy, like the current site's menu bar */
  --ink: #2b2b2b;
  --muted: #6f6a64;
  --paper: #faf6ef;
  --line: #e4ddd2;
  --max: 1100px;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
}

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

a {
  color: var(--wine);
  text-decoration-color: var(--gold);
  text-underline-offset: 4px;
}
a:hover { color: var(--wine-dark); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--wine-dark);
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Preview notice (remove before go-live) */
.preview-banner {
  background: #ece6dc;
  color: #5a5248;
  text-align: center;
  font-size: 14px;
  font-style: italic;
  padding: 5px 16px;
}

/* Header and navigation */
.site-header {
  background: var(--charcoal); /* dark, because the logo is pale */
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo img { width: 150px; }

.nav-button {
  display: none;
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 16px;
  background: none;
  border: 1px solid #4a5070;
  border-radius: 2px;
  padding: 5px 12px;
  color: #e9e1d4;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 32px;
}
.site-nav a {
  font-size: 16px;
  text-decoration: none;
  color: #d9d0c3;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--gold); }

/* Photo bands: page banners and the dark call-to-action bands.
   Each page sets its photo with style="--photo: url('…')".
   ::before holds the photo (slow zoom), ::after the warm dark overlay. */
.page-hero,
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--charcoal);
  color: #fff;
  text-align: center;
}
.page-hero::before,
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--photo, none) center / cover no-repeat;
  filter: sepia(0.15) brightness(1.6);
}
.page-hero::after,
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(28, 32, 54, 0.32) 0%, rgba(28, 32, 54, 0.12) 70%, rgba(28, 32, 54, 0.18) 100%),
    linear-gradient(rgba(120, 70, 30, 0.08), rgba(28, 32, 54, 0.05));
}

.page-hero { padding: 88px 24px 96px; }
.page-hero::before { animation: slow-zoom 30s ease-out both; }

@keyframes slow-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero::before { animation: none; }
}

.page-hero h1 {
  color: #fff;
  margin: 0;
  font-size: 56px;
  font-weight: 500;
}
.page-hero h1::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  background: var(--gold);
  margin: 18px auto 0;
}
.page-hero h1, .page-hero p, .cta-band h2 { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.75); }
.page-hero h1 img { filter: drop-shadow(0 1px 10px rgba(0, 0, 0, 0.55)); }
.page-hero p { margin: 18px auto 0; max-width: 640px; font-size: 19px; font-style: italic; color: #eee6da; }
.page-hero .eyebrow { font-size: 16px; font-style: italic; margin: 0 auto 4px; color: var(--gold-light); }

/* Home: the large logo replaces the small one in the menu bar */
.home .site-header .logo { display: none; }
.home .site-header .wrap { justify-content: flex-end; }
.home-hero { padding: 56px 24px 64px; } /* close to the other pages' banner height */
.home-hero h1 img { width: 220px; margin: 0 auto; }
/* Keep the woman tasting in view on narrow screens. This photo is darker than the
   others, so it gets extra brightness and colour and a lighter layer. */
.home-hero::before { background-position: 25% center; filter: brightness(2) saturate(1.3) contrast(1.05); }
.home-hero::after { background: radial-gradient(ellipse at center, rgba(28, 32, 54, 0.3) 0%, rgba(28, 32, 54, 0.05) 70%); }

/* Content sections */
.section { padding: 80px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { font-size: 40px; margin-top: 0; }
.section h3 { font-size: 30px; margin-bottom: 8px; }

.two-col { display: grid; grid-template-columns: 3fr 2fr; gap: 64px; align-items: start; }

.lead { font-size: 20px; }

.button {
  display: inline-block;
  background: var(--wine);
  color: #fff;
  border: 1px solid var(--wine);
  font-size: 16px;
  text-decoration: none;
  padding: 9px 22px;
  border-radius: 2px;
  margin: 4px 0;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.button:hover { background: var(--wine-dark); border-color: var(--wine-dark); color: #fff; }
.button.outline { background: transparent; color: var(--wine); border-color: var(--gold); }
.button.outline:hover { background: var(--wine); border-color: var(--wine); color: #fff; }

/* Call-to-action band (its photos are brighter, so a stronger layer keeps the title readable) */
.cta-band { padding: 104px 24px; }
.cta-band::after { background: rgba(28, 32, 54, 0.5); }
.cta-band h2 { color: #fff; font-size: 44px; margin: 0 0 24px; }
.cta-band .button { background: transparent; border-color: var(--gold); color: #fff; }
.cta-band .button:hover { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }

/* Quote */
.quote { text-align: center; padding: 80px 24px; }
.quote img { width: 52px; margin: 0 auto 18px; }
.quote blockquote { margin: 0 auto; max-width: 760px; font-family: var(--display); font-size: 32px; line-height: 1.35; font-style: italic; color: var(--wine-dark); }
.quote cite { display: block; margin-top: 14px; font-size: 16px; color: var(--muted); font-style: normal; }

/* Programs */
.program { display: grid; grid-template-columns: 200px 1fr; gap: 48px; padding: 48px 0; border-top: 1px solid var(--line); }
.program:first-of-type { border-top: 0; }
.program h3 { margin-top: 0; font-size: 34px; }

.schedule { margin-top: 28px; display: grid; gap: 14px; }
.class-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 18px 22px;
  border-radius: 2px;
}
.class-card h4 { margin: 0 0 4px; font-size: 23px; }
.class-card p { margin: 4px 0 10px; }
.class-card.past { opacity: 0.65; }
.class-card .tag {
  display: inline-block;
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
  line-height: 1.6;
  padding: 0 8px;
  border: 1px solid currentColor;
  border-radius: 2px;
  margin-left: 8px;
  vertical-align: middle;
}
.tag.past { color: #777; }
.tag.soon { color: #8a6a35; }
.tag.open { color: #2f6a35; }

.regional h4 { font-size: 26px; margin-bottom: 4px; }

/* Results (About) */
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.result { background: #fff; border: 1px solid var(--line); padding: 20px 22px; border-radius: 2px; }
.result h4 { margin: 0 0 8px; font-size: 22px; }
.result p { margin: 2px 0; }

/* FAQ */
.faq dt {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--wine-dark);
  margin-top: 36px;
}
.faq dd { margin: 6px 0 0; }

/* Contact */
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin: 8px 0; }

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: #b8afa2;
  font-size: 14px;
  padding: 28px 0;
  text-align: center;
}
.site-footer a { color: var(--gold-light); }

/* Small screens */
@media (max-width: 800px) {
  body { font-size: 17px; }
  .two-col, .program { grid-template-columns: 1fr; gap: 24px; }
  .program img { max-width: 200px; }
  .page-hero { padding: 64px 20px 72px; }
  .page-hero h1 { font-size: 42px; }
  .home-hero { padding: 44px 20px 52px; }
  .home-hero h1 img { width: 180px; }
  .section { padding: 56px 0; }
  .section h2 { font-size: 34px; }
  .cta-band { padding: 72px 20px; }
  .cta-band h2 { font-size: 34px; }
  .quote blockquote { font-size: 26px; }

  /* Without JavaScript the menu simply stays open */
  .site-nav { width: 100%; }
  .js .nav-button { display: block; }
  .js .site-nav { display: none; }
  .js .site-nav.open { display: block; }
  .site-header .wrap { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; gap: 4px; padding-bottom: 8px; }
}
