/* ==================== CSS VARIABLES ==================== */
:root {
  --bg: #fff9eb;
  --pink: #bd2059;
  --green: #00a69c;
  --yellow: #fddb8a;
  --orange: #f05a3b;
  --purple: #84246f;
  --font-head: "Funnel Display", sans-serif;
  --font-body: "Lexend Deca", sans-serif;
}

/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

a {
  text-decoration: none;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--pink);
}

/* ==================== GLOBAL BUTTON IMAGE FIX ==================== */
/* All SVGs exported from Figma have width="100%" — constrain them */
button img,
.outline-btn img,
.yellow-btn img,
.green-btn img,
.pink-btn img,
.purple-btn img,
.orange-btn img,
.nav-link-arrow img,
.menu-toggle img,
.nav-links a img,
.menu-list button img {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
}

/* ==================== BUTTONS ==================== */
.icon-btn {
  background: transparent;
  padding: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.icon-btn img {
  width: 20px !important;
  height: 20px !important;
}

.outline-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid var(--pink);
  border-radius: 50px;
  color: var(--pink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  background: transparent;
  white-space: nowrap;
}
.outline-btn:hover {
  background: rgba(189, 32, 89, 0.06);
}

.yellow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #f4890c;
  border: 2px solid #f4890c;
  border-radius: 50px;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}

.green-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--green);
  border: 2px solid var(--green);
  border-radius: 50px;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}

.pink-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--pink);
  border: 2px solid var(--pink);
  border-radius: 50px;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
}

.purple-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--purple);
  border: 2px solid var(--purple);
  border-radius: 50px;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}

.orange-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--orange);
  border: 2px solid var(--orange);
  border-radius: 50px;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}

.full-width {
  width: 100%;
  justify-content: center;
}

.green-btn.small,
.yellow-btn.small,
.outline-btn.small {
  font-size: 14px;
  padding: 8px 18px;
}

.yellow-btn.full,
.green-btn.full,
.outline-btn.full {
  width: 100%;
  justify-content: center;
}

/* ==================== HEADER ==================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 2px solid var(--pink);
  padding: 20px 60px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header .logo {
  height: 60px;
  width: auto;
  display: block;
  flex-shrink: 0; 
}

.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0; 
}

/* ---- Nav links ---- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 10px 24px;
  color: var(--pink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  border-radius: 32px;
}
.nav-menu-trigger img {
  width: 20px !important;
  height: 20px !important;
  transition: transform 0.2s ease;
}
.nav-menu-trigger.active {
  background: #feeec7;
}
.nav-menu-trigger.active img {
  transform: rotate(180deg);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 10px 24px;
  color: var(--pink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  border-radius: 32px;
}
.nav-links a:hover {
  background: rgba(189, 32, 89, 0.08);
}
.nav-links a img {
  width: 20px !important;
  height: 20px !important;
}

/* ---- Header actions (right side buttons) ---- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-actions .icon-btn {
  width: 40px;
  height: 40px;
  border: 2px solid var(--pink);
  border-radius: 50px;
  padding: 8px;
}
.header-actions .icon-btn img {
  width: 24px !important;
  height: 24px !important;
}
.header-actions .outline-btn,
.header-actions .yellow-btn,
.header-actions .green-btn {
  padding: 10px 18px 10px 24px;
  font-size: 16px;
  line-height: 1;
  gap: 2px;
}
.header-actions .outline-btn {
  border-width: 2px;
}
.header-actions .yellow-btn,
.header-actions .green-btn {
  border-width: 2px;
}
.header-actions .outline-btn img,
.header-actions .yellow-btn img,
.header-actions .green-btn img {
  width: 20px !important;
  height: 20px !important;
}

/* ==================== NAV DROPDOWN ==================== */
.nav-dropdown-host {
  position: relative;
  z-index: 90;
}

.nav-dropdown-panel {
  display: none;
  margin: 10px 16px 0;
  border-radius: 56px;
  box-shadow: 0 20px 24px rgba(0, 0, 0, 0.25);
}
.nav-dropdown-panel.open {
  display: grid;
}

/* ---- Products panel ---- */
.products-panel {
  grid-template-columns: 1fr 342px;
  background: #de4424;
  border: 2px solid #f05a3b;
}

.products-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 40px;
}

