:root {
  --ss-green: #24351f;
  --ss-cream: #f3ead2;
  --ss-paper: #fbf3df;
  --ss-gold: #b58a3a;
  --ss-burgundy: #6f1d1b;
  --ss-brown: #5c3a1e;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--ss-cream);
  color: var(--ss-green);
}

/* ---------- Section Landing Summary ---------- */

.section-summary {
    display: flex;
    gap: 2rem;
    margin: 2rem 0 3rem 0;
    align-items: flex-start;
}

.section-summary.has-image .summary-image {
    flex: 0 0 33%;
}

.section-summary.has-image .summary-text {
    flex: 1;
}

.section-summary img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

.section-summary:not(.has-image) .summary-text {
    width: 100%;
}

/* Phones */

@media (max-width:760px) {

    .section-summary {
        display: block;
    }

    .summary-image {
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .summary-text {
        width: 100%;
    }
}

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

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

/* Header / navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(36, 53, 31, 0.97);
  border-bottom: 2px solid var(--ss-gold);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
}

.brand {
  color: var(--ss-cream);
  text-decoration: none;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: bold;
}

.menu-toggle {
  background: none;
  border: 1px solid var(--ss-gold);
  color: var(--ss-cream);
  font-size: 1.5rem;
  padding: 6px 11px;
  cursor: pointer;
  border-radius: 4px;
}

.main-nav {
  display: none;
  border-top: 1px solid rgba(181, 138, 58, 0.45);
  background: var(--ss-green);
}

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

.main-nav a {
  display: block;
  padding: 14px 20px;
  color: var(--ss-cream);
  text-decoration: none;
  border-bottom: 1px solid rgba(243, 234, 210, 0.12);
  letter-spacing: 0.04em;
}

.main-nav a:hover { background: rgba(181, 138, 58, 0.18); }

/* Shared content layout */
.page-main,
.content-narrow,
.section-title,
.section-intro,
.breadcrumb,
.product-wrap {
  width: 100%;
}

.content-narrow,
.page-hero,
.content-section,
.section-title,
.section-intro {
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.25in;
  padding-right: 0.25in;
}

.page-hero { padding-top: 32px; padding-bottom: 10px; }

.content-section {
  margin-bottom: 2rem;
  line-height: 1.6;
}

.content-section h2 { margin-bottom: 0.75rem; color: var(--ss-burgundy); }
.content-section p:first-child { margin-top: 0; }

.about-page {
  padding-left: 0.25in;
  padding-right: 0.25in;
}

.about-page .page-hero,
.about-page .content-section {
  padding-left: 0;
  padding-right: 0;
}

/* Home hero image behavior
   The <picture> breakpoints select desktop/tablet/phone.
   CSS must never force tablet dimensions while the desktop image is still selected. */
.hero {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-color: var(--ss-cream);
  padding: 20px 0.25in;
  overflow: visible;
}

.hero picture {
  display: block;
  width: 100%;
  text-align: center;
}

.hero img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: 1px solid rgba(92, 58, 30, 0.25);
}

.intro {
  text-align: center;
  padding-top: 24px;
  padding-bottom: 36px;
  line-height: 1.6;
}

.tagline {
  color: var(--ss-brown);
  font-style: italic;
  font-size: 1.15rem;
  margin: 0.35rem 0 1rem;
}

/* Section landing pages */
.section-title {
  padding-top: 38px;
  padding-bottom: 20px;
  text-align: center;
}

.section-intro {
  max-width: 850px;
  padding-bottom: 28px;
  text-align: center;
  font-size: 1.08rem;
  line-height: 1.65;
}

.card-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 0.25in 58px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 720px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1080px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); }
}

.landing-card {
  background: var(--ss-paper);
  border: 1px solid rgba(92, 58, 30, 0.28);
  box-shadow: 0 8px 24px rgba(92, 58, 30, 0.12);
  display: flex;
  flex-direction: column;
}

.landing-card-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.landing-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.landing-card h2 {
  margin: 0 0 8px;
  color: var(--ss-burgundy);
  font-size: 1.45rem;
}

.landing-card h2 a {
  color: var(--ss-burgundy);
  text-decoration: none;
}

.landing-card h2 a:hover { text-decoration: underline; }

.landing-card-text {
  font-size: 1.02rem;
  line-height: 1.55;
  flex-grow: 1;
}

/* Product pages */
.product-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 0.25in 58px;
}

.breadcrumb {
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.product-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  background: var(--ss-paper);
  border: 1px solid rgba(92, 58, 30, 0.28);
  box-shadow: 0 8px 24px rgba(92, 58, 30, 0.12);
  padding: 22px;
}

@media (min-width: 820px) {
  .product-card { grid-template-columns: minmax(280px, 42%) 1fr; }
}

.product-image img,
.detail-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(92, 58, 30, 0.25);
}

.product-info h1 { margin-top: 0; color: var(--ss-burgundy); }
.product-subtitle { color: var(--ss-brown); font-style: italic; margin-bottom: 12px; }
.product-price { font-size: 1.3rem; font-weight: bold; margin: 12px 0; }
.product-body { line-height: 1.6; }
.product-details { margin-top: 22px; }
.detail-list { padding-left: 1.25rem; line-height: 1.6; }
.detail-photo { margin-top: 28px; }

/* Buttons */
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.cta-button {
  display: inline-block;
  padding: 10px 16px;
  background: var(--ss-burgundy);
  color: var(--ss-cream);
  text-decoration: none;
  border-radius: 4px;
  border: 1px solid var(--ss-burgundy);
}

.cta-button.secondary {
  background: transparent;
  color: var(--ss-burgundy);
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  background: #2b241c;
  color: #f4f1ea;
  border-top: 4px solid #8c6b3b;
  font-size: 0.95rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0.25in;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #f4f1ea;
  text-decoration: none;
}

.footer-nav a:hover { text-decoration: underline; }
.footer-separator { color: rgba(255,255,255,.45); }

@media (max-width: 760px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav { justify-content: center; }
  .footer-separator { display: none; }

  .footer-nav a {
    display: block;
    width: 100%;
    padding: .15rem 0;
  }
}
