:root {
    --navy: #0b1c4b;
    --red: #e00010;
    --text: #12172b;
    --shadow: 0 3px 13px #071a3a18;
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 82px
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #fff
}

a {
    color: inherit
}

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

.container {
    width: min(1180px, calc(100% - 44px));
    margin-inline: auto
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 5px;
    background: #fff;
    padding: 10px;
    z-index: 30
}

.skip-link:focus {
    left: 10px
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1,
h2,
h3 {
    color: var(--navy);
    letter-spacing: -.035em
}

h2 {
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    line-height: 1.12
}

h3 {
    font-size: 1.2rem;
    line-height: 1.16
}

p {
    line-height: 1.45
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fffffff5;
    box-shadow: 0 1px 10px #10204012;
    backdrop-filter: blur(10px)
}

.header-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: clamp(1.1rem, 2.15vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -.045em;
    color: var(--navy);
    white-space: nowrap
}

.brand img {
    width: 52px;
    height: 52px;
    object-fit: contain
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: clamp(12px, 2vw, 26px)
}

.primary-nav>a:not(.btn) {
    text-decoration: none;
    font-weight: 700;
    font-size: .91rem
}

.primary-nav>a:not(.btn):hover,
.primary-nav>a:not(.btn):focus-visible {
    color: var(--red)
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 44px;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: .94rem;
    transition: transform .15s, filter .15s
}

.btn:hover {
    transform: translateY(-1px);
    filter: brightness(.96)
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #3b82f6;
    outline-offset: 3px;
}

.btn-red {
    background: linear-gradient(#ff1924, #c9000c);
    color: white;
    box-shadow: 0 3px 7px #8b00001b
}

.btn-outline {
    background: #fff;
    color: var(--navy);
    border: 1px solid #a6c4ea
}

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

.menu-toggle {
    display: none
}

.hero {
    min-height: 515px;
    position: relative;
    isolation: isolate;
    overflow: hidden
}

.hero-photo {
    position: absolute;
    inset: 0 0 0 38%;
    z-index: -3;

    /* When switching the hero image, also update the preload and aria-label in index.html. */

    /* Option 1: Parliament Hill */
    /* background: url('images/Parliament Hill Day.png') center 49% / cover no-repeat; */

    /* Option 2: Pink Lake */
    background: url('images/lake-pink-landscape.jpeg') center 49% / cover no-repeat; 

    /* Option 2: Parliament Blue Water */
    /* background: url('images/Parliament Blue Water.png') center 49% / cover no-repeat; */

}

.hero-divider {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: calc(100% + 2px);
    z-index: -2;
    pointer-events: none;
}


.hero-content {
    min-height: 515px;
    display: flex;
    align-items: center
}

.hero-copy {
    width: min(47%, 510px);
    padding: 34px 0 40px
}

.hero h1 {
    font-size: clamp(2.55rem, 4.3vw, 4.3rem);
    line-height: .99;
    margin-bottom: 14px
}

.hero-lead {
    font-weight: 800;
    color: var(--navy);
    font-size: clamp(1.18rem, 2vw, 1.55rem);
    line-height: 1.15;
    margin-bottom: 14px
}

.hero-copy>p:not(.hero-lead) {
    font-size: 1.02rem;
    margin-bottom: 12px
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px
}

.section-blue {
    background: linear-gradient(100deg, #edf7ff, #f9fcff 50%, #e6f2ff)
}

.formats,
.services,
.about,
.reviews {
    padding: 38px 0 42px
}

.services h2 {
    text-align: center;
    margin-bottom: 28px;
}

.format-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr)
}

.format {
    padding: 0 30px;
    text-align: center;
    position: relative
}

.format+.format::before {
    content: '';
    position: absolute;
    left: 0;
    top: 43px;
    bottom: 8px;
    width: 1px;
    background: #b6c8e6
}

.format img {
    height: 64px;
    width: 80px;
    object-fit: contain;
    margin: 0 auto 8px
}

.format h3 {
    margin-bottom: 7px
}

.format p {
    max-width: 300px;
    margin: 0 auto;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

.service-card {
    border-radius: 16px;
    padding: 22px 19px 25px;
    background: #fff;
    box-shadow: var(--shadow);
    border: 1px solid #e9eef6
}

.service-card img {
    height: 68px;
    width: 90px;
    object-fit: contain;
    margin: 0 auto 12px
}

.service-card h3 {
    text-align: center;
    min-height: 2.35em;
    margin-bottom: 12px
}

.about-grid {
    display: grid;
    grid-template-columns: 220px 1fr 155px;
    align-items: center;
    gap: 30px
}

.portrait {
    width: 220px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid white
}

.about h2 {
    margin-bottom: 6px
}

.bonjour {
    color: var(--navy);
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 800;
}

.about-copy p {
    margin-bottom: 8px
}

.about-leaf {
    width: 155px;
    justify-self: center
}

.approach {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 20px;
    align-items: center;
    margin-top: 26px;
    padding: 14px 22px;
    background: #dceeff;
    border-radius: 16px
}

.approach h3 {
    margin: 0
}

.approach .check-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 20px;
    margin: 0;
}

.approach .check-list li {
    margin: 0;
    font-size: .92rem
}

.reviews-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px
}

