/* =====================================
   Elegant Beige Piano Website Theme
   Clean version – no overlay bugs
   ===================================== */

/* ---------- Variables ---------- */

:root{
  --bg: #f5efe6;
  --bg-soft: #efe6db;
  --card: rgba(255,253,250,0.92);

  --text: #2c2a26;
  --muted: #6b6259;

--accent: #7a5a40;      /* warm piano brown */
--accent-dark: #5f4631;

--accent-rgb: 139,106,77;   /* same as #8b6a4d */
--tint: rgba(var(--accent-rgb), 0.12);
--tint-strong: rgba(var(--accent-rgb), 0.18);
   
  --line: rgba(0,0,0,0.08);
  --radius: 22px;
  --maxw: 1100px;
}

/* ---------- Base ---------- */

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background: radial-gradient(1200px 700px at 20% 0%, var(--tint), transparent 55%),
              radial-gradient(900px 600px at 90% 10%, var(--tint-strong), transparent 50%),
              var(--bg);
  line-height:1.6;
}

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

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

/* ---------- Layout ---------- */

.container{
  width:min(var(--maxw), 92vw);
  margin:auto;
}

.section{
  padding: 60px 0;
}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:24px;
}

.grid3{
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap:24px;
}

@media (max-width: 860px){
  .split,
  .grid3{
    grid-template-columns:1fr;
  }
}

/* ---------- Header ---------- */

header{
  position:sticky;
  top:0;
  background: rgba(245,239,230,0.92); /* warm ivory */
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  z-index:100;
}

.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 0;
}

.brand{
  font-weight:600;
  letter-spacing:0.5px;
}

.navlinks{
  display:flex;
  gap:22px;
}

.navlinks a{
  color: var(--muted);
  text-decoration:none;
  padding: 10px 16px;
  border-radius: 999px;
  transition: 0.2s;
}

.navlinks a {
  font-size: 16px;        /* slightly larger */
  letter-spacing: 0.6px;  /* subtle elegance */
  margin-left: 28px;      /* more spacing between tabs */
}

.navlinks a:hover{
  background: var(--tint);
  color: var(--text);
}

.navlinks a.active{
  background: var(--tint-strong);
  color: var(--text);
}

/* ---------- Hero Section ---------- */

.hero{
  padding: 40px 0 60px 0;
}

.hero-banner{
  position:relative;
  border-radius: var(--radius);
  overflow:hidden;
  min-height:520px;
  display:flex;
  align-items:center;
  box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}

/* Background image (behind everything) */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("images/hero-piano.jpg");
  background-size: cover;
  background-position: right center;
  border-radius: 28px;
  filter: brightness(0.8);
}

/* soft elegant fade for text readability */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(246,239,228,0.85) 0%,
    rgba(246,239,228,0.55) 35%,
    rgba(246,239,228,0.00) 70%
  );
}

/* Content stays above */
.hero-content{
  position:relative;
  z-index:2;
  padding:50px;
  max-width:600px;
  background: rgba(255,255,255,0.85);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}

/* Typography */

.h1{
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 56px);
  line-height:1.1;
  margin:0 0 18px;
}

.lead{
  color:var(--muted);
  font-size:1.1rem;
  margin-bottom:20px;
}

.h2{
  font-size:1.3rem;
  margin-bottom:10px;
  font-weight:600;
}

.p{
  color:var(--muted);
}

/* ---------- Buttons ---------- */

.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:14px 26px;      /* bigger click area */
  border-radius:999px;
  font-weight:600;
  font-size:18px;         /* slightly larger text */
  transition:0.2s;
  border:1px solid var(--line);
  background:white;
  min-height:48px;        /* better for mobile tapping */
}

.button.primary{
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color:white;
  border:none;
  box-shadow: 0 14px 30px rgba(139,106,77,0.30);
}

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

.button.secondary:hover{
  background:rgba(139,106,77,0.12);
}

.cta-row{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

/* ---------- Cards ---------- */

.card{
  background: var(--card);
  padding:26px;
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  border:1px solid var(--line);
}

/* ---------- Lists ---------- */

.list{
  padding-left:18px;
  color:var(--muted);
}

.list li{
  margin-bottom:8px;
}

/* ---------- Table ---------- */

.table{
  width:100%;
  border-collapse:collapse;
  background:white;
  border-radius:var(--radius);
  overflow:hidden;
}

.table th,
.table td{
  padding:14px;
  border-bottom:1px solid var(--line);
}

.table th{
  background:rgba(139,106,77,0.12);
}

/* ---------- Forms ---------- */

input,
textarea{
  width:100%;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--line);
  margin-bottom:14px;
}

