/**
 * ==========================================
 * FONT IMPORTS
 * ==========================================
 */
/* #region Font Imports*/
/* --- mochiy-pop-one-regular - latin --- */
@font-face {
  font-display: swap;
  font-family: "Mochiy Pop One";
  font-style: normal;
  font-weight: 400;
  src: url("assets/fonts/mochiy-pop-one-v12-latin-regular.woff2") format("woff2");
}

/* --- autour-one-regular - latin --- */
@font-face {
  font-display: swap;
  font-family: "Autour One";
  font-style: normal;
  font-weight: 400;
  src: url("assets/fonts/autour-one-v25-latin-regular.woff2") format("woff2");
}

/* --- poppins-regular - latin --- */
@font-face {
  font-display: swap;
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  src: url("assets/fonts/poppins-v24-latin-regular.woff2") format("woff2");
}

/*---  poppins-600 - latin --- */
@font-face {
  font-display: swap;
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  src: url("assets/fonts/poppins-v24-latin-600.woff2") format("woff2");
}

/*---  poppins-700 - latin --- */
@font-face {
  font-display: swap;
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  src: url("assets/fonts/poppins-v24-latin-700.woff2") format("woff2");
}
/* #endregion */

/**
 * ==========================================
 * DESIGN TOKENS (ROOT VARIABLES)
 * ==========================================
 */
/* #region Design Tokens */
:root {
  /* --- Layout & Spacing --- */
  --gutter-mobile: 16px;
  --gutter-desktop: 10vw;

  /* --- Core Colors --- */
  --c-primary: #5eabbf;
  --c-bg: #f4f4ec;
  --c-text: #2e2e2e;
  --c-text-invert: #f1f1f1;
  --c-frame: #1212121a;

  /* --- Brand Palette (Solid & Transparent Backgrounds) --- */
  --c-yellow: #fff1b3;
  --c-yellow-bg: #fff1b359;
  --c-orange: #f4c79b;
  --c-orange-bg: #f4c79b80;
  --c-red: #ff8e95;
  --c-red-bg: #ffcfd280;
  --c-blue: #b4dce7;
  --c-blue-bg: #b4dce780;
  --c-green: #9ccca4;
  --c-green-bg: #9ccca480;
  --c-pink: #ebaec7;
  --c-pink-bg: #ebaec780;
  --c-purple: #d9c2db;
  --c-purple-bg: #d9c2db80;
  --c-brown: #d59b8d;
  --c-brown-bg: #d59b8d80;

  /* --- Typography Families --- */
  --font-mochiy: "Mochiy Pop One", sans-serif;
  --font-autour: "Autour One", system-ui;
  --font-poppins: "Poppins", sans-serif;

  /* --- Fluid Typography Scales (Mobile -> Desktop) --- */
  --size-h1: clamp(2.5rem, 8vw + 1rem, 8rem);
  --size-h2: clamp(2rem, 3vw + 0.5rem, 3rem);
  --size-h3: clamp(1.5rem, 2vw + 0.5rem, 2rem);
  --size-h4: clamp(1.25rem, 1.5vw + 0.5rem, 1.5rem);

  --hero-subtitle: clamp(1.5rem, 2vw + 0.5rem, 2rem);
  --size-text-lead: clamp(1rem, 1.5vw + 0.25rem, 1.25rem);

  /* --- Font Weights --- */
  --weight-regular: 400;
  --weight-semi: 600;
  --weight-bold: 700;
}

@media (min-width: 600px) and (max-width: 1300px) {
  :root {
    --gutter-desktop: 5vw;
  }
}
/* #endregion */

/**
 * ==========================================
 * GLOBAL UTILITIES & BASE STYLES
 * ==========================================
 */
/* #region Global and Base */
/* --- 1. CSS Resets --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Creates a 6rem invisible barrier at the top of the 
screen so anchor links don't hide under the fixed header */
html {
  scroll-padding-top: 6rem;
}

/* --- 2. The Main CSS Grid System --- */
body {
  margin: 0;
  display: grid;
  grid-template-columns: var(--gutter-mobile) 1fr var(--gutter-mobile);
  background-color: var(--c-bg);
  color: var(--c-text);
  transition:
    background-color 0.3s ease,
    color 0.3s ease;

  /* Global Body Typography */
  font-family: var(--font-poppins);
  font-weight: var(--weight-regular);
  font-size: 1rem;
  line-height: 1.4;
}

@media (min-width: 600px) {
  body {
    grid-template-columns: var(--gutter-desktop) 1fr var(--gutter-desktop);
  }
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* This physically deletes the "Phantom Width" */
}

/* Force all immediate children of body and main into the center track */
body > *,
#main > * {
  grid-column: 2;
  min-width: 0;
}

/* The Main wrapper spans the full width, but inherits the 3-column layout */
#main {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: inherit;
}

