/*
Theme Name: Fort Erie RMT
Theme URI: https://www.forteriermt.com/
Author: GoToGuy Solutions
Author URI: https://www.gotoguy.ca/
Description: A calm, accessible WordPress theme for Shawna Gillmore, Registered Massage Therapist.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: fort-erie-rmt
*/

:root {
    --deep: #3e4751;
    --deep-2: #26313a;
    --sea: #a8d500;
    --sea-dark: #7fa900;
    --cream: #f7f9ef;
    --sand: #e7efc9;
    --gold: #b68c52;
    --ink: #183138;
    --muted: #5b6d70;
    --white: #fff;
    --line: #d9e3e0;
    --shadow: 0 24px 70px rgba(11,60,73,.14);
    --radius: 28px;
    --wrap: min(1160px, calc(100% - 40px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 17px; line-height: 1.72; }
body.admin-bar .site-header { top: 32px; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0 0 .65em; color: var(--deep); font-family: Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.08; letter-spacing: -.025em; }
h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}
h2 { font-size: clamp(2.15rem, 4.2vw, 4rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.75rem); }
p { margin: 0 0 1.2em; }
.wrap { width: var(--wrap); margin-inline: auto; }
.wrap--narrow { max-width: 790px; }
.section { padding: clamp(74px, 9vw, 132px) 0; }
.section--cream { background: var(--cream); }
.section--deep { color: #d8e7e4; background: var(--deep); }
.section--deep h2, .section--deep h3 { color: var(--white); }
.eyebrow { margin-bottom: 1rem; color: var(--sea-dark); font-size: .76rem; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
.section--deep .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--sea); }
.lead { max-width: 760px; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.33rem); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 99999; top: -80px; left: 20px; padding: 12px 18px; color: #fff; background: var(--deep); font-weight: 800; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; z-index: 1000; top: 0; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { min-height: 88px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; color: var(--deep); text-decoration: none; }
.brand-logo { width: 148px; max-height: 78px; object-fit: contain; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 23px; padding: 0; margin: 0; list-style: none; }
.primary-nav a { color: var(--deep); font-size: .88rem; font-weight: 750; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--sea-dark); }
.button { display: inline-flex; min-height: 54px; align-items: center; justify-content: center; padding: 13px 23px; color: var(--deep-2); background: var(--sea); border: 2px solid var(--sea); border-radius: 999px; font-weight: 800; line-height: 1.2; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.button:hover { color: var(--white); background: var(--sea-dark); border-color: var(--sea-dark); transform: translateY(-2px); }
.button--small { min-height: 46px; padding: 10px 18px; font-size: .86rem; }
.button--outline { color: var(--white); background: transparent; border-color: rgba(255,255,255,.65); }
.button--outline:hover { color: var(--deep); background: var(--white); border-color: var(--white); }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.menu-toggle { display: none; width: 46px; height: 42px; padding: 9px; margin-left: auto; border: 1px solid var(--line); background: transparent; border-radius: 12px; }
.menu-toggle > span { display: block; height: 2px; margin: 5px 0; background: var(--deep); }

.hero { position: relative; min-height: clamp(700px, 84vh, 900px); display: grid; align-items: center; overflow: hidden; background: linear-gradient(125deg, var(--deep-2), var(--deep)); }
.hero::before { position: absolute; top: -20%; right: -6%; width: 53vw; height: 53vw; content: ""; background: radial-gradient(circle at 40% 40%, rgba(255,255,255,.14), transparent 64%); border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.hero-grid { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: clamp(40px, 7vw, 96px); padding-block: 82px; }
.hero-copy { position: relative; z-index: 2; color: #dbe9e7; }
.hero h1 {
    color: var(--white);
    font-size: clamp(2.5rem, 4.5vw, 4.25rem);
}
}.hero h1 em { color: var(--sea); font-weight: inherit; }
.hero-copy > p:not(.eyebrow) { max-width: 650px; font-size: clamp(1.08rem, 2vw, 1.32rem); }
.hero-media { position: relative; }
.hero-media::before { position: absolute; inset: -24px 38px 28px -24px; content: ""; border: 2px solid rgba(168,213,0,.7); border-radius: 50% 50% 24px 50%; }
.hero-media img { position: relative; width: 100%; max-height: 650px; aspect-ratio: .87/1; object-fit: cover; object-position: 50% 38%; border: 8px solid rgba(255,255,255,.13); border-radius: 50% 50% 24px 50%; box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 32px 0 0; list-style: none; }
.trust-row li { padding: 8px 12px; color: #d9e7e5; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.13); border-radius: 999px; font-size: .8rem; font-weight: 700; }
.page-hero { padding: clamp(90px, 12vw, 160px) 0; color: #e8eed6; background: radial-gradient(circle at 80% 15%, rgba(168,213,0,.24), transparent 31%), var(--deep); }
.page-hero h1 { max-width: 940px; color: var(--white); }
.page-hero p:not(.eyebrow) { max-width: 730px; font-size: 1.2rem; }

.credential-strip { position: relative; z-index: 4; margin-top: -34px; }
.credential-strip__inner { display: grid; grid-template-columns: repeat(3,1fr); background: #fff; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.credential-strip__inner div { padding: 24px 28px; border-right: 1px solid var(--line); }
.credential-strip__inner div:last-child { border: 0; }
.credential-strip strong { display: block; color: var(--deep); }
.credential-strip span { color: var(--muted); font-size: .88rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(46px, 8vw, 100px); }
.split--reverse > :first-child { order: 2; }
.portrait { position: relative; }
.portrait img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 180px 180px 24px 24px; box-shadow: var(--shadow); }
.portrait::after { position: absolute; z-index: -1; right: -22px; bottom: -22px; width: 46%; height: 48%; content: ""; background: var(--sand); border-radius: 24px; }
.check-list { display: grid; gap: 12px; padding: 0; margin: 28px 0; list-style: none; }
.check-list li { display: flex; gap: 12px; }
.check-list li::before { flex: 0 0 25px; width: 25px; height: 25px; content: "✓"; color: var(--white); background: var(--sea); border-radius: 50%; text-align: center; font-size: .8rem; font-weight: 900; line-height: 25px; }
.cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 25px; margin-top: 42px; }
.service-card, .post-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 42px rgba(11,60,73,.08); transition: transform .25s ease, box-shadow .25s ease; }
.service-card:hover, .post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-card img, .post-card > a img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.service-card__body, .post-card__body { padding: 28px; }
.service-card p, .post-card p { color: var(--muted); }
.service-card h2 { font-size: 2rem; }
.text-link { color: var(--sea-dark); font-weight: 800; text-decoration: none; }
.treatment-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.treatment { padding: 26px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); border-radius: 20px; }
.treatment h3 { margin-bottom: .35em; }
.treatment p { margin: 0; }
.location-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.location { padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 36px rgba(11,60,73,.08); }
.location small { display: block; margin-top: 16px; color: var(--muted); }
.faq { max-width: 850px; }
.faq details { padding: 20px 0; border-bottom: 1px solid var(--line); }
.faq summary { color: var(--deep); cursor: pointer; font-family: Georgia, serif; font-size: 1.2rem; font-weight: 600; }
.faq details p { padding-top: 14px; margin: 0; color: var(--muted); }

.contact-layout { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(40px,8vw,90px); }
.contact-form { padding: clamp(26px,4vw,46px); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.full { grid-column: 1/-1; }
.contact-form label { display: block; margin-bottom: 6px; color: var(--deep); font-size: .84rem; font-weight: 800; }
.contact-form input, .contact-form textarea { width: 100%; min-height: 50px; padding: 11px 13px; background: #fbfcfc; border: 1px solid #b9cbc7; border-radius: 12px; font: inherit; }
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid rgba(168,213,0,.24); border-color: var(--sea); }
.form-status { padding: 13px 15px; margin-bottom: 20px; color: #155724; background: #e8f7ed; border: 1px solid #b7dfc2; border-radius: 10px; }
.honeypot { position: absolute; left: -9999px; }
.fine-print, .health-note { color: var(--muted); font-size: .82rem; }
.health-note { padding: 20px; margin-top: 42px; background: var(--cream); border-left: 4px solid var(--sea); }

.posts-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.post-card h2 { font-size: 1.8rem; }
.post-card h2 a { text-decoration: none; }
.article-header { padding: 100px 0 70px; color: #dbe9e7; background: var(--deep); }
.article-header h1 { color: #fff; font-size: clamp(2.8rem,6vw,5rem); }
.article-image { width: 100%; max-height: 480px; margin-top: -22px; object-fit: cover; border: 8px solid #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.article-content { padding-block: 70px; }
.article-content h2 { margin-top: 1.5em; font-size: 2.15rem; }
.article-content h3 { margin-top: 1.45em; }
.article-cta { padding: 40px; margin-bottom: 90px; background: var(--cream); border-radius: var(--radius); }

.site-footer { padding: 72px 0 28px; color: #c8d8d5; background: var(--deep-2); }
.site-footer h2 { color: #fff; font-family: ui-sans-serif, system-ui, sans-serif; font-size: 1rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer a { color: #fff; }
.brand--footer { display: inline-flex; padding: 8px 12px; margin-bottom: 22px; background: #fff; border-radius: 14px; }
.brand--footer .brand-logo { width: 160px; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .8fr 1fr; gap: 52px; }
.credentials { display: flex; flex-wrap: wrap; gap: 10px; padding-block: 24px; margin-top: 40px; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); }
.credentials span { padding: 7px 11px; background: rgba(255,255,255,.07); border-radius: 999px; font-size: .76rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 26px; font-size: .8rem; }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 980px) {
    body.admin-bar .site-header { top: 46px; }
    .header-inner > .button { display: none; }
    .menu-toggle { display: block; }
    .primary-nav { position: absolute; top: 100%; right: 0; left: 0; display: none; padding: 18px 20px 24px; margin: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 18px 36px rgba(11,60,73,.12); }
    .primary-nav.is-open { display: block; }
    .primary-nav ul { align-items: stretch; flex-direction: column; gap: 2px; }
    .primary-nav a { display: block; padding: 9px 4px; }
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
    .split, .contact-layout { grid-template-columns: 1fr; }
    .split--reverse > :first-child { order: initial; }
    .cards { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: 1.25fr 1fr; }
}

@media (max-width: 700px) {
    :root { --wrap: min(100% - 28px,1160px); }
    body { font-size: 16px; }
    .header-inner { min-height: 74px; }
    .brand-logo { width: 118px; max-height: 66px; }
    .hero { min-height: auto; }
    .hero-grid { grid-template-columns: 1fr; padding-block: 70px; }
    .hero-media { max-width: 460px; }
    .hero-media img { max-height: 480px; aspect-ratio: 4/3; border-radius: 120px 120px 20px 20px; }
    .credential-strip { margin-top: 0; }
    .credential-strip__inner { grid-template-columns: 1fr; border-radius: 0 0 18px 18px; }
    .credential-strip__inner div { border-right: 0; border-bottom: 1px solid var(--line); }
    .cards, .posts-grid, .treatment-grid, .location-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .full { grid-column: auto; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
}/* Fort Erie RMT heading size overrides */
h1 {
    font-size: clamp(2rem, 4vw, 3.5rem) !important;
}

.hero h1 {
    font-size: clamp(1.8rem, 3vw, 2.75rem) !important;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem) !important;
}
