:root {
    color-scheme: light;
    --ink: #172033;
    --muted: #4a5568;
    --navy: #0b2239;
    --navy-light: #143f5f;
    --blue: #075985;
    --teal: #0f5b63;
    --gold: #f5c451;
    --paper: #ffffff;
    --soft-blue: #e8f2f7;
    --soft-gold: #fff7df;
    --page: #f4f7f9;
    --border: #c6d2da;
    --shadow: 0 0.65rem 1.5rem rgba(11, 34, 57, 0.12);
    --radius: 0.75rem;
    --content-width: 70rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}

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

a {
    color: var(--blue);
    text-decoration-thickness: 0.12em;
    text-underline-offset: 0.18em;
}

a:hover {
    color: #043b59;
}

a:focus-visible,
summary:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 0.2rem solid var(--gold);
    outline-offset: 0.2rem;
}

h1,
h2,
h3 {
    color: var(--navy);
    line-height: 1.2;
    text-wrap: balance;
}

h1 {
    margin: 0.35rem 0 1rem;
    font-size: clamp(2rem, 7vw, 3.75rem);
}

h2 {
    margin-top: 0;
    font-size: clamp(1.55rem, 4vw, 2.25rem);
}

h3 {
    margin-top: 0;
    font-size: 1.25rem;
}

p,
ul {
    margin-top: 0;
}

header {
    position: relative;
    z-index: 10;
    background: var(--navy);
    color: var(--paper);
    box-shadow: 0 0.2rem 0.8rem rgba(0, 0, 0, 0.2);
}

header > nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: min(100% - 2rem, var(--content-width));
    margin-inline: auto;
    padding: 1rem 0;
}

header nav > a {
    align-self: flex-start;
    color: var(--paper);
    font-size: 1.05rem;
    line-height: 1.3;
    text-decoration: none;
}

header nav > a:hover {
    color: var(--gold);
}

.nav-menu,
.dropdown-menu,
footer nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu {
    display: grid;
    gap: 0.35rem;
}

.nav-menu > li > a,
.dropdown summary {
    display: block;
    padding: 0.65rem 0.8rem;
    border-radius: 0.35rem;
    color: var(--paper);
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease;
}

.nav-menu > li > a:hover,
.nav-menu > li > a:focus-visible,
.dropdown summary:hover,
.dropdown summary:focus-visible,
.dropdown:focus-within summary {
    background: var(--gold);
    color: var(--navy);
}

.dropdown {
    position: relative;
}

.dropdown details {
    position: relative;
}

.dropdown summary {
    list-style: none;
}

.dropdown summary::-webkit-details-marker {
    display: none;
}

.dropdown summary::after {
    display: inline-block;
    margin-left: 0.45rem;
    content: "\25BC";
    font-size: 0.7em;
    transform: rotate(0deg);
    transition: transform 180ms ease;
}

.dropdown details[open] > summary::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    gap: 0.2rem;
    margin-top: 0.25rem;
    padding: 0.45rem;
    border: 0.1rem solid #6d899d;
    border-radius: 0.45rem;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.dropdown details[open] > .dropdown-menu,
.dropdown details:focus-within > .dropdown-menu {
    display: grid;
}

.dropdown-menu a {
    display: block;
    padding: 0.65rem 0.75rem;
    border-radius: 0.3rem;
    color: var(--navy);
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
    background: var(--soft-blue);
    color: var(--navy);
}

main {
    padding: 1rem 0 3rem;
}

main > section {
    width: min(100% - 2rem, var(--content-width));
    margin: 1rem auto;
    padding: clamp(1.25rem, 4vw, 2.5rem);
    border: 0.0625rem solid var(--border);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 0.25rem 0.8rem rgba(11, 34, 57, 0.06);
}

.hero,
#hero {
    overflow: hidden;
    padding: clamp(1.5rem, 5vw, 3.5rem);
    border: 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: var(--paper);
    box-shadow: var(--shadow);
}

.hero h1,
#hero h1 {
    color: var(--paper);
}

.hero > p:first-child,
#hero > p:first-child {
    margin-bottom: 0.3rem;
    color: var(--gold);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero > p,
#hero > p {
    max-width: 44rem;
}

.hero-image {
    width: min(100%, 28rem);
    max-height: 31rem;
    margin: 1.5rem auto 0;
    border: 0.3rem solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    object-fit: cover;
    object-position: center 25%;
}

main section > a,
main section > div > a,
.portfolio-card > a,
.portfolio-card > p > a {
    display: inline-block;
    margin: 0.35rem 0.45rem 0.35rem 0;
    padding: 0.7rem 1rem;
    border: 0.125rem solid var(--teal);
    border-radius: 0.4rem;
    background: var(--teal);
    color: var(--paper);
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease,
        transform 180ms ease;
}