/* Allows specific sections to break out of the center track and touch the edges */
#main .full-width {
  grid-column: 1 / -1;
}

/* --- 3. Typography Defaults --- */
h1 {
  /* mochiy-128 */
  font-family: var(--font-mochiy);
  font-size: var(--size-h1);
  line-height: 1.2;
}
h2 {
  /* mochiy-48 */
  font-family: var(--font-mochiy);
  font-size: var(--size-h2);
  line-height: 1.2;
}
h3 {
  /* mochiy-32 */
  font-family: var(--font-mochiy);
  font-size: var(--size-h3);
  line-height: 1.2;
}
h4 {
  /* poppins-20-bold */
  font-family: var(--font-poppins);
  font-weight: var(--weight-bold);
  font-size: var(--size-h4);
  line-height: 1.4;
}
h5,
h6 {
  /* Currently not used */
  font-family: var(--font-poppins);
  font-weight: var(--weight-bold);
  font-size: var(--size-text-lead);
  line-height: 1.4;
}

ul {
  margin-top: 16px;
  margin-bottom: 16px;

  list-style-position: inside;
}

li {
  margin-bottom: 1em;
  list-style-position: outside;
  margin-left: 1.5em;
}

.hero-subtitle {
  /* autour-32 */
  font-family: var(--font-autour);
  font-size: var(--hero-subtitle);
  line-height: 1.3;
}

.text-heading {
  /* poppins-20-bold */
  font-family: var(--font-poppins);
  font-weight: var(--weight-bold);
  font-size: 1rem;
}

.text-highlight {
  /* poppins-16-semi */
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5;
}

.section-icon {
  width: 6vw;
  max-width: 120px;
  margin: 0.25rem;
}

/* --- 4. Accessibility --- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;

  /* The Skip Link (For keyboard navigation) */
  &.skip:focus {
    position: static;
    width: auto;
    height: auto;
    clip: auto;
    white-space: normal;
    background: var(--c-bg);
    color: var(--c-text);
    padding: 1rem;
    border: 2px solid var(--c-primary);
    z-index: 99999;
  }
}

/* --- 5. Lenis Smooth Scrolling Boilerplate --- */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}

/* --- 6. Scroll Reveal Animations --- */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-item {
  opacity: 0;
  translate: 0 40px;
  scale: 1;
  filter: brightness(1);

  /* Entrance (opacity, translate) get the 1.5s curve & delay.
     Hover (scale, filter, box-shadow, transform) get the instant 0.3s response! */
  transition-property: opacity, translate, scale, filter, box-shadow, transform;
  transition-duration: 1.5s, 1.5s, 0.3s, 0.3s, 0.3s, 0.3s;
  transition-timing-function:
    cubic-bezier(0.16, 1, 0.3, 1), cubic-bezier(0.16, 1, 0.3, 1), ease, ease, ease, ease;
  transition-delay: calc(var(--i) * 0.2s), calc(var(--i) * 0.2s), 0s, 0s, 0s, 0s;
}

.fade-in-section.is-visible .stagger-item {
  opacity: 1;
  translate: 0 0;
}

/* Disables animations for users with vertigo/motion sensitivity */
@media (prefers-reduced-motion: reduce) {
  .fade-in-section {
    transition: none;
    opacity: 1;
    transform: none;
  }
  .stagger-item {
    transition: none !important;
    opacity: 1;
    translate: none;
  }
}
/* #endregion */

/**
 * ==========================================
 * HEADER & NAVIGATION
 * ==========================================
 */
/* #region Header */
/* --- 1. The Main Wrapper & Floating Pill --- */
.main-header {
  position: fixed;
  top: 1rem;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000;
  pointer-events: none; /* Prevents invisible wrapper from blocking clicks */
}

/* The Default State (At the top of the page) */
.nav-pill {
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border: 1px solid transparent;

  padding: 1rem;
  gap: 4rem; /* Wide spacing before scroll */
  border-radius: 9999px;

  display: flex;
  align-items: center;
  pointer-events: auto; /* Re-enables clicking for the actual pill */
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* The Scrolled State (Pops out from background) */
.nav-pill.is-scrolled {
  background-color: #ffffff80;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid #0000000d;
  box-shadow: 0 10px 30px #00000014;

  padding: 0.75rem 0.5rem 0.75rem 2rem;
  gap: 1.5rem; /* Tighter spacing to save room */
}

/* --- 2. Desktop Navigation Links & The "Ghost Chip" --- */
.main-nav {
  display: flex;
  gap: 4rem;
  transition: gap 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
}

.nav-pill.is-scrolled .main-nav {
  gap: 1.5rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--c-text);
  font-weight: var(--weight-bold);
  font-size: 0.95rem;
  padding: 0.5rem 1.2rem;
  border-radius: 9999px;
  position: relative;
  z-index: 1; /* Keeps text above the sliding chip */
  transition:
    color 0.3s ease,
    background-color 0.3s ease;
}

