:root {
    --ink: #111d2e;
    --navy: #101c2d;
    --muted: #4f5e70;
    --paper: #fbfaf7;
    --line: #d8dde2;
    --accent: #ffac6b;
    --rust: #974314;
}
* {
    box-sizing: border-box;
}


/* Base styles */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 1rem/1.55 system-ui, sans-serif;
}

a {
    color: inherit;
    text-underline-offset: 4px;
}

a:hover {
    text-decoration-thickness: 2px;
}

:focus-visible {
    outline: 3px solid #d96d27;
    outline-offset: 4px;
}

.skip {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    background: white;
    padding: 10px;
    transform: translateY(-150%);
}

.skip:focus {
    transform: none;
}

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

.header {
    background: white;
}

.navigation, .section-heading, .final-content, .footer, .trades {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Header and navigation */
.navigation {
    min-height: 78px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .23em;
    white-space: nowrap;
    text-decoration: none;
    font-weight: 850;
    font-size: 1.28rem;
    letter-spacing: -.05em;
}

.brand > span:last-child {
    color: var(--rust);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 37px;
    height: 37px;
    background: var(--navy);
    color: var(--accent);
    border-radius: 9px;
    margin-right: 5px;
    letter-spacing: 0;
}

nav {
    display: flex;
    gap: clamp(14px, 3vw, 34px);
}

nav a {
    text-decoration: none;
    font-weight: 650;
}

nav a:hover {
    text-decoration: underline;
}


/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--accent);
    color: var(--ink);
    text-decoration: none;
    text-align: center;
    font: 800 .94rem/1.3 system-ui, sans-serif;
    cursor: pointer;
}

.button:hover {
    filter: brightness(.94);
}

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

.compact {
    min-height: 42px;
}


/* Hero section */
.hero {
    color: white;
    background-color: var(--navy);
    background-image: linear-gradient(90deg, #101c2df7 4%, #101c2ddc 35%, #101c2d55 64%), url('images/orlando-studio.webp');
    background-position: center, center 48%;
    background-size: cover;
}
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 410px);
    gap: clamp(26px, 7vw, 104px);
    align-items: center;
    padding-block: 56px;
    align-items: start;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--rust);
    font-size: .86rem;
    font-weight: 800;
    letter-spacing: .105em;
}

.light {
    color: #ffc497;
}

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

h1, h2 {
    line-height: 1.02;
    letter-spacing: -.055em;
}

h1 {
    max-width: 16ch;
    font-size: clamp(3.35rem, 4.3vw, 6.25rem);
    margin-bottom: 22px;
}

h1 em {
    display: block;
    color: var(--accent);
    font-style: normal;
}

h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    margin-bottom: 16px;
}

h3 {
    font-size: 1.17rem;
    line-height: 1.24;
    margin-bottom: 10px;
}

.hero-copy{
    position:relative;
    top:25px;
}

.hero-description {
    color: #f0f3f7;
    max-width: 46ch;
    font-size: 1.17rem;
}

.hero-description a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 20px;
    padding: 0;
    list-style: none;
    margin: 24px 0 0;
    font-weight: 650;
}

.benefits li::before {
    content: "✓";
    margin-right: 7px;
    color: var(--accent);
}


/* Demo form */
.contact {
    color: var(--ink);
    background: #fff;
    padding: 27px;
    border-radius: 16px;
    box-shadow: 0 16px 45px #0005;
}

.contact .eyebrow {
    margin-bottom: 8px;
}

.contact h2 {
    font-size: 2.3rem;
}

.fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

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

label {
    display: block;
    min-width: 0;
    font-size: .9rem;
    font-weight: 740;
}

input, select, textarea {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px;
    background-color: #f7f8fa;
    color: var(--ink);
    border: 1px solid #cbd3db;
    border-radius: 6px;
    font: 400 1rem/1.4 system-ui, sans-serif;
}

select {
    appearance: none;
    padding-right: 30px;
    background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
    background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%;
    background-size: 5px 5px;
    background-repeat: no-repeat;
}

textarea {
    resize: vertical;
}

.contact .button {
    width: 100%;
    margin-top: 14px;
}

.muted, .form-note {
    color: var(--muted);
    font-weight: 450;
}

.form-note {
    margin: 7px 0 0;
    font-size: .875rem;
}

/* Calendly booking link */
.booking-link {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    background-color: #fff0e3;
    color: #974314;
    font-weight: 750;
}

.booking-link:hover {
    background-color: #ffdfc4;
}

@media (prefers-reduced-motion: no-preference) {
    .booking-link {
        animation: booking-pulse 1.4s ease-in-out 2;
    }
}

@keyframes booking-pulse {

    0%,
    100% {
        background-color: #fff0e3;
    }

    50% {
        background-color: #ffbf8f;
    }
}


/* Industries served */
.trade-strip {
    background: #eed5bd;
}

.trades {
    padding-block: 15px;
    gap: 12px;
}

.trades ul {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
    list-style: none;
    gap: 4px 20px;
}

.trades li {
    font-weight: 650;
}


/* Shared section and card styles */
.section {
    padding-block: 76px;
}

