/*
 * Import only the Poppins font with a range of weights.  We omit the
 * Open Sans import here because the design now uses Poppins for both
 * headings and body copy.  The browser will fall back to sans‑serif
 * fonts if the Google Fonts request fails.
 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/*
 * Global stylesheet for the EKT Sockenläufer website.
 *
 * The goal of this design is to create a welcoming and modern look
 * appropriate for a child day‑care centre. A playful colour palette is
 * combined with clean typography to give parents confidence while
 * keeping the site easy to navigate. The layout is responsive and
 * mobile‑friendly: navigation collapses on smaller screens and
 * content stacks vertically. A reusable header and footer are used on
 * every page to maintain consistency across both the German and
 * English versions of the site.
 */

/*
 * Base reset and typography
 * Define CSS variables to centralise colours and fonts. This makes it
 * easy to tweak the palette while keeping adequate contrast. The primary
 * colour is a coral pink for strong accents; secondary is a soft blue to
 * complement it; the background is a warm off‑white. We'll use the
 * modern "Poppins" font for headings and "Open Sans" for body text via
 * Google Fonts (see HTML head). If the fonts fail to load, the browser
 * will fall back to sans‑serif.
 */
:root {
  /*
   * Colour palette
   * The primary colour is now a saturated coral pink that pops on light
   * backgrounds; the secondary colour is a clear medium blue.  Card
   * borders and backgrounds use very light tints of these hues.  Text
   * is dark grey to ensure strong contrast.
   */
  --color-primary: #ef476f;
  --color-primary-hover: #f9728e;
  --color-secondary: #3f88c5;
  --color-bg: #fdfaf7;
  --color-card-border: #f8d8d3;
  --color-footer-bg: #ef476f;
  --color-text: #2c2c2c;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.7;
  color: var(--color-text);
  /* Warm off‑white background throughout the site */
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  /* Secondary colour for general links */
  color: var(--color-secondary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Layout wrappers */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 0;
}

/* Header & Navigation */
header {
  background-color: #ffffff;
  /* Use a coloured bottom border and slight shadow for separation */
  border-bottom: 3px solid var(--color-primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}
/* Brand now uses a flex container so that a logo image and text can sit
 * side by side.  The image is sized via the .logo class below.
 */
.navbar-brand {
  display: flex;
  align-items: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-primary);
  gap: 0.4rem;
}

/* Size the logo image inside the brand */
 .navbar-brand img.logo {
  /* Increase the logo size further for better visibility on the navigation bar. */
  height: 100px;
  width: auto;
 }
 .nav-links {
  list-style: none;
  display: flex;
  /* Reduce the gap between items to save space and allow the larger logo. */
  gap: 0.8rem;
  flex-wrap: wrap;
 }
.nav-links li {
  margin: 0.5rem 0;
}
 .nav-links a {
  font-weight: 500;
  /* Smaller font size and tighter padding result in a more elegant, space‑efficient nav bar. */
  font-size: 0.9rem;
  color: var(--color-primary);
  transition: background-color 0.2s ease, color 0.2s ease;
  padding: 0.35rem 0.55rem;
  border-radius: 4px;
 }
.nav-links a:hover,
.nav-links a.active {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* Dropdown navigation */
.nav-links li.dropdown {
  position: relative;
}
.nav-links li.dropdown > a::after {
  content: '\25BC';
  font-size: 0.6rem;
  margin-left: 0.25rem;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  min-width: 200px;
  background-color: #ffffff;
  border: 1px solid var(--color-card-border);
  border-bottom: 3px solid var(--color-primary);
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  z-index: 999;
  /* Remove default list bullets and padding in dropdown menus */
  list-style: none;
  margin: 0;
  padding-left: 0;
}
.dropdown-menu li {
  width: 100%;
}
.dropdown-menu li a {
  display: block;
  padding: 0.5rem 0.8rem;
  font-size: 0.95rem;
  color: var(--color-primary);
  white-space: nowrap;
}
.dropdown-menu li a:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}
.nav-links li.dropdown:hover > .dropdown-menu {
  display: block;
}
/* Language toggle styling */
.language-toggle a {
  font-weight: bold;
  padding: 0.25rem 0.5rem;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  color: var(--color-primary);
}
.language-toggle a:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

/* Hero section */
.hero {
  position: relative;
  height: 65vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
  color: var(--color-text);
}
.hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  /* Use a stronger semi‑transparent overlay to enhance text contrast */
  background: rgba(255, 255, 255, 0.7);
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--color-secondary);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
/* Button styles */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background-color: var(--color-primary);
  color: #ffffff;
  border-radius: 6px;
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
}
.btn-primary:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0,0,0,0.12);
}
.btn-secondary {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background-color: #ffffff;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 6px;
  font-weight: 600;
  margin-left: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.btn-secondary:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 10px rgba(0,0,0,0.1);
}