input:focus,
textarea:focus{
  outline:none;
  border-color:var(--accent);
  box-shadow:0 0 0 3px rgba(139,106,77,0.2);
}

/* ---------- Footer ---------- */

.footer{
  text-align:center;
  padding:30px 0;
  border-top:1px solid var(--line);
  color:var(--muted);
}


.wa-float{
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 45px rgba(0,0,0,0.25);
  z-index: 9999;
  transition: transform .2s ease;
}

.wa-float svg{
  width: 30px;
  height: 30px;
  fill: white;
}

.wa-float:hover{
  transform: translateY(-3px);
}

.video-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.video-wrapper{
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
}

.video-wrapper iframe{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 16px;
}

.video-title{
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
}

@media (max-width: 820px){
  .video-grid{
    grid-template-columns: 1fr;
  }
}

.video-title{
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: 0.3px;
  font-size: 15px;
}

.video-title em{
  font-style: italic;
}

.pricing-grid{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  margin-top: 40px;
}

.pricing-card{
  text-align: center;
}

.pricing-title{
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.pricing-price{
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
}

.pricing-note{
  font-size: 14px;
  margin-bottom: 18px;
  opacity: 0.8;
}

.highlight{
  border:2px solid var(--accent);
}

@media (max-width: 900px){
  .pricing-grid{
    grid-template-columns: 1fr;
  }
}

.pricing-list{
  text-align: left;
  margin-top: 20px;
  padding-left: 20px;
}

.pricing-list li{
  margin-bottom: 10px;
}

/* Reviews viewport hides anything beyond the 3 visible cards */
.reviews-viewport{
  touch-action: pan-y;
  overflow: hidden;
  width: 100%;
  margin-top: 18px;
}

.reviews-track.is-dragging{
  cursor: grabbing;
  user-select: none;
}

/* Track slides left/right */
.reviews-track{
  --perView: 3;
  --gap: 18px;
  display: flex;
  gap: var(--gap);
  transition: transform 320ms ease;
  will-change: transform;
}

/* Each card is exactly 1/3 of viewport (minus gaps) */
.review-card{
  flex: 0 0 calc((100% - (var(--gap) * (var(--perView) - 1))) / var(--perView));
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

@media (max-width: 900px){
  .reviews-track{ --perView: 1; }
}

/* Reviews header row */
.reviews-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-top: 30px;
}

/* Buttons top-right */
.reviews-controls{
  display:flex;
  gap:12px;
}

/* Pretty round arrow buttons */
.reviews-btn{
  width:52px;
  height:52px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.85);
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  cursor:pointer;
  font-size:24px;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: transform 160ms ease, background 160ms ease;
}

.reviews-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.95);
}

.reviews-btn:active{
  transform: translateY(0px);
}

.reviews-btn:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(199,154,122,0.35), 0 10px 25px rgba(0,0,0,0.06);
}

.wa-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25D366; /* Official WhatsApp green */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.wa-float svg {
  width: 28px;
  height: 28px;
}

.wa-float {
  position: fixed;
  width: 62px;
  height: 62px;
  bottom: 25px;
  right: 25px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.wa-float svg {
  width: 42px;
  height: 42px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 90px;
  height: auto;
}

.brand-text {
  font-size: 18px;      /* increase from default */
  font-weight: 600;
  letter-spacing: 0.4px;
}

header {
  padding: 2px 0;   /* increase if needed */
}

.container.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;   /* THIS controls thickness */
}

/* HERO IMAGE: subtle premium overlay */
.hero-media {
  position: relative;
  overflow: hidden;
  border-radius: 28px; /* match your rounded style */
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
}

/* soft fade from left -> right so the text side feels calm */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(246, 239, 228, 0.65) 0%,
    rgba(246, 239, 228, 0.20) 45%,
    rgba(246, 239, 228, 0.00) 70%
  );
  pointer-events: none;
}

.payment-box{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:30px;
  flex-wrap:wrap;
}


.payment-action{
  display:flex;
  align-items:center;
}


.payment-box{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:40px;
}

.payment-text{
  max-width:600px;
}

.payment-action{
  flex-shrink:0;
}

.payment-action .button{
  font-size:18px;
  padding:16px 30px;
}

@media (max-width: 700px){
  .payment-box{
    flex-direction:column;
    align-items:flex-start;
  }
}

/* ===============================
   Studio 88 section (desktop)
================================ */