.section-heading {
    align-items: end;
    margin-bottom: 27px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.section-heading > p {
    margin: 0;
    max-width: 35ch;
    color: var(--muted);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.cards article {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.services article {
    padding: 25px;
}

.cards p, .reviews p, .faq p {
    color: var(--muted);
}

.services a, .project-info a, .faq a, .reviews a {
    font-weight: 750;
    color: #85390f;
}

/* Clickable portfolio previews */
.portfolio a.mock {
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    color: #fff;
    text-decoration: none;
}

.portfolio a.mock:hover span,
.portfolio a.mock:focus-visible span {
    text-decoration: underline;
}

.portfolio .mock.lawn {
    background-image:
        linear-gradient(#111d2eb3, #111d2eb3),
        url("images/lawn.webp");
}

.portfolio .mock.tidy {
    background-image:
        linear-gradient(#111d2eb3, #111d2eb3),
        url("images/cleaning-team.png");
}

.portfolio .mock.auto {
    background-image:
        linear-gradient(#111d2eb3, #111d2eb3),
        url("images/home.jpg");
}


/* Services */
.services a {
    margin-top: auto;
}

.services svg {
    width: 44px;
    height: 44px;
    padding: 10px;
    margin-bottom: 17px;
    background: #ffe5d0;
    color: var(--rust);
    border-radius: 8px;
    stroke: currentColor;
    stroke-width: 1.7;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Why Hometown Digital */
.why {
    background: var(--navy);
    color: white;
    padding-block: 64px;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: clamp(25px, 7vw, 96px);
}

.why p:not(.eyebrow) {
    color: #e0e8ef;
    max-width: 47ch;
}

.example {
    padding: 23px;
    border: 1px solid #385167;
    background: #1a2a3e;
    border-radius: 14px;
}

.example ol {
    margin: 0;
    padding-left: 24px;
}

.example li {
    padding: 9px 0;
}

.example li::marker {
    color: var(--accent);
    font-weight: 800;
}

.example span {
    display: block;
    color: #e0e8ef;
}


/* Portfolio */
.mock {
    min-height: 198px;
    padding: 22px;
    display: grid;
    align-content: space-between;
    gap: 14px;
}

.mock small {
    font-weight: 750;
    letter-spacing: .08em;
}

.mock strong {
    font-size: 1.9rem;
    line-height: 1.04;
    letter-spacing: -.04em;
}

.mock span {
    width: fit-content;
    border: 1px solid currentColor;
    padding: 5px 8px;
    font-size: .76rem;
    font-weight: 750;
}

.lawn {
    background: linear-gradient(135deg, #243f2c, #426742);
    color: #e6f5d3;
}

.tidy {
    background: linear-gradient(135deg, #f0dcd7, #ffeeda);
    color: #4c352c;
}

.auto {
    background: linear-gradient(135deg, #24223d, #3d427a);
    color: #eef0ff;
}

.project-info {
    padding: 21px;
}


/* Process and FAQ */
.process, .faq {
    background: #eef1f3;
}

.process-list {
    padding-left: 25px;
    margin-bottom: 0;
    gap: 30px;
}

.process-list li {
    display: list-item;
    padding-right: 12px;
}

.process-list li::marker {
    color: var(--rust);
    font-weight: 800;
}

.process-list p, .reviews h2 {
    margin-bottom: 0;
}

details {
    border-top: 1px solid #bdc8d3;
}

details:last-child {
    border-bottom: 1px solid #bdc8d3;
}

summary {
    padding: 14px 0;
    font-weight: 750;
    cursor: pointer;
}

details p {
    margin: 0 0 15px;
}


/* Final call to action */
.final {
    background: var(--accent);
    padding-block: 48px;
}

.final p {
    margin-bottom: 0;
}

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

.outline {
    border-color: var(--navy);
}


/* Footer */
footer {
    background: var(--navy);
    padding-block: 24px;
    color: white;
}

footer .brand > span:last-child {
    color: var(--accent);
}

footer .brand-mark {
    background: #26384b;
}


/* Responsive styles */
@media (max-width: 850px) {
    .wrap {
        width: calc(100% - 40px);
    }

    .hero-grid {
        gap: 22px;
        grid-template-columns: minmax(0, 1fr) minmax(310px, 1fr);
    }

    .services article, .project-info, .mock {
        padding: 17px;
    }

    .final-content {
        flex-direction: column;
        align-items: flex-start;
    }

}
@media (max-width: 680px) {
    .navigation {
        flex-wrap: wrap;
        padding-block: 10px;
        gap: 11px;
    }

    .brand {
        font-size: 1.1rem;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
        margin-right: 2px;
    }

    .compact {
        font-size: .875rem;
        padding-inline: 10px;
    }

    nav {
        width: 100%;
        order: 3;
        justify-content: space-between;
        padding-top: 9px;
        border-top: 1px solid var(--line);
    }

    .hero-grid, .cards, .split {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        padding-block: 39px;
    }

    .hero {
        background-position: center, 60% top;
    }

    .contact {
        padding: 20px;
    }

    .trades, .section-heading, .footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-heading, .footer {
        gap: 12px;
    }

    .section, .why {
        padding-block: 47px;
    }

    .desktop-break {
        display: none;
    }

}
@media (max-width: 340px) {
    .wrap {
        width: calc(100% - 28px);
    }

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

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

@media (min-width: 681px) {
    .hero-copy {
        padding-top: 25px;
    }
}

}
