/* Color palette */
:root {
  --white: #FFFFFF;
  --black: #0e0e0e;
  --orange: #F55628; 
  --yellow: #FFC536;
  --gray-100: #f7f7f7; /* Soft background */
  --gray-200: #eeeeee; /* Light hover/border */
  --gray-400: #cfcfcf;
  --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.04);
}

@font-face {
  font-family: 'magdaclean';
  src: url('fonts/magdaclean.otf') format('opentype');
  font-weight: bolder;
  font-style: normal;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'magdaclean',Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--black);
  background: var(--gray-100); 
  line-height: 1.6; 
  /* CHANGE: Default body text is now regular weight, not bold */
  font-weight: 400; 
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200); 
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  font-weight: 1000;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--orange);
  display: flex;
  align-items: center;
  font-family: 'magdaclean', Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  /* EXPLICIT: Keep brand bold */
  font-weight: 800; 
}

.brand-logo {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.brand-logo:hover {
  transform: scale(1.05);
}
.nav { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; font-size: 1.25rem; background: none; border: none; }
.nav-list { display: flex; align-items: center; gap: 18px; list-style: none; margin: 0; padding: 0; }
.nav-list a { color: var(--black); text-decoration: none; font-weight: 600; }
.nav-list .cta-link { color: var(--white); background: var(--orange); padding: 8px 14px; border-radius: 999px; }
.nav-list .cta-link:hover { opacity: .9; }

/* Hero */
.hero { 
  padding: 40px 0 20px; 
  background: var(--white); 
  border-top: none;
}
.hero-title { 
  font-size: clamp(2rem, 5vw, 3.25rem); 
  margin: 0 0 12px; 
  /* EXPLICIT: Keep hero title extra bold */
  font-weight: 800; 
  font-family: 'magdaclean', Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
.accent { color: var(--orange); }
.hero-sub { margin: 0 0 18px; color: #333; font-weight: 500; }
.hero-actions { display: flex; gap: 12px; }
.btn { 
  display: inline-block; 
  text-decoration: none; 
  border-radius: 999px; 
  padding: 12px 18px; 
  /* EXPLICIT: Keep buttons bold */
  font-weight: 700; 
}
.btn.primary { background: var(--orange); color: var(--white); }
.btn.ghost { border: 2px solid var(--black); color: var(--black); }
.btn.primary:hover { filter: brightness(0.95); }
.btn.ghost:hover { background: var(--black); color: var(--white); }

/* Sections */
.section { 
  padding: 16px 0; 
  border-top: none;
  background: var(--gray-100); 
}
.section-title { 
  font-size: 1.6rem; 
  margin: 0 0 14px; 
  /* EXPLICIT: Keep section title extra bold */
  font-weight: 800; 
  font-family: 'magdaclean', Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
.panel { background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; padding: 18px; }

/* Log */
.log-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.log-col { background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; padding: 14px; }
/* Log details should not be overly bold, using 500/700 balance */
.label { font-size: .8rem; color: #555; font-weight: 600; display: block; }
.value { font-weight: 700; }

/* Flavours */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px; padding: 16px; box-shadow: 0 1px 0 var(--gray-200); transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer; }
.card:hover { 
  transform: translateY(-5px); 
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); 
}

.product-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.image-container {
  width: 100%;
  height: 160px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 12px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.product-info {
  padding: 8px 0;
}

.card-title { 
  margin: 0 0 4px; 
  font-size: 1.25rem; 
  /* EXPLICIT: Keep card titles bold */
  font-weight: 800; 
  font-family: 'magdaclean', Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}
.card-desc { margin: 0 0 8px; color: #444; }
.card-meta { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; color: #333; font-weight: 600; }
.footnote { margin-top: 8px; color: #666; font-size: .85rem; }

/* Modal styles - Kept white */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  overflow: auto;
}

.modal-content {
  background-color: var(--white);
  margin: 10% auto;
  padding: 1.5rem;
  border-radius: 0.5rem;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  animation: modalFadeIn 0.3s;
}

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

.close-modal {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  color: #aaa;
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
}

.close-modal:hover {
  color: var(--orange);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#modalImage {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

.modal-details {
  padding: 1rem 0;
}

/* FAQ */
.faq { 
  border-top: 1px solid var(--gray-200); 
  background: var(--gray-100); 
}
.faq-q { 
  width: 100%; 
  text-align: left; 
  background: var(--white); 
  border: 1px solid var(--gray-200); 
  margin-top: -1px;
  padding: 16px; 
  /* EXPLICIT: Keep question text bold */
  font-weight: 600; 
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  font-family: 'magdaclean', Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.faq-q:first-of-type {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    margin-top: 0;
}
.faq-q:hover { 
    background: var(--gray-200); 
}

/* HIGHIGHT THE OPEN QUESTION */
.faq-q[aria-expanded="true"] { 
    background: var(--white); 
    border-top: 2px solid var(--gray-400); 
    border-bottom: 2px solid var(--gray-400); 
    border-left: 1px solid var(--gray-200); 
    border-right: 1px solid var(--gray-200); 
    box-shadow: none; 
}
.faq-q[aria-expanded="true"]:hover {
    background: var(--white); 
}

.faq-a { 
    display: none; 
    padding: 16px; 
    color: #333; 
    background: var(--gray-100); 
    border: none; 
    padding-bottom: 20px; 
}
.faq-q[aria-expanded="true"] + .faq-a { 
    display: block; 
}
.faq-q[aria-expanded="true"]:not(:last-of-type) {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}
.faq-a:last-of-type {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
.faq-icon { 
    color: var(--black); 
    font-weight: 800; 
    transition: transform 0.3s;
}
.faq-q[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg); 
}

/* Order (White CTA Section) */
.order { 
  background: var(--white); 
  color: var(--black); 
  border-top: 1px solid var(--gray-200); 
  border-bottom: 1px solid var(--gray-200); 
  padding: 16px 0; 
}

.order-inner { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  justify-content: center;
  gap: 16px; 
  padding: 0; 
}
.order-inner .section-title {
    color: var(--black);
    margin-bottom: 8px;
}

/* Order Button */
.order .btn.primary { 
  background: var(--orange); 
  color: var(--white);
  padding: 14px 24px; 
  box-shadow: 0 4px 10px rgba(245, 86, 40, 0.4); 
  transition: all 0.2s ease;
}

.order .btn.primary:hover {
  filter: brightness(1.05);
  transform: translateY(-2px); 
  box-shadow: 0 6px 15px rgba(245, 86, 40, 0.5); 
}

/* Allergen Information */
.allergen-info {
  background-color: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 10px 0;
  max-width: 600px;
}

.allergen-info h3 {
  color: var(--black);
  font-size: 1.1rem;
  margin: 0;
  border-bottom: 2px solid var(--yellow);
  margin-bottom: 8px;
  padding-bottom: 4px;
  font-family: 'magdaclean', Inter, sans-serif;
}

.allergen-info ul {
  padding-left: 20px;
  margin-top: 0;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.allergen-info li {
  margin-bottom: 1px;
}

.allergen-warning {
  /* EXPLICIT: Keep this warning text bold */
  font-weight: bold;
  color: var(--black); 
  margin-top: 10px;
  font-size: 0.9rem;
}

/* Footer */
.site-footer { 
  border-top: 1px solid var(--gray-200); 
  background: var(--gray-100); 
}
.footer-inner { padding: 10px 0; text-align: center; } 

/* -------------------------------------- */
/* --- FORM & SOCIAL STYLES --- */
/* -------------------------------------- */

/* Contact modal forms: white background, bordered inputs */
.contact-modal { 
  background: var(--white); 
}

.contact-form { 
  margin-top: 4px; 
}
.hidden { 
  display: none; 
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px; 
}

.form-field { 
  display: flex; 
  flex-direction: column; 
}
.form-field.full { 
  grid-column: 1 / -1; 
}
.form-field label { 
  /* EXPLICIT: Keep form labels bold */
  font-weight: 700; 
  margin-bottom: 6px; 
  color: var(--black); 
  font-size: 0.95rem;
}

.form-field input,
.form-field textarea {
  padding: 12px 14px; 
  border: 1px solid var(--gray-400); 
  border-radius: 8px; 
  background: var(--white); 
  color: var(--black);
  /* REVERTED: Custom font used for inputs, keeping the 400 body weight */
  font-family: 'magdaclean', Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  box-shadow: var(--shadow-light); 
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange); 
  background: var(--white); 
  box-shadow: 0 0 0 3px rgba(245, 86, 40, 0.2); 
}

.form-actions { 
  grid-column: 1 / -1; 
  margin-top: 12px; 
  text-align: center; 
}

.form-actions .btn {
  width: 100%;
  max-width: 200px; 
}

.form-success {
  margin-top: 16px; 
  background-color: #ecfdf5;
  color: #065f46;
  border: 1px solid #10b981;
  border-radius: 8px;
  padding: 12px 14px;
  font-weight: 700;
}

/* Social connect outside modal */
.social-connect { 
  margin-top: 20px; 
  padding-top: 20px;
  border-top: 1px dashed var(--gray-400); 
  display: flex;
  flex-direction: column;
  align-items: center; 
  width: 100%;
}

.social-intro { 
  /* EXPLICIT: Keep social intro bold */
  font-weight: 700; 
  margin-bottom: 12px; 
  font-size: 1.1rem;
}

.social-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; 
  gap: 15px; 
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px; 
  border: 1px solid var(--gray-400); 
  border-radius: 9999px;
  background: var(--white);
  color: var(--black);
  /* EXPLICIT: Keep social buttons bold */
  font-weight: 700; 
  box-shadow: var(--shadow-light); 
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease, color 150ms ease;
}

.social-btn:hover {
  transform: translateY(-2px); 
  border-color: var(--orange); 
  color: var(--orange); 
  box-shadow: 0 4px 10px rgba(245, 86, 40, 0.15); 
}

.social-btn img {
  height: 20px;
  width: auto;
  display: block;
  transition: filter 150ms ease;
}

.social-btn:hover img {
  filter: grayscale(0%); 
}

/* Responsive */
@media (max-width: 900px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .log-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .social-buttons { gap: 10px; }
  .form-actions .btn { max-width: 100%; }
}
@media (max-width: 640px) {
  .hero { padding: 40px 0 20px; }
  .menu-toggle { display: inline-block; }
  .nav-list { display: none; position: absolute; right: 4%; top: 56px; background: var(--white); border: 1px solid var(--gray-200); border-radius: 12px; padding: 10px; flex-direction: column; }
  .nav-list.show { display: flex; }
  .card-grid { grid-template-columns: 1fr; }
}

/* Responsive section title */
.order .section-title {
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.25;
  letter-spacing: 0.2px;
  /* Responsive font-size from mobile → desktop */
  font-size: clamp(18px, 3.5vw + 6px, 30px);
  /* Improve wrapping behavior on small screens */
  overflow-wrap: anywhere;
  word-break: normal;
  /* Modern browsers will balance line lengths if available */
  text-wrap: balance;
}

.order .section-title .title-main,
.order .section-title .title-sub {
  display: block;
}

.order .section-title .title-sub {
  margin-top: 4px;
  font-weight: 600;
  opacity: 0.95;
}

@media (max-width: 480px) {
  .order .section-title {
    padding: 0 14px;
    line-height: 1.3;
    font-size: clamp(15px, 4vw + 3px, 20px);
  }
}