/* The blue background element that physically slides between active links */
.nav-chip {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: var(--c-primary);
  border-radius: 9999px;
  box-shadow: 0 4px 15px rgba(94, 171, 191, 0.4);
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.main-nav a.active {
  color: white;
}

.main-nav a:hover:not(.active) {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--c-primary);
}

/* Hide desktop links and un-stick header on small screens */
@media (max-width: 768px) {
  .main-header {
    position: absolute;
  }

  .nav-pill {
    padding: 0.8rem 1.2rem;
    width: 100%;
    justify-content: space-between;
    border-radius: 16px;
  }

  .nav-pill.is-scrolled {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border: 1px solid transparent;
    padding: 0.8rem 1.2rem; /* Keeps it exactly the same as the default state */
  }

  .main-nav {
    display: none;
  }

  .mobile-logo-link {
    display: block;
  }

  .mobile-header-logo {
    height: 35px;
    width: auto;
  }
}

/* --- 3. Mobile Burger Icon (Animated) --- */
.burger-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 22px;
  height: 16px;
  padding: 0;
}

.burger-line {
  width: 100%;
  height: 2px;
  background-color: var(--c-text);
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

/* Transforms the 3 lines into an "X" when active */
.burger-btn.is-active .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-btn.is-active .burger-line:nth-child(2) {
  opacity: 0;
}
.burger-btn.is-active .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hide desktop links on small screens */
@media (max-width: 768px) {
  .nav-pill {
    padding: 0.8rem 1.2rem;
  }
  .main-nav {
    display: none;
  }
}

/* --- 4. The Off-Canvas Sidebar Menu --- */
.off-canvas-menu {
  position: fixed;
  top: 0;
  left: -100%; /* Hidden off-screen by default */
  width: 350px;

  /* Prevents overflow on ultra-small phones */
  max-width: 85vw;

  height: calc(100dvh - 2rem);
  margin: 1rem;
  background-color: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  z-index: 999;
  transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow-y: auto;
  padding: 4rem 2.5rem 2rem;
  pointer-events: auto;
}

/* Slides into view */
.off-canvas-menu.is-open {
  left: 0;
}

/* The dark background behind the sidebar */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(3px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Menu Internal Typography & Layout */
.menu-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.menu-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(0, 0, 0, 0.4);
  font-weight: var(--weight-bold);
}

.menu-divider {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

/* Interactive Elements inside Menu */
.lang-options,
.secondary-nav {
  display: flex;
  flex-direction: column;
}

.lang-options {
  gap: 0.25rem;
}
.secondary-nav {
  gap: 1rem;
}

.flag-icon {
  width: 20px;
  height: auto;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-weight: var(--weight-bold);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.lang-btn.active {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--c-primary);
}

.secondary-nav a,
.contact-link {
  display: block;
  text-decoration: none;
  color: var(--c-text);
  font-size: 1.1rem;
  font-weight: var(--weight-bold);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  /* Negative margin aligns text with the rest of the layout while expanding the hover box left */
  margin-left: -1rem;
  transition: all 0.2s ease;
}

.lang-btn:hover:not(.active),
.secondary-nav a:hover,
.contact-link:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--c-primary);
}

/* --- 5. The Minimal Subpage Header (For Blog & Legal Pages) --- */
.minimal-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem var(--gutter-mobile);
  background-color: rgba(244, 244, 236, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  z-index: 1000;
}

@media (min-width: 600px) {
  .minimal-header {
    padding: 1rem var(--gutter-desktop);
  }
}

.minimal-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.minimal-brand:hover {
  opacity: 0.7;
  transform: scale(0.98);
}

.minimal-logo {
  height: clamp(30px, 4vw, 45px);
  width: auto;
}

.minimal-title {
  font-family: var(--font-mochiy);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  color: var(--c-text);
  margin-top: 0.2rem;
}
/* #endregion */

/**
 * ==========================================
 * HERO SECTION
 * ==========================================
 */
/* #region Hero */
/* --- 1. The Main Wrapper & Dotted Background --- */
.hero-container {
  margin-top: 3rem;
  width: 100%;
  min-height: 85vh;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--c-bg);
}

/* The Dotted Vignette Overlay */
.hero-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(rgba(0, 0, 0, 0.08) 2px, transparent 2px);
  background-size: 30px 30px;
  z-index: 1;

  /* Fades the dots out at the edges to create a spotlight effect in the center */
  -webkit-mask-image: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 1) 40%,
    rgba(0, 0, 0, 0) 80%
  );
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 80%);
}

/* --- 2. The Center Content (Logo, Text, Button) --- */
.hero-center-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10; /* Ensures content stays strictly above the floating background icons */
  max-width: 90%;
  text-align: center;
}

.logo {
  display: flex;
  height: clamp(5rem, 8vw + 1rem, 8rem); /* FIXED: Min <= Ideal <= Max */
  width: auto;
}