/* Sections */
section {
  padding: 3rem 0;
}
section h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-primary);
  text-align: center;
  position: relative;
}
section h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}
section p {
  margin-bottom: 1rem;
}

/* Cards and grids */
.grid {
  display: grid;
  gap: 2rem;
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
/* Define a two‑column grid that automatically wraps on smaller screens */
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background-color: #ffffff;
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  padding: 1.75rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}
.card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Headings inside cards */
.card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

/* Team section */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.team-member {
  background-color: #ffffff;
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.team-member:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}
.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.75rem;
}
.team-member h3 {
  font-size: 1.25rem;
  font-family: 'Poppins', sans-serif;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}
.team-member span {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.2s ease;
}
.gallery img:hover {
  transform: scale(1.05);
}

/* Contact */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.contact-info a {
  color: #f4978e;
}
.map-responsive {
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative;
  height: 0;
  border-radius: 8px;
}
.map-responsive iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
  border: 0;
}

/* Footer */
footer {
  /* Footer uses the primary colour for a cohesive finish */
  background-color: var(--color-footer-bg);
  color: #ffffff;
  padding: 2rem 0;
  text-align: center;
}

/* Footer grid styling for structured links and information */
/*
 * Footer grid layout
 * Use CSS Grid for three equally‑spaced columns on wider screens.  The
 * grid collapses to a single column on smaller screens via the
 * auto‑fit/minmax pattern, ensuring the footer remains legible
 * without taking too much vertical space.  We avoid flexbox here to
 * allow lists inside the grid to stay vertical.
 */
.footer-grid {
  display: grid;
  /* Three columns on larger screens, one column on small screens */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.footer-section h4 {
  /* Slightly reduce footer heading size to free up space */
  font-size: 1rem;
  margin-bottom: 0.4rem;
  color: #ffffff;
  font-weight: 600;
}
.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  /* Force the list to stack items vertically, overriding any inherited flex styles */
  display: block;
}
.footer-section ul li {
  /* Display list items vertically in the footer; without this,
   * some browsers may lay items out inline due to inherited flex
   * styles from other rules.  Each list item forms its own line. */
  display: block;
  margin-bottom: 0.3rem;
}
.footer-section ul li a {
  color: #ffeef2;
  /* Make quicklinks smaller so they occupy less horizontal space */
  font-size: 0.85rem;
}
.footer-section ul li a:hover {
  text-decoration: underline;
}
.footer-section p {
  /* Slightly smaller paragraph font in footer for better fit */
  font-size: 0.85rem;
  color: #ffeef2;
}

/* Subheading under section titles */
.subheading {
  font-size: 1.1rem;
  color: var(--color-secondary);
  text-align: center;
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}
/*
 * Reset the default list styling in the footer.  Remove flexbox so
 * that lists such as the Quicklinks and Legal sections flow
 * vertically.  Lists inside .footer-grid will inherit these rules.
 */
footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
footer ul li a {
  color: #ffffff;
  font-weight: 500;
  transition: opacity 0.2s ease;
}
footer ul li a:hover {
  opacity: 0.8;
}
footer p {
  font-size: 0.85rem;
}

