/* James of St Albans -- shared stylesheet */

:root {
  --burgundy: #6e1f24;
  --burgundy-dark: #531418;
  --gold: #b08d3d;
  --gold-light: #d4b872;
  --cream: #faf6ee;
  --cream-dark: #f0e9d8;
  --ink: #2b2420;
  --ink-soft: #55483d;
  --border: #e2d6bd;
  --shadow: 0 10px 30px rgba(43, 36, 32, 0.12);
  --radius: 6px;
  --max-width: 1120px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
}

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

a {
  color: var(--burgundy);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--burgundy-dark);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.6em;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

.brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
}

.brand .brand-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--burgundy-dark);
  letter-spacing: 0.02em;
}

.brand .brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--burgundy);
  border-bottom-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 42px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

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

.hero {
  position: relative;
  color: #fff;
}

.hero-image {
  width: 100%;
  height: 62vh;
  min-height: 380px;
  max-height: 620px;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 14, 10, 0.15) 0%, rgba(20, 14, 10, 0.75) 100%);
  display: flex;
  align-items: flex-end;
}

.hero-content {
  padding: 3rem 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-content h1 {
  color: #fff;
}

.hero-content p {
  max-width: 42em;
  font-size: 1.1rem;
  color: #f2ece0;
}

.hero-content .eyebrow {
  color: var(--gold-light);
}

.page-hero {
  background: var(--burgundy);
  color: #fff;
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.page-hero h1 { color: #fff; }
.page-hero p {
  max-width: 40em;
  margin: 0 auto;
  color: #f2ece0;
}
.page-hero .eyebrow { color: var(--gold-light); }

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

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--burgundy);
  color: #fff;
}

.btn-primary:hover {
  background: var(--burgundy-dark);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.7);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ---------- Sections ---------- */

section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--cream-dark);
}

.section-heading {
  text-align: center;
  max-width: 44em;
  margin: 0 auto 2.5rem;
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.two-col img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.25rem 1.4rem 1.5rem;
}

.card-body h3 {
  margin-bottom: 0.4em;
}

.card-body p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.callout {
  background: var(--burgundy);
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.callout h2, .callout p { color: #fff; }
.callout p { color: #f2ece0; margin-bottom: 0; }

/* ---------- Hours table ---------- */

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

.hours-table td {
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: var(--burgundy-dark);
}

.hours-table tr:last-child td {
  border-bottom: none;
}

.hours-table tr.closed td:last-child {
  color: var(--ink-soft);
  font-weight: 500;
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}

.contact-list li {
  display: flex;
  gap: 0.9rem;
  margin-bottom: 1.3rem;
  align-items: flex-start;
}

.contact-list .icon {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cream-dark);
  color: var(--burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-list address {
  font-style: normal;
}

.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  min-height: 320px;
}

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

/* ---------- Gallery filters (stock page) ---------- */

.filter-bar {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-btn:hover {
  border-color: var(--gold);
}

.filter-btn.active {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: #fff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}

.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  border: 1px solid var(--border);
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gallery figcaption {
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.gallery-item {
  transition: opacity 0.2s ease;
}

.gallery-item.is-hidden {
  display: none;
}

/* ---------- Steps (table lining) ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.step {
  text-align: center;
}

.step .step-number {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--burgundy);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.item-list {
  columns: 2;
  column-gap: 2.5rem;
  margin: 1.5rem 0;
  padding-left: 1.2rem;
}

.item-list li {
  break-inside: avoid;
  margin-bottom: 0.5rem;
}

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

.site-footer {
  background: var(--ink);
  color: #d8cfc2;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-grid h4 {
  color: var(--gold-light);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-grid p, .footer-grid address {
  font-style: normal;
  color: #c9beaf;
  font-size: 0.92rem;
}

.footer-grid a {
  color: #c9beaf;
  text-decoration: none;
}

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

.footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 0.6rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  color: #8f8577;
}

/* ---------- Responsive ---------- */

@media (max-width: 880px) {
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: none;
  }

  .main-nav.is-open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1.5rem;
  }

  .main-nav li {
    border-bottom: 1px solid var(--border);
  }

  .main-nav a {
    display: block;
    padding: 0.9rem 0.1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .two-col,
  .contact-grid,
  .callout {
    grid-template-columns: 1fr;
  }

  .callout {
    text-align: center;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .item-list {
    columns: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 520px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }

  section {
    padding: 3rem 0;
  }
}
