:root {
    --black: #0a0a0a;
    --black-soft: #171717;
    --gold: #c9a34e;
    --gold-dark: #a8822e;
    --gold-pale: #f5ecda;
    --white: #ffffff;
    --light: #f7f5ef;
    --line: #e8dfcf;
    --text: #111111;
    --text-soft: #57534e;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
    --radius: 24px;
    --transition: 0.25s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

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

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 20;
    background: transparent;
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
}

.site-header.is-scrolled {
    background: rgba(10, 10, 10, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-row,
.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    font-family: "Outfit", sans-serif;
    color: var(--white);
}

.brand-logo {
    display: block;
    width: auto;
    height: 72px;
    object-fit: contain;
}

.eyebrow,
.section-kicker {
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow {
    margin-bottom: 8px;
}

.phone-pill,
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
    transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}

.phone-pill {
    padding: 14px 20px;
    background: var(--gold);
    color: var(--black);
    box-shadow: var(--shadow);
    gap: 10px;
}

.phone-pill-icon {
    width: 18px;
    height: 18px;
    margin-right: 4px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.btn {
    padding: 14px 24px;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn:hover,
.phone-pill:hover {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--gold);
    color: var(--black);
    box-shadow: var(--shadow);
}

.btn-primary:hover,
.phone-pill:hover {
    background: var(--gold-dark);
    color: var(--white);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
}

.btn-full {
    width: 100%;
}

.hero,
.section {
    padding: 88px 0;
}

.hero {
    min-height: 900px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 150px;
    padding-bottom: 120px;
    background:
        linear-gradient(rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.64)),
        radial-gradient(circle at top left, rgba(201, 163, 78, 0.18), transparent 32%),
        url("ceramiccoatinghero.webp") center center / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.08) 50%, rgba(0, 0, 0, 0.2) 100%);
    pointer-events: none;
}

.hero-grid,
.form-shell {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: start;
}

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

.hero-copy h1,
.section-heading h2,
.form-shell h2,
.site-footer h3,
.quote-card h2 {
    font-family: "Outfit", sans-serif;
    line-height: 1.05;
}

.hero-copy h1 {
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    margin-bottom: 18px;
    max-width: 12ch;
    color: var(--white);
}

.hero-copy h1 span {
    color: var(--gold);
}

.hero-text,
.section-copy,
.section-heading p,
.quote-card p,
.site-footer p,
.footer-contact p,
.faq-list p,
.location-card p {
    color: var(--text-soft);
}

.hero .hero-text,
.hero .check-list li,
.hero .check-list li::before {
    color: var(--white);
}

.check-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 28px 0;
}

.check-list li,
.package-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.check-list li::before,
.package-list li::before {
    content: "✓";
    color: var(--gold);
    font-weight: 800;
    flex-shrink: 0;
}

.check-list.dark li::before {
    color: var(--gold-dark);
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 22px;
}

.hero-location {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--white);
    font-weight: 600;
}

.hero-location-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.quote-card,
.placeholder-card,
.review-placeholder,
.form-shell,
.map-frame,
.faq-list details,
.package-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.quote-card,
.form-shell {
    padding: 28px;
}

.hero .quote-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(16px);
    scroll-margin-top: 100px;
}

@media (min-width: 901px) {
    .hero .quote-card {
        margin-top: 28px;
    }
}

.quote-form {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.quote-form.large {
    background: var(--light);
    border-radius: var(--radius);
    padding: 24px;
}

label {
    font-weight: 700;
    font-size: 0.95rem;
}

input,
select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid #d6ccbb;
    background: var(--white);
    color: var(--text);
    font: inherit;
}

.light-section {
    background: var(--light);
}

.section-heading {
    margin-bottom: 30px;
}

.section-heading.center {
    text-align: center;
}

.packages-heading,
.showcase-heading {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 42px;
}

.showcase-heading h2,
.packages-heading h2,
.section-heading h2 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    line-height: 1.08;
    margin-bottom: 18px;
}

.showcase-heading p:last-child,
.packages-heading p {
    font-size: 1.08rem;
    margin-bottom: 24px;
}

.section-quote-btn {
    margin-top: 6px;
}

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

.gallery-grid > *,
.review-placeholder-grid > * {
    min-width: 0;
    width: 100%;
}

.packages-grid {
    align-items: start;
}

.package-card {
    position: relative;
    padding: 28px;
    height: fit-content;
}

.featured-package {
    border: 2px solid var(--gold);
    transform: translateY(-4px);
}

.package-badge {
    position: absolute;
    top: -14px;
    left: 24px;
    background: var(--gold);
    color: var(--black);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.package-card h3 {
    font-family: "Outfit", sans-serif;
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.package-subtitle {
    color: var(--text-soft);
    margin-bottom: 18px;
}

.package-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--gold-pale);
    font-weight: 700;
}

