/*
Theme Name: Apartera
Theme URI: https://apartera.eu/
Author: Hibourg d.o.o.
Author URI: https://apartera.eu/
Description: Barebones Bootstrap-based WordPress theme for Apartera.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: apartera
*/

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root {
    --espresso: #241A14;
    --walnut: #4B3528;
    --brass: #8A6A45;
    --parchment: #EFE7D4;
    --ivory: #F8F5EC;
    --slate: #1E2A2F;
    --gold: #C7B58A;
    --ink: #241A14;
    --muted: #6F6254;
    --line: rgba(138, 106, 69, 0.34);
    --line-strong: rgba(138, 106, 69, 0.58);
    --radius-xl: 18px;
    --radius-lg: 10px;
    --shadow: 0 26px 56px rgba(36, 26, 20, 0.13);
}

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

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: var(--ink);
    background:
        linear-gradient(rgba(138, 106, 69, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(138, 106, 69, 0.04) 1px, transparent 1px),
        radial-gradient(900px 520px at 9% -10%, rgba(199, 181, 138, 0.28) 0%, rgba(199, 181, 138, 0) 68%),
        linear-gradient(180deg, var(--ivory) 0%, #eee4d0 100%);
    background-size: 42px 42px, 42px 42px, auto, auto;
    line-height: 1.6;
}

h1,
h2,
h3 {
    font-family: "Cormorant Garamond", serif;
    letter-spacing: 0;
    color: var(--espresso);
}

.btn {
    font-family: "Inter", sans-serif;
    letter-spacing: .02em;
}

h1 {
    font-size: clamp(3rem, 7vw, 6.7rem);
    line-height: .95;
}

.display-5 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.2;
}

p {
    font-size: 1.08rem;
}