.hero-subtitle {
  margin: 2rem 0; /* FIXED: Vertical spacing only to prevent squishing on mobile */
}

/* The Animated CTA Button */
.hero-button {
  display: inline-block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  font-family: var(--font-mochiy);
  font-size: 1rem;
  background-color: var(--c-primary);
  color: var(--c-text-invert);
  padding: 1rem 2.5rem;
  border-radius: 50px;
}

.hero-button:active {
  transform: scale(0.97); /* The premium tactile click effect */
}

.label {
  position: relative;
  z-index: 10;
}

.hover-text {
  display: none;
  color: var(--c-primary);
}

/* The Expanding Yellow Circle Effect */
.transition {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
  transition-duration: 500ms;
  background-color: var(--c-yellow);
  border-radius: 9999px;
  width: 0;
  height: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* Button Hover Logic */
@media (hover: hover) {
  .hero-button:hover .original {
    display: none;
  }
  .hero-button:hover .hover-text {
    display: inline-block;
  }
  .hero-button:hover .transition {
    width: 14em;
    height: 14em;
  }
}

/* --- 3. The Floating Background Assets (Children & Toys) --- */

/* The Large Children Vectors */
.hero-children {
  position: absolute;
  max-height: 200px;
  height: 22%; /* Fluid height based on the section's 85vh container */
}

.hero-child-1 {
  top: 15%;
  left: 5%;
}
.hero-child-2 {
  top: 75%;
  left: 13%;
}
.hero-child-3 {
  top: 7%;
  left: 76%;
}
.hero-child-4 {
  bottom: 20%;
  left: 87%;
  height: 24%;
}

/* The Small Background Toy Vectors */
.hero-icon {
  position: absolute;
  width: clamp(30px, 4vw, 60px); /* FIXED: Prevents icons from turning into dust on mobile! */
}

/* Icon Coordinate Mapping */
.hero-house {
  top: 12%;
  left: 22%;
}
.hero-sandbox {
  top: 27%;
  left: 20%;
}
.hero-slide {
  top: 40%;
  left: 3%;
}
.hero-swing {
  top: 52%;
  left: 13%;
}
.hero-train {
  top: 73%;
  left: 7%;
}
.hero-toys {
  top: 12%;
  left: 93%;
}
.hero-drawing {
  top: 32%;
  left: 89%;
}
.hero-trampoline {
  top: 53%;
  left: 76%;
}
.hero-doll {
  top: 72%;
  left: 70%;
}
.hero-blocks {
  top: 85%;
  left: 80%;
}

/* --- 4. Mobile Hero Adjustments --- */
@media (max-width: 768px) {
  .hero-children {
    height: 12%;
  }

  .hero-child-1 {
    top: 5%;
    left: 6%;
  }
  .hero-child-2 {
    top: 83%;
    left: 9%;
  }
  .hero-child-3 {
    top: 9%;
    left: 72%;
  }
  .hero-child-4 {
    top: 85%;
    left: 70%;
  }

  .hero-icon {
    width: 35px;
  }

  .hero-sandbox {
    top: 10%;
    left: 35%;
  }
  .hero-swing {
    top: 20%;
    left: 12%;
  }
  .hero-train {
    top: 25%;
    left: 79%;
  }
  .hero-drawing {
    top: 75%;
    left: 8%;
  }
  .hero-trampoline {
    top: 87%;
    left: 55%;
  }
  .hero-blocks {
    top: 76%;
    left: 80%;
  }

  .hero-house,
  .hero-slide,
  .hero-toys,
  .hero-doll {
    display: none;
  }
}
/* #endregion */

/**
 * ==========================================
 * DETAILS SECTION (Features Grid)
 * ==========================================
 */
/* #region Details */
/* --- 1. The Section Container --- */
.details-container {
  margin-top: 10rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* --- 2. The Responsive Grid System --- */
.features-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1400px;

  /* Auto-margins center the grid perfectly within the container */
  margin-left: auto;
  margin-right: auto;
}

/* --- 3. The Feature Cards (Internal Layout) --- */
.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  height: 100%; /* Ensures all cards in a row stretch to the same height */
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid var(--c-frame);
}

@media (hover: hover) {
  .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  }
}

.details-icon {
  /* Min 50px, fluid 6vw, Max 120px */
  width: clamp(65px, 6vw, 120px);
}

.feature-card h4 {
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  font-size: 1.25rem;
  line-height: 1.3;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .features-card {
    padding: 0.5rem;
  }

  .feature-card h4 {
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 0.95rem; /* Shrunk from 1.25rem */
    line-height: 1.2;
  }

  .feature-card p {
    font-size: 0.8rem; /* Shrunk from 0.95rem */
    line-height: 1.4;
    margin: 0;
  }
}

