
/* ============================================
   ROOT / BRAND SYSTEM
   (matches Realm Health main.css tokens)
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Syne:wght@400;500;600;700;800&display=swap');

:root {
    --primary-font: "Syne", sans-serif;
    --secondary-font: "DM Sans", sans-serif;

    --primary-color: #2cc680;      /* brand green */
    --secondary-color: #004763;    /* brand blue */
    --dark-color: #111521;
    --grey-color: #747475;
    --grey-light-color: #b8b8b8;
    --border-color: #e0dbd0;
    --bg-beige: #f5f2ec;
    --bg-dark: #004763;
    --navy: #004763;
    --navy-mid: #004763;

    --gradient-brand: linear-gradient(120deg, #0A6E73 0%, #14D8DE 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--secondary-font);
    color: var(--grey-color);
    background: #fff;
    font-size: 16px;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--primary-font);
    color: var(--dark-color);
    margin: 0;
    line-height: 1.2;
}

p { margin: 0; }
ul { margin: 0; padding: 0; }
a { text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   SHARED HEADING SYSTEM
   ============================================ */
.sub-heading {
    font-family: var(--primary-font);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1;
    position: relative;
    display: table;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-left: 70px;
    margin-bottom: 22px;
}

.sub-heading:before {
    background-color: var(--secondary-color);
    content: "";
    width: 60px;
    height: 2px;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.sub-heading:after {
    background-color: var(--secondary-color);
    content: "";
    width: 2px;
    height: 100%;
    position: absolute;
    left: 60px;
    top: 50%;
    transform: translateY(-50%);
}

.sub-heading.on-dark { background: none; -webkit-text-fill-color: var(--primary-color); }
.sub-heading.on-dark:before,
.sub-heading.on-dark:after { background-color: rgba(255,255,255,0.35); }

.section-title {
    font-weight: 700;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
    text-transform: capitalize;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 18px;
}

.section-title.on-dark { color: #fff; }

.section-sub {
    font-size: 17px;
    color: var(--grey-color);
    max-width: 620px;
    line-height: 1.7;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 8px;
}

.section-sub.on-dark { color: rgba(255,255,255,0.72); }

.section { padding: 90px 0; scroll-margin-top: 140px; }
.section-beige { background: linear-gradient(135deg, #f7f7f7 0%, #c9c9c9 100%); }

@media (max-width: 767px) {
    .section { padding: 55px 0; }
}

/* ============================================
   BUTTONS
   ============================================ */
.default-btn {
    background-color: var(--primary-color);
    font-family: var(--primary-font);
    font-size: 14px;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 48px;
    display: inline-block;
    padding: 0 34px;
    position: relative;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    z-index: 1;
    overflow: hidden;
    transition: transform 0.25s ease;
}

.default-btn:hover { transform: translateY(-3px); color: #fff; }

.btn-outline {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.45);
    color: #fff;
}

.btn-outline:hover { border-color: #fff; }

/* ============================================
   HEADER  (topbar + logo lockup — no nav menu)
   ============================================ */
header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-wrapper {
    background-color: var(--bg-dark);
    color: var(--grey-light-color);
    font-family: var(--secondary-font);
    font-size: 13.5px;
    height: 42px;
    display: flex;
    align-items: center;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-right a { color: var(--grey-light-color); font-weight: 500; }
.topbar-right a:hover { color: var(--primary-color); }

.navigation-wrapper {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    position: relative;
    z-index: 10;
}

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

.brand-lockup {
    display: flex;
    align-items: center;
}

.brand-lockup img {
    height: 54px;
    width: auto;
    display: block;
}

@media (max-width: 560px) {
    .brand-lockup img { height: 38px; }
    .navigation-inner .default-btn { padding: 0 20px; font-size: 12.5px; }
}

/* ============================================
   HERO  (photo marquee w/ diagonal color bars —
   matches the original Realm Health slider)
   ============================================ */
.hero-section {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 70px 0;
}

.hero-section > .container {
    width: 100%;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(6, 20, 38, 0.4);
}

.hero-inner { position: relative; z-index: 3; max-width: 600px; }

.hero-eyebrow {
    font-family: var(--primary-font);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background: var(--primary-color);
    flex-shrink: 0;
}

.hero-headline {
    font-weight: 600;
    font-size: clamp(30px, 3.6vw, 44px);
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}

.hero-headline span { color: var(--primary-color); }

.hero-subhead {
    font-family: var(--secondary-font);
    font-weight: 400;
    font-size: 17px;
    color: rgba(255,255,255,0.92);
    max-width: 520px;
    margin-bottom: 22px;
    line-height: 1.6;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.hero-body {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    max-width: 500px;
    line-height: 1.65;
    margin-bottom: 26px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* ============================================
   INTRO STRIP
   ============================================ */
.intro-strip {
    background: var(--gradient-brand);
    padding: 56px 0;
    text-align: center;
}

.intro-strip p {
    font-size: 20px;
    color: #fff;
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 500;
}

.intro-strip strong { color: #fff; font-weight: 800; }

/* ============================================
   FIT GRID  (Old Way vs Realm Way)
   ============================================ */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px auto 0; max-width: 1000px; }
@media (max-width:767px){ .fit-grid { grid-template-columns: 1fr; } }

.fit-box { border-radius: 12px; padding: 36px; }
.fit-no { background: #fef3f2; border: 1px solid #f3c6c1; }
.fit-yes { background: var(--gradient-brand); border: 1px solid transparent; }

.fit-tag {
    display: inline-block;
    font-family: var(--primary-font);
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.fit-no .fit-tag { background: #f3c6c1; color: #991b1b; }
.fit-yes .fit-tag { background: var(--primary-color); color: #fff; }

.fit-box h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

.fit-no h3 { color: #991b1b; }
.fit-yes h3 { color: #fff; }

.fit-box ul { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.fit-box li { font-size: 15px; display: flex; gap: 10px; align-items: flex-start; line-height: 1.55; }

.fit-no li { color: #7a3a35; }
.fit-no li::before { content: "✕"; font-weight: 700; color: #c0392b; flex-shrink: 0; }

.fit-yes li { color: rgba(255,255,255,0.9); }
.fit-yes li::before { content: "✓"; font-weight: 700; color: var(--primary-color); background: #fff; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; flex-shrink: 0; margin-top: 1px; }

/* ============================================
   BENEFITS FRAMEWORK (apart cards)
   ============================================ */
.apart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-top: 40px; }

.apart-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    padding: 0 0 28px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.apart-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0,0,0,0.08);
    border-color: #a8e8cd;
}

.apart-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    margin-bottom: 20px;
}

.apart-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 16px;
    padding: 0 28px;
}

.apart-list { list-style: none; display: flex; flex-direction: column; gap: 9px; padding: 0 28px; }

.apart-list li {
    font-size: 14px;
    color: var(--grey-color);
    padding-left: 15px;
    position: relative;
    line-height: 1.5;
}

.apart-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 1.5px;
    background: var(--primary-color);
}

/* ============================================
   SUPPORT SECTION (dark)
   ============================================ */
.support-section {
    position: relative;
    background: var(--navy);
    padding: 90px 0;
    overflow: hidden;
}

.support-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('images/texture-topo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    pointer-events: none;
}

.support-section > .container {
    position: relative;
    z-index: 1;
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px auto 0;
    max-width: 960px;
}

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

.support-col {
    background: rgba(255,255,255,0.22);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 12px;
    overflow: hidden;
    padding: 30px 32px;
}

.support-col h4 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    background: var(--gradient-brand);
    margin: -30px -32px 18px;
    padding: 16px 32px;
    border-radius: 12px 12px 0 0;
}

.support-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.support-col li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: rgba(255,255,255,0.82);
    line-height: 1.5;
}

.support-col li::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    flex-shrink: 0;
    margin-top: 7px;
}

.one-number-banner {
    background: var(--gradient-brand);
    border-radius: 10px;
    padding: 30px 40px;
    margin: 40px auto 0;
    max-width: 960px;
}

.one-number-banner p {
    font-family: var(--secondary-font);
    font-weight: 800;
    font-size: clamp(24px, 3vw, 32px);
    color: #fff;
    text-align: center;
}

/* ============================================
   CTA / CONTACT SECTION
   ============================================ */
.cta-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: start;
}

@media (max-width: 860px) {
    .cta-grid { grid-template-columns: 1fr; gap: 40px; }
}

.cta-form-block h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cta-form-block > p {
    color: var(--grey-color);
    font-size: 15px;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-form-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 16px;
}

.contact-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.contact-form .form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-color);
}

.contact-form .form-field .form-control {
    background-color: #fff;
    border: 1px solid #d8d3ca;
    height: 50px;
    border-radius: 4px;
    box-shadow: none;
    outline: none;
    width: 100%;
    padding: 0 15px;
    font-size: 14px;
    color: var(--dark-color);
    font-family: var(--secondary-font);
    transition: border-color 0.2s;
    appearance: none;
}

.contact-form .form-field select.form-control { cursor: pointer; }

.contact-form .form-field .form-control::placeholder { color: var(--grey-light-color); }

.contact-form .form-field .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(61, 174, 43, 0.1);
}

.contact-form .form-field.message .form-control {
    height: auto;
    padding: 12px 15px;
    resize: vertical;
    min-height: 90px;
    line-height: 1.6;
}

.contact-form-group .form-field.full,
.contact-form-group .form-field.message,
.contact-form-group .form-field.submit-btn {
    grid-column: 1 / -1;
}

.form-submit {
    width: 100%;
    text-align: center;
    line-height: 52px;
    font-size: 14.5px;
}

@media (max-width: 640px) {
    .contact-form-group { grid-template-columns: 1fr; }
}

#form-messages {
    display: none;
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 6px;
    font-size: 14.5px;
}

#form-messages.success {
    display: block;
    background: #f0fdf4;
    border: 1px solid #86efac;
    color: #166534;
}

#form-messages.error {
    display: block;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.cta-phone-block h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.cta-phone-block > p {
    color: var(--grey-color);
    font-size: 15px;
    margin-bottom: 28px;
    line-height: 1.6;
}

.phone-card {
    background: var(--gradient-brand);
    border-radius: 14px;
    padding: 36px 34px;
}

.phone-card-label {
    font-family: var(--primary-font);
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.phone-number {
    font-family: var(--secondary-font);
    font-weight: 800;
    font-size: clamp(36px, 4vw, 44px);
    color: #fff;
    margin-bottom: 16px;
    letter-spacing: 0.01em;
    line-height: 1.05;
}

.phone-number a {
    color: inherit;
    text-decoration: none;
}

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

.phone-card > p:not(.phone-card-label):not(.phone-number) {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 22px;
}

.phone-divider { border: none; border-top: 1px solid rgba(255,255,255,0.14); margin: 20px 0; }

.phone-hours { display: flex; flex-direction: column; gap: 8px; }

.phone-hours-item { display: flex; justify-content: space-between; font-size: 13.5px; }
.phone-hours-item span:first-child { color: rgba(255,255,255,0.55); }
.phone-hours-item span:last-child { color: #fff; font-weight: 600; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: #fff;
    padding: 30px 0;
    border-top: 1px solid var(--border-color);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand img {
    height: 34px;
    width: auto;
    display: block;
}

.footer-legal {
    font-size: 13px;
    color: var(--grey-color);
}