.site-shell {
    position: relative;
    overflow-x: clip;
    min-height: 100vh;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(36, 26, 20, 0.06);
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

.home article header {
    display: none;
}

.brand-mark {
    max-height: 70px;
    width: auto;
    display: block;
}

.btn-pill {
    border-radius: 2px;
    padding: .7rem 1.15rem;
    font-weight: 600;
    border-width: 1px;
    text-transform: uppercase;
    font-size: .74rem;
    letter-spacing: .12em;
}

.btn-outline-light {
    border-color: var(--line-strong);
    color: var(--walnut);
    background: transparent;
}

.btn-outline-light:hover {
    color: var(--ivory);
    background: var(--walnut);
    border-color: var(--walnut);
}

a.btn-brand,
.wp-block-button.btn-brand a,
.wp-block-button .wp-block-button__link {
    background: var(--espresso);
    border: 1px solid var(--brass);
    color: var(--ivory);
    box-shadow: inset 0 0 0 1px rgba(199, 181, 138, 0.18), 0 14px 26px rgba(36, 26, 20, 0.16);
    font-weight: bold;
    border-radius: 2px;
    padding: .78rem 1.18rem;
    text-transform: uppercase;
    font-size: .74rem;
    letter-spacing: .12em;
}

.wp-block-button.btn-brand a:hover,
.wp-block-button.btn-brand a:focus,
.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus,
a.btn-brand:hover,
a.btn-brand:focus {
    color: var(--ivory);
    background: var(--walnut);
    border-color: var(--gold);
}

main {
    position: relative;
    z-index: 1;
}

.content-shell {
    padding: 4rem 0 0;
}

.block-content>* {
    max-width: 1140px;
    margin-left: auto;
    margin-right: auto;
    padding-left: .75rem;
    padding-right: .75rem;
}

.block-content>.alignwide {
    max-width: 1320px;
}

.block-content>.alignfull {
    max-width: none;
    width: 100%;
    background:
        linear-gradient(90deg, rgba(36, 26, 20, 0.055) 1px, transparent 1px),
        linear-gradient(rgba(36, 26, 20, 0.04) 1px, transparent 1px),
        radial-gradient(820px 420px at 12% -8%, rgba(214, 195, 170, 0.18) 0%, rgba(214, 195, 170, 0) 70%),
        radial-gradient(960px 560px at 88% 0%, rgba(72, 56, 44, 0.24) 0%, rgba(72, 56, 44, 0) 76%),
        linear-gradient(180deg, #d9c9b2 0%, #8c745c 100%);
    background-size: 54px 54px, 54px 54px, auto, auto, auto;
    padding-left: 0;
    padding-right: 0;
}

.block-content>.alignfull>.container,
.block-content>.alignwide>.container {
    margin-left: auto;
    margin-right: auto;
}

.heritage-hero {
    min-height: clamp(560px, 78vh, 820px);
    display: flex;
    align-items: center;
    color: var(--espresso);
}

.heritage-hero h1,
.heritage-hero .title {
    max-width: 960px;
}

.heritage-hero .wp-block-buttons {
    gap: .75rem;
}

.title {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(3.2rem, 8vw, 7.2rem);
    line-height: 1;
    margin: 1rem auto 1.2rem;
    max-width: 1040px;
    text-transform: none;
}

.subtitle {
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    color: var(--muted);
    max-width: 760px;
    margin: 0 auto;
}

.section-space {
    padding: 6.5rem 0;
    position: relative;
    z-index: 1;
}

.hero-wrap {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(90deg, rgba(199, 181, 138, 0.10) 1px, transparent 1px),
        linear-gradient(rgba(199, 181, 138, 0.08) 1px, transparent 1px),
        radial-gradient(680px 360px at 75% 14%, rgba(199, 181, 138, 0.18), transparent 72%),
        linear-gradient(135deg, var(--espresso) 0%, var(--walnut) 60%, var(--slate) 100%);
    background-size: 56px 56px, 56px 56px, auto, auto;
    box-shadow: var(--shadow);
    padding: clamp(2rem, 5vw, 5rem);
}

.hero-wrap::after {
    content: "";
    position: absolute;
    inset: 1rem;
    border: 1px solid rgba(199, 181, 138, 0.28);
    border-radius: 12px;
    background: transparent;
    pointer-events: none;
    z-index: 1;
}

.hero-img {
    display: block;
    width: 100%;
    max-height: 62vh;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(199, 181, 138, 0.45);
    filter: saturate(.82) contrast(1.04);
}

.hero-copy {
    position: absolute;
    top: 50%;
    right: clamp(2rem, 6vw, 5.5rem);
    transform: translateY(-50%);
    z-index: 2;
    text-align: right;
    background: rgba(248, 245, 236, 0.92);
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    padding: clamp(1.4rem, 3vw, 2.2rem);
    max-width: min(52vw, 760px);
}

.hero-wrap .title {
    margin: 0 0 .8rem auto;
    max-width: 100%;
    color: var(--espresso);
    text-shadow: none;
}

.hero-wrap .subtitle {
    margin: 0 0 0 auto;
    max-width: 44ch;
    color: var(--muted);
    text-shadow: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem 0;
    border-top: 1px solid var(--brass);
    border-bottom: 1px solid var(--brass);
    color: var(--brass);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .16em;
}

.grid-cards .wp-block-column,
.feature-cards .wp-block-column,
.service-tiers .wp-block-column,
.grid-card,
.pricing-card,
.pricing-cards .wp-block-column,
.testimonial-card,
.testimonial-cards .wp-block-column,
.contact-card,
.contact-cards .wp-block-column {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(248, 245, 236, 0.94), rgba(239, 231, 212, 0.9));
    box-shadow: var(--shadow);
}

.grid-cards .wp-block-column,
.feature-cards .wp-block-column,
.service-tiers .wp-block-column,
.grid-card {
    padding: 1.35rem;
    height: 100%;
    transition: transform .2s ease, border-color .2s ease;
}

.grid-cards .wp-block-column:hover,
.feature-cards .wp-block-column:hover,
.service-tiers .wp-block-column:hover,
.grid-card:hover {
    transform: translateY(-2px);
    border-color: var(--brass);
}

.chip {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Cormorant Garamond", serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--espresso);
    border: 1px solid var(--brass);
    background: var(--parchment);
    margin-bottom: .85rem;
}

.grid-cards .wp-block-column h3,
.feature-cards .wp-block-column h3,
.service-tiers .wp-block-column h3,
.grid-card h3 {
    margin: 0;
    font-size: 1.75rem;
    color: var(--espresso);
    text-align: right;
}

.pricing-card {
    max-width: 620px;
    margin: 0 auto;
    padding: 2.2rem;
    text-align: center;
    position: relative;
}

.price-tag {
    display: inline-block;
    border-radius: 2px;
    border: 1px solid var(--line-strong);
    color: var(--brass);
    padding: .3rem .74rem;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    background: rgba(199, 181, 138, 0.14);
}

.price {
    font-size: clamp(2.3rem, 7vw, 3.2rem);
    margin: .75rem 0 .7rem !important;
    line-height: 1;
}

.muted {
    color: var(--muted);
}

.testimonial-card {
    height: 100%;
    padding: 1.4rem;
    position: relative;
}

.testimonial-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: var(--brass);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    margin: 0 12px;
}