/* --- 4. Card Color Modifiers --- */
.card-yellow {
  background-color: var(--c-yellow-bg);
}
.card-pink {
  background-color: var(--c-pink-bg);
}
.card-blue {
  background-color: var(--c-blue-bg);
}
.card-orange {
  background-color: var(--c-orange-bg);
}
.card-brown {
  background-color: var(--c-brown-bg);
}
.card-green {
  background-color: var(--c-green-bg);
}
.card-purple {
  background-color: var(--c-purple-bg);
}
.card-red {
  background-color: var(--c-red-bg);
}
/* #endregion */

/**
 * ==========================================
 * GALLERY SECTION & LIGHTBOX
 * ==========================================
 */
/* #region Gallery */
/* --- 1. The Gallery Container & Cloud Dividers --- */
.gallery-container {
  display: flex;
  flex-direction: column;
  margin-top: 5rem;
}

.cloud-divider {
  width: 102%;

  height: auto;
  display: block; /* Removes the invisible gap under the image */
}

.cloud-bottom {
  margin-top: -0.1rem; /* Pulls it up 1px to prevent hairline gaps */
  transform: rotate(180deg);
}

/* --- 2. The Content Area --- */
.gallery-content {
  padding: 3rem var(--gutter-mobile);
  margin: 0 auto;
  margin-top: -1%;
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  background-color: var(--c-blue);
  color: var(--c-text-invert);
}

@media (min-width: 600px) {
  .gallery-content {
    padding: 4rem var(--gutter-desktop);
  }
}

/* --- 3. The Justified Image Grid Layout --- */
.gallery-justified-layout {
  display: flex;
  flex-wrap: wrap; /* Allows images to drop to a new line */
  gap: 1rem;
  padding-top: 3rem;
}

.gallery-image {
  height: 250px; /* Base row height */
  flex-grow: 1; /* Stretch to fill available space */
  object-fit: cover; /* Zooms/crops to prevent funhouse-mirror stretching */
  border-radius: 12px;
  max-width: 100%;
}

/* The "Fake Randomizer" (Uses flex-basis to create varied column widths) */
.gallery-image:nth-child(7n + 1) {
  flex-basis: 350px;
}
.gallery-image:nth-child(7n + 2) {
  flex-basis: 200px;
}
.gallery-image:nth-child(7n + 3) {
  flex-basis: 400px;
}
.gallery-image:nth-child(7n + 4) {
  flex-basis: 250px;
}
.gallery-image:nth-child(7n + 5) {
  flex-basis: 300px;
}
.gallery-image:nth-child(7n + 6) {
  flex-basis: 450px;
}
.gallery-image:nth-child(7n) {
  flex-basis: 220px;
}

@media (max-width: 768px) {
  .gallery-image {
    height: 75px; /* Shorter rows look better on phones */
  }

  .gallery-image:nth-child(7n + 1) {
    flex-basis: 1%;
  }
  .gallery-image:nth-child(7n + 2) {
    flex-basis: 1%;
  }
  .gallery-image:nth-child(7n + 3) {
    flex-basis: 1%;
  }
  .gallery-image:nth-child(7n + 4) {
    flex-basis: 25%;
  }
  .gallery-image:nth-child(7n + 5) {
    flex-basis: 35%;
  }
  .gallery-image:nth-child(7n + 6) {
    flex-basis: 45%;
  }
  .gallery-image:nth-child(7n) {
    flex-basis: 20%;
  }
}

/* --- 4. Interactive Image States --- */
.gallery-justified-layout img.stagger-item {
  cursor: pointer;
}

@media (hover: hover) {
  .gallery-justified-layout img.stagger-item:hover {
    scale: 1.02;
    filter: brightness(1.1);
  }
}

/* --- 5. The Full-Screen Lightbox Overlay --- */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);

  /* Entrance animation starts slightly scaled down */
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

/* --- 6. Lightbox Controls (Close & Arrows) --- */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
  font-family: sans-serif;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

@media (max-width: 600px) {
  .lightbox-close {
    /* Push slightly closer to the edge on phones and increase tap area */
    right: 15px;
    top: 15px;
    padding: 10px;
  }
}