.products-panel-card {
  background: #f05a3b;
  border-radius: 32px;
  padding: 28px;
  min-height: 313px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.products-panel-card h4 {
  color: #fff;
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 1.3;
}
.products-panel-card p {
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 300;
}
.products-panel-card .green-btn {
  margin-top: auto;
  align-self: flex-start;
}

.products-panel-side {
  border-left: 2px solid #f05a3b;
  padding: 40px 40px 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.products-panel-side h3 {
  color: #fff;
  font-family: var(--font-head);
  font-size: 32px;
  line-height: 1.2;
  margin-bottom: 12px;
}
.products-panel-side a {
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}
/* .products-panel-image {
  display: flex;
  align-items: flex-end;  
  justify-content: center;
} */

/* .products-panel-image img {
  width: 350px; 
  bottom: 0 !important;
  right: 0;
  height: auto;
  }
.products-panel-image {
  grid-column: 3;      
  grid-row: 2;        

  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.products-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end !important; 
} 
/* Remove align-items: end from the grid */
.products-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: -90px;
 
}

.panel-bottom-img {
  grid-column: 3;
  grid-row: 2;
  position: relative;
  overflow: visible;     
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 200px;
}

.panel-bottom-img img {
  position: absolute;
  top: 145px;             
  width: 350px;
  height: auto;
}

/* ---- Features panel ---- */
.features-panel {
  background: #00a69c;
  border: 2px solid #04c8b8;
  padding: 24px 40px 40px;
}

.features-panel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 20px;
}

.features-panel-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
 
}
.features-panel-col h4 {
  color: #fff;
  font-family: var(--font-head);
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 4px;
}
.features-panel-col a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #04c8b8;
  color: #fff;
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 14px;
  line-height: 1.5;
}
.features-panel-col a::after {
  content: "›";
  font-size: 14px;
}

/* ---- Features expand toggle (Show more button) ---- */
.features-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin:16px 0 4px auto;
  padding: 8px 24px;
  background: #FFF9EB;
  border: 3px solid var(--pink);
  border-radius: 50px;
  color: var(--pink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s;
  width: fit-content;
}
.features-expand-btn:hover {
  background: #FFF9EB;
  border: 3px solid var(--pink)
}
.features-expand-chevron {
  width: 16px !important;
  height: 16px !important;
  transition: transform 0.25s ease;
  filter: brightness(0) saturate(100%) invert(14%) sepia(72%) saturate(2000%) hue-rotate(316deg) brightness(90%);;
}
.features-expand-btn.open .features-expand-chevron {
  transform: rotate(180deg);
}

/* ---- Features second row (hidden until expanded) ---- */
.features-panel-grid--more {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 20px;
  align-items: start;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}
.features-panel-grid--more.open {
  max-height: 800px;
  opacity: 1;
  margin-top: 24px;
}
.feature-icon {
  width: 69px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 12px;
}


/* ---- Resources panel ---- */
.resources-panel {
  grid-template-columns: 1fr 342px;
  background: #1a9fd4;
  border: 2px solid #2bb8ef;
}

.resources-panel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 40px;
}

.resources-panel-card {
  background: #2bb8ef;
  border-radius: 32px;
  padding: 24px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}

.resources-panel-card:hover {
  background: #3cc4f7;
}