main section > a:hover,
main section > div > a:hover,
.portfolio-card > a:hover,
.portfolio-card > p > a:hover {
    border-color: var(--navy);
    background: var(--navy);
    color: var(--paper);
    transform: translateY(-0.15rem);
}

.hero > a,
#hero > a,
#hero > div > a {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--navy);
}

.hero > a:hover,
#hero > a:hover,
#hero > div > a:hover {
    border-color: var(--paper);
    background: var(--paper);
    color: var(--navy);
}

.service-cards,
.portfolio-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.service-card,
.portfolio-card,
#services > article,
#why-me > article,
#how-it-works > article,
.local-search > article {
    padding: 1.25rem;
    border: 0.0625rem solid var(--border);
    border-top: 0.3rem solid var(--teal);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 0.2rem 0.65rem rgba(11, 34, 57, 0.08);
}

.service-card ul,
.portfolio-card ul,
#services > article ul {
    padding-left: 1.25rem;
}

.service-card li::marker,
.portfolio-card li::marker,
#services > article li::marker {
    color: var(--teal);
}

figure {
    margin: 1.5rem 0;
    padding: 0.75rem;
    border: 0.0625rem solid var(--border);
    border-radius: var(--radius);
    background: var(--soft-blue);
}

figure img {
    width: 100%;
    border-radius: 0.45rem;
}

figcaption {
    padding: 0.7rem 0.25rem 0.1rem;
    color: #334155;
    font-size: 0.9rem;
}

table {
    width: 100%;
    min-width: 43rem;
    border-collapse: collapse;
    background: var(--paper);
}

#pricing {
    overflow-x: auto;
}

caption {
    padding: 0.8rem;
    background: var(--navy);
    color: var(--paper);
    font-size: 1.15rem;
    font-weight: 700;
    text-align: left;
}

th,
td {
    padding: 0.85rem;
    border: 0.0625rem solid #9aabb6;
    text-align: left;
    vertical-align: top;
}

thead th {
    background: var(--navy-light);
    color: var(--paper);
}

tbody th {
    background: var(--soft-blue);
    color: var(--navy);
}

tbody tr:nth-child(even) td {
    background: #f6f9fb;
}

form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

form > div > label,
legend {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--navy);
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    min-height: 2.75rem;
    padding: 0.65rem;
    border: 0.125rem solid #718493;
    border-radius: 0.35rem;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
}

fieldset {
    margin: 0;
    padding: 1rem;
    border: 0.125rem solid var(--border);
    border-radius: 0.5rem;
    background: #f9fbfc;
}

fieldset:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 0.2rem rgba(7, 89, 133, 0.15);
}

fieldset div,
.checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0.4rem 0;
}

input[type="checkbox"],
input[type="radio"] {
    flex: 0 0 auto;
    width: 1.25rem;
    min-height: 1.25rem;
    margin-top: 0.2rem;
    accent-color: var(--teal);
}

fieldset label,
.checkbox-field label {
    margin: 0;
    font-weight: 400;
}

button {
    min-height: 3rem;
    padding: 0.75rem 1.1rem;
    border: 0.125rem solid var(--teal);
    border-radius: 0.4rem;
    background: var(--teal);
    color: var(--paper);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease;
}

button:hover {
    background: var(--navy);
    transform: translateY(-0.15rem);
}

footer {
    padding: 2.25rem max(1rem, calc((100% - var(--content-width)) / 2));
    background: var(--navy);
    color: var(--paper);
    text-align: center;
}

footer a {
    color: #ffe08a;
}

footer a:hover {
    color: var(--paper);
}

footer nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1rem;
}

footer p:last-child {
    margin: 1.5rem 0 0;
    font-size: 0.9rem;
}