.studio-block{
  display:flex;
  align-items:flex-start;     /* top-align logo + text columns */
  gap:40px;
  margin-top:40px;
}

.studio-logo{
  margin-top: 8px; /* adjust */
}

.studio-logo img{
  display:block;
  width:auto;
  height:auto;
  max-height:260px;
  object-fit:contain;
  box-shadow:0 6px 18px rgba(0,0,0,0.06);
}

/* text column */
.studio-text{
  max-width:600px;
  padding-top:0;
  margin-top:0;
}

/* IMPORTANT: remove top margin from the first heading in this section */
.studio-text h1,
.studio-text h2,
.studio-text h3,
.studio-text .h2{
  margin-top:0 !important;
}

/* also remove top margin from the first direct child (extra safety) */
.studio-text > :first-child{
  margin-top:0 !important;
}

/* ===============================
   Studio 88 section (mobile)
================================ */

@media (max-width:700px){

  .studio-block{
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:28px;
  }

  .studio-logo{
    width:100%;
    display:flex;
    justify-content:center;
  }

  .studio-logo img{
    width:180px;
    max-height:none;
  }

  .studio-text{
    max-width:100%;
  }
}



/* =========================================================
   MOBILE (≤680px) — CLEAN FINAL
   - Brand row on top
   - Tabs row underneath (NO SCROLL, equal spacing)
   - Tight, consistent page margins
   - Contact page spacing tweaks
   - Mobile label swap (Lesson Options -> Prices)
   - WhatsApp button position
========================================================= */

/* label swap (desktop vs mobile) */
.mobile-label{ display:none; }

@media (max-width: 680px){

  /* show shorter labels on mobile */
  .desktop-label{ display:none; }
  .mobile-label{ display:inline; }

  /* consistent page margins */
  .container{
    padding-left:16px !important;
    padding-right:16px !important;
  }

  /* ---------- Header layout ---------- */
  header .container.nav{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    justify-content:flex-start !important;
    gap:10px !important;
    padding-top:10px !important;
    padding-bottom:10px !important;
  }

  /* brand row */
  header .container.nav .brand{
    display:flex !important;
    align-items:center !important;
    gap:12px !important;
  }

  header .container.nav .brand-logo{
    width:56px !important;
    height:auto !important;
    flex:0 0 auto !important;
  }

  header .container.nav .brand-text{
    font-size:16px !important;
    line-height:1.2 !important;
    white-space:normal !important;
  }

  /* ---------- Tabs row (NO SCROLL, equal widths) ---------- */
  header .container.nav .navlinks{
    display:flex !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    gap:6px !important;                 /* small gap only */
  }

  header .container.nav .navlinks a{
    flex:1 1 0 !important;              /* equal width tabs */
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    padding:12px 6px !important;
    font-size:15px !important;
    line-height:1.1 !important;
    text-align:center !important;

    border-radius:999px !important;
    white-space:nowrap !important;      /* keep labels tidy */
  }

  /* ensure active pill covers full text */
  header .container.nav .navlinks a.active{
    padding:12px 6px !important;
    border-radius:999px !important;
  }

  /* ---------- Contact page sizing & layout ---------- */
  .h1{
    font-size:44px;
    line-height:1.05;
    letter-spacing:-0.02em;
  }

  .lead{
    font-size:18px;
    line-height:1.45;
  }

  .section{
    padding-top:22px;
    padding-bottom:26px;
  }

  .card{
    padding:18px;
    border-radius:18px;
    width:100%;
  }

  label{ font-size:14px; }

  input, textarea, select{
    font-size:16px;     /* prevents iOS zoom */
    padding:12px 14px;
  }

  textarea{ min-height:120px; }

  .split{
    display:grid;
    grid-template-columns:1fr;
    gap:16px;
  }

  .map, iframe{
    width:100%;
    max-width:100%;
  }

  /* ---------- WhatsApp bubble position ---------- */
  .wa-float{
    right:14px;
    bottom:18px;
  }
}