.lightbox-close:hover {
  color: var(--c-primary);
  transform: scale(1.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 3rem;
  cursor: pointer;
  padding: 1rem 2rem;
  z-index: 10;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
  user-select: none; /* Prevents text highlighting when clicking fast */
}

.lightbox-nav:hover {
  color: var(--c-primary);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav.prev {
  left: 0;
}
.lightbox-nav.next {
  right: 0;
}

@media (max-width: 600px) {
  .lightbox-nav {
    font-size: 2rem;
    padding: 0.5rem 1rem;
  }
}

/* --- 7. AI Privacy Disclaimer --- */
.ai-disclaimer {
  font-weight: var(--weight-bold);
  margin-top: 4rem;
  font-size: 1rem;
  line-height: 1.6;
  max-width: 850px;
}

.ai-disclaimer strong {
  font-family: var(--font-poppins);
  color: var(--c-yellow);
  letter-spacing: 0.5px;
}

@media (min-width: 600px) {
  .ai-disclaimer {
    font-size: 1rem;
  }
}
/* #endregion */

/**
 * ==========================================
 * ABOUT US SECTION (Team Grid)
 * ==========================================
 */
/* #region About Us */
/* --- 1. The Section Container --- */
.about-us-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 10rem;
}

.about-us-container h2 {
  margin-bottom: 3rem;
}

/* --- 2. The Responsive Grid Layout --- */
.about-grid {
  display: grid;

  /* Mobile First: Stacked in 1 column */
  grid-template-columns: 2fr 2fr 1fr;
  gap: 2rem;
  width: 100%;
  max-width: 1400px;
}

/* Desktop: The 2:2:1 Ratio */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* --- 3. The Team Cards --- */
.person-card {
  background-color: var(--c-red-bg);
  border: 1px solid var(--c-frame);
  border-radius: 16px;
  padding: 2rem 2rem;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
}

/* UI Polish: Match the hover effect from the Features grid! */
@media (hover: hover) {
  .person-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  }
}

/* The Dog Card exception */
@media (min-width: 900px) {
  .dog-card {
    /* Only pin to the bottom when side-by-side on desktop. 
       On mobile, it behaves like a normal card! */
    align-self: end;
  }

  .dog-card p {
    font-size: 0.9rem;
  }
}

/* --- 4. Internal Card Elements --- */
.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%; /* Perfect circle */
  object-fit: cover; /* Prevents squishing */
  margin-bottom: 1.5rem;

  /* A beautiful brand-colored ring */
  border: 2px solid var(--c-red);
}

@media (max-width: 768px) {
  .profile-pic {
    width: 100px;
    height: 100px;
  }
}

.person-card h3 {
  margin-bottom: 0.25rem;
}

.person-card .subtitle {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.dog-card h3 {
  margin-bottom: 0.5rem;
}
/* #endregion */

/**
 * ==========================================
 * TIMES & COSTS SECTION
 * ==========================================
 */
/* #region Times and Costs */
/* --- 1. The Main Section Container --- */
.planning-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 12rem;
}

.planning-container h2 {
  text-align: center;
  width: 100%;
  margin-bottom: 3rem;
}

/* --- 2. The Responsive Asymmetrical Grid --- */
.planning-grid {
  display: grid;

  /* Mobile First: Single Column Stack */
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  max-width: 1400px;
}

/* The Left Wrapper (Holds Yellow & Orange Cards) */
.left-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* The Right Wrapper (Holds Brown Card) */
.right-column {
  min-width: 0;
  display: flex;
  height: 100%;
}

@media (max-width: 768px) {
  .planning-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .left-column {
    gap: 1.5rem;
  }
}

/* --- 3. Base Card & Header Styling --- */
.planning-card {
  border-radius: 16px;
  padding: 2.5rem;
  width: 100%;
  border: 1px solid var(--c-frame);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.1rem;
}

.card-icon {
  width: 75px;
  height: 75px;
}

@media (max-width: 768px) {
  .planning-card {
    padding: 1.5rem;
  }

  .card-icon {
    width: 40px;
    height: 40px;
  }

  .card-header h3 {
    font-size: 1.3rem;
  }
}

.card-divider {
  border: none;
  border-top: 1px solid var(--c-text);
  margin: 1rem 0 1.75rem 0;
  opacity: 0.2;
}

@media (max-width: 768px) {
  .planning-card {
    padding: 2rem;
  }

  .card-icon {
    width: 40px;
    height: 40px;
  }

  .card-header h3 {
    font-size: 1.3rem;
  }

  .card-divider {
    margin: 0.6rem 0 1rem 0;
  }
}

/* --- 4. Betreuungszeiten (Yellow Card) --- */
.time-grid {
  display: grid;

  grid-template-columns: 1fr 1fr;
  row-gap: 1rem;
  column-gap: 3rem;
  margin-bottom: 2rem;
}

/* Wide Phones/Tablets: Split into two columns */
@media (min-width: 400px) {
  .time-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 1rem;
    column-gap: 1rem;
  }
}

.time-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- 5. Betreuungsort (Orange Card & Map) --- */
.map-text {
  display: flex;
  flex-direction: column;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.map-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  width: 100%;
}

.map-btn-inverted {
  display: inline-block;
  background-color: var(--c-orange);
  color: var(--c-text);
  text-decoration: none;
  font-family: var(--font-poppins);
  font-weight: var(--weight-bold);
  font-size: 0.95rem;
  padding: 0.8rem 1.5rem;
  border-radius: 9999px;
  border: 2px solid #eeb377;
  cursor: pointer;
  transition: all 0.2s ease;
}

