/* ========================================
   VARIABLES
======================================== */

:root {
  --primary: #5a3e2b;
  --accent: #c69c6d;
  --olive: #6e7750;
  --olive-deep: #586240;
  --olive-soft: #edf1e5;
  --bg: #faf7f2;
  --surface: #f3ece1;
  --surface-strong: #eadfce;
  --text: #2b2b2b;
}


/* ========================================
   BASE
======================================== */

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: 0.2px;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

.section-intro {
  margin-top: 12px;
  font-size: 15px;
  opacity: 0.86;
}

.section-intro.centered {
  text-align: center;
}

.catalog-note {
  margin-top: 10px;
  font-size: 14px;
  opacity: 0.72;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--olive-deep);
  opacity: 0.72;
}

section {
  padding: 90px 0;
  scroll-margin-top: 90px; /* adjust based on header + nav height */
}


/* ========================================
   HEADER
======================================== */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 5%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  line-height: 1.1;
  text-decoration: none;
}

.logo strong {
  display: block;
  font-size: 20px;
  letter-spacing: 2px;
}

.logo span {
  font-size: 12px;
  opacity: 0.7;
}

nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.5px;
}


/* ========================================
   HERO
======================================== */

.hero {
  position: relative;
  text-align: center;
  color: white;
}

.hero-media {
  position: relative;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.62),
    rgba(0,0,0,0.24),
    transparent
  );
  pointer-events: none;
}

.hero img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 10%;
  transform: translate(0, -50%);
  text-align: left;
  max-width: 380px;
  z-index: 1;
}

.hero h1 {
  font-size: 52px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 16px;
  opacity: 0.9;
  max-width: 350px;
  margin-top: 14px;
}


/* ========================================
   BUTTONS
======================================== */

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 26px;
  background: linear-gradient(180deg, var(--olive) 0%, var(--olive-deep) 100%);
  color: white;
  text-decoration: none;
  border-radius: 2px;
  font-size: 14px;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.btn:hover {
  background: linear-gradient(180deg, #626c48 0%, #4d5638 100%);
}


/* ========================================
   FLEX / LAYOUT
======================================== */

.flex {
  display: flex;
  align-items: flex-start;
  gap: 36px;
}

.reverse {
  flex-direction: row-reverse;
}

.home .flex .image {
  flex: 1.5; /* or whatever you prefer */
}

.home .flex .text {
  max-width: 360px;
  flex: 0.9;
}

.text h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 26px;
}

.text p {
  margin-top: 6px;
  font-size: 15px;
  opacity: 0.9;
}


.image > img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.image > img:hover {
  transform: scale(1.03);
  transition: transform 0.4s ease;
}

.flex .image > img {
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}


/* ========================================
   FULL WIDTH IMAGE
======================================== */

.full-width {
  padding: 60px 0;
}

.full-width img {
  width: 100%;
  display: block;
}

.image-note {
  font-size: 12px;
  opacity: 0.6;
  text-align: center;
  margin-top: 8px;
}


/* ========================================
   LISTS
======================================== */

.clean-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.clean-list li {
  font-size: 15px;
  margin-bottom: 12px;
}

.centered-list {
  text-align: center;
}

.small-batch-section {
  text-align: center;
}

.small-batch-section .clean-list {
  margin-top: 18px;
}


/* ========================================
   STANDARDS
======================================== */

.standards-section {
  padding: 0 0 30px;
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.standard-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(237,241,229,0.96));
  border: 1px solid rgba(90, 62, 43, 0.08);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(90, 62, 43, 0.05);
}

.standard-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 20px;
}

.standard-card p {
  margin: 0;
  font-size: 14px;
  opacity: 0.88;
}


/* ========================================
   PHILOSOPHY
======================================== */

.philosophy-section {
  padding: 25px 0 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), rgba(237,241,229,0.58));
}

.philosophy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 26px;
  align-items: start;
}

.philosophy-intro h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 34px;
  line-height: 1.15;
}

