/* ---------- Base styles ---------- */

:root {
    --cream: #f7f2e8;
    --cream-dark: #ebe1d1;
    --white: #fffdf8;
    --brown: #332820;
    --brown-soft: #66584e;
    --terracotta: #b96545;
    --terracotta-dark: #974b31;
    --sage: #78866b;
    --sage-light: #dce2d4;
    --border: #d8ccba;
    --shadow: 0 20px 50px rgba(51, 40, 32, 0.10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
    font: inherit;
}

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

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

/* ---------- Header ---------- */

.site-header {
    width: min(1180px, calc(100% - 48px));
    min-height: 78px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    font-weight: bold;
}

.site-header nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-header nav a {
    font-size: 0.85rem;
    font-weight: bold;
    transition: color 0.2s ease;
}

.site-header nav a:hover {
    color: var(--terracotta);
}

/* ---------- Reusable elements ---------- */

.eyebrow {
    color: var(--terracotta-dark);
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.primary-button,
.secondary-button {
    min-height: 50px;
    padding: 0 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: bold;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease;
}

.primary-button {
    background: var(--terracotta);
    color: var(--white);
}

.primary-button:hover {
    background: var(--terracotta-dark);
    transform: translateY(-2px);
}

.secondary-button {
    border: 1px solid var(--brown);
}

.secondary-button:hover {
    background: var(--brown);
    color: var(--white);
    transform: translateY(-2px);
}

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

.section-heading h2,
.pricing h2,
.featured-work h2,
.about-preview h2,
.contact h2 {
    margin-bottom: 20px;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: normal;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

/* ---------- Hero ---------- */

.hero {
    width: min(1180px, calc(100% - 48px));
    min-height: 680px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.hero::after {
    content: "";
    width: 380px;
    height: 380px;
    position: absolute;
    right: 3%;
    top: 18%;
    border: 1px solid var(--terracotta);
    border-radius: 50%;
    opacity: 0.35;
}

.hero::before {
    content: "";
    width: 270px;
    height: 360px;
    position: absolute;
    right: 10%;
    top: 24%;
    background: var(--sage-light);
    border-radius: 48% 48% 8px 8px;
    transform: rotate(7deg);
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero h1 {
    max-width: 760px;
    margin-bottom: 28px;
    font-size: clamp(4rem, 8vw, 7.2rem);
    font-weight: normal;
    line-height: 0.9;
    letter-spacing: -0.065em;
}

.hero h1 span {
    color: var(--terracotta);
    font-style: italic;
}

.hero-description {
    max-width: 570px;
    margin-bottom: 30px;
    color: var(--brown-soft);
    font-size: 1.08rem;
}

/* ---------- Services ---------- */

.services {
    padding: 110px max(24px, calc((100% - 1180px) / 2));
    background: var(--white);
}

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

.service-card {
    min-height: 330px;
    padding: 38px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    box-shadow: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.service-card:hover {
    border-color: var(--terracotta);
    box-shadow: var(--shadow);
    transform: translateY(-7px);
}

.service-number {
    margin-bottom: 55px;
    color: var(--terracotta);
    font-size: 0.75rem;
    font-weight: bold;
}

.service-card h3 {
    margin-bottom: 16px;
    font-size: 2rem;
    font-weight: normal;
}

.service-card p {
    max-width: 480px;
    color: var(--brown-soft);
    font-size: 0.95rem;
}

.card-link {
    margin-top: auto;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--brown);
    font-size: 0.8rem;
    font-weight: bold;
}

/* ---------- Website process ---------- */

.website-process {
    padding: 110px max(24px, calc((100% - 1180px) / 2));
    background: var(--cream-dark);
}

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

.process-card {
    min-height: 310px;
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.process-card > span {
    width: 42px;
    height: 42px;
    margin-bottom: 35px;
    display: grid;
    place-items: center;
    background: var(--sage-light);
    border-radius: 50%;
    color: var(--sage);
    font-size: 0.75rem;
    font-weight: bold;
}

.process-card h3 {
    margin-bottom: 15px;
    font-size: 1.65rem;
    font-weight: normal;
}

.process-card p {
    min-height: 90px;
    color: var(--brown-soft);
    font-size: 0.9rem;
}

.process-card strong {
    padding-top: 15px;
    display: block;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    text-transform: uppercase;
}

/* ---------- Pricing ---------- */

.pricing {
    padding: 120px max(24px, calc((100% - 1180px) / 2));
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 90px;
    align-items: center;
}

.pricing > div > p:last-child {
    max-width: 520px;
    color: var(--brown-soft);
}

.price-card {
    padding: 45px;
    position: relative;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 14px 14px 0 var(--cream-dark);
}

.launch-label {
    width: fit-content;
    padding: 8px 12px;
    position: absolute;
    right: 28px;
    top: -17px;
    background: var(--sage-light);
    border: 1px solid var(--sage);
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.price-card h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
}

.price {
    margin: 15px 0 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 4.7rem;
    line-height: 1;
}

.price span {
    margin-right: 12px;
    color: #a49a8c;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.2rem;
    text-decoration: line-through;
}

.price-card ul {
    margin: 30px 0;
    padding: 25px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    list-style: none;
}

.price-card li {
    font-size: 0.83rem;
}

.price-card li::before {
    content: "✓";
    margin-right: 8px;
    color: var(--terracotta);
    font-weight: bold;
}

.annual-cost {
    margin: 20px 0 0;
    color: var(--brown-soft);
    font-size: 0.75rem;
}

/* ---------- Featured work ---------- */

.featured-work {
    padding: 120px max(24px, calc((100% - 1180px) / 2));
    background: var(--brown);
    color: var(--white);
}

.featured-work .eyebrow {
    color: #df9b7c;
}

.featured-work p:not(.eyebrow) {
    max-width: 620px;
    color: #d8cec5;
}

.featured-work .secondary-button {
    margin-top: 20px;
    border-color: var(--cream);
}

.featured-work .secondary-button:hover {
    background: var(--cream);
    color: var(--brown);
}

/* ---------- About and contact ---------- */

.about-preview,
.contact {
    padding: 110px max(24px, calc((100% - 1180px) / 2));
}

.about-preview {
    background: var(--sage-light);
}

.about-preview p:not(.eyebrow),
.contact p:not(.eyebrow) {
    max-width: 620px;
    color: var(--brown-soft);
}

.about-preview .secondary-button {
    margin-top: 18px;
}

.contact {
    background: var(--white);
}

/* ---------- Footer ---------- */

footer {
    min-height: 130px;
    padding: 30px max(24px, calc((100% - 1180px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: var(--brown);
    color: var(--white);
}

footer p {
    margin: 0;
    color: #c9beb5;
    font-size: 0.75rem;
}
/* ---------- Process reveal animation ---------- */

.website-process {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}

.website-process.process-visible {
    opacity: 1;
    transform: translateY(0);
}
/* ---------- About page ---------- */

.about-hero {
    width: min(1180px, calc(100% - 48px));
    min-height: 600px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-hero h1 {
    max-width: 950px;
    margin-bottom: 30px;
    font-size: clamp(3.7rem, 7vw, 6.7rem);
    font-weight: normal;
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.about-hero h1 span {
    color: var(--terracotta);
    font-style: italic;
}

.about-hero > p:last-child {
    max-width: 650px;
    color: var(--brown-soft);
    font-size: 1.05rem;
}

.about-story {
    padding: 110px max(24px, calc((100% - 1180px) / 2));
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    background: var(--white);
}

.about-story h2,
.builder-section h2,
.about-callout h2 {
    font-size: clamp(2.6rem, 5vw, 4.3rem);
    font-weight: normal;
    line-height: 1;
    letter-spacing: -0.045em;
}

.story-content {
    padding-top: 38px;
}

.story-content p {
    color: var(--brown-soft);
}

.about-values {
    padding: 110px max(24px, calc((100% - 1180px) / 2));
    background: var(--cream-dark);
}

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

.value-card {
    min-height: 270px;
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.value-card > span {
    color: var(--terracotta);
    font-size: 0.75rem;
    font-weight: bold;
}

.value-card h3 {
    margin: 50px 0 16px;
    font-size: 1.55rem;
    font-weight: normal;
}

.value-card p {
    color: var(--brown-soft);
    font-size: 0.9rem;
}

.builder-section {
    padding: 120px max(24px, calc((100% - 1180px) / 2));
    display: grid;
    grid-template-columns: 1fr 430px;
    gap: 100px;
    align-items: center;
}

.builder-section > div > p:not(.eyebrow) {
    max-width: 650px;
    color: var(--brown-soft);
}

.builder-section .primary-button {
    margin-top: 18px;
}

.builder-card {
    padding: 42px;
    background: var(--brown);
    color: var(--white);
    border-radius: 12px;
    box-shadow: 14px 14px 0 var(--cream-dark);
}

.builder-label {
    color: #df9b7c;
    font-size: 0.68rem;
    font-weight: bold;
    letter-spacing: 0.15em;
}

.builder-card h3 {
    margin: 35px 0 8px;
    font-size: 2rem;
    font-weight: normal;
}

.builder-card > p:not(.builder-label) {
    margin-bottom: 4px;
    color: #d8cec5;
    font-size: 0.85rem;
}

.builder-skills {
    margin-top: 32px;
    padding-top: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.builder-skills span {
    padding: 7px 11px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    font-size: 0.7rem;
}

.about-callout {
    padding: 110px max(24px, calc((100% - 1180px) / 2));
    background: var(--sage-light);
}

.about-callout .primary-button {
    margin-top: 20px;
}

@media (max-width: 850px) {
    .about-story,
    .values-grid,
    .builder-section {
        grid-template-columns: 1fr;
    }

    .about-story,
    .builder-section {
        gap: 50px;
    }

    .builder-card {
        max-width: 550px;
    }
}

@media (max-width: 550px) {
    .about-hero {
        width: calc(100% - 36px);
        min-height: 520px;
    }

    .about-hero h1 {
        font-size: 3.5rem;
    }

    .about-story,
    .about-values,
    .builder-section,
    .about-callout {
        padding-top: 75px;
        padding-bottom: 75px;
    }
}

/* ---------- Responsive design ---------- */

@media (max-width: 850px) {
    .site-header nav {
        display: none;
    }

    .hero::before,
    .hero::after {
        opacity: 0.18;
    }

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

    .pricing {
        gap: 50px;
    }

    .price-card {
        max-width: 600px;
    }
}

@media (max-width: 550px) {
    .site-header {
        width: calc(100% - 36px);
    }

    .hero {
        width: calc(100% - 36px);
        min-height: 620px;
    }

    .hero h1 {
        font-size: 3.8rem;
    }

    .hero::before {
        width: 190px;
        height: 260px;
        right: -8%;
    }

    .hero::after {
        width: 250px;
        height: 250px;
        right: -15%;
    }

    .services,
    .website-process,
    .pricing,
    .featured-work,
    .about-preview,
    .contact {
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .service-card,
    .process-card,
    .price-card {
        padding: 28px;
    }

    .price-card ul {
        grid-template-columns: 1fr;
    }

    footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

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

    * {
        transition: none !important;
    }
}