:root {
    --ink: #2b1708;
    --ink-soft: #4a331f;
    --cream: #f7f2e8;
    --cream-light: #fbf8f1;
    --sand: #e9e1d1;
    --sand-card: #eee7d9;
    --gold: #c59a3a;
    --gold-soft: #d8bd78;
    --green: #3d4d2d;
    --white: #ffffff;
    --text: #3a342c;
    --muted: #70685f;
    --line: #d8cfbf;
    --shadow: 0 18px 45px rgba(43, 23, 8, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--cream-light);
    line-height: 1.65;
}
body.modal-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }

.container { width: min(1120px, calc(100% - 44px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--white); padding: 10px 14px; }
.skip-link:focus { left: 10px; top: 10px; }

.portfolio-notice { position: sticky; top: 0; z-index: 70; background: #f4ead8; border-bottom: 1px solid #ddc69f; color: #6d4c1b; font-size: .82rem; }
.portfolio-notice-inner { min-height: 34px; display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.portfolio-notice a { text-underline-offset: 2px; }

.site-header { position: relative; z-index: 50; background: rgba(247, 242, 232, .97); border-bottom: 1px solid rgba(43, 23, 8, .12); backdrop-filter: blur(12px); }
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { font-family: Georgia, 'Times New Roman', serif; font-size: 1.22rem; font-weight: 700; text-decoration: none; color: var(--ink); }
.desktop-nav { display: flex; align-items: center; gap: 26px; font-size: .9rem; }
.desktop-nav a, .mobile-nav a { text-decoration: none; color: #594f45; }
.desktop-nav a:hover, .desktop-nav a:focus-visible, .mobile-nav a:hover, .mobile-nav a:focus-visible { color: var(--ink); }
.nav-cta { background: var(--ink); color: var(--white) !important; padding: 11px 18px; }
.mobile-menu-btn { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; padding: 10px; }
.mobile-menu-btn span { display: block; height: 2px; background: var(--ink); margin: 5px 0; }
.mobile-nav { padding: 8px 22px 20px; background: var(--cream); }
.mobile-nav a { display: block; padding: 10px 0; }

h1, h2, h3 { font-family: Georgia, 'Times New Roman', serif; color: var(--ink); line-height: 1.08; margin-top: 0; }
h1 { font-size: clamp(2.55rem, 5.2vw, 4.55rem); margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 24px; }
h3 { font-size: 1.18rem; margin-bottom: 10px; }
p { margin-top: 0; }
.eyebrow { margin: 0 0 14px; color: #9a7b32; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; }
.eyebrow-light { color: var(--gold-soft); }

.hero { position: relative; min-height: 680px; display: grid; align-items: center; color: #efe8dc; background: #130d07 url('/assets/img/hero-books.webp') 78% center / cover no-repeat; overflow: hidden; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 10, 5, .96) 0%, rgba(22, 17, 9, .84) 38%, rgba(26, 22, 12, .62) 70%, rgba(17, 13, 7, .72) 100%); }
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 82% 45%, rgba(197,154,58,.14), transparent 26%), radial-gradient(circle at 16% 18%, rgba(197,154,58,.1), transparent 24%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .75fr); gap: 54px; align-items: center; padding-block: 110px; }
.hero-copy { max-width: 690px; }
.hero h1 { color: #f7f1e7; }
.hero .lead { max-width: 650px; color: #d7d0c3; font-size: 1.08rem; }
.hero-quote { margin: 0; padding: 28px 32px; border-left: 3px solid var(--gold); background: rgba(67, 61, 45, .58); backdrop-filter: blur(4px); }
.hero-quote p { font-family: Georgia, 'Times New Roman', serif; font-size: 1.14rem; font-style: italic; line-height: 1.55; }
.hero-quote cite { color: var(--gold-soft); font-size: .72rem; font-style: normal; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.button-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.button-row-start { justify-content: flex-start; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 20px; border: 1px solid transparent; border-radius: 0; text-decoration: none; font-size: .88rem; font-weight: 700; cursor: pointer; transition: .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-gold { background: var(--gold); color: var(--white); }
.button-outline-light { border-color: rgba(255,255,255,.45); color: var(--white); background: transparent; }
.button-dark { background: var(--ink); color: var(--white); }
.button-outline-dark { border-color: #a69a87; color: var(--ink); background: transparent; }
.full-width { width: 100%; }

.section { padding: 96px 0; }
.section-cream { background: var(--cream-light); }
.section-sand { background: var(--sand); }
.section-dark { background: var(--ink); color: #e6ddcf; }
.section-green { background: var(--green); color: #e9e9dd; }
.section-dark h2, .section-dark h3, .section-green h2, .section-green h3 { color: var(--white); }

.split-section, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.intro-grid { grid-template-columns: 1.08fr .92fr; }
.about-grid { grid-template-columns: .92fr 1.08fr; }
.issue-list { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 12px; }
.issue-list li { display: flex; align-items: center; gap: 18px; background: #efe8db; padding: 18px 20px; }
.issue-list span { color: #a7894d; font-family: Georgia, 'Times New Roman', serif; font-style: italic; }
.framed-image { position: relative; margin: 0; }
.framed-image::after { content: ''; position: absolute; right: -14px; bottom: -14px; width: 72px; height: 72px; border: 1px solid var(--gold-soft); z-index: 0; }
.framed-image img { position: relative; z-index: 1; width: 100%; object-fit: cover; box-shadow: var(--shadow); }
.framed-image-tall img { aspect-ratio: 4 / 5; }
.framed-image-wide img { aspect-ratio: 5 / 4; }

.section-intro { max-width: 760px; margin-bottom: 34px; color: #6d655b; }
.visual-section { padding-top: 76px; }
.visual-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.visual-card { margin: 0; background: #efe5d4; border: 1px solid rgba(43,23,8,.10); box-shadow: var(--shadow); }
.visual-card img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.visual-card figcaption { padding: 14px 16px 16px; color: var(--ink); font-size: .9rem; }
.framed-image figcaption { margin-top: 12px; color: var(--muted); font-size: .78rem; }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 42px; background: rgba(255,255,255,.45); border: 1px solid rgba(43,23,8,.12); }
.service-card { padding: 38px 34px; border-right: 1px solid rgba(43,23,8,.12); border-bottom: 1px solid rgba(43,23,8,.12); }
.service-card:nth-child(2n) { border-right: 0; }
.service-card:nth-last-child(-n+2) { border-bottom: 0; }
.roman { display: block; margin-bottom: 22px; color: #ac8d4d; font-family: Georgia, 'Times New Roman', serif; font-style: italic; }
.service-card p, .audience-card p { color: #6d655b; font-size: .94rem; }

.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 42px; }
.audience-card { min-height: 180px; padding: 28px; background: var(--sand-card); border: 1px solid rgba(43,23,8,.13); }
.audience-card > span { color: var(--gold); font-size: .7rem; }

.process-grid { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.process-grid li { padding: 8px 28px 12px; border-left: 1px solid rgba(255,255,255,.15); }
.process-grid li:last-child { border-right: 1px solid rgba(255,255,255,.15); }
.process-grid span { display: block; margin-bottom: 26px; color: var(--gold-soft); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.process-grid p { color: #bcb2a4; font-size: .9rem; }

.tick-list { list-style: none; padding: 22px 0 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.tick-list li { position: relative; padding: 7px 0 7px 24px; }
.tick-list li::before { content: '✓'; position: absolute; left: 0; color: var(--gold); }

.reason-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 42px; }
.reason-grid article { border-top: 1px solid rgba(255,255,255,.18); padding-top: 22px; }
.reason-grid span { color: var(--gold-soft); }
.reason-grid p { color: #d1d4c8; }

.cta-inner { max-width: 760px; margin-inline: auto; text-align: center; }
.cta-inner h2 { max-width: 720px; margin-inline: auto; }

.contact-grid { align-items: start; }
.contact-details { margin-top: 28px; }
.contact-details div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; margin-bottom: 18px; }
.contact-details dt { color: #a38345; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.contact-details dd { margin: 0; color: var(--ink); }
.demo-data { color: var(--muted); font-size: .83rem; }
.form-card { background: var(--sand); padding: 34px; }
.form-card form { display: grid; gap: 9px; }
.form-card label { margin-top: 8px; color: #7f6c4b; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; }
.form-card input, .form-card textarea { width: 100%; border: 1px solid #ddd4c6; border-radius: 0; padding: 13px 14px; background: var(--cream-light); color: var(--ink); }
.form-card input:focus, .form-card textarea:focus { outline: 2px solid rgba(197,154,58,.35); border-color: var(--gold); }

.whatsapp-button { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #69715d; color: var(--white); box-shadow: var(--shadow); cursor: pointer; }
.whatsapp-button:hover, .whatsapp-button:focus-visible { background: #4f5c43; transform: scale(1.05); }
.whatsapp-button svg { width: 30px; height: 30px; fill: currentColor; }

.site-footer { background: var(--ink); color: #cfc4b5; padding: 64px 0 30px; }
.site-footer h2 { color: var(--white); font-size: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .7fr .9fr; gap: 52px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 44px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.15); font-size: .82rem; }
.pd-credit { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.pd-credit:hover strong, .pd-credit:focus-visible strong { text-decoration: underline; }
.pd-credit img { width: 105px; border-radius: 6px; }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(24, 13, 5, .74); }
.modal-panel { position: relative; width: min(560px, 100%); max-height: 90vh; overflow: auto; background: var(--cream-light); padding: 34px; box-shadow: 0 30px 90px rgba(0,0,0,.45); }
.modal-panel ul { padding-left: 22px; }
.modal-close { position: absolute; right: 14px; top: 10px; border: 0; background: transparent; font-size: 2rem; cursor: pointer; }
.modal-action { margin-top: 12px; }

@media (max-width: 940px) {
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }
    .hero-inner, .split-section, .contact-grid { grid-template-columns: 1fr; }
    .hero-quote { max-width: 620px; }
    .audience-grid, .reason-grid, .visual-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 0; }
    .process-grid li:nth-child(3) { border-left: 1px solid rgba(255,255,255,.15); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
    .container { width: min(100% - 30px, 1120px); }
    .portfolio-notice-inner { display: block; padding: 8px 0; }
    .header-inner { min-height: 64px; }
    .hero { min-height: auto; }
    .hero-inner { padding-block: 78px; }
    .hero h1 { font-size: 2.55rem; }
    .section { padding: 70px 0; }
    .service-grid, .audience-grid, .process-grid, .reason-grid, .visual-grid { grid-template-columns: 1fr; }
    .service-card, .service-card:nth-child(2n), .service-card:nth-last-child(-n+2) { border-right: 0; border-bottom: 1px solid rgba(43,23,8,.12); }
    .service-card:last-child { border-bottom: 0; }
    .process-grid li, .process-grid li:last-child { border-right: 0; border-left: 1px solid rgba(255,255,255,.15); }
    .footer-grid, .footer-bottom { grid-template-columns: 1fr; display: grid; }
    .pd-credit { align-items: flex-start; }
}