/* =========================
   MOBILE NAV (CLEAN, NO SCROLL, NO WORD SPLIT)
========================= */
@media (max-width: 680px){

  /* make header container a bit tighter on mobile */
  header .container.nav{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    padding:10px 10px; /* reduce side padding so tabs fit */
  }

  /* brand row */
  header .container.nav .brand{
    display:flex;
    align-items:center;
    gap:12px;
    margin:0;
  }

  header .container.nav .brand-logo{
    width:56px;
    height:auto;
    flex:0 0 auto;
  }

  header .container.nav .brand-text{
    font-size:16px;
    line-height:1.2;
  }

  /* tabs row: one line, no scroll */
  header .container.nav .navlinks{
    display:flex;
    flex-wrap:nowrap;
    justify-content:space-between; /* spreads evenly */
    align-items:center;

    width:100%;
    margin:0;
    padding:0;

    gap:6px;               /* smaller spacing between tabs */
    overflow:visible;      /* IMPORTANT: no scroll */
  }

  /* each tab gets equal width; prevent splitting */
  header .container.nav .navlinks a{
    flex:1 1 0;
    min-width:0;

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

    padding:10px 8px;
    font-size:14px;
    line-height:1.1;

    text-align:center;

    /* stop “Ho me / Abo ut” behaviour */
    white-space:nowrap;        /* keep the label on one line */
    word-break:keep-all;       /* don’t break inside words */
    overflow-wrap:normal;      /* don’t wrap anywhere */
    hyphens:none;              /* avoid auto hyphenation */

    border-radius:999px;
  }

  /* active pill always fits */
  header .container.nav .navlinks a.active{
    display:flex;          /* ensure background wraps properly */
  }
}

/* =========================
   MOBILE NAV FIX: full-width pills + no left gap
========================= */
@media (max-width: 680px){

  /* make sure the tab row truly starts at the left edge of the header container */
  header .container.nav .navlinks{
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;          /* removes any hidden left padding */
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between; /* stretches tabs across the row */
    align-items: center;
    gap: 6px;                        /* tighter spacing */
    overflow: visible !important;    /* no scroll */
  }

  /* each tab takes equal width, so "Home" moves left and everything fits */
  header .container.nav .navlinks a{
    flex: 1 1 0;
    min-width: 0;

    display: flex;                   /* IMPORTANT: pill wraps full text */
    align-items: center;
    justify-content: center;

    padding: 10px 6px;
    font-size: 14px;
    line-height: 1.1;

    text-align: center;

    white-space: nowrap;             /* no splitting */
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;

    border-radius: 999px;
  }

  /* KILL any old fixed-size active-pill pseudo elements (the “circle” issue) */
  header .container.nav .navlinks a.active::before,
  header .container.nav .navlinks a.active::after{
    content: none !important;
    display: none !important;
  }

  /* active pill should cover the whole label */
  header .container.nav .navlinks a.active{
    background: rgba(0,0,0,0.08);   /* adjust if you want slightly darker/lighter */
    box-shadow: 0 10px 22px rgba(0,0,0,0.06);
  }
}