/*
 * Responsive navigation
 * A checkbox (nav-toggle) is used to control the visibility of the
 * navigation links on small screens.  The three spans inside the
 * label form the burger icon that animates into an X when the menu is
 * open.  On narrow widths the nav-links stack vertically and slide
 * down from under the header.
 */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.nav-toggle-label span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 3px solid var(--color-primary);
    z-index: 99;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 1rem;
    border-radius: 0;
  }
  .nav-toggle-label {
    display: flex;
  }
  /* Show menu when checked */
  .nav-toggle:checked ~ .nav-links {
    /* Allow the collapsed menu to expand to the full viewport height so all items are visible */
    max-height: 100vh;
  }
  /* Animate burger into an X */
  .nav-toggle:checked + .nav-toggle-label span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
  }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked + .nav-toggle-label span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
  }
}

/*
 * Icon card
 * Used on the pedagogy and about pages to present lists and key
 * concepts as individual cards with playful icons.
 */
.icon-card {
  background-color: #ffffff;
  border: 1px solid var(--color-card-border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.icon-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}
.icon-card .icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  color: var(--color-primary);
}
.icon-card h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}
.icon-card p {
  font-size: 0.95rem;
  color: var(--color-text);
}

/*
 * CTA Box
 * Highlights important calls to action with strong colour contrast and
 * generous spacing.
 */
.cta-box {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  text-align: center;
}
.cta-box h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}
.cta-box p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #ffeef2;
}

/*
 * Generic form styling
 * Override default browser inputs to harmonise with our colour palette.
 */
form input,
form textarea,
form select {
  border: 1px solid var(--color-card-border);
  background-color: #ffffff;
  border-radius: 4px;
  padding: 0.5rem;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: var(--color-text);
}
form label {
  font-weight: 600;
  margin-top: 1rem;
  display: block;
}
form button {
  margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  .hero p {
    font-size: 1rem;
  }
}

/* === Fix: make .submenu-toggle look like nav links on all breakpoints === */
.nav-links .submenu-toggle {
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
  margin: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Align spacing with top-level nav links on desktop */
.nav-links > li > a,
.nav-links > li > .submenu-toggle {
  display: inline-block;
  padding: 0.5rem 0.75rem;
}

/* Hover/focus affordance same as links */
.nav-links a:hover,
.nav-links a:focus,
.nav-links .submenu-toggle:hover,
.nav-links .submenu-toggle:focus {
  opacity: 0.85;
  text-decoration: none;
}

/* Mobile layout: full-width tappable row, matching existing .nav-links a mobile styles */
@media (max-width: 768px) {
  .nav-links > li > a,
  .nav-links > li > .submenu-toggle {
    display: block;
    width: 100%;
    padding: 1rem;
    border-radius: 0;
  }
}


/* --- Mobile nav scroll fix (best practice) --- */
@media (max-width: 768px) {
  .nav-links {
    max-height: 100vh;              /* Cap menu height to viewport */
    overflow-y: auto;               /* Make menu scrollable */
    -webkit-overflow-scrolling: touch; /* Smooth inertial scrolling on mobile */
    padding-bottom: 1rem;           /* Comfortable space below last item */
  }
}


/* Prevent background scroll while menu drawer is open */
body.menu-open {
  overflow: hidden;
  touch-action: none;
}


/* --- Fix: ensure mobile menu is CLOSED by default; open only when checkbox checked --- */
@media (max-width: 768px) {
  /* Closed state */
  .nav-links {
    max-height: 0;               /* collapsed by default */
    overflow-y: hidden;          /* no scrollbars when closed */
  }
  /* Open state */
  .nav-toggle:checked ~ .nav-links {
    max-height: 100vh;           /* expand up to viewport height */
    overflow-y: auto;            /* scroll inside the menu */
    -webkit-overflow-scrolling: touch;
  }
}


/* --- Mobile nav overlay + drawer + scroll hints (best practice) --- */
@media (max-width: 768px) {
  /* Dimmed backdrop that closes the menu on tap */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    -webkit-backdrop-filter: saturate(120%) blur(1.5px);
    backdrop-filter: saturate(120%) blur(1.5px);
    z-index: 98;
  }
  .nav-toggle:checked ~ .nav-overlay { display: block; }

  /* Turn nav-links into a fixed drawer under the header */
  :root { --nav-height: 64px; }
  header, .navbar { min-height: var(--nav-height); }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: #fff;
    max-height: 0;                /* closed by default */
    overflow-y: hidden;           /* hidden when closed */
    transition: max-height .25s ease;
    z-index: 99;
  }
  .nav-toggle:checked ~ .nav-links {
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;             /* scroll inside */
    -webkit-overflow-scrolling: touch;
  }

  /* Visual scroll affordances: subtle fades at top/bottom */
  .nav-links.scroll-hint-top {
    box-shadow: inset 0 8px 8px -8px rgba(0,0,0,0.25);
  }
  .nav-links.scroll-hint-bottom {
    background-image: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1) 30px);
    background-repeat: no-repeat;
    background-position: left calc(100% - 0px);
    background-size: 100% 30px;
  }
}


