/*
 * Stylesheet for the "Salborea" landing page (definitive version).
 *
 * This CSS implements a minimal, premium and mediterranean aesthetic using
 * generous whitespace, a refined palette and clean typography. The layout is
 * mobile‑first and uses flexbox and grid for responsive structures. All sizes
 * follow an 8‑point spacing scale with larger padding on desktop.
 */

/* Root variables for colours, fonts and layout constraints */
:root {
  --bg-color: #f4f1ea;
  --text-color: #1e1e1e;
  --accent-color: #4f6f52;
  --neutral-color: #e8e2d8;
  --max-width: 1100px;
  --font-family: Helvetica, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

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

/* Utility classes */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Header */
.header {
  width: 100%;
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--neutral-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo-link {
  text-decoration: none;
}

.logo-text {
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--text-color);
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}
.nav-list a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav-list a:hover::after,
.nav-list a:focus::after {
  transform: scaleX(1);
}

/* Generic button styling */
.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.btn-primary {
  background-color: var(--accent-color);
  color: var(--bg-color);
  border: 1px solid var(--accent-color);
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #3f5c42;
  border-color: #3f5c42;
}
.btn-secondary {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--text-color);
}
.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--text-color);
  color: var(--bg-color);
}

/* Eyebrow (small uppercase) */
/* Eyebrow (small uppercase) */
.eyebrow {
  text-transform: uppercase;
  /* smaller text for a subtle headline */
  font-size: 0.65rem;
  font-weight: 500;
  /* lighter tracking (increase spacing slightly) */
  letter-spacing: 0.15rem;
  color: var(--accent-color);
  margin: 0 0 0.5rem;
}

/* Hero section */
/* Hero section */
.hero-section {
  /* Generous vertical padding on mobile */
  padding: 5rem 0;
  display: block;
}

/* Container for the hero section */
.hero-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  /* center children horizontally */
  align-items: center;
}

@media (min-width: 768px) {
  .hero-section {
    /* Increase padding on desktop */
    padding: 8rem 0;
  }
  .hero-container {
    flex-direction: row;
    align-items: center;
    gap: 3rem;
  }
}

.hero-text {
  flex: 1;
  /* center text container with max-width */
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-title {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
  /* larger base font size for dominance */
  font-size: 2.5rem;
}
.hero-subcopy {
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  max-width: 30rem;
}
.hero-note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* CTA button group inside hero */
.cta-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 480px) {
  .cta-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .hero-title {
    /* On desktop, make the hero title even more dominant */
    font-size: 5rem;
  }
  .hero-subcopy {
    font-size: 1.25rem;
  }
  .hero-note {
    font-size: 0.875rem;
  }
}

/* Placeholder boxes */
.placeholder {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 2px dashed var(--neutral-color);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--neutral-color);
  text-align: center;
  font-size: 0.9rem;
  padding: 1rem;
}

