/* ==========================================================
   Madee's Spoken English Classes - styles (mobile first)
   1 Tokens  2 Base  3 Layout  4 Buttons  5 Header  6 Hero
   7 Programs  8 Why  9 Reviews  10 Contact  11 CTA/Footer
   ========================================================== */

/* ==========================================================
   1 TOKENS
   ========================================================== */
:root {
  --primary: #00236f;
  --primary-container: #1e3a8a;
  --secondary: #855300;
  --secondary-container: #fea619;
  --on-secondary-container: #684000;
  --tertiary: #00312c;
  --tertiary-container: #004942;
  --teal: #4ebdb0;
  --surface: #f8f9ff;
  --surface-low: #eff4ff;
  --surface-mid: #e6eeff;
  --surface-high: #dee9fc;
  --surface-highest: #d9e3f6;
  --white: #ffffff;
  --text: #121c2a;
  --text-soft: #444651;
  --error: #ba1a1a;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ==========================================================
   2 BASE
   ========================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding-top: 5rem;
  overflow-x: hidden;
  font: 400 16px/24px var(--font);
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--secondary-container);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

/* Icons */
.icon {
  font-family: "Material Symbols Outlined";
  font-weight: 400;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  user-select: none;
  flex-shrink: 0;
}

.icon.fill {
  font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

.icon-xs { font-size: 12px; }
.icon-sm { font-size: 14px; }
.icon-md { font-size: 16px; }
.icon-lg { font-size: 18px; }
.icon-xl { font-size: 20px; }

/* ==========================================================
   3 LAYOUT
   ========================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--surface-low);
}

.stack {
  display: flex;
  flex-direction: column;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
}

.title {
  font-size: 30px;
  line-height: 38px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--primary);
}

.lead {
  font-size: 18px;
  line-height: 28px;
  color: var(--text-soft);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.section-head.center {
  align-items: center;
  text-align: center;
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .title {
    font-size: 40px;
    line-height: 48px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

  .section {
    padding: 6rem 0;
  }
}

/* ==========================================================
   4 BUTTONS & PILLS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.75rem;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  font: 700 15px/20px var(--font);
  letter-spacing: 0.01em;
  transition: all 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  box-shadow: var(--shadow);
}

.btn-gold:hover {
  background: var(--secondary);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.btn-soft {
  background: var(--surface-highest);
  color: var(--primary);
}

.btn-soft:hover {
  background: var(--surface-mid);
}

.btn-blue {
  background: var(--primary);
  color: var(--white);
}

.btn-blue:hover {
  background: var(--primary-container);
}

.btn-light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-weight: 600;
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-sm {
  padding: 0.65rem 1.25rem;
}

.btn-block {
  width: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 11px;
  line-height: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.pill-blue {
  background: var(--surface-highest);
  color: var(--primary);
}

.pill-white {
  background: var(--white);
  color: var(--secondary);
  box-shadow: var(--shadow);
}

.pill-soft {
  background: var(--surface-mid);
  color: var(--secondary);
}

/* ==========================================================
   5 HEADER
   ========================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  font-size: 16px;
  line-height: 20px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-tag {
  overflow: hidden;
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  color: var(--secondary);
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.phone-pill,
.btn-enquire {
  display: none;
}

.phone-pill {
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  background: var(--surface-mid);
}

.phone-pill:hover {
  background: var(--surface-high);
}

.phone-pill .icon {
  color: var(--secondary);
}

.phone-pill b {
  display: block;
  font-size: 11px;
  line-height: 14px;
}

.phone-pill small {
  display: block;
  font-size: 10px;
  line-height: 14px;
  color: var(--text-soft);
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface-mid);
  color: var(--primary);
  cursor: pointer;
}

/* One nav list: dropdown on phones, inline row on desktop */
.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem 1rem 1rem;
  background: var(--white);
  border-top: 1px solid var(--surface-mid);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.nav.open {
  display: flex;
}

.nav a {
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-soft);
}

.nav a:hover {
  color: var(--text);
}

.nav a.active {
  background: var(--surface-high);
  color: var(--primary);
  font-weight: 700;
}

.nav .nav-cta {
  margin-top: 0.5rem;
  text-align: center;
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  font-weight: 700;
}

@media (min-width: 640px) {
  .btn-enquire {
    display: inline-flex;
  }

  .nav .nav-cta {
    display: none;
  }
}