/* Tablet: two-column content at 768px and above. */
@media (min-width: 768px) {
    main {
        padding-top: 1.5rem;
    }

    main > section {
        margin-block: 1.5rem;
    }

    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .has-hero-image {
        display: grid;
        grid-template-columns: minmax(0, 1.25fr) minmax(15rem, 0.75fr);
        column-gap: 2rem;
        align-items: center;
    }

    .has-hero-image > :not(.hero-image) {
        grid-column: 1;
    }

    .hero-image {
        grid-column: 2;
        grid-row: 1 / span 6;
        width: 100%;
        height: 100%;
        min-height: 22rem;
        max-height: 32rem;
        margin: 0;
    }

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

    #why-me,
    #how-it-works,
    .local-search {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    #why-me > h2,
    #how-it-works > h2,
    .local-search > h2,
    .local-search > p {
        grid-column: 1 / -1;
    }

    form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    form > fieldset,
    form > button {
        grid-column: 1 / -1;
    }
}

/* Desktop: layouts expand to two or three columns at 992px. */
@media (min-width: 992px) {
    header > nav {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    header nav > a {
        max-width: 21rem;
    }

    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
    }

    .dropdown-menu {
        position: absolute;
        top: calc(100% + 0.15rem);
        right: 0;
        z-index: 20;
        width: max-content;
        max-width: 18rem;
        min-width: 14rem;
    }

    .dropdown details:hover > .dropdown-menu {
        display: grid;
    }

    .service-cards,
    .portfolio-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Large desktop: reusable card groups use at least three columns. */
@media (min-width: 1200px) {
    :root {
        --content-width: 74rem;
    }

    .service-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .portfolio-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #why-me,
    #how-it-works,
    .local-search {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    #why-me {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

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

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* ============================================================
   WEBSITES IN 3 DAYS  —  landing page additions
   Everything above this line is the original shared stylesheet.
   The rules below are specific to the single-page landing site.
============================================================ */

/* Give anchor links a little breathing room below the sticky header
   so section headings aren't hidden when you jump to them. */
:target {
    scroll-margin-top: 1.5rem;
}

/* Hero supporting bullet list */
.hero-points {
    margin: 1rem 0 1.5rem;
    padding-left: 1.25rem;
}

.hero-points li {
    margin-bottom: 0.35rem;
}

#hero .hero-points li::marker {
    color: var(--gold);
}

/* Small print used under "How it works" and pricing */
.fine-print {
    margin-top: 1.25rem;
    color: var(--muted);
    font-size: 0.9rem;
}

#hero .fine-print {
    color: rgba(255, 255, 255, 0.8);
}

/* Checkmark list for "What's included" */
.checklist {
    display: grid;
    gap: 0.5rem;
    margin: 0 0 1.25rem;
    padding: 0;
    list-style: none;
}

.checklist li {
    padding-left: 1.9rem;
    position: relative;
}

.checklist li::before {
    content: "\2714";
    position: absolute;
    left: 0;
    color: var(--teal);
    font-weight: 700;
}

@media (min-width: 768px) {
    .checklist {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ---- Pricing cards ---------------------------------------- */
/* Three plans — override the shared .service-cards column counts so we never
   get a stray empty 4th column. */
.pricing-cards {
    margin-top: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 992px) {
    .pricing-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .pricing-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.price-card {
    display: flex;
    flex-direction: column;
}

.price-card > ul {
    flex: 1 1 auto;
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

.price-card > ul li::marker {
    color: var(--teal);
}

.price-kicker {
    margin-bottom: 0.25rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.price-amount {
    margin: 0.15rem 0 0.75rem;
    color: var(--navy);
    font-size: 1.5rem;
    font-weight: 700;
}

/* The main offer stands out from the two optional plans */
.price-card.featured {
    border-top-color: var(--gold);
    background: var(--soft-gold);
}

.price-card.featured .price-amount {
    color: var(--blue);
}

/* ---- Lead form: honeypot + status ------------------------- */

/* Honeypot field — visually and functionally hidden from real users,
   still present in the DOM for bots to trip over. */
.hp-field {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* Success / error message under the Send button */
.form-status {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0.9rem 1rem;
    border-radius: 0.4rem;
    font-weight: 700;
}

.form-status.is-success {
    border: 0.125rem solid #1a7f4b;
    background: #e7f6ec;
    color: #0f5c34;
}

.form-status.is-error {
    border: 0.125rem solid #b42318;
    background: #fdeceb;
    color: #8a1c14;
}

/* Button while the form is submitting */
button[aria-busy="true"] {
    opacity: 0.7;
    cursor: progress;
}

/* ---- FAQ (details / summary) ------------------------------ */
#faq details {
    margin-bottom: 0.75rem;
    padding: 0.25rem 1rem;
    border: 0.0625rem solid var(--border);
    border-radius: 0.5rem;
    background: var(--paper);
}

#faq summary {
    padding: 0.85rem 0;
    color: var(--navy);
    font-weight: 700;
    cursor: pointer;
}

#faq details[open] {
    border-color: var(--blue);
}

#faq details[open] summary {
    margin-bottom: 0.25rem;
}

/* ---- Floating "Contact Me" button ------------------------- */
.floating-contact {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 50;
    padding: 0.85rem 1.35rem;
    border: 0.15rem solid var(--navy);
    border-radius: 999px;
    background: var(--gold);
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: transform 180ms ease, opacity 180ms ease, visibility 180ms ease;
}

.floating-contact:hover,
.floating-contact:focus-visible {
    color: var(--navy);
    transform: translateY(-0.15rem);
}

/* form.js adds .is-hidden when the visitor is already looking at the
   form, or before they've scrolled. Falls back to always-visible if
   JavaScript is off. */
.floating-contact.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (min-width: 768px) {
    .floating-contact {
        right: 1.5rem;
        bottom: 1.5rem;
    }
}