.reviews h2 {
    margin-bottom: 7px
}

.reviews p {
    margin-bottom: 0
}

.review-placeholder {
    border: 1px solid #b4d0ee;
    color: var(--navy);
    border-radius: 28px;
    padding: 13px 22px;
    font-weight: 700;
    background: #f9fcff;
    white-space: nowrap
}

/* Parliament Hill contact section */

.contact {
    position: relative;
    isolation: isolate;
    background: var(--navy);
    color: white;
    padding: 35px 0 50px;
    overflow: hidden;
}

.contact::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    height: 60%;
    aspect-ratio: 2 / 1;
    z-index: -1;

    background: url("images/Parliament Silhouette.png") right bottom / contain no-repeat;

    mask-image:
        linear-gradient(to right, transparent 0%, black 45%),
        linear-gradient(to bottom, transparent 0%, black 50%);

    mask-composite: intersect;

    opacity: 0.65;
}

.contact-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact h2 {
    color: white;
    margin-bottom: 10px;
}

.contact-grid>div:first-child>p:first-of-type {
    margin-bottom: 16px;
}

.contact-details p {
    margin-bottom: 8px;
}

.contact-details p:last-child {
    margin-bottom: 0;
}

.footer-wave {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 37px;
    z-index: 2;
}

.site-footer {
    padding: 19px 0 25px
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: .75rem;
    color: var(--navy)
}

.footer-inner span+span {
    border-left: 1px solid #9bb3d0;
    padding-left: 13px
}


/* Dedicated contact form page */

.contact-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.contact-form-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    flex: 1;
    background: var(--navy);
    color: white;
    padding: 55px 0 85px;
}

/* Parliament Hill nighttime background */

.contact-form-section::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(850px, 75%);
    aspect-ratio: 2 / 1;
    z-index: -1;

    background: url("images/Parliament Silhouette.png") right bottom / contain no-repeat;

    mask-image:
        linear-gradient(to right, transparent 0%, black 60%),
        linear-gradient(to bottom, transparent 0%, black 65%);

    mask-composite: intersect;
    opacity: 0.65;
}

/* Form layout */

.contact-form-wrapper {
    max-width: 680px;
    margin: 0 auto;
}

.contact-form-wrapper h1 {
    color: white;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 12px;
}

.form-intro {
    color: #dceaff;
    margin-bottom: 30px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: .92rem;
    font-weight: 700;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #b4d0ee;
    border-radius: 8px;
    background: #fff;
    color: var(--navy);
    font-family: inherit;
    font-size: 1rem;
}

.form-field input {
    min-height: 46px;
}

.form-field textarea {
    resize: vertical;
    min-height: 140px;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: 2px solid #77b5ff;
    outline-offset: 2px;
}

.form-note {
    color: #b7c9e6;
    font-size: .8rem;
    margin: 14px 0 20px;
}

.contact-form-wrapper button {
    border: none;
    cursor: pointer;
    min-width: 160px;
}

.contact-form-wrapper button:disabled {
    opacity: .65;
    cursor: not-allowed;
}

#form-status {
    margin-top: 16px;
    font-size: .9rem;
}