@media (max-width: 680px){
  header .container.nav{
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

/* =========================
   MOBILE NAV: active pill wraps text (same as desktop)
========================= */
@media (max-width: 680px){

  /* Tabs row */
  header .container.nav .navlinks{
    display:flex !important;
    flex-wrap:nowrap !important;
    justify-content:space-between !important;
    align-items:center !important;

    width:100% !important;
    margin:0 !important;
    padding:0 !important;

    gap:10px !important;         /* adjust spacing here */
    overflow:visible !important;  /* no scroll */
  }

  /* Each tab behaves like a normal “pill” around its text */
  header .container.nav .navlinks a{
    flex:0 0 auto !important;
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    padding:10px 14px !important;
    border-radius:999px !important;

    font-size:15px !important;
    line-height:1 !important;

    white-space:nowrap !important;   /* prevents Ho/me splitting */
    word-break:keep-all !important;
    overflow-wrap:normal !important;
    hyphens:none !important;

    width:auto !important;
    height:auto !important;
    min-width:0 !important;

    position:relative !important;
  }

  /* 🔥 Kill ANY circle/short-pill pseudo elements */
  header .container.nav .navlinks a.active:before,
  header .container.nav .navlinks a.active:after,
  header .container.nav .navlinks a.active::before,
  header .container.nav .navlinks a.active::after{
    content:none !important;
    display:none !important;
  }

  /* Active pill: the <a> itself */
  header .container.nav .navlinks a.active{
    background: rgba(0,0,0,0.08) !important;
    box-shadow: 0 10px 22px rgba(0,0,0,0.06) !important;
  }
}

/* =========================
   MOBILE NAV (CLEAN, NO SCROLL, ALL TABS FIT)
========================= */
@media (max-width: 680px){

  /* Header layout: brand row on top, tabs row underneath */
  header .container.nav{
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 10px 12px !important;      /* controls left/right edge */
  }

  /* Brand row */
  header .container.nav .brand{
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 !important;
  }

  header .container.nav .brand-logo{
    width: 56px !important;
    height: auto !important;
    flex: 0 0 auto !important;
  }

  header .container.nav .brand-text{
    font-size: 16px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }

  /* Tabs: 4 equal columns, starts from LEFT, no scroll */
  header .container.nav .navlinks{
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px !important;                /* <<< smaller spacing between tabs */
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;       /* no scrolling */
  }

  /* Each tab fills its cell so the active pill always fits */
  header .container.nav .navlinks a{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100% !important;
    padding: 10px 6px !important;
    font-size: 14px !important;
    line-height: 1.1 !important;
    text-align: center !important;

    white-space: nowrap !important;     /* keep short labels on one line */
    border-radius: 999px !important;
    margin: 0 !important;
  }

  /* Active pill: guaranteed full width of its grid cell */
  header .container.nav .navlinks a.active{
    width: 100% !important;
  }
}

/* =========================
   MOBILE CONTACT PAGE TIGHTENING
========================= */
@media (max-width: 680px){

  /* smaller page margins */
  .container{
    padding-left: 12px;
    padding-right: 12px;
  }

  /* shrink section spacing */
  .section{
    padding-top: 18px;
    padding-bottom: 20px;
  }

  /* smaller page title */
  .h1{
    font-size: 38px;
    line-height: 1.05;
  }

  /* slightly smaller intro text */
  .lead{
    font-size: 17px;
    line-height: 1.4;
  }

  /* form card tighter */
  .card{
    padding: 16px;
    border-radius: 16px;
  }

  /* form labels */
  label{
    font-size: 14px;
  }

  /* form fields */
  input,
  textarea,
  select{
    padding: 10px 12px;
    font-size: 16px; /* keep 16 to avoid iOS zoom */
  }

  textarea{
    min-height: 100px;
  }

  /* reduce spacing between form rows */
  .form-group{
    margin-bottom: 12px;
  }

}

/* =========================
   MOBILE: stop horizontal overflow (Contact page)
========================= */
@media (max-width: 680px){

  /* prevent anything pushing the page wider */
  html, body{
    overflow-x: hidden;
  }

  /* make widths include padding/borders */
  *, *::before, *::after{
    box-sizing: border-box;
  }

  /* containers should not exceed screen */
  .container{
    max-width: 100%;
    width: 100%;
    padding-left: 12px;
    padding-right: 12px;
  }

  /* cards/forms/widgets should never exceed container */
  .card, form, .split, .reviews-viewport, .reviews-track{
    max-width: 100%;
  }

  /* IMPORTANT: if you have Calendly iframe */
  iframe{
    max-width: 100% !important;
    width: 100% !important;
    display: block;
  }

  /* if you have a map container */
  .map{
    max-width: 100%;
    overflow: hidden;
  }
}

/* =========================================
   MOBILE: Contact page overflow + Calendly fix
   (Paste at the VERY bottom of style.css)
========================================= */
@media (max-width: 680px){

  /* 1) Make sure grid items are allowed to shrink (CRUCIAL) */
  .split,
  .container,
  .card,
  .section{
    min-width: 0 !important;
  }
  .split > *{
    min-width: 0 !important;
  }

  /* 2) Force the Contact layout to a single column on mobile */
  .split{
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* 3) Calendly: remove any min-width and force full width */
  .calendly-inline-widget{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }
  .calendly-inline-widget iframe,
  iframe{
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: block !important;
    border: 0 !important;
  }

  /* 4) Inputs / form controls must not exceed container */
  input, textarea, select, button{
    max-width: 100% !important;
  }

  /* 5) Final safety: anything that still overflows gets clipped */
  body{
    overflow-x: clip; /* better than hidden for modern browsers */
  }
  header, main, footer, .section{
    overflow-x: clip;
  }
}

/* WhatsApp pulse signal */
.wa-float{
  position: fixed;
  overflow: visible;
}

/* two soft expanding rings */
.wa-float::before,
.wa-float::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.22);
  z-index: -1;
  opacity: 0;
  transform: scale(1);
  pointer-events: none;
}

.wa-float::before{
  animation: waPulse 10s ease-out infinite;
}

.wa-float::after{
  animation: waPulse 10s ease-out infinite;
  animation-delay: 0.8s;
}

@keyframes waPulse{
  0%{
    opacity: 0;
    transform: scale(1);
  }
  4%{
    opacity: 0.35;
    transform: scale(1);
  }
  16%{
    opacity: 0;
    transform: scale(1.45);
  }
  100%{
    opacity: 0;
    transform: scale(1.45);
  }
}
