:root {
  --primary-purple: #6A4C93;
  --light-purple: #B8A9D9;
  --cream: #F5EDE4;
  --waffle-brown: #C68642;
  --dark-text: #2E2E2E;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--cream);
  color: var(--dark-text);
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 8%;
  background: var(--primary-purple);
  position: sticky;
  top: 0;
  z-index: 2000;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.4rem;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  padding: 4px;
  transition: transform 0.3s ease;
}

.logo:hover img {
  transform: rotate(10deg) scale(1.05);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 0.8;
}

.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

/* BRANCHES HERO */
.branches-hero {
  text-align: center;
  padding: 60px 20px 40px;
  background: linear-gradient(135deg, var(--primary-purple), var(--light-purple));
  color: white;
}

.branches-hero h1 {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.8rem;
  margin-bottom: 10px;
}

.branches-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* BRANCHES CONTAINER */
.branches-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 50px 8%;
  max-width: 1300px;
  margin: 0 auto;
}

/* BRANCH CARD */
.branch-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.branch-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.branch-header {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 25px 20px 15px;
}

.branch-icon {
  font-size: 2.5rem;
  background: var(--cream);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  flex-shrink: 0;
}

.branch-header h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.3rem;
  color: var(--primary-purple);
  margin-bottom: 5px;
}

.branch-address {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

/* MAP */
.branch-map {
  padding: 0 15px;
}

.branch-map iframe {
  width: 100%;
  height: 250px;
  border-radius: 15px;
  border: none;
}

/* DIRECTIONS BUTTON */
.directions-btn {
  display: block;
  text-align: center;
  padding: 14px 20px;
  margin: 15px;
  background: var(--primary-purple);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  transition: background 0.3s, transform 0.3s;
}

.directions-btn:hover {
  background: #4a3470;
  transform: scale(1.02);
}

/* CTA SECTION */
.cta-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, var(--light-purple), var(--primary-purple));
  color: white;
}

.cta-section h2 {
  font-family: 'Fredoka', sans-serif;
  font-size: 2rem;
  margin-bottom: 10px;
}

.cta-section p {
  font-size: 1rem;
  margin-bottom: 25px;
  opacity: 0.9;
}

.cta-btn {
  display: inline-block;
  padding: 14px 35px;
  background: var(--waffle-brown);
  color: white;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 500;
  transition: transform 0.3s, box-shadow 0.3s;
}

.cta-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(198, 134, 66, 0.4);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 30px 8% 20px;
  background: var(--primary-purple);
  color: white;
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: #f5f5f5;
}

.franchise-btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--waffle-brown);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  font-size: 0.95rem;
  margin: 10px 0;
  transition: 0.3s;
}

.franchise-btn:hover {
  background: #b3722e;
  transform: scale(1.05);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .branches-container {
    grid-template-columns: repeat(2, 1fr);
    padding: 40px 5%;
    gap: 25px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: var(--primary-purple);
    flex-direction: column;
    width: 200px;
    display: none;
    padding: 20px;
    border-radius: 0 0 0 12px;
  }

  .nav-links a {
    padding: 10px 0;
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .branches-hero {
    padding: 40px 20px 30px;
  }

  .branches-hero h1 {
    font-size: 2rem;
  }

  .branches-hero p {
    font-size: 1rem;
  }

  .branches-container {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 5%;
  }

  .branch-map iframe {
    height: 220px;
  }

  .branch-header h2 {
    font-size: 1.1rem;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .branches-hero h1 {
    font-size: 1.6rem;
  }

  .branches-hero p {
    font-size: 0.9rem;
  }

  .branch-header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .branch-icon {
    width: 50px;
    height: 50px;
    font-size: 2rem;
  }

  .branch-header h2 {
    font-size: 1rem;
  }

  .branch-address {
    font-size: 0.8rem;
  }

  .branch-map iframe {
    height: 200px;
  }

  .directions-btn {
    padding: 12px 18px;
    font-size: 0.9rem;
  }

  .cta-btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }
}