.package-price {
    color: var(--gold-dark);
    font-size: 1.9rem;
    font-family: "Outfit", sans-serif;
    line-height: 1;
}

.package-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

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

.gallery-card,
.review-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--white);
}

.gallery-card {
    min-height: 300px;
}

.gallery-image,
.review-image {
    display: block;
    width: 100%;
    max-width: 100%;
}

.gallery-image {
    height: 100%;
    min-height: 300px;
    object-fit: cover;
}

.review-image {
    height: auto;
}

.placeholder-card,
.review-placeholder {
    min-height: 220px;
    display: grid;
    place-items: center;
    padding: 24px;
    text-align: center;
    color: var(--text-soft);
    background:
        linear-gradient(135deg, rgba(201, 163, 78, 0.16), rgba(201, 163, 78, 0.05)),
        repeating-linear-gradient(45deg, #ffffff, #ffffff 12px, #f8f5ed 12px, #f8f5ed 24px);
}

.narrow {
    max-width: 860px;
}

.faq-list {
    display: grid;
    gap: 16px;
}

.faq-list details {
    padding: 22px 24px;
}

.faq-list summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
}

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

.faq-list p {
    padding-top: 12px;
}

.map-frame {
    padding: 28px;
}

.location-photo-shell {
    margin: 22px auto 24px;
    max-width: 760px;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.location-photo {
    display: block;
    width: 100%;
    height: auto;
}

.location-card {
    display: grid;
    gap: 10px;
}

.location-card strong {
    color: var(--black);
}

.site-footer {
    background: var(--black);
    color: var(--white);
    padding: 56px 0 110px;
}

.site-footer .eyebrow,
.site-footer p {
    color: rgba(255, 255, 255, 0.72);
}

.footer-contact {
    display: grid;
    gap: 12px;
    justify-items: end;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 22px;
    margin-top: 8px;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, 0.7);
    z-index: 40;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    position: relative;
    width: min(480px, 100%);
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 16px;
    border: 0;
    background: transparent;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-soft);
}

.modal-body {
    text-align: center;
    display: grid;
    gap: 16px;
    padding-top: 10px;
}

.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: var(--gold-pale);
    color: var(--gold-dark);
    font-size: 2rem;
    font-weight: 800;
}

.mobile-cta {
    display: none;
}

.mobile-call-btn {
    gap: 8px;
    animation: mobile-call-float 4s ease-in-out infinite;
    white-space: nowrap;
}

.mobile-call-btn .phone-pill-icon {
    margin-right: 0;
    flex-shrink: 0;
    animation: phone-wiggle 3.2s ease-in-out infinite;
}

@keyframes phone-wiggle {
    0%, 82%, 100% {
        transform: rotate(0deg);
    }
    86% {
        transform: rotate(14deg);
    }
    90% {
        transform: rotate(-12deg);
    }
    94% {
        transform: rotate(10deg);
    }
    98% {
        transform: rotate(-8deg);
    }
}

@keyframes mobile-call-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-2px);
    }
}

@media (max-width: 900px) {
    .hero-grid,
    .form-shell,
    .packages-grid,
    .gallery-grid,
    .review-placeholder-grid {
        grid-template-columns: 1fr;
    }

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

    .footer-contact {
        justify-items: start;
    }
}

@media (max-width: 768px) {
    .hero,
    .section {
        padding: 72px 0;
    }

    .hero {
        min-height: auto;
        padding-top: 122px;
        padding-bottom: 88px;
    }

    .container {
        width: min(100% - 28px, 1120px);
    }

    .brand-logo {
        height: 56px;
    }

    .hero-copy h1 {
        font-size: 2.6rem;
    }

    .hero-text {
        display: none;
    }

    .check-list {
        margin: 20px 0;
        gap: 10px;
    }

    .header-row {
        gap: 12px;
        align-items: center;
        flex-wrap: nowrap;
    }

    .phone-pill {
        padding: 10px 14px;
        font-size: 0.84rem;
        white-space: nowrap;
        flex-shrink: 1;
        min-width: 0;
        gap: 6px;
    }

    .phone-pill span {
        overflow: visible;
        text-overflow: clip;
    }

    .phone-pill-icon {
        margin-right: 0;
    }

    .hero .cta-row .btn-primary {
        gap: 10px;
    }

    .cta-row {
        justify-content: center;
    }

    .hero-location {
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .mobile-cta {
        display: block;
        position: fixed;
        left: 50%;
        bottom: 14px;
        transform: translateX(-50%);
        padding: 0;
        background: transparent;
        border-top: 0;
        text-align: center;
        z-index: 30;
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition), transform var(--transition);
    }

    .mobile-cta .btn {
        width: auto;
        min-width: 0;
        padding: 12px 18px;
        font-size: 0.95rem;
        box-shadow: 0 16px 35px rgba(0, 0, 0, 0.34);
    }

    .mobile-cta.is-visible {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(0);
    }

    .site-footer {
        padding-bottom: 140px;
    }
}
