/* Needed for Montserrat Display */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* ========== GLOBAL STYLES ========== */
body {
  font-family: 'Lato', sans-serif;
  background: linear-gradient(to right, 
  rgba(255, 174, 66, 0.20) 0%,
  rgba(243, 222, 218, 0.20) 34%, 
  rgba(241, 228, 236, 0.20) 67%, 
  rgba(240, 234, 255, 0.20) 100%
);
  color: #3A3432;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  letter-spacing: 0.03em;
}

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

.site-header {
  width: 100%;
  padding: 2rem 0 1rem 0;
  box-sizing: border-box;
  margin-bottom: 1.5rem;
}

.header-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem; /* horizontal padding consistent with main */
  box-sizing: border-box;
}

/* Logo */
.logo {
  height: 48px;
  width: auto;
  display: block;
}

/* Navigation */
.site-nav {
  display: flex;
  gap: 0.75rem;
  align-items: center; /* Ensures nav items align with logo center */
  margin-left: 2em; /* Add space between logo and nav links */
}

.site-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-size: 1.1rem;
  padding: 0 1rem;  
  text-decoration: none;
  color: #230A5C;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  padding: 0 0.75rem;
  border-radius: 14px; /* Slightly more rounded */
  transition: all 0.2s ease;
}

.site-nav a:hover {
  background-color: #FFAE42;
  color: #230A5C;
  transform: translateY(-1px); /* Subtle lift on hover */
  box-shadow: 0 2px 8px rgba(255, 174, 66, 0.3); /* Glow on hover */
}

/* ========== TYPOGRAPHY ========== */
h1 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  color: #230A5C;
  letter-spacing: 0.08em;
  margin-top: 1rem;
  font-size: 2rem;
}

h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: #230A5C;
  letter-spacing: 0.07em;
  margin: 1.5rem 0 1rem 0; /* Increase bottom margin from 0.75rem to 1rem */
  font-size: 1.5rem;
}

/* First h2 in a card shouldn't have top margin */
.main-section h2:first-child,
.product-info h2.product-title:first-child {
  margin-top: 0;
}

nav a {
  margin-right: 1rem;
  text-decoration: none;
  color: #230A5C;
  font-weight: 700;
}

strong, b {
  text-decoration: underline;
  text-decoration-color: rgba(255, 127, 80, 0.5);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* ========== MAIN CONTAINER ========== */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

main > h1 {
  margin-top: 2rem; /* More dramatic spacing */
}

main > p {
  margin-bottom: 3rem; /* Already 2rem on mobile, match on web */
}

/* ========== SECTION CARDS & PRODUCT CARDS (web) ========== */

/* Shared card base so main-section and product-card match exactly */
.main-section,
.product-card {
  background: #FFFCF8; /* very soft warm white */
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 0 40px rgba(255, 174, 66, 0.15);
  border: 2px solid rgba(45, 35, 90, 0.15);
  border-radius: 12px;
  padding: 2rem;               /* unified padding */
  margin: 2rem 0;
  box-sizing: border-box;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  font-family: 'Lato', sans-serif;
  color: #3A3432;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 800px;
  width: 100%;
}

/* Headings for both card types */
.main-section h2,
.product-info h2.product-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: 0.07em;
  color: #230A5C;
  margin: 0 0 0.75rem 0;        /* identical top/bottom spacing */
  font-size: 1.5rem;
}

/* Paragraphs / lists inside both card types */
.main-section p,
.product-info p {
  font-family: 'Lato', sans-serif;
  color: #3A3432;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 0.75rem 0;        /* identical vertical rhythm */
}

/* lists inside both card types */
.main-section ul,
.main-section li {
  font-family: 'Lato', sans-serif;
  color: #3A3432;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 0.25rem 0;
}

.main-section ul {
  margin-bottom: 1rem; /* Add breathing room after lists */
}

.main-section p + ul,
.product-info p + ul {
  margin-top: 0.5rem; /* Breathing room between paragraph and list */
}

/* Ensure last item in a card doesn't add extra bottom space */
.main-section p:last-child,
.main-section ul:last-child,
.main-section li:last-child,
.product-info p:last-child {
  margin-bottom: 0;
}

/* PRODUCT CARDS: grid layout for text + image, but don't stretch the text column */
.products-container {
  display: block;
  flex-direction: column;
  gap: 0;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

/* Product card already inherits shared base */
.product-card {
  /* no changes needed here */
}

/* Product content layout */
.product-content {
  display: grid;
  grid-template-columns: 1fr 220px; /* left = text, right = image */
  gap: 2rem;
  align-items: start;               /* top-align columns so text doesn't stretch */
}

/* Product text column: natural flow */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;           /* spacing between title, paragraph, button */
  padding: 0;             /* match main-section distance from border */
  margin: 0;
  align-items: flex-start; /* left-align children */
}

