/* ===================================
   THE SWIFT GIFT - MAIN STYLESHEET
   Professional typography and spacing
   =================================== */

/* -----------------------------------
   GLOBAL RESETS & BASE STYLES
----------------------------------- */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  font-size: 1.1rem;        /* Match Brave AI readable size */
  line-height: 1.7;         /* Better readability */
  background-color: #f8f9fa;
  color: #333;
}

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

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
  color: #6b46c1;
  transition: color 0.3s ease;
}

a:hover {
  color: #553c9a;
}

/* Typography scale with better hierarchy */
h1, h2, h3 {
  line-height: 1.3;
  color: #1a202c;
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.25rem;       /* Reduced from 2.75rem */
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.6rem;      /* Reduced from 2.25rem */
  margin-bottom: 1.25rem;
  text-align: center;
}

h3 {
  font-size: 1.375rem;      /* Reduced from 1.5rem */
  margin-bottom: 0.75rem;
}

/* Consistent paragraph spacing */
p {
  margin-bottom: 1.25rem;
  line-height: 1.7;
  font-size: 1.1rem;        /* Consistent with body */
}

/* -----------------------------------
   SITE WRAPPER
----------------------------------- */
.site-wrapper {
  width: 90%;
  max-width: 1200px;
  margin: 20px auto;
  background-color: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  border-radius: 8px;
  overflow: hidden;
}

.container {
  padding: 60px 40px;
}

/* -----------------------------------
   UTILITY CLASSES
----------------------------------- */
.list-disc {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 1.25rem 0;
}

.list-disc li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0,0,0,0);
  overflow: hidden;
}

.image-placeholder {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
  height: 100%;
  min-height: 200px;
  border-radius: 8px;
}

.image-shadow {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
}

/* -----------------------------------
   SPACER UTILITIES
----------------------------------- */
.spacer-100 { height: 100px; }
.spacer-80 { height: 80px; }
.spacer-60 { height: 60px; }
.spacer-40 { height: 40px; }
.spacer-20 { height: 20px; }
.spacer-10 { height: 10px; }

/* -----------------------------------
   HEADER STYLES
----------------------------------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 20px 40px;
  background-color: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  width: 200px;
  height: 50px;
  min-width: 120px;
  min-height: 30px;
  object-fit: contain;
  display: block;
  border-radius: 5px;
  background: transparent;
  margin-right: 32px;
  transition: width 0.3s, height 0.3s, margin 0.3s;
}

nav ul {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

nav a {
  color: #4a5568;
  font-weight: 500;
  font-size: 1rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  text-decoration: none;
}

nav a:hover,
nav a:focus,
nav a.active {
  color: #6b46c1;
  border-bottom-color: #6b46c1;
}

/* --- NEW: Mobile Menu Toggle Button --- */
.mobile-menu-toggle {
  display: none; /* Hidden on desktop */
  background: transparent;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 110; /* Ensure it’s above other header content */
}
.mobile-menu-toggle span[aria-hidden="true"] {
  font-size: 44px; /* Was 28px too small for hamburger menu on real mobile */
  line-height: 1;
  color: #6b46c1; /* Was 333 - changed to site purple 6b46c1 */
}


/* Tablets and down */
@media (max-width: 900px) {
  .site-logo {
    width: 150px;
    height: 38px;
    min-width: 120px;
    min-height: 30px;
    margin-right: 16px;
  }
  nav ul {
    gap: 20px;
  }
  .container {
    padding: 50px 30px;
  }
}

/* Phones */
@media (max-width: 600px) {
  .site-logo {
    width: 160px;
    height: 40px;
    min-width: 160px;
    min-height: 40px;
    margin-right: 8px;
  }
  /* Remove old nav stacking rules */
  /*
  nav ul {
    gap: 15px;
  }
  */
  nav a {
    font-size: 0.95rem;
  }
  .container {
    padding: 40px 20px;
  }
  header {
    padding: 20px 25px;
  }
}