.philosophy-intro p:last-child {
  margin: 0;
  font-size: 15px;
  opacity: 0.88;
}

.philosophy-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.philosophy-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(243,236,225,0.72));
  border: 1px solid rgba(90, 62, 43, 0.08);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 24px rgba(90, 62, 43, 0.04);
}

.philosophy-card:first-child,
.philosophy-card:last-child {
  border-color: rgba(110, 119, 80, 0.18);
}

.philosophy-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 20px;
}

.philosophy-card p {
  margin: 0;
  font-size: 14px;
  opacity: 0.88;
}


/* ========================================
   EDUCATION SECTION
======================================== */

.education {
  padding: 100px 0;
  text-align: left;
}

.education h2 {
  text-align: center;
  margin-bottom: 40px;
}

.edu-item {
  margin-bottom: 28px;
}

.edu-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 500;
}

.edu-item h3,
.faq-item h3 {
  font-family: 'Inter', sans-serif;
}

.edu-item p {
  font-size: 15px;
  opacity: 0.85;
  margin: 0;
  line-height: 1.6;
}


/* ========================================
   FAQ
======================================== */

.faq {
  padding: 70px 0;
  text-align: left;
}

.faq h2 {
  text-align: center;
  margin-bottom: 40px;
}

.faq-item {
  margin-bottom: 28px;
}

.faq-item h3 {
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 500;
}

.faq-item p {
  margin-top: 10px;
  font-size: 15px;
  opacity: 0.85;
  line-height: 1.6;
}

.faq-item details {
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 16px 0;
}

.faq-item summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  list-style: none;
  position: relative;
}

.faq-item summary::marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 18px;
}

.faq-item details[open] summary::after {
  content: "-";
}

.faq-item details[open] p {
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   CTA
======================================== */

.cta {
  text-align: center;
  background: var(--primary);
  color: white;
  padding: 110px 20px;
}


/* ========================================
   OFFERS
======================================== */

.offer-strip {
  padding: 10px 0 0;
}

#offers {
  scroll-margin-top: 110px;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.offer-card {
  background: linear-gradient(180deg, rgba(237,241,229,0.95), rgba(234,223,206,0.72));
  border: 1px solid rgba(110, 119, 80, 0.18);
  border-radius: 14px;
  padding: 24px;
}

.offer-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 24px;
}

.offer-card p:last-child {
  margin: 0;
  font-size: 14px;
  opacity: 0.88;
}


/* ========================================
   FOOTER
======================================== */

footer {
  background: #eee;
  padding: 30px 5%;
  text-align: center;
}


/* ========================================
   PRODUCTS (BREADS PAGE)
======================================== */

.products .product {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  margin-bottom: 50px;
  border-bottom: 1px solid #eee;
  padding-bottom: 40px;
}

.products .product.reverse {
  flex-direction: row-reverse;
}

.products .product .image {
   flex: 1.6;
}

.products .product .text {
  flex: 1;
}

.products .product .image > img {
  width: 100%;
  height: auto;
  display: block;
}

.placeholder {
  width: 100%;
  height: 260px;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-strong) 100%);
  border-radius: 6px;
  position: relative;
}

.placeholder::after {
  content: "Photography coming soon";
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: calc(100% - 48px);
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  line-height: 1.15;
  color: rgba(90, 62, 43, 0.72);
}


/* ========================================
   RESPONSIVE
======================================== */

