/*
Theme Name: LPA.Cube
Version: 1.0.0
Text Domain: lpa-studio
*/
:root {
    --ink: #24211e;
    --shell-width: min(100% - 96px, 1280px);
    --lpa-tools-width: var(--shell-width);
    --muted: #5c554c;
    --paper: #f8f5ee;
    --surface: #fff;
    --brand-surface: #24211e;
    --brand-text: #f1e8d8;
    --button-fill: #24211e;
    --button-hover: #3e3529;
    --button-text: #fff;
    --button-icon: #ecca83;
    --accent-text: #7e5815;
    --accent-line: #ab7c26;
    --focus: #9a6a0a;
    --field-border: #9ba5a3;
    --danger: #8b2919;
    --success-surface: #edf4e8;
    --success-text: #254f2c;
    --error-surface: #fbece7;
    --error-text: #7f2e1c;
    --gold: #c79b47;
    --line: #e0d9ce;
    --serif: Baskerville, Georgia, "Times New Roman", serif;
    --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
html[data-theme="dark"] {
    color-scheme: dark;
    --ink: #f1e9dc;
    --muted: #c7bcae;
    --surface: #191715;
    --paper: #24201c;
    --gold: #d8ad60;
    --line: #53483c;
    --brand-surface: #100e0d;
    --button-fill: #d8ad60;
    --button-hover: #ecc580;
    --button-text: #231b10;
    --button-icon: #624717;
    --accent-text: #e0ba72;
    --accent-line: #d2a756;
    --focus: #ecc580;
    --field-border: #857766;
    --danger: #ffb7aa;
    --success-surface: #223127;
    --success-text: #bfe3c3;
    --error-surface: #3b2520;
    --error-text: #ffb7aa;
}
body { margin: 0; color: var(--ink); background: var(--surface); font: 16px/1.55 var(--sans); }
a { color: inherit; text-underline-offset: .22em; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 400; }
h1, h2 { font-family: var(--serif); }
h1 { font-size: clamp(3.15rem, 7vw, 6.1rem); line-height: .95; letter-spacing: -.045em; }
h2 { font-size: clamp(2.4rem, 5.1vw, 4.65rem); line-height: .99; letter-spacing: -.036em; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
[hidden] { display: none !important; }

.shell { width: var(--shell-width); margin-inline: auto; }
.screen-reader-text { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link:focus { position: fixed; top: 8px; left: 12px; z-index: 20; height: auto; width: auto; clip-path: none; padding: 10px; background: var(--surface); }
.topline { background: var(--brand-surface); color: var(--brand-text); font-size: .78rem; }
.topline-inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 10px; }
.topline-actions { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.theme-toggle { display: grid; place-items: center; min-width: 36px; min-height: 34px; padding: 0; border: 1px solid #766955; border-radius: 4px; color: var(--brand-text); background: transparent; font: 1.2rem/1 var(--sans); cursor: pointer; }
.theme-toggle:hover { border-color: #ecca83; color: #ecca83; }
.theme-sun, html[data-theme="dark"] .theme-moon { display: none; }
html[data-theme="dark"] .theme-sun { display: inline; }
.topline a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.site-header { background: var(--surface); }
.header-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.brand-mark { width: 72px; height: 72px; object-fit: contain; flex: 0 0 auto; }
.brand-name { display: grid; gap: 5px; white-space: nowrap; }
.brand-name strong {
    font: 650 1.32rem/1 var(--sans);
    letter-spacing: .04em;
    text-transform: uppercase;
}
.brand-name > span {
    color: var(--muted);
    font-size: .69rem;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .22em;
    text-transform: uppercase;
}
.footer .brand-name > span { color: #ecca83; }
.footer .brand-mark { filter: brightness(1.18); }
.navigation ul { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); list-style: none; padding: 0; margin: 0; }
.site-header .navigation a { display: block; text-decoration: none; font-size: .91rem; padding-block: 10px; white-space: nowrap; }
.site-header .navigation a:hover, .site-header .navigation a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent-line); text-decoration-thickness: 2px; text-underline-offset: .45em; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .85em; padding: .87rem 1.2rem; border: 1px solid transparent; font: 600 .9rem/1.3 var(--sans); text-decoration: none; cursor: pointer; }
.button-dark { background: var(--button-fill); color: var(--button-text); }
.button-dark span { color: var(--button-icon); }
.button-dark:hover { background: var(--button-hover); }
.button-gold { background: var(--gold); color: #24211e; }
.button-gold:hover { background: #e5bd66; }
.header-button { border-color: var(--ink); }
.header-button:hover { background: var(--paper); }
.menu-toggle { font: 600 .9rem var(--sans); border: 1px solid var(--line); padding: .7rem .85rem; background: var(--surface); color: var(--ink); cursor: pointer; }

.hero { background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: 1fr .98fr; align-items: stretch; }
.hero-copy { container-type: inline-size; padding: clamp(54px, 8vw, 118px) clamp(27px, 6vw, 96px) clamp(54px, 8vw, 118px) 0; align-self: center; }
.hero-copy h1 { font-size: min(6.1rem, 7.3vw, 16.7cqi); line-height: .88; }
.eyebrow { line-height: 1.35; font-weight: 600; font-size: .8rem; letter-spacing: .025em; }
.hero-copy .eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 1.7rem; }
.gold-dash { width: 26px; height: 2px; background: var(--accent-line); flex: 0 0 auto; }
.hero-copy > p:not(.eyebrow), .page-intro .shell > p:last-child { max-width: 36rem; color: var(--muted); font-size: clamp(1.07rem, 1.6vw, 1.3rem); margin-top: 1.65rem; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.25rem 1.4rem; margin-top: 2rem; }
.text-link { display: inline-flex; align-items: baseline; gap: .42em; font-size: .94rem; font-weight: 650; text-decoration-color: var(--accent-line); }
.text-link:hover { text-decoration-thickness: 2px; }
.hero-image { position: relative; min-height: 580px; background: #c2cbd0; }
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hero-image figcaption { position: absolute; bottom: 16px; left: 16px; max-width: calc(100% - 32px); padding: .45em .75em; color: var(--brand-text); background: var(--brand-surface); font-size: .73rem; }

.client-strip { border-bottom: 1px solid var(--line); }
.client-inner { display: grid; grid-template-columns: 1fr 3fr; align-items: center; gap: 18px; padding-block: 23px; }
.client-inner > p { color: var(--muted); font-size: .85rem; }
.client-inner ul { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-family: var(--serif); font-size: clamp(1.12rem, 1.65vw, 1.45rem); list-style: none; padding: 0; margin: 0; }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section-paper, .page-intro { background: var(--paper); }
.section-ink, .footer { background: var(--brand-surface); color: var(--brand-text); }
.section-heading { max-width: 37rem; }
.section-heading > p, .story-copy p, .reading-copy p { margin-top: 1.3rem; color: var(--muted); font-size: 1.11rem; max-width: 54ch; }
.gold-rule { width: 39px; height: 3px; background: var(--gold); margin-bottom: 1.35rem; }
.services-summary, .story-grid, .closing { display: grid; grid-template-columns: .9fr 1fr; gap: clamp(30px, 8vw, 108px); align-items: start; }
.service-list { border-top: 1px solid var(--line); }
.service-list a { display: flex; justify-content: space-between; align-items: center; text-decoration: none; gap: 24px; border-bottom: 1px solid var(--line); padding: 1.2rem .25rem; }
.service-list a:hover { background: var(--paper); }
.service-list h3 { font: 400 clamp(1.55rem, 2.4vw, 2.2rem)/1.12 var(--serif); }
.service-list p { margin-top: .25rem; color: var(--muted); }
.service-list span { color: var(--accent-text); font-size: 1.2rem; }
.story-grid { align-items: center; }
.story-image { background: #dde0d6; }
.story-image img { width: 100%; height: clamp(290px, 40vw, 470px); object-fit: cover; object-position: center; }
.story-copy > a, .reading-copy > a { margin-top: 1.4rem; }
.about-links { display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; margin-top: 1.4rem; }
.reading-copy p:first-child { margin-top: 0; }
.split-heading { display: flex; max-width: none; justify-content: space-between; align-items: end; gap: 22px; margin-bottom: 2rem; }
.insight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.insight-card { display: flex; flex-direction: column; gap: 1rem; align-items: start; background: var(--surface); border-top: 3px solid var(--gold); padding: clamp(18px, 3vw, 36px); }
.insight-image { width: 100%; }
.insight-image img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; }
.article-image { margin-bottom: 1.5rem; }
.article-image img, .reading img { max-width: 100%; height: auto; }
.insight-card .eyebrow, .insight-card > p { color: var(--muted); }
.insight-card :is(h2, h3) { font: 400 1.9rem/1.1 var(--serif); letter-spacing: -.015em; }
.insight-card :is(h2, h3) a { text-decoration: none; }
.insight-card :is(h2, h3) a:hover { text-decoration: underline; }
.insight-card .text-link { margin-top: auto; }
.reviews-layout { display: grid; grid-template-columns: minmax(230px, .33fr) minmax(0, 1fr); gap: clamp(1.25rem, 3.5vw, 3rem); align-items: start; }
.review-summary { padding-block: .35rem; }
.review-source { font-size: .9rem; font-weight: 650; }
.review-rating { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: .25rem 0; }
.review-rating strong { font: 400 2.7rem/.98 var(--serif); }
.review-stars { color: var(--accent-text); letter-spacing: .13em; }
.review-count { color: var(--muted); }
.review-count small { display: block; margin-top: .15rem; }
.review-summary-links { display: flex; align-items: flex-start; gap: .65rem; flex-direction: column; margin-top: 1rem; }
.review-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 1rem) / 2); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.review { background: var(--paper); padding: clamp(16px, 2.3vw, 30px); display: flex; flex-direction: column; gap: .75rem; border-top: 3px solid var(--gold); scroll-snap-align: start; }
.review-author { display: flex; align-items: center; gap: .75rem; }
.review-author img { border-radius: 50%; flex: 0 0 46px; object-fit: cover; background: var(--line); }
.review-author a { color: var(--ink); font-size: .95rem; font-weight: 650; }
.review-author time { display: block; color: var(--muted); font-size: .84rem; }
.review blockquote { margin: 0; font: 400 clamp(1.4rem, 2.25vw, 1.9rem)/1.15 var(--serif); }
.review-controls { display: flex; gap: .5rem; justify-content: end; margin-top: .65rem; }
.review-controls button { width: 44px; height: 44px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font: 1.2rem var(--sans); cursor: pointer; }
.review-controls button:enabled:hover { border-color: var(--gold); color: var(--accent-text); }
.review-controls button:disabled { color: var(--muted); opacity: .55; cursor: default; }
.closing { align-items: end; }
.closing .eyebrow { margin-bottom: .9rem; color: #e5c779; }
.closing .button { margin-top: 1.25rem; }

.page-intro { padding-block: clamp(40px, 6vw, 82px); }
.page-intro .eyebrow { margin-bottom: 1.25rem; }
.page-intro h1 { max-width: 19ch; font-size: clamp(2.65rem, 6.1vw, 5.35rem); line-height: .96; text-wrap: balance; }
.about-intro-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 76px); align-items: center; }
.about-intro-copy > p:last-child { max-width: 36rem; color: var(--muted); font-size: clamp(1.07rem, 1.6vw, 1.3rem); margin-top: 1.65rem; }
.director-profile { border-top: 3px solid var(--gold); background: var(--surface); padding: clamp(20px, 3vw, 34px); scroll-margin-top: 1rem; }
.director-heading { display: flex; align-items: center; gap: clamp(14px, 2vw, 24px); }
.director-heading img { flex: none; width: clamp(84px, 9vw, 132px); height: auto; aspect-ratio: 1; }
.director-heading h2 { font-size: clamp(1.7rem, 3vw, 2.75rem); line-height: 1.02; }
.director-role { margin-top: .4rem; font-size: .85rem; font-weight: 600; color: var(--muted); }
.director-profile > p { margin-top: 1.1rem; color: var(--muted); }
.director-profile > a { margin-top: .8rem; }

.reading-width { max-width: 800px; }
.reading-width h1 { max-width: 22ch; font-size: clamp(2.9rem, 6.8vw, 5rem); }
.reading { padding-block: clamp(40px, 8vw, 80px); }
.reading h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 1.55em; }
.reading p { margin-top: 1em; }
.reading .button { margin-top: 2rem; }
.service-detail article { display: grid; grid-template-columns: .8fr 1fr; gap: 1.5rem 4rem; border-top: 1px solid var(--line); padding-block: 2.4rem; scroll-margin-top: 20px; }
.service-detail article h2 { font-size: clamp(2.1rem, 4.5vw, 3.75rem); }
.service-detail article p, .service-detail ul { color: var(--muted); }
.service-detail ul { padding-left: 1.3em; }
.service-detail li + li { margin-top: .4em; }
.service-detail .service-start { margin-top: 1rem; }
.pagination { margin-top: 2rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: .5rem .75rem;
    border: 1px solid var(--line);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}
.pagination a.page-numbers:hover { background: var(--paper); border-color: var(--gold); }
.pagination .current { background: var(--button-fill); border-color: var(--button-fill); color: var(--button-text); }
.pagination .dots { border-color: transparent; min-width: 2rem; padding-inline: .35rem; color: var(--muted); }

body:has(.contact-section) { background: var(--brand-surface); }
body:has(.contact-section) > main { background: var(--surface); }
.contact-section { padding-block: clamp(24px, 3vw, 34px); }
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1fr);
    grid-template-areas: "intro form" "details form";
    grid-template-rows: auto 1fr;
    column-gap: clamp(28px, 6vw, 88px);
    row-gap: clamp(22px, 3vw, 32px);
    align-items: start;
}
.contact-intro { grid-area: intro; }
.contact-intro .page-intro { padding: 0; background: transparent; }
.contact-intro .page-intro .shell { width: auto; }
.contact-intro h1 { font-size: clamp(2.65rem, 4.7vw, 4rem); line-height: 1; }
.contact-intro .page-intro .shell > p:last-child { margin-top: .85rem; font-size: clamp(1rem, 1.6vw, 1.16rem); }
.contact-details { grid-area: details; }
.contact-details h2 { font-size: clamp(1.85rem, 3vw, 2.65rem); }
.contact-details .gold-rule { margin-bottom: .8rem; }
.contact-details dl { display: grid; gap: .75rem; margin-block: .85rem 0; }
.form-panel h2 { font-size: clamp(2rem, 4vw, 3rem); }
.contact-details dt { font-weight: 600; }
.contact-details dd { margin: .25rem 0 0; color: var(--muted); overflow-wrap: anywhere; }
.contact-details .text-link { margin-top: .35rem; }
.contact-map { margin-top: clamp(24px, 3vw, 36px); }
.contact-map iframe { display: block; width: 100%; height: clamp(280px, 28vw, 340px); border: 0; background: var(--paper); }
.form-panel { grid-area: form; scroll-margin-top: 16px; background: var(--paper); padding: clamp(18px, 3vw, 27px); }
.form-panel form { margin-top: 1rem; display: grid; gap: .8rem; }
.form-panel label { font-size: .94rem; font-weight: 600; }
.form-panel input, .form-panel textarea, .form-panel select { width: 100%; display: block; background: var(--surface); border: 1px solid var(--field-border); padding: .65rem .75rem; font: inherit; font-weight: 400; color: var(--ink); margin-top: .3rem; border-radius: 0; min-width: 0; }
.form-panel textarea { resize: vertical; }
.form-panel button { justify-self: start; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.optional, .form-note { color: var(--muted); font-size: .8rem; font-weight: 400; }
.honey { display: none; }
.form-status { padding: .7rem .9rem; margin-top: 1rem; border-left: 3px solid currentColor; }
.success { background: var(--success-surface); color: var(--success-text); }
.failure { background: var(--error-surface); color: var(--error-text); }

.footer { padding: 3.15rem 0 1.25rem; border-top: 1px solid #51483b; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .65fr 1.1fr .55fr; gap: 1.5rem clamp(18px, 4vw, 56px); }
.footer h2 { font: 600 .95rem/1.3 var(--sans); letter-spacing: 0; margin-bottom: .6rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li + li { margin-top: .3rem; }
.footer li, .footer p { color: #ebdfcb; font-size: .92rem; overflow-wrap: anywhere; }
.footer p { margin-top: .8rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem 1.25rem; border-top: 1px solid #51483b; margin-top: 2.2rem; padding-top: 1rem; color: #ebdfcb; }

.footer-partner img { width: 90px; height: auto; }
.footer .social-links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.footer .social-links li { margin: 0; }
.footer .social-links a:hover { color: #ecca83; }

@media (max-width: 1080px) {
    :root { --shell-width: min(100% - 58px, 1280px); }
    .header-inner { gap: 18px; }
    .hero-copy { padding-right: 28px; }
    .hero-image { min-height: 500px; }
}
@media (max-width: 960px) {
    .header-inner { flex-wrap: wrap; min-height: 76px; gap: 12px; padding-block: 10px; }
    .header-button { display: none; }
    .navigation { width: 100%; }
    .navigation ul { display: flex; flex-wrap: wrap; align-items: start; gap: 0 22px; }
    .menu-enabled .navigation { display: none; }
    .menu-enabled.menu-open .navigation { display: block; }
}
@media (max-width: 840px) {
    .hero-grid { grid-template-columns: 1fr 1fr; }
    .hero-copy { padding-block: 55px; }
    .hero-image { min-height: 450px; }
    .insight-card :is(h2, h3) { font-size: 1.56rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .contact-section { padding-block: 20px; }
    .about-intro-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    :root { --shell-width: calc(100% - 36px); }
    .topline { font-size: .69rem; }
    .brand { gap: 8px; }
    .brand-mark { width: 56px; height: 56px; }
    .brand-name strong { font-size: 1.03rem; }
    .brand-name > span { font-size: .58rem; }
    .hero-grid, .services-summary, .story-grid, .insight-grid, .service-detail article, .closing, .footer-grid { grid-template-columns: 1fr; }
    .hero-copy { padding: 46px 0 34px; }
    .hero-copy .eyebrow { margin-bottom: 1.1rem; }
    .hero-copy h1 { font-size: min(clamp(3.15rem, 12.1vw, 4.6rem), 16.7cqi); }
    .hero-copy > p:not(.eyebrow) { margin-top: 1rem; }
    .hero-actions { margin-top: 1.45rem; gap: .9rem 1rem; }
    .hero-image { min-height: 285px; margin-inline: -18px; }
    .client-inner { grid-template-columns: 1fr; gap: .5rem; }
    .client-inner ul { justify-content: flex-start; gap: .35rem 1.2rem; }
    .section { padding-block: 50px; }
    .split-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "intro" "form" "details";
        grid-template-rows: auto;
    }
    .field-pair { grid-template-columns: 1fr; gap: .8rem; }
    .reviews-layout { grid-template-columns: minmax(0, 1fr); }
    .review-track { grid-auto-columns: min(100%, 22rem); }
}

@media (max-width: 365px) {
    .brand-mark { width: 49px; height: 49px; }
    .brand-name strong { font-size: .9rem; }
    .menu-toggle { padding-inline: .65rem; }
}

.contact-next { margin-top: .65rem; color: var(--muted); }
.practical-guides { padding-bottom: 0; }
.practical-guides-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(22px, 5vw, 68px);
    padding: 0;
    margin: 1.6rem 0 0;
    list-style: none;
}
.practical-guides-list li { border-bottom: 1px solid var(--line); }
.practical-guides-list a { display: block; padding-block: .75rem; text-decoration-color: var(--accent-line); }
.whatsapp-button {
    position: fixed;
    z-index: 5;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .65rem 1rem;
    background: #0b5f47;
    color: #fff;
    border: 1px solid #fff;
    border-radius: 100vw;
    font-size: .9rem;
    font-weight: 650;
    text-decoration: none;
}
.whatsapp-button:hover { background: #084736; }
@media (max-width: 640px) {
    .practical-guides-list { grid-template-columns: 1fr; }
    body:has(.whatsapp-button) .footer { padding-bottom: 70px; }
}