/* -----------------------------------
   HERO SECTION
----------------------------------- */
#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 40px;
  background: linear-gradient(135deg, #f6f8fb 0%, #e9ecef 100%);
}

#hero h1 {
  font-size: 2.5rem;        /* Reduced from 3rem */
  margin-bottom: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-image-container {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  height: auto;
}

.hero-image-container img {
  width: 100%;
  display: block;
  object-fit: cover;
  height: 100%;
}

.hero-sub-content p {
  font-size: 1.15rem;       /* Slightly smaller but still readable */
  color: #4a5568;
  margin-top: 0;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #hero {
    padding: 50px 30px;
  }
  #hero h1 {
    font-size: 2rem;
  }
  .hero-image-container {
    height: auto;
    max-width: 100%;
    margin-left: -30px;
    margin-right: -30px;
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  #hero {
    padding: 40px 20px;
  }
  #hero h1 {
    font-size: 1.75rem;
  }
  .hero-sub-content p {
    font-size: 1.1rem;
  }
  .hero-image-container {
    margin-left: -20px;
    margin-right: -20px;
    height: auto;
  }
}

/* -----------------------------------
   BUTTON STYLES
----------------------------------- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: white;
  color: #6b46c1;
  border-color: #6b46c1;
}

.btn-secondary:hover {
  background: #6b46c1;
  color: white;
}

.btn-link {
  color: #6b46c1;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.btn-link:hover {
  transform: translateX(5px);
}

/* ===================================
   IMPROVED EDITORIAL CONTENT STYLES
   Better hierarchy, colors, and naming
   =================================== */

/* -----------------------------------
   CONTENT TYPOGRAPHY HIERARCHY
----------------------------------- */

/* Main product/section headlines */
.content-headline {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  color: #2d3748;
}

/* Supporting subheadlines */
.content-subhead {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 1rem;
  color: #4a5568;
}

/* Introductory/descriptive paragraphs */
.content-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: #4a5568;
}

/* Emphasis text within content */
.content-emphasis {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.6;
  color: #2d3748;
}

/* -----------------------------------
   INFORMATION BOXES - REDESIGNED
----------------------------------- */

/* Base info box styling */
.info-box {
  padding: 20px;
  margin: 25px 0;
  border-radius: 8px;
  border-left: 4px solid;
  line-height: 1.6;
}

/* Highlight/callout boxes - purple theme to match site branding */
.info-box.highlight {
  background: #f7f5ff;
  border-left-color: #6b46c1;
  color: #4a5568;
}

.info-box.highlight strong {
  color: #2d3748;
}

/* Tips/advice boxes - blue theme */
.info-box.tip {
  background: #f0f8ff;
  border-left-color: #4a90e2;
  color: #4a5568;
}

.info-box.tip strong {
  color: #2d3748;
}

/* Warning/safety boxes - amber theme */
.info-box.warning {
  background: #fffbf0;
  border-left-color: #f59e0b;
  color: #92400e;
}

.info-box.warning strong {
  color: #78350f;
}

/* Success/positive boxes - green theme */
.info-box.success {
  background: #f0fdf4;
  border-left-color: #10b981;
  color: #065f46;
}

.info-box.success strong {
  color: #064e3b;
}

/* Info box paragraph styling */
.info-box p {
  margin: 0 0 15px 0;
  line-height: 1.6;
}

.info-box p:last-child {
  margin-bottom: 0;
}

/* Info box lists */
.info-box ul {
  margin: 10px 0;
  padding-left: 20px;
}

.info-box li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* -----------------------------------
   PRODUCT DETAIL STYLING
----------------------------------- */

/* Price and "best for" information */
.product-details {
  background: #f8fafc;
  padding: 15px 20px;
  border-left: 3px solid #6b46c1;
  margin: 20px 0;
  border-radius: 8px;
}