@media (max-width: 1000px) {

    /* Header and navigation */

    .brand-secondary {
        display: none;
    }

    .primary-nav {
        gap: 13px;
    }

    .primary-nav>a:not(.btn) {
        font-size: .85rem;
    }

    .nav-cta {
        padding: 10px 12px;
    }

    /* Hero */

    .hero-copy {
        width: 49%;
    }

    /* Services */

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

    .service-card {
        padding: 19px 14px;
    }

    /* My Approach */

    .approach {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* About Me */

    .about-grid {
        grid-template-columns: 180px 1fr 105px;
        gap: 20px;
    }

    .portrait {
        width: 180px;
    }

    .about-leaf {
        width: 105px;
    }
}


@media (max-width: 760px) {

    /* Mobile header and navigation */

    .header-inner {
        min-height: 64px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 10px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--navy);
        border-radius: 2px;
    }

    .primary-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px;
        background: white;
        box-shadow: var(--shadow);
    }

    .primary-nav.is-open {
        display: flex;
    }

    /* Mobile About Me section */

    .about-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .portrait {
        width: 175px;
        margin: auto;
    }

    /* Mobile hero */

    .hero {
        min-height: 0;
    }

    .hero-photo {
        position: relative;
        inset: auto;
        width: 100%;
        height: 280px;
        background-position: center;
    }

    .hero-content {
        min-height: 0;
        display: block;
    }

    .hero-copy {
        width: 100%;
        padding: 28px 0;
    }

    .hero-divider {
        display: none;
    }

    /* Mobile lesson formats */

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

    .format {
        padding: 20px 0;
    }

    .format+.format::before {
        top: -12px;
        bottom: auto;
        left: 10%;
        width: 80%;
        height: 1px;
    }

    .format .service-list {
        width: fit-content;
        margin-inline: auto;
    }

    /* Mobile service cards */

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 20px 16px;
    }

    .service-card h3 {
        min-height: 0;
    }

    /* Main page contact background */

    .contact::before {
        height: 50%;
        opacity: 0.45;
    }

    /* Dedicated contact form page */

    .contact-form-section {
        padding: 35px 0 65px;
    }

    .contact-form-section::before {
        width: 100%;
        opacity: 0.45;
    }

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

    .contact-form-wrapper {
        max-width: 100%;
    }

    /* Mobile My Approach section */



    .approach .check-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 480px) {

    .brand {
        font-size: .98rem;
        letter-spacing: -.04em;
    }

    .brand img {
        width: 37px;
        height: 37px;
    }

    .hero-photo {
        height: 210px;
    }

    .hero-actions .btn {
        flex: 1;
    }

    .review-placeholder {
        white-space: normal;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-inner span+span {
        border: 0;
        padding: 0;
    }
}


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

    .btn {
        transition: none
    }
}


.check-list {
    padding: 0;
    margin: 12px 0 22px;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 27px;
    margin: 7px 0 5px;
    line-height: 1.3;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(50% - 2px);
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    background: url("images/arrow-red.svg") no-repeat center;
    background-size: contain;
}

.service-list {
    padding-left: 0;
    margin: 0;
}

.service-list li {
    text-align: left;
    list-style: none;
    position: relative;
    padding-left: 18px;
    margin-bottom: 9px;
}

.service-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(0.25em);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: url("images/arrow-blue.svg") center / contain no-repeat;
    width: 10px;
    height: 10px;            
}





/* Contact inquiry confirmation modal */
.inquiry-confirmation {
    width: min(560px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    border: 0;
    border-radius: 18px;
    padding: clamp(18px, 4vw, 32px);
    background: white;
    color: var(--navy);
    box-shadow: 0 18px 65px #0005;
}

.inquiry-confirmation::backdrop {
    background: #07142db3;
}

body:has(.inquiry-confirmation[open]) {
    overflow: hidden;
}

.confirmation-heading {
    text-align: center;
    border-bottom: 1px solid #dce3ed;
    padding-bottom: 16px;
}

.confirmation-check {
    width: 48px;
    height: 48px;
    color: #27864b;
    margin-bottom: 10px;
}

.confirmation-heading h2 {
    font-size: clamp(1.4rem, 4vw, 1.85rem);
    margin-bottom: 10px;
}

.confirmation-heading p {
    margin: 0;
}

.confirmation-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0 12px;
}

.confirmation-toolbar h3 {
    margin: 0;
}

.inquiry-confirmation button {
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.confirmation-copy {
    background: #246ac5;
    color: white;
    gap: 8px;
    padding: 10px 15px;
}

.confirmation-summary {
    background: #f3f5f8;
    border-radius: 10px;
    padding: 16px;
    max-height: min(32vh, 260px);
    overflow: auto;
    overflow-wrap: anywhere;
}

.confirmation-summary p {
    margin: 0 0 8px;
    font-size: .94rem;
}

.confirmation-summary p:last-child {
    margin-bottom: 0;
}

.confirmation-summary .confirmation-date {
    color: #53647b;
    font-size: .8rem;
    border-bottom: 1px solid #dce3ed;
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.confirmation-summary hr {
    border: 0;
    border-top: 1px solid #dce3ed;
    margin: 12px 0;
}

#confirmation-message {
    white-space: pre-wrap;
}

.confirmation-note {
    text-align: center;
    font-size: .82rem;
    color: #53647b;
    margin: 12px 0;
}

.confirmation-goodbye {
    text-align: center;
    font-style: italic;
    margin: 12px 0;
}

.confirmation-ok {
    display: flex;
    min-width: 120px;
    margin: 0 auto;
}