.map-btn {
  display: inline-block;
  background-color: #eeb377;
  color: var(--c-text);
  text-decoration: none;
  font-family: var(--font-poppins);
  font-weight: var(--weight-bold);
  font-size: 0.95rem;
  padding: 0.8rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid var(--c-frame);
  cursor: pointer;
  transition: all 0.2s ease;
}

@media (hover: hover) {
  .map-btn:hover,
  .map-btn-inverted:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(94, 171, 191, 0.3);
  }
}

/* --- 6. Betreuungskosten (Brown Card & Table) --- */
.cost-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.cost-note {
  font-size: 0.7rem;
  line-height: 1.4;
  margin-top: 1rem;
}

/* Allows horizontal scrolling on tiny phones to prevent layout breakage */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.cost-table {
  width: 100%;
  text-align: center;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--c-brown);
}

.cost-table th,
.cost-table td {
  padding: 0.5rem 0.25rem;
  font-size: 0.7rem;

  border-right: 2px solid var(--c-brown);
  border-bottom: 2px solid var(--c-brown);
}

/* Restore desktop readability */
@media (min-width: 600px) {
  .cost-table th,
  .cost-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.95rem;
  }
}

/* Clean up outer edges */
.cost-table th:last-child,
.cost-table td:last-child {
  border-right: none;
}
.cost-table tbody tr:last-child td {
  border-bottom: none;
}

.cost-table th {
  font-family: var(--font-poppins);
  font-weight: var(--weight-bold);
  background-color: var(--c-brown-bg);
  line-height: 1.4;
}

.cost-table tbody tr:nth-child(even) {
  background-color: var(--c-brown-bg);
}

/* Table Hover Effect (Protected for Mobile) */
@media (hover: hover) {
  .cost-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transition: background-color 0.2s ease;
  }
}
/* #endregion */

/**
 * ==========================================
 * CONTACT SECTION & FORM
 * ==========================================
 */
/* #region Contact */
/* --- 1. Main Layout & Grid --- */
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 12rem;
  margin-bottom: 5rem;
}

.contact-container h2 {
  text-align: center;
  width: 100%;
  margin-bottom: 3rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  width: 100%;
  max-width: 1400px;
}

.contact-card {
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid var(--c-frame);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-card {
    padding: 1.5rem;
  }
}

/* --- 2. Form Layout & Inputs --- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

/* The subtle background icons inside the inputs */
.input-icon {
  position: absolute;
  left: 1rem;
  width: 20px;
  height: 20px;
  opacity: 0.4;
  pointer-events: none; /* Prevents icon from blocking mouse clicks */
}

/* Base styling for all input fields */
.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--c-frame);
  border-radius: 8px;
  background-color: #ffffff;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
  width: 100%;
}

/* Add extra padding to the left of single-line inputs to make room for the icon */
.form-group input,
.form-group select {
  padding: 0.8rem 1rem 0.8rem 3rem;
}

/* Textarea specific styling */
.form-group textarea {
  padding: 0.8rem 1rem;
  resize: vertical;
  min-height: 150px;
  overflow-y: hidden;
}

/* Premium Focus State (Accessibility) */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  /* Gives a strong, branded blue border and a soft glow when clicked */
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(94, 171, 191, 0.2);
  background-color: #ffffff;
}

/* --- 3. Submit Button & Status --- */
.submit-btn {
  background-color: #74c281;
  color: white;
  border: none;
  border-radius: 9999px;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: var(--weight-bold);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  margin-top: 0.5rem;
}

@media (hover: hover) {
  .submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  }
}

.form-status {
  margin-top: 1rem;
  font-weight: var(--weight-bold);
  font-size: 0.95rem;
  text-align: center;
}

/* --- 4. Phone & QR Code Block --- */
.phone-card {
  display: flex;
  flex-direction: column;
}

.phone-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.phone-number {
  font-family: var(--font-poppins);
  font-size: 1.5rem;
  font-weight: var(--weight-bold);
  letter-spacing: -1.5px;
  color: #171717;
  text-decoration: none;
  margin-top: 0.5rem;
  display: inline-block;
  transition: transform 0.2s ease;
}

@media (hover: hover) {
  .phone-number:hover {
    transform: scale(1.05);
  }
}

.qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: center;
  background-color: var(--c-blue-bg);
  border: 1px solid var(--c-frame);
  padding: 1rem;
  border-radius: 12px;
}

.qr-image {
  width: 180px;
  height: 180px;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .phone-number {
    color: var(--c-text-invert);
    margin-top: 0rem;
    font-size: 1.1rem;
    letter-spacing: 0px;
  }

  .qr-wrapper {
    align-self: normal;
    padding: 1rem 2rem;
    border-radius: 9999px;
    background-color: var(--c-primary);
  }

  .qr-image {
    display: none;
  }
}
/* #endregion */

/**
 * ==========================================
 * FOOTER SECTION
 * ==========================================
 */