/* Override placeholder style in preorder section so it contrasts against the neutral background */
.preorder-section .placeholder {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

/* Product images inserted via <img> tags */
/* Hero product image: constrain width and add soft shadow */
.hero-photo {
  width: 100%;
  max-width: 520px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Macro cookie section */
.macro-section {
  padding: 6rem 0;
  background-color: var(--bg-color);
  text-align: center;
}
@media (min-width: 768px) {
  .macro-section {
    padding: 8rem 0;
  }
}
.macro-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}
.macro-photo {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Preorder image styling */
.preorder-photo {
  width: 100%;
  max-width: 520px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Concept section */
.concept-section {
  padding: 4rem 0;
  background-color: var(--bg-color);
  text-align: center;
}

.concept-section .section-title {
  margin-bottom: 2rem;
}
/* Manifesto text (concept section) */
.manifesto {
  /* limit width to 680px for optimum readability */
  max-width: 42.5rem;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.8;
}
/* spacing between lines */
.manifesto p {
  margin: 0.6rem 0;
}
/* emphasis lines in concept */
.manifesto .emphasis {
  font-weight: 600;
}

@media (min-width: 768px) {
  .concept-section {
    padding: 6rem 0;
  }
  .manifesto {
    font-size: 1.25rem;
  }
}

/* Differentiation section */
.differentiation-section {
  padding: 4rem 0;
  background-color: var(--neutral-color);
}

/* Narrative text under the differentiation title */
.diff-narrative {
  max-width: 45rem;
  margin: 0 auto 3rem auto;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
}

.diff-narrative p {
  margin: 0.4rem 0;
}

.differentiation-section .intro-text {
  text-align: center;
  margin-bottom: 3rem;
  line-height: 1.4;
}

.cards {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.card {
  background-color: var(--bg-color);
  border: 1px solid var(--neutral-color);
  border-radius: 12px;
  padding: 2rem;
  flex: 1;
  text-align: left;
}
.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent-color);
}
.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
}
.card-list li {
  margin-bottom: 0.5rem;
}

/* When using paragraphs instead of lists in cards */
.card p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
@media (min-width: 768px) {
  .card p {
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .cards {
    flex-direction: row;
  }
  .card-list {
    font-size: 1rem;
  }
}

/* What is Salborea section */
/*
 * Cos'è Salborea section
 * Center-aligns the content for a more balanced composition. The container
 * still maintains a reasonable max width on its child (.what-text) via
 * margin auto, so the section remains readable on wide displays.
 */
.what-section {
  padding: 4rem 0;
  background-color: var(--bg-color);
  /* Center the contents of this section including the heading */
  text-align: center;
}
/* Left align the section title for narrative flow */
.what-section .section-title {
  text-align: center;
  margin-bottom: 2rem;
}
.what-text {
  max-width: 45rem;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
  text-align: center;
}
/* increase spacing between paragraphs */
.what-text p {
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .what-section {
    padding: 6rem 0;
  }
  .what-text {
    font-size: 1.125rem;
  }
}

/* Preorder section */
/* Preorder section container */
.preorder-section {
  padding: 4rem 0;
  background-color: var(--neutral-color);
}

/* Top part of preorder: title, subtitle, quote */
.preorder-top {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2rem auto;
}

/* Middle part: details and image */
.preorder-middle {
  display: flex;
  /* On mobile, stack image then details vertically */
  flex-direction: column;
  gap: 2rem;
}

/* Left-hand details */
.preorder-details {
  flex: 1;
  text-align: left;
}

/* Right-hand image */
.preorder-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Bottom part: button and microcopy */
.preorder-bottom {
  text-align: center;
  margin-top: 2rem;
}

.pre-subtitle {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  color: var(--accent-color);
}
.pre-quote {
  margin: 0;
  font-size: 1rem;
  font-style: normal;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
}
.pre-copy {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.6;
}
.strong-copy {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--accent-color);
}

.info-list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.info-list li {
  margin-bottom: 0.5rem;
}

/* Ensure preorder info list aligns to the left within details */
.preorder-details .info-list {
  padding-left: 0;
}
.preorder-btn {
  display: inline-block;
  margin-bottom: 0.75rem;
}
.microcopy {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

/* Utility to center text within specific elements */
.centered-text {
  text-align: center;
}

/* Success message for Netlify form submissions */
.success-message {
  display: none;
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--accent-color);
}

@media (min-width: 768px) {
  /* Larger padding on desktop */
  .preorder-section {
    padding: 6rem 0;
  }
  /* Middle layout becomes two columns */
  .preorder-middle {
    flex-direction: row;
    align-items: center;
  }
  /* On desktop, ensure details appear left and image right */
  .preorder-details {
    order: 1;
  }
  .preorder-image {
    order: 2;
  }
  .preorder-top {
    margin-bottom: 3rem;
  }
  .pre-quote {
    font-size: 1.125rem;
  }
  .pre-copy {
    font-size: 1.125rem;
  }
  .strong-copy {
    font-size: 1.25rem;
  }
  .info-list {
    font-size: 1rem;
  }
}

/* Final CTA section */
/* Final CTA section */
.cta-final-section {
  /* very generous vertical spacing */
  padding: 6rem 0;
  background-color: var(--bg-color);
  text-align: center;
}
.cta-final-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}
@media (min-width: 480px) {
  .cta-final-buttons {
    flex-direction: row;
    gap: 1.5rem;
  }
}

/* Club section */
.club-section {
  padding: 4rem 0;
  background-color: var(--neutral-color);
  text-align: center;
}
.club-section .section-title {
  margin-bottom: 1.5rem;
}
.club-subtitle {
  font-size: 1rem;
  margin-bottom: 2rem;
  max-width: 30rem;
  margin-left: auto;
  margin-right: auto;
}
.club-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
.club-form input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--text-color);
  font-size: 1rem;
}
.club-form input[type="email"]:focus {
  outline: 2px solid var(--accent-color);
}
.club-form .btn {
  width: 100%;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 480px) {
  .club-form {
    flex-direction: row;
    align-items: flex-start;
  }
  .club-form .btn {
    width: auto;
  }
  .club-form .microcopy {
    text-align: left;
  }
}

/* Footer */
.footer {
  background-color: var(--bg-color);
  padding: 3rem 0;
  border-top: 1px solid var(--neutral-color);
}
/* Center align footer on all devices */
.footer-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}
.footer-brand {
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.social-links a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 0.875rem;
}
.social-links a:hover,
.social-links a:focus {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Section titles */
.section-title {
  font-weight: 600;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.75rem;
  color: var(--text-color);
}
@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}