.cta {
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(90deg, rgba(199, 181, 138, 0.09) 1px, transparent 1px),
        linear-gradient(rgba(199, 181, 138, 0.08) 1px, transparent 1px),
        linear-gradient(135deg, var(--espresso), var(--walnut));
    background-size: 48px 48px, 48px 48px, auto;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    color: var(--ivory);
}

.cta h1,
.cta h2,
.cta h3 {
    color: var(--ivory);
}

.cta .muted,
.cta p {
    color: rgba(248, 245, 236, 0.78);
}

.cta>.btn {
    color: var(--espresso)
}

.contact-card {
    padding: 2rem;
    max-width: 780px;
    margin: 0 auto;
}

.tech-credentials {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.tech-credentials code,
.tech-credentials kbd {
    background: var(--espresso);
    border: 1px solid var(--brass);
    color: var(--gold);
    border-radius: 2px;
    padding: .18rem .4rem;
}

.case-study {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .78fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
    position: relative;
    padding-top: 2.4rem;
}

.case-study img {
    width: 100%;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    box-shadow: var(--shadow);
    filter: saturate(.78) contrast(1.04);
}

.case-study::before {
    content: "Case Study";
    position: absolute;
    top: 0;
    left: 0;
    color: var(--brass);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    border-top: 1px solid var(--brass);
    padding-top: .7rem;
}

.form-label {
    color: var(--walnut);
}

.form-control {
    background: var(--ivory);
    color: var(--espresso);
    border-color: var(--line);
    border-radius: 2px;
    padding: .75rem .95rem;
}

.form-control::placeholder {
    color: #8d806d;
}

.form-control:focus {
    color: var(--espresso);
    background: #fffaf0;
    border-color: var(--brass);
    box-shadow: 0 0 0 .2rem rgba(138, 106, 69, 0.14);
}

footer {
    color: var(--gold);
    position: relative;
    z-index: 1;
}

footer a {
    color: var(--ivory);
}

.site-footer {
    background: var(--espresso);
    border-top: 1px solid var(--brass);
    padding: 3rem 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    align-items: flex-end;
    border-top: 1px solid rgba(199, 181, 138, 0.22);
    padding-top: 1.35rem;
}

.footer-kicker,
.footer-meta {
    color: rgba(199, 181, 138, 0.74);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.footer-brand {
    color: var(--ivory);
    font-family: "Cormorant Garamond", serif;
    font-size: 2rem;
    line-height: 1;
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 1.25rem;
    justify-content: flex-end;
}

.trust-strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 1.2rem 0;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.seal {
    display: inline-grid;
    place-items: center;
    width: 4.4rem;
    height: 4.4rem;
    border: 1px solid var(--brass);
    border-radius: 50%;
    color: var(--brass);
    font-family: "Cormorant Garamond", serif;
    font-size: 1.6rem;
    font-weight: 700;
}

.has-text-align-center {
    text-align: center !important;
}

@media (max-width: 992px) {
    .section-space {
        padding: 4.75rem 0;
    }

    .cta {
        padding: 2.25rem 1.2rem;
    }

    .contact-card {
        padding: 1.4rem;
    }

    .hero-copy {
        max-width: 70vw;
    }
}

@media (max-width: 768px) {
    .content-shell {
        padding: 2rem 0 0;
    }

    .hero-copy {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        transform: none;
        max-width: 100%;
        margin-top: 1.2rem;
        text-align: left;
    }

    .hero-wrap .title {
        font-size: clamp(2.4rem, 12vw, 4rem);
        margin-bottom: .45rem;
    }

    .hero-wrap .subtitle {
        font-size: 1rem;
        line-height: 1.4;
    }

    .footer-grid {
        display: block;
    }

    .footer-meta {
        justify-content: flex-start;
        margin-top: 1.4rem;
    }

    .case-study {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 500px) {
    .section-space {
        padding: 2.4rem 0;
    }

    .display-5 {
        font-size: 3.5rem;
    }

    .grid-cards .wp-block-column h3 {
        font-size: 1.65rem;
    }

    .brand-mark {
        max-height: 40px;
    }

    header.topbar a.btn-pill,
    header.topbar a.btn-brand {
        padding: .35rem;
        font-size: .65rem;
        letter-spacing: .1em;
    }
}

@media (min-width: 1200px) {
    .display-5 {
        font-size: 4.5rem;
        font-weight: 700;
        line-height: 1.2;
    }

    .h2,
    h2,
    h3,
    .h3 {
        font-size: 2.5rem;
        font-weight: bold;
    }
}