.product-details p {
  margin: 8px 0;
  line-height: 1.6;
  color: #4a5568;
}

.product-details strong {
  color: #2d3748;
  font-weight: 600;
}

/* -----------------------------------
   RESPONSIVE ADJUSTMENTS
----------------------------------- */

@media (max-width: 768px) {
  .content-headline {
    font-size: 1.375rem;
  }
  
  .content-subhead {
    font-size: 1.125rem;
  }
  
  .info-box {
    padding: 15px;
    margin: 20px 0;
  }
  
  .product-details {
    padding: 12px 15px;
  }
}

/* -----------------------------------
   GIFT GUIDES SECTION
----------------------------------- */
.gift-guides {
  padding: 60px 40px;
}

.section-intro {
  text-align: center;
  color: #4a5568;
  font-size: 1.1rem;        /* Match body text */
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.guide-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.guide-image {
  height: 250px;
  overflow: hidden;
}

.guide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}

.guide-content {
  padding: 25px;
}

.guide-content h3 {
  color: #2d3748;
  margin-bottom: 12px;
  font-size: 1.25rem;       /* Reduced for better hierarchy */
  line-height: 1.3;
}

.guide-content p {
  color: #4a5568;
  margin-bottom: 15px;
  line-height: 1.6;
  font-size: 1rem;          /* Slightly smaller than body */
}

.guide-meta {
  display: flex;
  gap: 20px;
  margin: 15px 0;
  font-size: 0.9rem;
}

.guide-meta span {
  color: #718096;
  display: flex;
  align-items: center;
}

.gift-count::before {
  content: "🎁 ";
  margin-right: 5px;
}

.price-range::before {
  content: "💰 ";
  margin-right: 5px;
}

/* -----------------------------------
   OCCASIONS SECTION
----------------------------------- */
.occasions {
  background: #f7fafc;
  padding: 60px 40px;
  margin: 0 -40px;
}