@media (min-width: 1100px) {
  .menu-btn {
    display: none;
  }

  .btn-enquire {
    display: none;
  }

  .brand {
    gap: 0.65rem;
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-tag {
    font-size: 9px;
    letter-spacing: 0.06em;
  }

  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 0.125rem;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .nav a {
    padding: 0.55rem 0.6rem;
    font-size: 13px;
  }

  .nav .nav-cta {
    display: inline-flex;
    margin: 0;
    padding: 0.65rem 0.85rem;
  }
}

/* ==========================================================
   6 HERO
   ========================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0;
  background: linear-gradient(to bottom, var(--surface), var(--surface-low), var(--surface));
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(64px);
  pointer-events: none;
}

.hero::before {
  top: -6rem;
  left: -6rem;
  background: rgba(0, 35, 111, 0.05);
}

.hero::after {
  top: 50%;
  right: -6rem;
  background: rgba(254, 166, 25, 0.1);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.hero h1 {
  max-width: 42rem;
  font-size: 36px;
  line-height: 44px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--primary);
}

.hero-sub {
  max-width: 36rem;
  font-size: 18px;
  line-height: 28px;
  color: var(--text-soft);
}

.trust {
  display: grid;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.trust li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  font-size: 13px;
  line-height: 18px;
  font-weight: 600;
  list-style: none;
}

.trust .icon {
  color: var(--secondary);
  font-size: 18px;
}

.trust,
.nolist {
  margin: 0;
  padding: 0;
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.bg-primary { background: var(--primary); }
.bg-secondary { background: var(--secondary); }
.bg-container { background: var(--primary-container); }
.bg-teal { background: var(--tertiary-container); }

.hero-media {
  position: relative;
  margin-top: 1rem;
}

.hero-photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.hero-photo img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  transition: transform 0.5s;
}

.hero-photo:hover img {
  transform: scale(1.05);
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 35, 111, 0.8), transparent 60%);
  pointer-events: none;
}

.icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  color: var(--white);
  background: var(--primary-container);
}

.float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.float-cert {
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  background: var(--secondary);
  color: var(--white);
  transform: rotate(1deg);
}

.float-cert b {
  display: block;
  font-size: 11px;
  line-height: 14px;
  text-transform: uppercase;
}

.float-cert small {
  display: block;
  font-size: 10px;
  line-height: 14px;
  color: #ffddb8;
}

.float-cert .icon {
  color: #ffddb8;
  font-size: 18px;
}

@media (min-width: 640px) {
  .trust {
    grid-template-columns: repeat(3, 1fr);
  }

  .cta-row {
    flex-direction: row;
    align-items: center;
  }

  .hero-photo img {
    height: 460px;
  }

  .float-cert {
    top: -1rem;
    right: -1rem;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 5rem 0;
  }

  .hero-grid {
    grid-template-columns: 7fr 5fr;
  }

  .hero h1 {
    font-size: 52px;
    line-height: 60px;
    letter-spacing: -0.02em;
  }

  .hero-media {
    margin-top: 0;
  }
}

/* ==========================================================
   7 PROGRAMS
   ========================================================== */
.programs-head {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.programs-head .section-head {
  margin-bottom: 0;
}

.programs-grid {
  display: grid;
  gap: 1.5rem;
}

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--surface-high);
  color: var(--primary);
  transition: all 0.2s;
}

.card:hover .card-icon {
  background: var(--primary);
  color: var(--white);
}

.card h3 {
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  transition: color 0.2s;
}

.card:hover h3 {
  color: var(--primary);
}

.card p {
  font-size: 14px;
  line-height: 22px;
  color: var(--text-soft);
}

.highlight {
  padding: 0.75rem;
  border-radius: 0.5rem;
  background: var(--surface-low);
}

.highlight b {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.highlight p {
  font-size: 13px;
  line-height: 20px;
}

.ribbon {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.25rem 0.75rem;
  border-bottom-left-radius: 0.5rem;
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .programs-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .programs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================
   8 WHY CHOOSE US
   ========================================================== */
.pillars {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.pillar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.pillar .icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
}

.pillar h3 {
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}

.pillar p {
  font-size: 14px;
  line-height: 22px;
  color: var(--text-soft);
}

.kit {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.kit h3 {
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  color: var(--primary);
  margin: 0.5rem 0;
}

.kit-intro p {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-soft);
}

.kit-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.kit-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem;
  border-radius: var(--radius);
  background: var(--surface-low);
  list-style: none;
}

.kit-list .icon {
  color: var(--primary);
}

.kit-list b {
  display: block;
  font-size: 13px;
  line-height: 18px;
}

.kit-list span {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-soft);
}

@media (min-width: 640px) {
  .kit-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .pillars {
    grid-template-columns: repeat(4, 1fr);
  }

  .kit {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2.5rem;
  }

  .kit-intro {
    max-width: 36rem;
  }

  .kit-list {
    width: 60%;
  }
}

/* ==========================================================
   9 REVIEWS
   ========================================================== */
.review-carousel {
  max-width: 52rem;
  margin: 0 auto;
}

.reviews {
  display: grid;
  touch-action: pan-y;
}

.review[hidden] {
  display: none;
}