@media(max-width: 768px) {

  body {
    background: linear-gradient(180deg, #fcfaf6 0%, #f6f1e9 100%);
  }

  header {
    gap: 12px;
    align-items: flex-start;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    row-gap: 8px;
  }

  nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 4px 0;
    margin-left: 16px;
  }

  .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 18px;
  }

  .cta {
    padding: 84px 20px;
  }

  .cta p {
    max-width: 560px;
    margin: 12px auto 0;
  }

  section {
    padding: 60px 0;
  }

  #offers {
    scroll-margin-top: 96px;
  }

  .home section:nth-of-type(odd):not(.hero):not(.cta):not(.full-width) {
    background: rgba(255,255,255,0.64);
  }

  .home .philosophy-section,
  .home .small-batch-section,
  .home .offer-strip,
  .home .education,
  .home .faq {
    border-top: 1px solid rgba(90, 62, 43, 0.04);
    border-bottom: 1px solid rgba(90, 62, 43, 0.04);
  }

  .philosophy-grid,
  .offer-grid {
    grid-template-columns: 1fr;
  }

  .philosophy-intro h2 {
    font-size: 28px;
  }

  .flex,
  .products .product {
    flex-direction: column;
  }

  .products .product.reverse {
    flex-direction: column;
  }

  .products .product .image,
  .products .product .text {
    width: 100%;
    flex: none;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.2;
  }

  .hero-text {
    position: static;
    transform: none;
    padding: 24px 20px;
    max-width: 100%;
    text-align: left;
  }

  .hero {
    color: var(--text);
    background: linear-gradient(180deg, rgba(237,241,229,0.76), rgba(250,247,242,0.96));
  }

  .hero-media::after {
    display: none;
  }

  .hero p {
    font-size: 15px;
  }

  header {
    background: #faf7f2;
    backdrop-filter: none;
  }

  .category-nav {
    top: 78px;
    padding: 10px 0;
  }

  .category-nav .container {
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }

  .category-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    white-space: nowrap;
    padding-bottom: 0;
  }

  .category-nav .container::-webkit-scrollbar {
    display: none;
  }

  .thumbs {
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .thumbs img {
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
    max-width: 68px;
  }

  .thumbs::-webkit-scrollbar {
    display: none;
  }

  .toggle-btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
  }

  .variant-switch {
    flex-wrap: wrap;
    width: 100%;
  }

  .variant-btn {
    min-height: 44px;
    padding: 10px 14px;
  }

  .placeholder {
    min-height: 220px;
  }

  .placeholder::after {
    left: 18px;
    right: 18px;
    bottom: 18px;
    max-width: none;
    font-size: 18px;
  }

  .premium-range-intro {
    margin-bottom: 22px;
  }
}

/* ---------- Product Expand (Accordion) ---------- */

.product-info {
  max-width: 420px;
}

.details {
  max-height: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  opacity: 0;
  padding-bottom: 10px;
  margin-top: 14px;
}

.details p {
  margin-bottom: 14px;
  line-height: 1.65;
}

.details br {
  line-height: 1.8;
}

.details p:last-of-type {
  margin-top: 12px;
}

.details p strong {
  display: block;
  margin-top: 18px;
  margin-bottom: 6px;
  font-weight: 600;
}

.product-info p,
.details p {
  line-height: 1.6;
}

.product-info ul {
  margin: 10px 0 16px;
  padding-left: 18px;
}

.product-info li {
  margin-bottom: 6px;
}

.product.open .details {
  max-height: 2000px;
  opacity: 1;
}

.toggle-btn {
  margin-top: 16px;
  background: none;
  border: none;
  color: #8b5e3c;
  cursor: pointer;
  font-weight: 500;
  padding: 0;
  position: relative;
  font-size: 14px;
  letter-spacing: 0.3px;
  
}

.toggle-btn::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background: #8b5e3c;
  transition: width 0.3s ease;
  margin-top: 3px;
}

.toggle-btn:hover::after {
  width: 100%;
}

.product.open .toggle-btn {
  color: #5a3e2b; /* slightly darker */
}


/* ---------- Image Gallery ---------- */

.variant-switch {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 12px;
}

.variant-btn {
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  color: var(--text);
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.3px;
  cursor: pointer;
  border-radius: 999px;
}

.variant-btn.active {
  background: #5a3e2b;
  color: #fff;
  border-color: #5a3e2b;
}

.variant-gallery[hidden] {
  display: none !important;
}

.gallery .main-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain; /* prevents cropping */
  border-radius: 10px;
  margin-bottom: 10px;
  display: block;
}