/* --- Patch: hide closed mobile drawer completely (no peeking line) --- */
@media (max-width: 768px) {
  /* Closed state: zero height, no padding/border/shadow/gradients, non-interactive */
  .nav-links {
    max-height: 0 !important;
    height: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background-image: none !important;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
  }
  /* Open state: restore visuals + interactivity */
  .nav-toggle:checked ~ .nav-links {
    max-height: calc(100vh - var(--nav-height)) !important;
    height: auto;
    padding-top: 0.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--color-primary);
    visibility: visible;
    pointer-events: auto;
  }
  /* Ensure overlay only visible when open */
  .nav-overlay { display: none; }
  .nav-toggle:checked ~ .nav-overlay { display: block; }
}


/* --- JS-enhanced dynamic sizing override (avoids !important conflict) --- */
@media (max-width: 768px) {
  /* When JS is active, let a CSS variable drive the drawer height
     so we can override a prior !important via var() indirection */
  .has-js .nav-toggle:checked ~ .nav-links {
    max-height: var(--drawer-max, calc(100vh - var(--nav-height))) !important;
  }
}


/* === Mobile drawer: robust layout (fixed panel) === */
@media (max-width: 768px) {
  :root { --nav-height: 64px; }

  /* Base (closed) */
  .nav-links {
    position: fixed !important;
    top: var(--nav-height) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;            /* fill to bottom instead of max-height */
    background: #fff !important;
    overflow-y: hidden !important;    /* closed: no scroll */
    visibility: hidden !important;
    pointer-events: none !important;
    max-height: none !important;      /* neutralize previous rules */
    height: auto !important;
    box-shadow: none !important;
    border: none !important;
    background-image: none !important;
    transition: transform .25s ease, visibility 0s linear .25s;
    transform: translateY(-8px);      /* tiny lift to avoid flicker */
  }

  /* Open state */
  .nav-toggle:checked ~ .nav-links {
    visibility: visible !important;
    pointer-events: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    transition: transform .25s ease;
    transform: translateY(0);
    padding-top: 0.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--color-primary);
  }
}


/* --- Global CTA buttons: prevent overlap with long labels (multi-language safe) --- */
.btn-primary, .btn-secondary {
  white-space: normal;         /* allow wrapping inside buttons */
  max-width: 100%;             /* avoid overflowing container */
  text-align: center;          /* keep text centered when wrapped */
  line-height: 1.25;           /* better legibility on two lines */
}

/* Mobile: stack hero CTAs instead of forcing side-by-side */
@media (max-width: 640px) {
  .hero-content .btn-primary,
  .hero-content .btn-secondary {
    display: block;
    width: 100%;
    max-width: 22rem;          /* readable button width on phones */
    margin: 0 auto 0.6rem;     /* center and add vertical rhythm */
  }
  .hero-content .btn-secondary { 
    margin-left: 0;            /* kill desktop-only left gap */
  }
}


/* --- Mobile hero CTAs: stack, but size to content (centered) --- */
@media (max-width: 640px) {
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;     /* center intrinsic-width buttons */
    gap: 0.6rem;             /* vertical spacing between buttons */
  }
  .hero-content .btn-primary,
  .hero-content .btn-secondary {
    display: inline-flex;    /* intrinsic width based on content */
    width: auto;             /* override earlier 100% width */
    max-width: 100%;         /* still prevent overflow on tiny screens */
    margin: 0;               /* layout handled by flex + gap */
  }
}