.review-controls {
  display: none;
}

.review-carousel.is-carousel .review-controls {
  display: flex;
}

.review-carousel.is-carousel .review:not([hidden]) {
  animation: review-in 0.3s ease both;
}

@keyframes review-in {
  from {
    opacity: 0;
    transform: translateX(var(--review-enter-x, 1rem));
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.review {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}

.review:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stars {
  color: var(--secondary-container);
  font-size: 20px;
  letter-spacing: 1px;
}

.review blockquote {
  margin: 0;
  font-style: italic;
  line-height: 24px;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding: 0.875rem;
  border-radius: var(--radius);
  background: var(--surface-low);
}

.reviewer .avatar {
  width: 40px;
  height: 40px;
  box-shadow: none;
  font-size: 14px;
}

.reviewer b {
  display: block;
  font-size: 15px;
  line-height: 20px;
  color: var(--primary);
}

.reviewer small {
  font-size: 12px;
  color: var(--text-soft);
}

.review-controls {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.review-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--surface-high);
  border-radius: 50%;
  background: var(--white);
  color: var(--primary);
  cursor: pointer;
}

.review-arrow:hover {
  background: var(--surface-high);
}

.review-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.review-dot::before {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-highest);
  content: "";
  transition: width 0.2s, background-color 0.2s;
}

.review-dot[aria-pressed="true"]::before {
  width: 24px;
  background: var(--primary);
}

@media (max-width: 480px) {
  .review {
    padding: 1.25rem;
  }

  .review-top {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .review-carousel.is-carousel .review:not([hidden]) {
    animation: none;
  }
}

/* ==========================================================
   10 CONTACT
   ========================================================== */
#contact {
  padding: 4rem 0;
  background: var(--surface-low, #f5f7fa);
}

#contact .section-head {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  max-width: 1200px;
  margin: 0 auto;
}