.thumbs {
  display: flex;
  gap: 8px;
  align-items: center;
}

.thumbs img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 6px;

  flex: 0 0 60px;   /* fixed thumbnail width */
  max-width: 60px;  /* safety cap */
  
  opacity: 0.7;
  border: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.thumbs img:hover {
  opacity: 1;
}

.thumbs img.active {
  border: 2px solid #8b5e3c;
  opacity: 1;
  outline: 1px solid #8b5e3c;
}

.image-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.image-wrapper img {
  width: 100%;   /* image fills container */
  height: auto;
  display: block; /* removes inline spacing issues */
}

.info-icon {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 22px;
  height: 22px;

  background: rgba(0, 0, 0, 0.45); /* dark glass effect */
  color: #fff;

  font-size: 13px;
  text-align: center;
  border-radius: 50%;
  cursor: pointer;
  line-height: 22px;

  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.info-icon:hover {
  background: rgba(0, 0, 0, 0.65);
  transform: scale(1.05);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.modal-content {
  background: #fff;
  padding: 22px 20px;
  max-width: 340px;
  margin: 12% auto;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.modal-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.close {
  float: right;
  cursor: pointer;
  font-size: 18px;
  opacity: 0.6;
}

.close:hover {
  opacity: 1;
}

/* Tooltip box */
.tooltip {
  position: absolute;
  bottom: 42px; /* sits above icon */
  right: 0;

  background: rgba(0, 0, 0, 0.85);
  color: #fff;

  padding: 8px 10px;
  border-radius: 6px;

  font-size: 12px;
  line-height: 1.4;

  width: 220px;
  text-align: left;

  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
  transition: all 0.2s ease;
}

.hero-media .tooltip {
  right: 12px;
}

.gallery .tooltip {
  right: 12px;
}

/* Visible state */
.tooltip.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-media,
.gallery {
  position: relative;
}

.section-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 50px 0;
}

.section-divider span {
  padding: 0 16px;
  font-size: 22px;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.5px;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(0,0,0,0.15);
}


.category-nav {
  position: sticky;
  top: 64px; /* adjust based on header height */

  background: rgba(250,247,242,0.9);
  backdrop-filter: blur(6px);

  border-bottom: 1px solid rgba(0,0,0,0.05);

  padding: 14px 0;
  margin-bottom: 30px;

  display: flex;
  justify-content: center;
  gap: 40px;
  z-index: 999;
}

.category-nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.5px;

  opacity: 0.6;
  position: relative;
  padding-bottom: 4px;
}

.category-nav a:hover {
  opacity: 1;
}

.category-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 0;
  height: 1px;
  background: var(--text);

  transition: width 0.25s ease;
}

.category-nav a:hover::after {
  width: 100%;
}

.category-nav .container {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.category-nav a.active {
  opacity: 1;
  font-weight: 500;
}

#rolls .rolls-intro {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
}

#rolls .rolls-intro + .product {
  margin-top: 56px !important;
}

.product-standards {
  padding: 0 0 26px;
}

.standards-pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.standard-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(110, 119, 80, 0.11);
  border: 1px solid rgba(110, 119, 80, 0.16);
  font-size: 13px;
  letter-spacing: 0.2px;
}

.photo-note {
  margin: 12px auto 0;
  max-width: 700px;
  text-align: center;
  font-size: 14px;
  opacity: 0.76;
}

.premium-range {
  padding-top: 30px;
}

.premium-range-intro {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.premium-kicker {
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--primary);
  opacity: 0.75;
}

.premium-range-intro p:last-child {
  margin: 0;
  font-size: 15px;
  opacity: 0.88;
}

.premium-label {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  opacity: 0.6;
}

.premium-product {
  border-bottom-color: rgba(90, 62, 43, 0.12);
}

.premium-placeholder {
  background: linear-gradient(135deg, #efe5d6 0%, #e5d4bc 100%);
}

@media(max-width: 900px) {
  .standards-grid {
    grid-template-columns: 1fr;
  }
}