.resources-panel-card h4 {
  color: #fff;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.resources-card-img {
  flex: 1;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.resources-card-img img {
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Resources panel reuses .products-panel-side styles — override border color only */
.resources-panel .products-panel-side {
  border-left-color: #2bb8ef;
}
.resources-panel .products-panel-side a::after {
  content: " ›";
}

/* ---- Resources mobile accordion ---- */
.mobile-accordion-panel.resources-mobile-accordion.open {
  background: #1a9fd4;
  border-color: #2bb8ef;
  border-radius: 20px;
  gap: 12px;
}

.resources-mobile-card {
  background: #2bb8ef;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
}
.resources-mobile-card:hover {
  background: #3cc4f7;
}
.resources-mobile-card .resources-card-img {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  min-height: 140px;
  width: 100%;
}
.resources-mobile-card h4 {
  color: #fff;
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

/* ---- Resources mobile side panel ---- */
.resources-mobile-side {
  margin-top: 8px;
  padding-top: 20px;
  border-top: 2px solid #2bb8ef;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.resources-mobile-side h3 {
  color: #fff;
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
}
.resources-mobile-side a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.resources-mobile-side a span {
  font-size: 18px;
  opacity: 0.8;
}

/* ==================== MOBILE HEADER ==================== */
.mobile-header {
  display: none;
  padding: 20px 12px;
}

.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-book-btn {
  font-size: 14px !important;
  line-height: 1 !important;
  padding: 8px 16px 8px 20px !important;
  gap: 2px !important;
}
.mobile-book-btn img {
  width: 16px !important;
  height: 16px !important;
}

/* ---- Hamburger / close toggle ---- */
.menu-toggle {
  background: transparent;
  padding: 0;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-toggle-icon {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 34px;
  line-height: 1;
  color: var(--pink);
  display: block;
}
.menu-toggle.close .menu-toggle-icon {
  font-size: 52px;
  line-height: 0.65;
}
.menu-toggle svg {
  display: block;
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 12px;
  height: 88px;
  border-bottom: 2px solid var(--pink);
}
.mobile-menu-head .logo {
  height: 32px;
}

/* ---- Mobile nav list ---- */
.menu-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 12px 0;
}
.menu-list .menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  color: var(--pink);
  border-radius: 32px;
  width: 100%;
  background: #feeec7;
}
.menu-list .menu-link:hover {
  background: #feeec7;
}
.menu-link.active {
  background: #feeec7;
}
.menu-link.active img {
  transform: rotate(180deg);
}
.menu-list button img {
  width: 20px !important;
  height: 20px !important;
}

/* ---- Mobile accordion panels ---- */
.mobile-accordion-panel {
  display: none;
}
.mobile-accordion-panel.open {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #de4424;
  border: 2px solid #f05a3b;
  border-radius: 32px;
  box-shadow: 0 20px 24px rgba(0, 0, 0, 0.25);
  padding: 24px;
}
.mobile-accordion-panel.features-mobile-accordion.open {
  background: #00a69c;
  border-color: #04c8b8;
  border-radius: 20px;
  gap: 16px;
}
.features-mobile-accordion .features-panel-col {
  background: rgba(4, 200, 184, 0.25);
  border-radius: 12px;
  padding: 12px;
}
.features-mobile-accordion .features-panel-col h4 {
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 6px;
}
.features-mobile-accordion .features-panel-col a {
  background: #04c8b8;
  color: #fff;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 10px;
  line-height: 1.4;
}
.features-mobile-accordion .features-panel-col a::after {
  content: "›";
}
.mobile-accordion-panel .products-panel-card {
  min-height: 260px;
  border-radius: 20px;
}
.mobile-accordion-panel .features-panel-col h4 {
  font-size: 18px;
}

/* ---- Mobile bottom actions ---- */
.menu-bottom-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 0;
}
.menu-divider {
  border-top: 2px solid var(--pink);
  margin: 40px 12px 0;
  padding-top: 40px;
}
.menu-inline-actions {
  display: flex;
  gap: 8px;
  width: 100%;
}
.menu-auth-btn {
  flex: 1;
  justify-content: center;
  background: var(--bg);
  border-width: 2px;
  font-size: 14px !important;
  line-height: 1 !important;
  padding: 8px 16px 8px 20px !important;
  gap: 8px !important;
}
.menu-auth-btn img {
  width: 16px !important;
  height: 16px !important;
}
.menu-cta-btn {
  width: 100%;
  justify-content: space-between !important;
  padding: 8px 16px 8px 20px !important;
  font-size: 14px !important;
  line-height: 1 !important;
}
.menu-cta-btn img {
  width: 16px !important;
  height: 16px !important;
}

/* ==================== RESPONSIVE: TABLET (≤1024px) ==================== */
@media (max-width: 1024px) {
  /* Hide desktop header and dropdown */
  .desktop-header {
    display: none;
  }
  .nav-dropdown-host {
    display: none;
  }

  /* Show mobile header */
  .mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .menu-list {
    padding-top: 32px;
    gap: 12px;
  }
}

/* ==================== RESPONSIVE: MOBILE (≤640px) ==================== */
@media (max-width: 640px) {
/*   .header {
    padding: 20px 12px;
    height: 88px;
  } */
   .header.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px !important;
    height: auto !important;   /* 🔥 remove 88px */
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .menu-list {
    padding-top: 32px;
    gap: 12px;
  }
  
  .feature-icon {
    width: 40px;  
    height: 36px;
    margin-bottom: 8px;
  }
   .mobile-header .logo {
    height: 44px !important;  
    width: auto;

}

@media (max-width: 1280px) {
  .header {
    padding: 20px 35px;
  }

  .nav-links a,
  .nav-menu-trigger {
    padding: 10px 14px;
    font-size: 14px;
  }
}