/* Contact information panel */
.panel {
  display: block;
  min-width: 0;
  height: auto;
  padding: 1.25rem;
  background: var(--white, #fff);
  border: 1px solid var(--border, #e5e9ef);
  border-radius: var(--radius-lg, 18px);
  box-shadow: var(--shadow, 0 8px 28px rgba(20, 40, 70, 0.06));
}
#contact .section-head .eyebrow {
  justify-content: center;
}
.info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  min-width: 0;
  height: auto;
  padding: 1.15rem;
  background: var(--surface-low, #f5f7fa);
  border: 1px solid var(--border, #e5e9ef);
  border-radius: var(--radius, 12px);
  overflow-wrap: anywhere;
}

.info h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  color: var(--primary, #315f8c);
  font-size: 1rem;
  line-height: 1.5;
}

.info p {
  margin: 0;
  color: var(--text-soft, #5f6b7a);
  font-size: 0.875rem;
  line-height: 1.7;
}

.info address {
  margin: 0;
  font-style: normal;
}

.info .strong {
  color: var(--text, #202b38);
  font-weight: 600;
}

.info .strong b {
  color: var(--primary, #315f8c);
}

.info .closed {
  color: var(--error, #b42318);
  font-size: 0.8rem;
  font-weight: 500;
}

.info small {
  color: var(--secondary, #537f70);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.6;
}

/* Contact links */
.map-link,
.phone-link,
.whatsapp-link {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: 100%;
  font-size: 0.875rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.map-link,
.phone-link {
  color: var(--primary, #315f8c);
}

.whatsapp-link {
  color: var(--secondary, #27845b);
}

.map-link:hover,
.phone-link:hover,
.whatsapp-link:hover {
  text-decoration: underline;
}

/* Map: do not use height: 100% without a defined parent height */
.map-card {
  position: relative;
  width: 100%;
  min-width: 0;
  height: clamp(280px, 45vw, 450px);
  overflow: hidden;
  background: var(--surface-mid, #e9eef3);
  border: 1px solid var(--border, #e5e9ef);
  border-radius: var(--radius-lg, 18px);
  box-shadow: var(--shadow, 0 8px 28px rgba(20, 40, 70, 0.06));
}

.map-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
}

/* Tablet */
@media (min-width: 600px) {
  .contact-grid {
    gap: 1.5rem;
  }

  .panel {
    padding: 1.5rem;
  }

  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .map-card {
    height: 360px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  #contact {
    padding: 5rem 0;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: stretch;
    gap: 1.5rem;
  }

  .panel {
    padding: 1.5rem;
  }

  .info-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .map-card {
    height: auto;
    min-height: 0;
    align-self: stretch;
  }

  .map-frame {
    position: absolute;
    inset: 0;
  }
}

/* Wide desktop */
@media (min-width: 1200px) {
  .panel {
    padding: 1.75rem;
  }

  .info {
    padding: 1.25rem;
  }
}

/* Small mobile screens */
@media (max-width: 380px) {
  #contact {
    padding: 3rem 0;
  }

  .panel {
    padding: 0.75rem;
  }

  .info {
    padding: 1rem;
  }

  .map-card {
    height: 280px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* ==========================================================
   11 CTA BANNER & FOOTER
   ========================================================== */
.banner {
  position: relative;
  overflow: hidden;
  background: var(--primary-container);
  color: var(--white);
  padding: 4rem 0;
}

.banner::before,
.banner::after {
  content: "";
  position: absolute;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  pointer-events: none;
}

.banner::before {
  right: -5rem;
  bottom: -5rem;
  background: rgba(255, 255, 255, 0.05);
}

.banner::after {
  left: -5rem;
  top: -5rem;
  background: rgba(254, 166, 25, 0.1);
}

.banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.banner-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 42rem;
}

.banner .pill {
  background: var(--secondary-container);
  color: var(--on-secondary-container);
  font-size: 11px;
}

.banner h2 {
  font-size: 30px;
  line-height: 38px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.banner p {
  font-size: 18px;
  line-height: 28px;
  color: rgba(217, 227, 246, 0.9);
}

.banner-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 640px) {
  .banner-actions {
    flex-direction: row;
    width: auto;
  }
}

@media (min-width: 768px) {
  .banner h2 {
    font-size: 40px;
    line-height: 48px;
  }

  .banner-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .banner-copy {
    align-items: flex-start;
  }
}

/* Footer */
.footer {
  margin-top: 2.5rem;
  background: var(--surface-low);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
  padding: 2.5rem 1rem;
  max-width: 1240px;
  margin: 0 auto;
}

.footer h3 {
  margin-bottom: 0.5rem;
  font-size: 15px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--primary);
}

.footer p,
.footer li,
.footer address {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-soft);
  font-style: normal;
}

.footer ul {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer ul a {
  display: block;
  padding: 0.25rem 0;
}

.footer a:hover {
  color: var(--primary);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer-brand b {
  font-size: 18px;
  color: var(--primary);
}

.footer .verified {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary);
}

.footer .line {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.footer .line .icon {
  color: var(--primary);
  font-size: 18px;
  margin-top: 2px;
}

.hours {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--surface-mid);
  margin-bottom: 0.75rem;
}

.hours div {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.hours b {
  color: var(--primary);
}

.hours .closed {
  color: var(--error);
  font-weight: 600;
}

.hours .note {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding-top: 0.5rem;
  margin-top: 0.25rem;
  border-top: 1px solid var(--surface-highest);
  justify-content: flex-start;
  font-size: 11px;
  color: var(--secondary);
}

.footer .btn {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 13px;
  text-align: center;
}

.footer .btn:hover {
  color: var(--white);
}

.copyright {
  background: var(--surface-mid);
  border-top: 1px solid var(--surface-high);
  padding: 1rem;
  text-align: center;
  font-size: 11px;
  line-height: 14px;
  letter-spacing: 0.05em;
  color: var(--text-soft);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
    padding-inline: 2rem;
  }
}

/* ==========================================================
   SMALL HELPERS
   ========================================================== */
address {
  font-style: normal;
}

.review {
  margin: 0;
}

.section-head.wide {
  max-width: none;
}

.pill-white .icon {
  color: var(--secondary-container);
}

.pill-teal {
  background: var(--surface-mid);
  color: var(--tertiary-container);
}

.info small.muted {
  color: var(--text-soft);
  font-weight: 400;
}

.footer .icon.teal {
  color: var(--teal);
}

/* ==========================================================
   404 PAGE
   ========================================================== */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

.not-found main {
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.not-found .code {
  font-size: 64px;
  line-height: 1;
  font-weight: 800;
  color: var(--secondary-container);
}

.not-found h1 {
  font-size: 24px;
  line-height: 32px;
  color: var(--primary);
}

.not-found .btn {
  margin-top: 1rem;
}

/* ==========================================================
   SMALL-SCREEN SAFETY
   ========================================================== */
.brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 400px) {
  .brand {
    flex-shrink: 1;
    gap: 0.5rem;
  }

  .brand-name {
    font-size: 14px;
  }

  .brand-tag {
    font-size: 8px;
    letter-spacing: 0.02em;
  }
}

.nav a,
.phone-pill,
.btn-enquire,
.phone-pill b,
.phone-pill small {
  white-space: nowrap;
}

@media (min-width: 640px) {
  .brand-name {
    overflow: visible;
    text-overflow: clip;
  }
}

@media (min-width: 1100px) {
  .nav {
    gap: 0.25rem;
  }

  .header-inner {
    gap: 0.75rem;
  }
}

@media (min-width: 1440px) {
  .phone-pill {
    display: flex;
  }
}
