/* =====================================================
   SMILEFRESH – TEETH WHITENING AUSTRALIA (BLUE THEME)
   ===================================================== */

:root {
    --blue-main: #eaf4ff;
    --blue-soft: #f5faff;
    --blue-accent: #4da3ff;
    --blue-dark: #1f3b5b;
    --text-dark: #1c2b3a;
}

/* GLOBAL */
.tw-hero,
.tw-section,
.tw-section-alt,
.tw-lead {
    font-family: "Inter", "Segoe UI", sans-serif;
}

/* ================= HERO ================= */
.tw-hero {
    position: relative;
    min-height: 100vh;
    padding: 90px 0;
    overflow: hidden;
}

/* SEO-FRIENDLY BACKGROUND IMAGE */
.tw-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* OVERLAY FOR READABILITY */
.tw-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(234, 244, 255, 0.85) 0%,
        rgba(255, 255, 255, 0.92) 100%
    );
    z-index: 2;
}

/* CONTENT LAYER */
.tw-hero .container {
    position: relative;
    z-index: 3;
}

/* HERO TEXT */
.tw-badge {
    display: inline-block;
    background: #ffffff;
    color: var(--blue-accent);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 15px;
}

.tw-h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.2;
}

.tw-h1 span {
    color: var(--blue-accent);
}

.tw-sub {
    font-size: 18px;
    color: #5a6f85;
    margin-top: 20px;
}

/* ACTIONS */
.tw-actions {
    margin-top: 30px;
}

.tw-btn-primary {
    background: var(--blue-accent);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none; 
}

.tw-btn-secondary {
    background: #ffffff;
    color: var(--blue-accent);
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #d6e9ff;
}

/* TRUST */
.tw-trust {
    margin-top: 25px;
    font-size: 14px;
    color: #5a6f85;
}

.tw-trust span {
    display: inline-block;
    margin-right: 15px;
}

/* HERO IMAGE CARD */
.tw-hero-card img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}

/* ================= SECTIONS ================= */
.tw-section {
    padding: 80px 0;
    background: #ffffff;
}

.tw-section-alt {
    padding: 80px 0;
    background: var(--blue-soft);
}

.tw-section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.tw-section-head h2 {
    font-size: 34px;
    font-weight: 700;
    color: var(--text-dark);
}

.tw-section-head p {
    font-size: 17px;
    color: #5a6f85;
    margin-top: 10px;
}

/* ================= CARDS ================= */
.tw-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    height: 100%;
}

.tw-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

/* ================= LOCATIONS ================= */
.tw-locations {
    text-align: center;
}

.tw-locations span {
    display: inline-block;
    background: #ffffff;
    padding: 12px 22px;
    border-radius: 50px;
    margin: 6px;
    font-weight: 600;
    color: var(--blue-dark);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* ================= LEAD FORM ================= */
.tw-lead {
    background: linear-gradient(135deg, #ffffff 0%, #eaf4ff 100%);
    padding: 90px 0;
}

.tw-form-box {
    background: #ffffff;
    padding: 45px;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.08);
}

.tw-form-box h3 {
    font-size: 26px;
    font-weight: 700;
}

.tw-form-box form input {
    width: 100%;
    padding: 14px;
    margin-top: 15px;
    border-radius: 8px;
    border: 1px solid #dbe8f7;
}

.tw-form-box button {
    margin-top: 20px;
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    background: var(--blue-accent);
    color: #ffffff;
    font-weight: 700;
    border: none;
}
/* ================= MOBILE CTA FIX ================= */
.tw-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Desktop stays inline */
@media (min-width: 769px) {
    .tw-actions {
        align-items: center;
    }

    .tw-btn-primary,
    .tw-btn-secondary {
        width: auto;
    }
}

/* Mobile stack cleanly */
@media (max-width: 768px) {
    .tw-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .tw-btn-primary,
    .tw-btn-secondary {
        width: 100%;
        margin-right: 0; /* kill the desktop margin */
        text-align: center;
    }
}
/* =====================================================
   FORCE FIX: HERO CTA BUTTONS ON MOBILE
   (Prevents overflow + half-height wrap)
   ===================================================== */
@media (max-width: 768px) {

  .tw-hero .tw-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    gap: 12px !important;
  }

  .tw-hero .tw-actions .tw-btn-primary,
  .tw-hero .tw-actions .tw-btn-secondary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;

    margin: 0 !important;           /* kills margin-right */
    white-space: normal !important; /* prevents weird inline wrap behavior */
  }
}
/* =====================================================
   FINAL FIX – HERO CTA MOBILE BREAK
   Eliminates inline wrapping & baseline issues
   ===================================================== */
@media (max-width: 768px) {

  .tw-hero .tw-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .tw-hero .tw-actions a {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}