/* Button inside product-info stays consistent with other buttons */
.product-info .btn {
  width: auto;
  max-width: 100%;
  margin: 0; /* Remove bottom margin */
  display: inline-block;
  box-sizing: border-box;
}

/* Product image column - top aligned */
.product-image {
  display: flex;
  align-items: start;     /* top align image with text column */
  justify-content: center;
}

.product-image img {
  max-width: 200px;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* ========== BUTTONS & LINKS ========== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #FFAE42;
  color: #230A5C;
  font-family: 'Lato', sans-serif;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #F0EAFF;
  transform: translateY(-2px);
}

a {
  color: #230A5C;
  text-decoration: underline;
  transition: color 0.2s ease;
}

a:hover {
  color: #FFAE42;
}

/* ========== FOOTER ========== */
footer {
  background-color: inherit;
  text-align: center;
  padding: 0rem;
  color: #3A3432;
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  margin-top: 0;
}

/* ========== MOBILE ADJUSTMENTS ========== */
@media (max-width: 600px) {
  /* Header */
  .site-header {
    padding: 1.5rem 0 1rem 0;
    margin-bottom: 1rem;
    box-sizing: border-box;
  }
  
  .header-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    max-width: 100%;
    margin: 0;
    padding: 0 1rem;
    box-sizing: border-box;
  }
  
  .logo-link {
    display: inline-block;
    margin: 0;
    padding: 0;
  }
  
  .logo {
    height: 40px;
    width: auto;
    display: block;
  }
  
  /* Navigation */
  .site-nav {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    margin-left: 0; /* removes the 2rem margin on mobile */
    box-sizing: border-box;
  }
  
  .site-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-size: 1rem;
    padding: 0 0.75rem;
    text-decoration: none;
    color: #230A5C;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    white-space: nowrap;
  }
  
  .site-nav a:hover {
    background-color: #FFAE42;
    color: #230A5C;
    box-shadow: 0 2px 8px rgba(255, 174, 66, 0.3);
  }

  /* Intro content spacing */
  main > h1 {
    font-size: 1.8rem;
    margin: 0 0 0.75rem 0;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  main > p {
    margin: 0 0 2rem 0; /* Increase from 1rem to 1.5rem */
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

 /* REMOVE DOUBLE PADDING */
  .products-container,
  .main-content {
    padding: 0;
    box-sizing: border-box;
  }

.products-container .product-card:first-child {
    margin-top: 1.5rem; /* Increase from 1rem to 1.5rem */
  }

  /* Remove top margin for first card in the flow */
  .intro-text:first-child,  
  .main-section:first-child {
    margin-top: 0;
  }

  /* Section & product card - unified styling */
  .main-section,
  .product-card {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-sizing: border-box;
  }

  /* Titles inside cards */
  .main-section h2,
  .product-info h2.product-title {
    font-size: 1.2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: 0.07em;
    color: #230A5C;
    margin: 1.5rem 0 1rem 0; /* Match: 1rem bottom */
  }

  .main-section h2:first-child,
  .product-info h2.product-title:first-child {
    margin-top: 0;
  }

/* Paragraphs inside cards */
  .main-section p,
  .product-info p {
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  color: #3A3432;
  line-height: 1.6;
  margin: 0 0 0.75rem 0;
  }

/* Lists inside cards - separate with tighter spacing */
  .main-section ul,
  .main-section li {
  font-size: 1rem;
  font-family: 'Lato', sans-serif;
  color: #3A3432;
  line-height: 1.6;
  margin: 0 0 0.25rem 0;  /* Match web spacing */
  }

  .main-section p + ul,
  .product-info p + ul {
    margin-top: 0.5rem;
  }

.main-section ul {
    margin-bottom: 1rem;
  }

  /* Product cards content */
    .product-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0; /* Remove any gap */
  }

  .product-image {
    display: none;
  }

 .product-info {
    padding: 0;
    margin: 0;
    width: 100%;
    gap: 0; /* Remove flex gap if it exists */
  }  

  .product-info .btn {
    width: auto;
    max-width: 100%;
    margin: 0 0 1rem 0;
    display: inline-block;
    box-sizing: border-box;
  }

  /* Headings outside cards */
  h1 {
    font-size: 1.8rem;
  }

  /* Buttons outside product cards */
  .btn {
    width: 100%;
    box-sizing: border-box;
  }

  /* Container spacing tweaks */
  .products-container {
    gap: 1rem;
    box-sizing: border-box;
  }
}