/* #region Footer */
/* --- 1. The Global Wrapper --- */
.main-footer {
  grid-column: 1 / -1; /* Breaks out of the center body track to span full width */
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

/* --- 2. The Cloud Mask Transition --- */
.footer-cloud {
  width: 102%;
  height: clamp(50px, 8vw, 120px);
  background-color: var(--c-text); /* Swapped hardcoded hex for variable */

  /* Uses an SVG as a cookie-cutter to chop the top edge into clouds! */
  -webkit-mask: url("assets/illustrations/clouds.svg") center bottom / 100% auto no-repeat;
  mask: url("assets/illustrations/clouds.svg") center bottom / 100% auto no-repeat;
}

/* --- 3. The Dark Content Area --- */
.footer-inner {
  background-color: var(--c-text);
  width: 100%;
  margin-top: -1px; /* Overlaps the cloud mask by 1px to prevent rendering gaps */
  padding-top: 2rem;
}

.footer-content {
  /* Mobile First: Use mobile gutter variable */
  padding: 0 var(--gutter-mobile) 3rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 600px) {
  .footer-content {
    /* Desktop: Use desktop gutter variable */
    padding: 0 var(--gutter-desktop) 4rem;
  }
}

.footer-line {
  border: none;
  border-top: 1px solid #ffffff;
  margin-bottom: 3rem;
  opacity: 0.8;
}

/* --- 4. Internal Layout & Links --- */
.footer-layout {
  display: flex;

  /* Mobile First: Stacked Vertically */
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 600px) {
  .footer-layout {
    /* Desktop: Side-by-Side */
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-brand p {
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: #ffffff;
  text-decoration: none;
  font-weight: var(--weight-bold);
  transition: opacity 0.2s ease;
}

/* Mobile-protected hover state */
@media (hover: hover) {
  .footer-links a:hover {
    opacity: 0.7;
  }
}

.footer-bottom p {
  font-size: 0.85rem;
  opacity: 0.6;
  margin: 0;
}
/* #endregion */

/**
 * ==========================================
 * LEGAL PAGES (Impressum & Datenschutz)
 * ==========================================
 */
/* #region Legal Pages */
/* --- 1. Main Reading Container --- */
.legal-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10rem var(--gutter-mobile) 5rem;
  width: 100%;
}

@media (min-width: 600px) {
  .legal-container {
    /* Desktop: Use desktop gutter variable */
    padding: 10rem var(--gutter-desktop) 5rem;
  }
}

.legal-container h1 {
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.legal-container h2,
.legal-container h3,
.legal-container h4,
.legal-container p {
  overflow-wrap: break-word;
}

/* --- 2. Headers & Icons --- */
.legal-icon {
  width: 60px;
  height: auto;
  display: block;
  margin: 0 auto 1rem auto;
}

.legal-container h1 {
  font-size: var(--size-h2);
  color: var(--c-primary);
  margin-bottom: 4rem;
  text-align: center;
}

/* Proper cascading hierarchy for text-heavy pages */
.legal-container h2 {
  font-size: var(--size-h3); /* Upgraded from h4 to h3 */
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.legal-container h3 {
  font-family: var(--font-poppins);
  font-weight: var(--weight-bold);
  font-size: var(--size-h4); /* Now smaller than the h2 */
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal-container h4 {
  font-family: var(--font-poppins);
  font-weight: var(--weight-bold);
  font-size: 1.1rem; /* The smallest sub-heading */
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* --- 3. Body Typography & Links --- */
.legal-container p {
  font-size: 1rem;
  line-height: 1.8; /* Tall line-height makes dense legal text much easier to read */
  margin-bottom: 1rem;
  color: rgba(0, 0, 0, 0.8);
}

.legal-container a {
  color: var(--c-primary);
  text-decoration: underline;
  text-underline-offset: 4px; /* Drops the underline down for a cleaner look */
  transition: color 0.2s ease;
}

/* Mobile-protected hover state */
@media (hover: hover) {
  .legal-container a:hover {
    color: var(--c-text);
  }
}
/* #endregion */

/**
 * ==========================================
 * CUSTOM UI MODAL
 * ==========================================
 */
/* #region Custom UI Modal */
.alberlika-modal {
  margin: auto; /* Centers it automatically */
  padding: 0;
  border: none;
  border-radius: 16px;
  background-color: var(--c-bg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-width: 400px;
  width: 90%;
  text-align: center;
  overflow: hidden;
}

/* The dark, blurred background behind the popup */
.alberlika-modal::backdrop {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal-inner {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.modal-text {
  font-family: var(--font-poppins);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--c-text);
  margin: 0;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.modal-btn {
  font-family: var(--font-poppins);
  font-weight: var(--weight-bold);
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.modal-btn:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-frame);
}

.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.btn-primary {
  background-color: var(--c-primary);
  color: #ffffff;
}

.btn-primary:hover {
  opacity: 0.9;
}
/* #endregion */
