/* =========================================
   FAIRYTALES — BRANCHES PAGE CSS
   ========================================= */

:root {
  --purple-dark:   #3b1f6b;
  --purple-mid:    #6b3fa0;
  --pink:          #e91e8c;
  --teal:          #1aabbb;
  --section-bg:    #faf5ff;
  --white:         #ffffff;
  --text-body:     #4a4a5a;
  --text-muted:    #7a7a8a;
  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Playfair Display', Georgia, serif;
}


/* =========================================
   SECTION 1 — HERO
   ========================================= */
.branches_hero {
  background: #FFFBFF;
  padding: 80px 0 60px;
  text-align: center;
}

.branches_hero .heading {
  max-width: 890px;
  margin: 0 auto;
}

/* Badge */
.branches_hero .top_txt_badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #49454F;
  background: #FFD8EC;
  padding: 8px 24px;
  border-radius: 9999px;
  margin-bottom: 28px;
}

/* H1 — mixed weight */
.branches_hero h1 {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 400;          /* italic light for "Come to Life" */
  line-height: 1.1;
  color: #9D4DBB;
  margin: 0 0 24px;
  letter-spacing: 0;
}

.branches_hero h1 strong {
  font-weight: bold;
  color: #602C7F;
  font-style: normal;
  letter-spacing: -3.6px;
}

/* Subtext */
.branches_hero p {
  /* font-family: var(--font-body); */
  font-size: 18px;
  line-height: 1.8;
  color: #49454F;
  max-width: 631px;
  margin: 0 auto;
}


/* =========================================
   SECTION 2 — BRANCH CARDS
   ========================================= */
.branches_cards {
  background: #FFFBFF;
  padding: 60px 0 80px;
}

/* 4-col grid */
.branches_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* Card */
.branch_card {
  background: var(--white);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #ede5f8;
  display: flex;
  flex-direction: column;
}

/* Image area */
.branch_card .branch_image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2.6;
  overflow: hidden;
  background: #e8e0f0;
}

.branch_card .branch_image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Location pill badge top-right */
.branch_location_badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--badge-bg, #6b3fa0);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 100px;
}

/* Card body */
.branch_card .branch_body {
  padding: 22px 20px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Branch name */
.branch_card .branch_body h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--branch-name-color, var(--purple-mid));
  margin: 0 0 14px;
}

/* Address row */
.branch_address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 22px;
  flex: 1;
}

.branch_address svg {
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 2px;
}

.branch_address div {
  display: flex;
  flex-direction: column;
  gap: 0px;
}

.branch_address strong {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: #1a1a2e;
}

.branch_address span {
  font-family: var(--font-body);
  font-size: 13px;
  color: #000000;
  font-weight: 400;
}

/* CTA button */
.branch_cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--cta-bg, var(--purple-mid));
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 100px;
  transition: opacity 0.2s, transform 0.2s;
}

.branch_cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  color: var(--white);
}


/* =========================================
   SECTION 3 — MAGIC MAP
   ========================================= */
.magic_map {
  background: #FFFBFF;
  padding: 60px 0 80px;
}

.map_wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #ede5f8;
  height: 480px;
}

/* Map iframe fills the wrap */
.map_embed {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.map_embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Legend overlay — top left */
.map_legend {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  background: var(--white);
  border-radius: 16px;
  padding: 20px 24px;
  box-shadow: 0 4px 20px rgba(107, 63, 160, 0.12);
  min-width: 200px;
}

.map_legend h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--purple-mid);
  margin: 0 0 16px;
}

.map_legend ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.map_legend ul li {
  font-family: var(--font-body);
  font-size: 14px;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend_dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dot-color, #ccc);
  flex-shrink: 0;
}

/* Map controls — bottom right */
.map_controls {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}

.map_ctrl {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  font-size: 20px;
  font-weight: 600;
  color: #1a1a2e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  transition: background 0.2s;
}

.map_ctrl:hover {
  background: #f5f0fc;
}

.map_ctrl--locate {
  background: var(--purple-dark);
  color: var(--white);
}

.map_ctrl--locate:hover {
  background: var(--purple-mid);
}


/* =========================================
   SECTION 4 — CTA BANNER
   ========================================= */
.branches_cta {
  background: #F5EDF7;
  padding: 40px 0 80px;
}

.cta_banner {
    /* Multi-stop gradient to capture the purple, pink, and slight blue glow */
    background: linear-gradient(
        115deg, 
        #7b379d 0%,    /* Deep purple top-left */
        #a446a8 45%,   /* Mid purple/pink */
        #bd4a90 75%,   /* Vibrant pink */
        #82589f 100%   /* Slight blue/purple shift at bottom-right */
    );
    
    /* Increased radius to match the design's "blob" aesthetic */
    border-radius: 60px; 
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    
    /* Soft shadow to help it pop against the light page background */
    box-shadow: 0 25px 50px -12px rgba(123, 55, 157, 0.25);
}

.cta_banner h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 700;
  color: var(--white);
  margin: 0 0 18px;
}

.cta_banner p {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 40px;
}

/* CTA buttons row */
.cta_buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn_cta {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 100px;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
}

.btn_cta:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

/* Solid white button */
.btn_cta--solid {
  background: var(--white);
  color: var(--purple-dark);
}

/* Ghost/outline button */
.btn_cta--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn_cta--outline:hover {
  border-color: var(--white);
  color:#fff;
}


/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1100px) {
  .branches_grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .branches_hero {
    padding: 56px 0 40px;
  }

  .branches_grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .map_wrap {
    height: 360px;
  }

  .map_legend {
    padding: 14px 16px;
    min-width: 160px;
  }

  .cta_banner {
    padding: 48px 24px;
  }

  .cta_buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn_cta {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }
}