.occasion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.occasion-card {
  background: white;
  padding: 30px 20px;
  border-radius: 10px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.occasion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.occasion-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.occasion-card h3 {
  color: #2d3748;
  font-size: 1.1rem;
  margin: 0;
}

/* -----------------------------------
   TRUST SECTION
----------------------------------- */
.trust-section {
  padding: 60px 40px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.trust-item {
  text-align: center;
}

.trust-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.trust-item h3 {
  color: #2d3748;
  margin-bottom: 10px;
}

.trust-item p {
  color: #4a5568;
  line-height: 1.6;
  font-size: 1rem;
}

/* -----------------------------------
   ABOUT PAGE SECTION
----------------------------------- */
.about-bio {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.about-photo {
  flex: 0 0 200px;
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.bio-text {
  flex: 1 1 300px;
  font-size: 1.1rem;        /* Match body text */
  line-height: 1.7;
}

.bio-text > p:first-child {
  margin-top: 0;
}

.bio-text li,
.bio-highlights li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

/* Responsive adjustments for phones */
@media (max-width: 640px) {
  .about-bio {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-photo {
    margin: 0 auto 1rem;
  }

  .bio-text {
    text-align: left;
    max-width: 38rem;
  }
}

/* -----------------------------------
   QUICK FINDER SECTION
----------------------------------- */
.quick-finder {
  background: #f7fafc;
  padding: 60px 40px;
  margin: 0 -40px;
  text-align: center;
}

.quick-finder p {
  color: #4a5568;
  font-size: 1.1rem;        /* Match body text */
  margin-bottom: 30px;
  line-height: 1.7;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}

.tag {
  background: white;
  padding: 10px 20px;
  border-radius: 20px;
  color: #4a5568;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.tag:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

/* -----------------------------------
   FOOTER STYLES
----------------------------------- */
footer {
  background: #2d3748;
  color: #cbd5e0;
  padding: 40px 40px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h3 {
  color: white;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-section a {
  color: #a0aec0;
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-section a:hover {
  color: white;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 5px;
  background: #4a5568;
  color: white;
  font-size: 1rem;
}

.newsletter-form input::placeholder {
  color: #a0aec0;
}

.newsletter-form button {
  padding: 10px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.newsletter-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.affiliate-disclaimer {
  max-width: 800px;
  margin: 8px auto 0;
  padding: 0 30px;
  text-align: center;
  font-size: 0.9rem;
  color: #cbd5e0;
  line-height: 1.5;
  font-style: italic;
  opacity: 0.8;
}

.affiliate-disclaimer a {
  color: #cbd5e0 !important;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.affiliate-disclaimer a:hover {
  color: #ffffff !important;
}

.footer-bottom {
  border-top: 1px solid #4a5568;
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
}

.footer-bottom p.donation-links {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #cbd5e0;
  line-height: 1.6;
}

.footer-bottom p.donation-links a {
  color: #cbd5e0;
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.footer-bottom p.donation-links a:hover {
  color: #ffffff;
}

.footer-bottom p.donation-links .emoji {
  opacity: 0.6;
  margin: 0 5px;
  font-size: 1em;
}

/* -----------------------------------
   RESPONSIVE DESIGN
----------------------------------- */
@media (max-width: 768px) {
  /* --- MODIFIED: Header styles for mobile menu --- */
  header {
    flex-direction: row; /* Keep logo and toggle on same line */
    justify-content: space-between;
    gap: 20px;
    position: relative; /* For positioning the dropdown menu */
  }

  .mobile-menu-toggle {
    display: block; /* Show the hamburger button */
  }

  nav {
    display: none; /* Hide nav by default */
    position: absolute;
    top: 100%; /* Position dropdown below the header */
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-top: 1px solid #e2e8f0;
    z-index: 100;
  }

  nav.is-open {
    display: block; /* Show nav when button is clicked */
  }

  nav ul {
    flex-direction: column; /* Stack links vertically */
    width: 100%;
    gap: 0;
    padding: 10px 0; /* Add some padding to the top/bottom of the menu */
  }

  nav a {
    display: block; /* Make links full-width for easy tapping */
    padding: 12px 25px; /* Add padding to each link */
    border-bottom: 1px solid #f0f0f0;
  }
  
  nav li:last-child a {
    border-bottom: none; /* Remove border from last item */
  }

  nav a:hover,
  nav a:focus,
  nav a.active {
    background: #f7f5ff; /* Add a hover/active state background */
    border-bottom-color: #f0f0f0; /* Keep border color consistent */
  }
  /* --- END: Header modifications --- */


  #hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  h2 {
    font-size: 1.625rem;     /* Smaller on mobile */
  }

  .guide-grid {
    grid-template-columns: 1fr;
  }

  .occasion-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .occasions {
    margin: 0 -30px;
    padding: 50px 30px;
  }

  .quick-finder {
    margin: 0 -30px;
    padding: 50px 30px;
  }
}

@media (max-width: 480px) {
  .site-wrapper {
    width: 95%;
    margin: 10px auto;
  }

  /* This rule is no longer needed, as the 768px rule handles it */
  /*
  nav ul {
    flex-direction: column;
    width: 100%;
  }
  */

  .newsletter-form {
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .occasions {
    margin: 0 -20px;
    padding: 40px 20px;
  }

  .quick-finder {
    margin: 0 -20px;
    padding: 40px 20px;
  }
}


/* =========================================================
   HERO: lock an aspect-ratio so every browser crops evenly
   ========================================================= */
.hero-image-container{
  /* pick the aspect-ratio you like: 3/1 ≈ 33 % of width */
  aspect-ratio: 3 / 1;         /* 16/9 or 4/1 also work */
  position: relative;
  overflow: hidden;            /* keeps the rounded corners */
}

.hero-image-container img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
