/* COLORS AND DEFAULTS */
:root {
    --cream: #faf6f0;
    --white: #ffffff;
    --plum: #352337;
    --muted: #6e626b;
    --gold: #a67c42;
    --line: #ded4d8;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--cream);
    color: var(--plum);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.65;
}

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

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.15;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

a,
button,
input,
select {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 5px;
}

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* DEMO NOTICE */
.demo-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 5%;
    background: var(--plum);
    color: var(--white);
    font-size: 0.8rem;
}

.demo-banner p {
    margin: 0;
}

.demo-banner a {
    text-underline-offset: 4px;
}

/* HEADER */
.site-header {
    max-width: 1280px;
    margin: auto;
    padding: 28px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    text-decoration: none;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.2rem;
    letter-spacing: 0.16em;
    line-height: 1;
}

.brand span {
    display: block;
    margin-top: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
}

.site-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.site-header nav a {
    font-size: 0.9rem;
    text-decoration: none;
}

.site-header nav a:hover {
    text-decoration: underline;
    text-underline-offset: 6px;
}

/* SHARED ELEMENTS */
.section {
    max-width: 1200px;
    margin: auto;
    padding: 85px 5%;
}

.eyebrow {
    margin-bottom: 18px;
    color: #79562f;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.section-heading {
    max-width: 650px;
    margin-bottom: 38px;
}

.section-heading h2,
.appointment h2,
.portfolio-cta h2 {
    margin-bottom: 20px;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
}

.section-heading > p:last-child,
.appointment-intro > p:not(.eyebrow),
.portfolio-cta > p:not(.eyebrow) {
    color: var(--muted);
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 14px 25px;
    border: 1px solid var(--plum);
    border-radius: 3px;
    background: var(--plum);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
}

.button:hover:not(:disabled) {
    background: #513653;
    transform: translateY(-2px);
}

.button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.text-link {
    font-size: 0.9rem;
    text-underline-offset: 6px;
}

.small-note {
    margin-top: 22px;
    color: var(--muted);
    font-size: 0.8rem;
}

/* HERO */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1280px;
    margin: 12px auto 0;
    padding: 0 5% 45px;
    align-items: center;
    gap: 55px;
}

.hero-content {
    padding: 35px 0;
}

.hero h1 {
    margin-bottom: 25px;
    font-size: clamp(2.7rem, 5vw, 4.8rem);
    font-weight: 400;
    letter-spacing: -0.045em;
}

.hero-content > p:not(.eyebrow):not(.small-note) {
    max-width: 460px;
    color: var(--muted);
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 30px;
}

.hero-visual {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: 160px 160px 6px 6px;
    background: #e9ded9;
}

.hero-visual img {
    position: absolute;
    inset: 0;
}

.hero-visual > p {
    position: absolute;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 1;
    margin: 0;
    padding: 14px;
    border-radius: 3px;
    background: var(--cream);
    color: var(--plum);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-align: center;
}

/* SERVICES */
.services {
    border-top: 1px solid var(--line);
}

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

.service-card {
    padding: 28px 22px;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--white);
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    border-radius: 50%;
    background: #f3ebe0;
    color: #79562f;
}

.service-icon svg {
    width: 25px;
    height: 25px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 400;
}

.service-card > p:not(.price) {
    color: var(--muted);
    font-size: 0.9rem;
}

.service-card .price {
    margin: 25px 0 2px;
    font-weight: 700;
}

.duration {
    color: var(--muted);
    font-size: 0.78rem;
}

/* PHOTO GALLERY */
.studio {
    border-top: 1px solid var(--line);
}

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

.gallery-grid figure {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--white);
}

.gallery-grid figure img {
    height: 300px;
}

.gallery-grid figcaption {
    padding: 16px 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.25rem;
}

/* APPOINTMENT PREVIEW */
.appointment {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 70px;
    border-top: 1px solid var(--line);
}

.demo-notice {
    padding: 16px;
    border-left: 3px solid var(--gold);
    background: #f0e8df;
    font-size: 0.85rem;
}

#appointment-form {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--white);
}

#appointment-form label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.85rem;
    font-weight: 700;
}

#appointment-form input,
#appointment-form select {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    margin-bottom: 20px;
    padding: 10px 12px;
    border: 1px solid #a99ba5;
    border-radius: 3px;
    background: var(--white);
    color: var(--plum);
    font-size: 1rem;
}

#appointment-form .button {
    width: 100%;
    margin-top: 5px;
}

#appointment-status {
    margin: 0;
    overflow-wrap: anywhere;
}

#appointment-status:not(:empty) {
    margin-top: 20px;
    padding: 16px;
    border: 1px solid #52725a;
    border-radius: 3px;
    background: #edf5ee;
    color: #23482c;
    font-size: 0.9rem;
}

/* TECH2RELAY LINK AND FOOTER */
.portfolio-cta {
    border-top: 1px solid var(--line);
    text-align: center;
}

.portfolio-cta > p:not(.eyebrow) {
    max-width: 550px;
    margin-right: auto;
    margin-left: auto;
}

.portfolio-cta .button {
    margin-top: 12px;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 30px 5%;
    border-top: 1px solid var(--line);
    font-size: 0.75rem;
}

.site-footer p {
    margin: 0;
}

/* TABLETS */
@media (max-width: 1000px) {
    .hero {
        gap: 30px;
    }

    .hero-visual {
        min-height: 450px;
    }

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

    .appointment {
        gap: 35px;
    }
}

/* PHONES */
@media (max-width: 700px) {
    .demo-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
    }

    .site-header {
        flex-direction: column;
        align-items: flex-start;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .site-header nav {
        gap: 12px 20px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hero-content {
        padding: 20px 0;
    }

    .hero-visual {
        min-height: 400px;
    }

    .section {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .gallery-grid,
    .appointment {
        grid-template-columns: 1fr;
    }

    .gallery-grid figure img {
        height: 320px;
    }

    #appointment-form {
        padding: 24px 20px;
    }

    .site-footer {
        flex-direction: column;
        gap: 8px;
    }
}

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

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* RESPECT REDUCED-MOTION SETTINGS */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button {
        transition: none;
    }

    .button:hover:not(:disabled) {
        transform: none;
    }
}