/* ==========================================================================
   The Write Publishers — "Publishing House" theme
   One stylesheet for the whole main site (header, footer, home sections,
   service pages, contact, testimonials, legal pages). Content/markup text is
   untouched; this file only controls presentation. Photography is painted
   with CSS backgrounds so no copy, links or alt text change.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
    --navy-950: #081322;
    --navy-900: #0c1c33;
    --navy-800: #132a47;
    --navy-700: #1e3a5f;
    --navy-100: #e6ebf2;
    --gold-700: #8a6430;
    --gold-600: #a57a3f;
    --gold-500: #bf9458;
    --gold-400: #d3b07a;
    --gold-300: #e3c99e;
    --gold-100: #f4ead7;
    --gold-50: #faf4e8;
    --burgundy: #842f2f;

    --paper: #faf7f1;
    --paper-2: #f3ece0;
    --white: #ffffff;
    --line: #e8e0d1;
    --line-2: #d9ccb4;
    --ink: #0c1c33;
    --text: #3e4553;
    --muted: #555b68;
    --on-dark: #f6f1e7;
    --on-dark-muted: rgba(246, 241, 231, .84);
    --line-dark: rgba(211, 176, 122, .22);

    --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
    --font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --radius-sm: 2px;
    --radius: 4px;
    --radius-lg: 6px;
    --shadow-sm: 0 1px 2px rgba(12, 28, 51, .05), 0 4px 14px -6px rgba(12, 28, 51, .08);
    --shadow: 0 18px 40px -22px rgba(12, 28, 51, .35);
    --shadow-lg: 0 40px 80px -40px rgba(12, 28, 51, .5);
    --book-shadow: 0 1px 1px rgba(12, 28, 51, .08), 0 12px 20px -10px rgba(12, 28, 51, .45), 0 34px 56px -28px rgba(12, 28, 51, .55);
    --book-radius: 2px 5px 5px 2px;
    /* Hardcover spine: a dark crease and a highlight along the left edge */
    --spine: linear-gradient(90deg, rgba(0, 0, 0, .32) 0%, rgba(0, 0, 0, .08) 1.8%, rgba(255, 255, 255, .24) 2.8%, rgba(255, 255, 255, 0) 6%, rgba(0, 0, 0, 0) 93%, rgba(0, 0, 0, .1) 100%);

    --gold-rule: linear-gradient(90deg, transparent, var(--gold-500) 20%, var(--gold-400) 50%, var(--gold-500) 80%, transparent);
    --ornament: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='14' viewBox='0 0 132 14'%3E%3Cpath d='M0 7h52M80 7h52' stroke='%23bf9458' stroke-width='1'/%3E%3Cpath d='M66 1.5l5.5 5.5-5.5 5.5-5.5-5.5z' fill='%23bf9458'/%3E%3Ccircle cx='56' cy='7' r='1.6' fill='%23bf9458'/%3E%3Ccircle cx='76' cy='7' r='1.6' fill='%23bf9458'/%3E%3C/svg%3E");
    --grain: url(../img/paper-grain.webp);
    --dark-overlay: linear-gradient(180deg, rgba(8, 19, 34, .9) 0%, rgba(8, 19, 34, .86) 100%);

    --ease-out: cubic-bezier(.2, .75, .2, 1);
    --section-y: clamp(4.5rem, 8vw, 7rem);

    /* Legacy variables referenced by inline styles in the markup */
    --teal-color: var(--gold-700);
    --dark-text: var(--ink);
    --primary-red: var(--navy-900);
    --primary-green: var(--gold-600);
    --light-text: #ffffff;
    --muted-text: var(--on-dark-muted);
    --main-text: var(--ink);
    --link-text: var(--muted);
    --dark-bg: var(--navy-950);
    --shadow-color: rgba(12, 28, 51, .3);
    --text-white: #ffffff;

    /* Bootstrap hooks */
    --bs-body-font-family: var(--font-sans);
    --bs-body-color: var(--text);
    --bs-body-font-size: 1.0625rem;
    --bs-body-line-height: 1.7;
    --bs-secondary-rgb: 85, 91, 104;
    --bs-secondary-color: var(--muted);
    --bs-dark-rgb: 12, 28, 51;
    --bs-light-rgb: 250, 247, 241;
    --bs-danger-rgb: 138, 100, 48;
    --bs-link-color: var(--navy-700);
    --bs-link-color-rgb: 30, 58, 95;
    --bs-link-hover-color: var(--gold-700);
    --bs-link-hover-color-rgb: 138, 100, 48;
    --bs-border-radius: 4px;
}

/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--grain), var(--paper);
    font-size: 1.0625rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: clip;
    min-height: 100vh;
}

::selection { background: var(--gold-300); color: var(--navy-950); }

a { color: var(--navy-700); text-underline-offset: 3px; transition: color .25s ease; }
a:hover { color: var(--gold-700); }

h1, h2, .h1, .h2, .display-6 {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.15;
    color: var(--ink);
}
h3, h4, h5, h6, .h3, .h4, .h5 { font-family: var(--font-sans); letter-spacing: -.005em; color: var(--ink); }
.accordion-header { font-family: var(--font-sans); letter-spacing: 0; }

img { max-width: 100%; }

:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; }

.text-secondary { line-height: 1.75; }
.small, small { font-size: .9375em; }

/* Inline link colours written into the copy (#318d78) */
a[style*="#318d78"] {
    color: var(--navy-700) !important;
    font-weight: 600;
    text-decoration: none;
    background-image: linear-gradient(var(--gold-400), var(--gold-400));
    background-size: 100% 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .35s var(--ease-out), color .25s ease;
}
a[style*="#318d78"]:hover { color: var(--gold-700) !important; background-size: 100% 2px; }

/* Section spacing */
section.py-5,
body > div.py-5 { padding-top: var(--section-y) !important; padding-bottom: var(--section-y) !important; }
/* Its .row.g-5 gutters are wider than the container padding on phones, and the timeline slides in from the side */
section.py-5,
body > div.py-5 { overflow-x: clip; }

/* Centred section titles get a gold ornament */
.gallery-heading::after,
.dark-section .section-heading::after,
.custom-heading-2.text-center::after,
.contact-form-section h2::after,
.display-6::after,
.marketing-cta-section h2::after {
    content: "";
    display: block;
    width: 132px;
    height: 14px;
    margin: 1.2rem auto 0;
    background: var(--ornament) center / contain no-repeat;
    transition: transform 1s var(--ease-out) .25s, opacity 1s ease .25s;
}
.js :is(.gallery-heading, .dark-section .section-heading, .custom-heading-2.text-center, .contact-form-section h2, .display-6, .marketing-cta-section h2)[data-reveal]::after { transform: scaleX(.2); opacity: 0; }
.js :is(.gallery-heading, .dark-section .section-heading, .custom-heading-2.text-center, .contact-form-section h2, .display-6, .marketing-cta-section h2)[data-reveal].is-visible::after { transform: none; opacity: 1; }

/* Small-caps eyebrow labels */
.hero-tagline,
.marketing-cta-section h4,
.category-grid > p,
p.text-uppercase.fw-bold[style*="teal-color"],
#serviceModal .modal-title {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    font-family: var(--font-sans);
    font-size: .84rem !important;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-700) !important;
}

/* ---------- 3. Navbar ---------- */
.navbar-custom {
    background: rgba(250, 247, 241, .98) !important;
    border-bottom: 1px solid var(--line);
    padding: .8rem 0;
    transition: padding .35s var(--ease-out), background-color .35s ease, box-shadow .35s ease;
    z-index: 1030;
}
.navbar-custom::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--navy-900) 0%, var(--navy-900) 30%, var(--gold-500) 30%, var(--gold-400) 70%, var(--navy-900) 70%);
}
.navbar-custom.is-scrolled {
    background: rgba(255, 255, 255, .96) !important;
    padding: .45rem 0;
    box-shadow: 0 14px 30px -24px rgba(12, 28, 51, .55);
}
.navbar-custom .navbar-brand img {
    width: 150px;
    height: auto;
    transition: transform .35s var(--ease-out);
}
.navbar-custom.is-scrolled .navbar-brand img { transform: scale(.9); }

.navbar-custom .nav-link {
    position: relative;
    color: var(--navy-900) !important;
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin: 0 .2rem;
    padding: .6rem .85rem !important;
    transition: color .25s ease;
}
.navbar-custom .nav-link::before {
    content: "";
    position: absolute;
    left: .85rem;
    right: .85rem;
    bottom: .3rem;
    height: 1px;
    background: var(--gold-500);
    transform: scaleX(0);
    transition: transform .35s var(--ease-out);
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.show { color: var(--gold-700) !important; }
.navbar-custom .nav-link:hover::before,
.navbar-custom .nav-link.show::before { transform: none; }
.navbar-custom .dropdown-toggle::after { vertical-align: .2em; border-top-width: .28em; transition: transform .3s ease; }
.navbar-custom .dropdown-toggle.show::after { transform: rotate(180deg); }

.navbar-custom .dropdown-menu {
    background: #fff;
    border: 1px solid var(--line);
    border-top: 2px solid var(--gold-500);
    border-radius: var(--radius);
    padding: .7rem;
    box-shadow: var(--shadow-lg);
    margin-top: .8rem !important;
}
.navbar-custom .dropdown-menu.show { animation: dropIn .3s var(--ease-out) both; }
.navbar-custom .dropdown-item {
    position: relative;
    color: var(--text) !important;
    border-radius: var(--radius-sm);
    padding: .55rem .9rem .55rem 1.1rem;
    font-size: 1rem;
    font-weight: 500;
    transition: background-color .2s ease, color .2s ease, padding .25s var(--ease-out);
}
.navbar-custom .dropdown-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 2px;
    height: 0;
    background: var(--gold-500);
    transform: translateY(-50%);
    transition: height .25s var(--ease-out);
}
.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:focus { background: var(--paper); color: var(--navy-900) !important; padding-left: 1.35rem; }
.navbar-custom .dropdown-item:hover::before,
.navbar-custom .dropdown-item:focus::before { height: 60%; }
@media (min-width: 992px) {
    .navbar-custom .dropdown-menu { columns: 2; column-gap: .4rem; min-width: 470px; }
    .navbar-custom .dropdown-menu li { break-inside: avoid; }
}

.navbar-custom .top-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--navy-900);
    padding: .55rem .9rem;
    border-radius: var(--radius);
    font-size: .94rem;
    font-weight: 600;
    text-decoration: none;
    margin-left: .4rem;
    white-space: nowrap;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.navbar-custom .top-cta i { margin: 0; color: var(--gold-600); transition: color .25s ease; }
.navbar-custom .top-cta:hover { color: var(--gold-700); }
.navbar-custom .top-cta[href^="tel"] {
    color: var(--on-dark);
    background: var(--navy-900);
    border: 1px solid var(--navy-900);
    padding: .6rem 1.1rem;
}
.navbar-custom .top-cta[href^="tel"] i { color: var(--gold-400); }
.navbar-custom .top-cta[href^="tel"]:hover { color: var(--navy-950); background: var(--gold-400); border-color: var(--gold-400); }
.navbar-custom .top-cta[href^="tel"]:hover i { color: var(--navy-950); }

.navbar-custom .navbar-toggler {
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    padding: .45rem .6rem;
    background: #fff;
}
.navbar-custom .navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(191, 148, 88, .3); }
.navbar-custom .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230c1c33' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M5 8h20M5 15h20M5 22h20'/%3e%3c/svg%3e");
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .navbar-custom .nav-link { padding: .6rem .55rem !important; letter-spacing: .05em; }
    .navbar-custom .nav-link::before { left: .55rem; right: .55rem; }
    .navbar-custom .top-cta { font-size: .86rem; padding: .45rem .6rem; margin-left: .25rem; }
    /* Email shows as its icon here so the five menu links and the phone button fit on one line */
    .navbar-custom .top-cta[href^="mailto"] { font-size: 0; gap: 0; padding: .45rem; }
    .navbar-custom .top-cta[href^="mailto"] i { font-size: 1.05rem; }
}
@media (max-width: 991.98px) {
    .navbar-custom .navbar-collapse {
        margin-top: .8rem;
        padding: .8rem;
        border-radius: var(--radius);
        background: #fff;
        border: 1px solid var(--line);
        border-top: 2px solid var(--gold-500);
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }
    .navbar-custom .nav-link::before { display: none; }
    .navbar-custom .dropdown-menu { background: var(--paper); border: 0; box-shadow: none; }
    .navbar-custom .navbar-nav-ctas { flex-direction: column !important; align-items: stretch !important; gap: .5rem; margin-top: .75rem; }
    .navbar-custom .top-cta { margin: 0; justify-content: center; padding: .75rem 1rem; border: 1px solid var(--line); }
}
@media (max-width: 575.98px) {
    .navbar-custom .navbar-brand img { width: 128px; }
}

/* Scroll progress bar (injected by theme.js) */
.scroll-progress {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 3px;
    z-index: 2000;
    background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none;
}

/* ---------- 4. Buttons ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }

.btn-get-quote,
.btn-live-chat,
.btn-phone-custom,
.btn-submit,
.btn-submit-form,
.btn-read-story,
.cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 52px;
    padding: .85rem 1.8rem;
    border-radius: var(--radius) !important;
    font-family: var(--font-sans);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1.2;
    text-decoration: none;
    transition: color .35s ease, border-color .35s ease, background-size .45s var(--ease-out), box-shadow .35s ease, transform .35s var(--ease-out);
}

/* Primary: navy, filled with gold from the left on hover */
.btn-get-quote,
.btn-submit,
.btn-submit-form,
.btn-read-story,
.cta-link {
    color: var(--on-dark) !important;
    border: 1px solid var(--navy-900) !important;
    background:
        linear-gradient(var(--gold-400), var(--gold-400)) no-repeat 0 0 / 0 100%,
        var(--navy-900) !important;
    box-shadow: 0 14px 28px -16px rgba(12, 28, 51, .7);
}
.btn-get-quote::after,
.btn-submit::after,
.btn-submit-form::after,
.btn-read-story::after,
.cta-link::after {
    content: "\f178";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .95em;
    letter-spacing: 0;
    transition: transform .35s var(--ease-out);
}
.btn-submit-form { width: 100%; }
.btn-get-quote:hover,
.btn-submit:hover,
.btn-submit-form:hover,
.btn-read-story:hover,
.cta-link:hover {
    color: var(--navy-950) !important;
    border-color: var(--gold-400) !important;
    background-size: 100% 100%, auto !important;
    box-shadow: 0 18px 34px -16px rgba(165, 122, 63, .7);
    transform: translateY(-2px);
    opacity: 1;
}
.btn-get-quote:hover::after,
.btn-submit:hover::after,
.btn-submit-form:hover::after,
.btn-read-story:hover::after,
.cta-link:hover::after { transform: translateX(5px); }

/* Secondary & tertiary: outlined */
.btn-live-chat,
.btn-phone-custom {
    color: var(--navy-900) !important;
    border: 1px solid var(--navy-900) !important;
    background: linear-gradient(var(--navy-900), var(--navy-900)) no-repeat 0 0 / 0 100%, transparent !important;
}
.btn-live-chat::before,
.btn-phone-custom::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.05em;
    letter-spacing: 0;
    color: var(--gold-600);
    transition: color .35s ease;
}
.btn-live-chat::before { content: "\f086"; }
.btn-phone-custom::before { content: "\f095"; font-size: .95em; }
.btn-live-chat:hover,
.btn-phone-custom:hover {
    color: var(--on-dark) !important;
    background-size: 100% 100%, auto !important;
    transform: translateY(-2px);
}
.btn-live-chat:hover::before,
.btn-phone-custom:hover::before { color: var(--gold-400); }
.btn-custom { box-shadow: none; }

/* On dark photographic bands: gold primary, ivory outlines */
.hero-section .btn-get-quote,
.cta-container .btn-get-quote,
.marketing-cta-section .btn-get-quote,
.dark-section .cta-link {
    color: var(--navy-950) !important;
    border-color: var(--gold-400) !important;
    background:
        linear-gradient(var(--on-dark), var(--on-dark)) no-repeat 0 0 / 0 100%,
        linear-gradient(135deg, var(--gold-300), var(--gold-500)) !important;
    box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .6);
}
.hero-section .btn-get-quote:hover,
.cta-container .btn-get-quote:hover,
.marketing-cta-section .btn-get-quote:hover,
.dark-section .cta-link:hover { color: var(--navy-950) !important; border-color: var(--on-dark) !important; }
.hero-section .btn-live-chat,
.cta-container .btn-live-chat,
.marketing-cta-section .btn-live-chat,
.cta-container .btn-phone-custom,
.marketing-cta-section .btn-phone-custom {
    color: var(--on-dark) !important;
    border-color: rgba(246, 241, 231, .5) !important;
    background: linear-gradient(var(--on-dark), var(--on-dark)) no-repeat 0 0 / 0 100%, transparent !important;
}
.hero-section .btn-live-chat::before,
.cta-container .btn-live-chat::before,
.marketing-cta-section .btn-live-chat::before,
.cta-container .btn-phone-custom::before,
.marketing-cta-section .btn-phone-custom::before { color: var(--gold-400); }
.hero-section .btn-live-chat:hover,
.cta-container .btn-live-chat:hover,
.marketing-cta-section .btn-live-chat:hover,
.cta-container .btn-phone-custom:hover,
.marketing-cta-section .btn-phone-custom:hover { color: var(--navy-950) !important; border-color: var(--on-dark) !important; background-size: 100% 100%, auto !important; }
.hero-section .btn-live-chat:hover::before,
.cta-container .btn-live-chat:hover::before,
.marketing-cta-section .btn-live-chat:hover::before,
.cta-container .btn-phone-custom:hover::before,
.marketing-cta-section .btn-phone-custom:hover::before { color: var(--gold-700); }

/* Button groups: consistent spacing */
.button-group,
.hero-section .d-flex.flex-column.flex-sm-row { gap: .9rem; flex-wrap: wrap; }
.button-group > *,
.hero-section .d-flex.flex-column.flex-sm-row > * { margin: 0 !important; }

/* ---------- 5. Hero ---------- */
.hero-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--on-dark-muted);
    background: var(--navy-950);
    padding: clamp(4.5rem, 9vw, 7.5rem) 0 clamp(5rem, 9vw, 7.5rem);
}
/* The old photo/animation layers are replaced by the study photograph */
.hero-section[style*="background-image"] { background-image: none !important; }
.hero-section picture,
#bg-animation-img,
#bg-animation { display: none !important; }
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(8, 19, 34, .97) 0%, rgba(8, 19, 34, .9) 38%, rgba(8, 19, 34, .55) 68%, rgba(8, 19, 34, .45) 100%),
        url(../img/bg-study.webp) right center / cover no-repeat;
}
.hero-section::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    z-index: -1;
    height: 1px;
    background: var(--gold-rule);
    opacity: .7;
}

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

.hero-tagline { margin-bottom: 1.6rem; color: var(--gold-400) !important; }
.hero-tagline::before {
    content: "";
    width: 42px;
    height: 1px;
    background: var(--gold-400);
    transform-origin: left;
    animation: ruleIn 1.2s var(--ease-out) .3s both;
}

.hero-heading {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 4.8vw, 4.25rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.015em;
    margin-bottom: 1.6rem;
    color: var(--on-dark);
    text-wrap: balance;
}
.hero-section[style] .hero-heading { font-size: clamp(2.2rem, 3.9vw, 3.5rem); }

.hero-text {
    color: var(--on-dark-muted);
    font-size: clamp(1.08rem, 1.2vw, 1.18rem);
    line-height: 1.75;
    max-width: 620px;
    margin-bottom: 1.3rem;
}
.hero-text:last-of-type { margin-bottom: 2.4rem; }
.hero-text b { color: var(--on-dark); font-weight: 600; }
.hero-text a[style*="#318d78"] { color: var(--gold-300) !important; background-image: linear-gradient(rgba(227, 201, 158, .5), rgba(227, 201, 158, .5)); }
.hero-text a[style*="#318d78"]:hover { color: #fff !important; }

.trust-logos {
    display: inline-flex;
    align-items: center;
    gap: 1.4rem;
    margin-top: 2.8rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line-dark);
}
.trust-logos > span {
    margin: 0 !important;
    padding-right: 1.4rem;
    border-right: 1px solid var(--line-dark);
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--on-dark);
}
.trust-stars { margin: 0; font-size: .95rem; line-height: 1.4; color: var(--gold-400); }
.trust-stars span { margin: 0 !important; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark) !important; }
.trust-stars br { display: block; }
.trust-stars i { margin-right: 2px; }

/* Hero entrance */
.hero-content-container .hero-tagline,
.hero-content-container .hero-heading,
.hero-content-container .hero-text,
.hero-content-container .d-flex.flex-column.flex-sm-row,
.hero-content-container .trust-logos { animation: heroIn 1s var(--ease-out) both; }
.hero-content-container .hero-heading { animation-delay: .1s; }
.hero-content-container .hero-text { animation-delay: .22s; }
.hero-content-container .hero-text + .hero-text { animation-delay: .28s; }
.hero-content-container .d-flex.flex-column.flex-sm-row { animation-delay: .36s; }
.hero-content-container .trust-logos { animation-delay: .46s; }
.hero-content-container .signup-card { animation: cardIn 1.1s var(--ease-out) .3s both; }

/* ---------- 6. Signup card ---------- */
.signup-card {
    position: relative;
    z-index: 1;
    color: var(--ink);
    padding: 2.6rem 2.2rem 2.2rem;
    border-radius: var(--radius);
    background: var(--grain), var(--paper);
    border-top: 3px solid var(--gold-500);
    box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(211, 176, 122, .25);
}
/* Inner hairline frame, like a bookplate */
.signup-card::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid var(--line);
    pointer-events: none;
}
.signup-card h2 {
    position: relative;
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 2.4vw, 2.25rem);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .7rem !important;
}
.signup-card h2 .text-danger,
.custom-heading span[style],
.custom-heading-2 span[style] {
    color: var(--gold-700) !important;
}
.signup-card > p.text-muted {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin: 0 auto 1.6rem;
    color: var(--burgundy) !important;
    font-size: .84rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.signup-card > p.text-muted::before,
.signup-card > p.text-muted::after { content: ""; width: 28px; height: 1px; background: var(--gold-500); }
.signup-card form { position: relative; }
.signup-card .form-control { margin-bottom: .8rem; background: #fff; }
.signup-card .input-group { margin-bottom: 1.3rem !important; }
.signup-card .input-group > .form-control { border-radius: var(--radius) !important; margin-bottom: 0; }
.signup-card .input-group-text { display: none; }

/* ---------- 7. Forms ---------- */
.form-control {
    min-height: 52px;
    border-radius: var(--radius);
    border: 1px solid var(--line-2);
    background-color: #fff;
    color: var(--ink);
    padding: .75rem 1rem;
    font-size: 1rem;
    transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
}
.form-control:hover { border-color: var(--gold-400); }
.form-control:focus {
    border-color: var(--gold-500);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(191, 148, 88, .16);
    color: var(--ink);
}
.form-control::placeholder { color: #767b86; font-style: normal; opacity: 1; }
textarea.form-control { min-height: 130px; height: auto; resize: vertical; }
.form-group { margin-bottom: 1.1rem; }
.form-label { color: var(--ink); font-weight: 600; font-size: .95rem; }
.form-check-input { width: 1.15em; height: 1.15em; border: 1px solid var(--line-2); }
.form-check-input:checked { background-color: var(--navy-900); border-color: var(--navy-900); }
.form-check-input:focus { box-shadow: 0 0 0 4px rgba(191, 148, 88, .2); border-color: var(--gold-500); }

/* ---------- 8. Shared headings & framed books ---------- */
.custom-heading,
.custom-heading-2,
.gallery-heading,
.contact-form-section h2,
.write-section h2,
#feature-section h2,
.dark-section .section-heading,
.why-choose-section .section-heading {
    font-family: var(--font-serif);
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.15;
    color: var(--ink);
    text-wrap: balance;
}
.custom-heading { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-bottom: 1.2rem; }
.custom-heading-2 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); }
.write-section h2,
#feature-section h2 { font-size: clamp(2rem, 3.6vw, 3rem); }

/* Round gold icons shared by the lists below */
.write-section .feature-points li i,
.feature-list .list-item i,
section.py-5 .list-unstyled li i {
    flex: none;
    display: inline-grid;
    place-items: center;
    margin: 0 !important;
    border-radius: 50%;
    color: var(--gold-700) !important;
    background: var(--gold-50);
    border: 1px solid var(--gold-300);
    transition: background-color .35s ease, color .35s ease, border-color .35s ease, transform .5s var(--ease-out);
}
.write-section .feature-points li:hover i,
.feature-list .list-item:hover i,
section.py-5 .list-unstyled li:hover i {
    color: var(--gold-300) !important;
    background: var(--navy-900);
    border-color: var(--navy-900);
    transform: rotateY(180deg);
}

/* Featured books sit in front of a navy board with a gold hairline frame */
.write-section .image-order,
#feature-section .col-md-5 > .d-flex,
section.py-5 .col-lg-6.d-flex {
    --fw: 290px;
    position: relative;
    isolation: isolate;
    min-height: calc(var(--fw) * 1.5 + 80px);
}
#feature-section .col-md-5 > .d-flex { --fw: 260px; padding: 0; align-items: center; }
.write-section .image-order::before,
#feature-section .col-md-5 > .d-flex::before,
section.py-5 .col-lg-6.d-flex::before,
.write-section .image-order::after,
#feature-section .col-md-5 > .d-flex::after,
section.py-5 .col-lg-6.d-flex::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: -1;
    width: var(--fw);
    height: calc(var(--fw) * 1.5);
    pointer-events: none;
}
.write-section .image-order::before,
#feature-section .col-md-5 > .d-flex::before,
section.py-5 .col-lg-6.d-flex::before {
    translate: calc(-50% + 26px) calc(-50% + 26px);
    background:
        repeating-linear-gradient(135deg, rgba(211, 176, 122, .07) 0 1px, transparent 1px 9px),
        var(--navy-900);
    border-radius: var(--radius-sm);
}
.write-section .image-order::after,
#feature-section .col-md-5 > .d-flex::after,
section.py-5 .col-lg-6.d-flex::after {
    translate: calc(-50% - 18px) calc(-50% - 18px);
    border: 1px solid var(--gold-500);
}
.write-section .book-image-right,
#feature-section .book-cover,
.book-cover-left {
    position: relative;
    left: 0;
    z-index: 1;
    width: 100%;
    border-radius: var(--book-radius) !important;
    box-shadow: var(--book-shadow) !important;
}
.write-section .book-image-right,
.book-cover-left { max-width: 290px !important; }
#feature-section .book-cover { max-width: 260px; }
section.py-5 .col-lg-6.d-flex img { margin-right: 0 !important; }

/* ---------- 9. Home: "Are You Struggling" ---------- */
.write-section {
    position: relative;
    padding: var(--section-y) 0;
    background: #fff !important;
}
.write-section p.text-secondary { font-size: 1.12rem; }
.write-section .feature-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
    border-top: 1px solid var(--line);
}
.write-section .feature-points li {
    width: auto;
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .95rem 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-weight: 600;
    font-size: 1.02rem;
    text-align: left;
}
.write-section .feature-points li i { width: 38px; height: 38px; font-size: .9rem; }
@media (max-width: 575.98px) {
    .write-section .feature-points { grid-template-columns: 1fr; }
}
@media (min-width: 992px) {
    .write-section .text-content-order .d-flex.gap-3 { justify-content: flex-start !important; }
}
@media (max-width: 991.98px) {
    .write-section .text-content-order { order: 2; }
    .write-section .image-order { order: 1; margin-bottom: 3rem; }
}

/* ---------- 10. Home: "The Complete Book Solution" + services ---------- */
#feature-section {
    position: relative;
    color: var(--text);
    background: var(--grain), var(--paper) !important;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
#feature-section > .container { position: relative; padding-top: 0 !important; padding-bottom: 0 !important; }
#feature-section > .container > .row:first-child { margin-bottom: 4rem !important; padding-bottom: 0 !important; }
#feature-section h2 { color: var(--ink) !important; }
#feature-section p.text-white { color: var(--text) !important; }
#feature-section p[style*="bold"] { color: var(--ink) !important; }
#feature-section .lead { font-size: 1.14rem; line-height: 1.75; opacity: 1 !important; }

.feature-list .list-item {
    display: flex;
    align-items: center !important;
    gap: .8rem;
    margin-bottom: .9rem;
    color: var(--ink) !important;
    font-weight: 600;
    text-align: left;
}
.feature-list .list-item i { width: 34px; height: 34px; font-size: .8rem; }

/* Service cards: an even row of four, numbered like chapters */
#feature-section > .container > .row:last-child { counter-reset: chapter; }
#feature-section > .container > .row:last-child > [class*="col-"] { margin-bottom: 1.5rem; }
.service-card-light {
    position: relative;
    height: 100%;
    margin: 0;
    padding: 2.4rem 1.7rem 2rem;
    border-radius: var(--radius);
    text-align: left;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    counter-increment: chapter;
    transition: transform .45s var(--ease-out), border-color .45s ease, box-shadow .45s ease;
}
.service-card-light::before {
    content: "";
    position: absolute;
    top: -1px; left: -1px; right: -1px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .5s var(--ease-out);
}
.service-card-light::after {
    content: counter(chapter, decimal-leading-zero);
    position: absolute;
    top: 1.5rem;
    right: 1.6rem;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--gold-300);
    line-height: 1;
}
.service-card-light:hover { transform: translateY(-6px); border-color: var(--gold-300); box-shadow: var(--shadow); }
.service-card-light:hover::before { transform: none; }
.service-card-light .icon-light {
    width: 54px;
    height: 54px;
    display: inline-grid;
    place-items: center;
    margin-bottom: 1.4rem;
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--gold-700) !important;
    background: var(--gold-50);
    border: 1px solid var(--gold-300);
    transition: background-color .4s ease, color .4s ease, border-color .4s ease;
}
.service-card-light:hover .icon-light { color: var(--gold-300) !important; background: var(--navy-900); border-color: var(--navy-900); }
.service-card-light h3 {
    color: var(--ink) !important;
    font-family: var(--font-serif);
    font-size: 1.28rem !important;
    font-weight: 600 !important;
    line-height: 1.3;
    margin-bottom: .75rem !important;
}
.service-card-light p { margin: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.7; }
.service-card-light p b { color: var(--ink); font-weight: 600; }

@media (max-width: 767.98px) {
    #feature-section .col-md-5 > .d-flex { --fw: 220px; margin-bottom: 1rem; }
}

/* ---------- 11. Home: "All-in-One" (book + list) ---------- */
section.py-5 .list-unstyled li {
    position: relative;
    min-height: 40px;
    padding: .6rem 0 .6rem 54px;
    margin-bottom: .3rem !important;
    font-weight: 600;
    line-height: 1.45;
    color: var(--ink);
}
section.py-5 .list-unstyled li i {
    position: absolute;
    left: 0;
    top: 50%;
    width: 38px;
    height: 38px;
    margin: -19px 0 0 !important;
    font-size: .85rem;
}
@media (max-width: 575.98px) {
    .write-section .image-order,
    section.py-5 .col-lg-6.d-flex { --fw: 240px; }
    .write-section .book-image-right,
    .book-cover-left { max-width: 240px !important; }
}

/* ---------- 12. Industries (navy index table) ---------- */
.dark-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    color: var(--on-dark-muted);
    padding: var(--section-y) 0;
    background:
        radial-gradient(60% 80% at 50% 0%, rgba(30, 58, 95, .55) 0%, transparent 70%),
        var(--navy-950);
}
.dark-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: repeating-linear-gradient(90deg, rgba(211, 176, 122, .035) 0 1px, transparent 1px 96px);
    pointer-events: none;
}
.dark-section > .container { position: relative; }
.dark-section .section-heading { color: var(--on-dark) !important; font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 1.2rem; }
.dark-section .section-description {
    color: var(--on-dark-muted) !important;
    font-size: 1.12rem;
    max-width: 680px;
    margin: 0 auto 3rem;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    max-width: 1080px;
    padding: 0;
    background: var(--line-dark);
    border: 1px solid var(--line-dark);
    border-radius: 0;
    overflow: hidden;
}
.category-grid > p {
    grid-column: 1 / -1;
    justify-content: center;
    margin: 0;
    padding: 1.1rem 1rem;
    background: var(--navy-900);
    color: var(--gold-400) !important;
}
.category-grid > p::before,
.category-grid > p::after { content: ""; width: 36px; height: 1px; background: var(--gold-500); }
.category-grid .row,
.category-grid .row > div { display: contents; }
.category-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: .85rem;
    min-height: 74px;
    padding: 1rem 1.3rem;
    background: var(--navy-950);
    color: var(--on-dark);
    font-size: 1.02rem;
    font-weight: 500;
    text-align: left;
    cursor: default;
    transition: background-color .35s ease, color .35s ease;
}
.category-item::before {
    content: "\f02d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    flex: none;
    font-size: .85rem;
    color: var(--gold-500);
    transition: transform .45s var(--ease-out);
}
.category-item:hover { background: var(--navy-800); color: var(--gold-300); }
.category-item:hover::before { transform: rotate(-12deg) scale(1.15); }
.dark-section .cta-heading {
    font-family: var(--font-serif);
    font-size: clamp(1.35rem, 2.1vw, 1.75rem);
    font-weight: 600;
    color: var(--on-dark);
    margin: 3.4rem 0 1.4rem;
}
@media (max-width: 991.98px) {
    .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-item { min-height: 64px; padding: .85rem 1rem; font-size: .95rem; }
}

/* ---------- 13. Published work (books on shelves) ---------- */
.gallery-section {
    position: relative;
    padding: var(--section-y) 0;
    text-align: center;
    background: var(--grain), var(--paper);
}
.gallery-heading { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 1rem; }
.gallery-description { font-size: 1.12rem; color: var(--muted); max-width: 680px; margin: 0 auto 3.5rem; line-height: 1.75; }
.book-gallery-grid {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    --gap-x: 34px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 64px var(--gap-x);
    max-width: 960px;
    margin: 0 auto;
    padding: 0 var(--gap-x) 14px;
}
.book-gallery-grid > .book-cover-item {
    position: relative;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    cursor: pointer;
}
/* Each book carries its own piece of shelf; together they form one plank per row */
.book-gallery-grid > .book-cover-item::before {
    content: "";
    position: absolute;
    left: calc(var(--gap-x) / -2 - 1px);
    right: calc(var(--gap-x) / -2 - 1px);
    bottom: -14px;
    height: 14px;
    z-index: 0;
    background: linear-gradient(180deg, #e9dcc2 0%, #d8c39d 45%, #b99c6c 100%);
    box-shadow: 0 16px 22px -12px rgba(70, 48, 15, .55);
}
.book-gallery-grid > .book-cover-item:nth-child(4n + 1)::before { border-radius: 2px 0 0 2px; }
.book-gallery-grid > .book-cover-item:nth-child(4n)::before { border-radius: 0 2px 2px 0; }
.book-gallery-grid .book-cover,
.book-gallery-grid > .book-cover-item::after {
    transition: transform .55s var(--ease-out), box-shadow .55s ease;
}
.book-gallery-grid .book-cover {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    max-width: none;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: var(--book-radius);
    box-shadow: 0 2px 3px rgba(12, 28, 51, .2), 0 14px 22px -12px rgba(12, 28, 51, .55);
}
.book-gallery-grid > .book-cover-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: var(--book-radius);
    background: var(--spine);
    pointer-events: none;
}
.book-cover-item:hover .book-cover,
.book-cover-item:hover::after { transform: translateY(-14px) rotate(-1.5deg); }
.book-cover-item:hover .book-cover { box-shadow: 0 4px 6px rgba(12, 28, 51, .15), 0 34px 44px -18px rgba(12, 28, 51, .6); }
@media (max-width: 767.98px) {
    .book-gallery-grid { --gap-x: 22px; row-gap: 52px; }
}
@media (max-width: 575.98px) {
    .book-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); --gap-x: 20px; row-gap: 48px; }
    .book-gallery-grid > .book-cover-item:nth-child(n)::before { border-radius: 0; }
    .book-gallery-grid > .book-cover-item:nth-child(odd)::before { border-radius: 2px 0 0 2px; }
    .book-gallery-grid > .book-cover-item:nth-child(even)::before { border-radius: 0 2px 2px 0; }
}

/* ---------- 14. "Begin Your Publishing Journey" (bindery photo band) ---------- */
.cta-container {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: var(--on-dark);
    padding: var(--section-y) 0;
    background:
        linear-gradient(90deg, rgba(8, 19, 34, .95) 0%, rgba(8, 19, 34, .86) 55%, rgba(8, 19, 34, .78) 100%),
        url(../img/bg-bindery.webp) center / cover no-repeat;
}
.cta-container::before,
.cta-container::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: var(--gold-rule);
    opacity: .6;
}
.cta-container::before { top: 0; }
.cta-container::after { bottom: 0; }
.cta-container > .container { position: relative; z-index: 1; }
.cta-container .book-col { position: relative; }
.cta-container .book-col::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 380px;
    height: 380px;
    translate: -50% -50%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(211, 176, 122, .3) 0%, transparent 65%);
    pointer-events: none;
}
@media (min-width: 992px) { .cta-container .book-col::before { left: 155px; } }
.cta-container .cta-heading {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--on-dark);
    margin: 0;
    max-width: 15ch;
}
.bestseller-text {
    font-size: inherit;
    font-weight: inherit;
    color: var(--gold-300);
}
.cta-subtitle { font-size: 1.14rem; color: var(--on-dark-muted); max-width: 540px; margin-bottom: 1.6rem; }
.book-image {
    position: relative;
    width: 100%;
    max-width: 310px;
    height: auto;
    display: block;
    border-radius: var(--book-radius);
    box-shadow: 0 50px 80px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .08);
    transform: rotate(-3deg);
}
.contact-info-row { gap: 0; }
.contact-info-row > div { padding: 0 10px 0 0; }
.contact-detail {
    margin-top: 1rem;
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    background: rgba(8, 19, 34, .45);
    border: 1px solid var(--line-dark);
    font-size: .84rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gold-400);
    transition: border-color .3s ease, background-color .3s ease;
}
.contact-detail:hover { border-color: var(--gold-500); background: rgba(8, 19, 34, .7); }
.contact-detail a { display: inline-block; margin-top: .2rem; color: var(--on-dark); font-weight: 600; font-size: .98rem; letter-spacing: 0; text-transform: none; text-decoration: none; word-break: break-word; }
.contact-detail a:hover { color: var(--gold-300); }
.contact-icon { color: var(--gold-400); margin-right: .45rem; }
@media (max-width: 991.98px) {
    .cta-container .book-col { order: 2; margin-top: 3.5rem; }
    .cta-container .text-col { order: 1; text-align: center; }
    .cta-container .cta-heading { margin-left: auto; margin-right: auto; }
    .cta-container .cta-subtitle { margin-left: auto; margin-right: auto; }
    .contact-info-row { justify-content: center !important; }
    .contact-detail { text-align: left; }
    .book-image { margin: 0 auto; }
    .button-group { justify-content: center !important; }
}
@media (max-width: 575.98px) {
    .contact-info-row > div { flex: 0 0 100%; max-width: 100%; padding: 0; }
    .book-image { max-width: 250px; }
}

/* ---------- 15. Why choose us (bordered table of six) ---------- */
.why-choose-section {
    position: relative;
    padding: var(--section-y) 0;
    background: #fff;
}
.why-choose-section .section-heading { font-size: clamp(2rem, 3.4vw, 2.8rem); margin-bottom: 1.4rem; }
.why-choose-section .section-heading::before {
    content: "";
    display: block;
    width: 56px;
    height: 2px;
    margin-bottom: 1.4rem;
    background: var(--gold-500);
}
.why-choose-section .section-description { color: var(--muted); font-size: 1.12rem; line-height: 1.75; max-width: 620px; margin-bottom: 0; }
.why-choose-section .section-description b { color: var(--ink); font-weight: 600; }

.hexagon-container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    max-width: 560px;
    margin: 0 auto;
    padding: 0;
    background: var(--line);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}
.hexagon-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    min-height: 150px;
    padding: 1.7rem 1.6rem;
    background: #fff;
    color: var(--ink);
    text-align: left;
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.25;
    transition: background-color .4s ease;
}
.hexagon-wrapper:hover { background: var(--paper); }
.hexagon-wrapper .icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin: 0;
    border-radius: 50%;
    font-size: 1.05rem;
    color: var(--gold-700);
    background: var(--gold-50);
    border: 1px solid var(--gold-300);
    transition: background-color .4s ease, color .4s ease, border-color .4s ease, transform .6s var(--ease-out);
}
.hexagon-wrapper:hover .icon { color: var(--gold-300); background: var(--navy-900); border-color: var(--navy-900); transform: rotateY(180deg); }
.fa-head-side-brain::before { content: "\f5dc"; } /* Pro-only icon; show the free "brain" glyph instead */
.hexagon-wrapper span { position: relative; }
.hexagon-wrapper span::after {
    content: "";
    display: block;
    width: 24px;
    height: 1px;
    margin-top: .7rem;
    background: var(--gold-500);
    transition: width .45s var(--ease-out);
}
.hexagon-wrapper:hover span::after { width: 48px; }

@media (max-width: 991.98px) {
    .hexagons-col { display: block; margin-bottom: 3rem; }
}
@media (max-width: 575.98px) {
    .hexagon-wrapper { min-height: 132px; padding: 1.3rem 1.1rem; font-size: 1.05rem; }
}

/* ---------- 16. "Having Trouble Selling More Books?" (bookstore band) ---------- */
.marketing-cta-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(5rem, 9vw, 7.5rem) 0;
    text-align: center;
    color: var(--on-dark);
    background:
        linear-gradient(180deg, rgba(8, 19, 34, .88) 0%, rgba(8, 19, 34, .8) 50%, rgba(8, 19, 34, .9) 100%),
        url(../img/bg-bookstore.webp) center / cover no-repeat;
}
.marketing-cta-section > .container { position: relative; }
.marketing-cta-section h4 { margin-bottom: 1.3rem; color: var(--gold-400) !important; }
.marketing-cta-section h4::before,
.marketing-cta-section h4::after { content: ""; width: 36px; height: 1px; background: var(--gold-500); }
.marketing-cta-section h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.6vw, 3.1rem);
    font-weight: 600;
    line-height: 1.15;
    color: var(--on-dark);
    text-shadow: none;
    max-width: 820px;
    margin: 0 auto 2.4rem;
    text-wrap: balance;
}
.marketing-cta-section .button-group { justify-content: center; }

/* ---------- 17. "Ready to Start Your Book" form ---------- */
.contact-form-section {
    position: relative;
    padding: var(--section-y) 0;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(250, 247, 241, .92) 0%, rgba(250, 247, 241, .86) 100%),
        url(../img/bg-manuscript.webp) center / cover no-repeat;
}
.contact-form-section > .container { position: relative; }
.contact-form-section h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 1rem; }
.contact-form-section p.subtitle { font-size: 1.12rem; color: var(--muted); margin-bottom: 2.6rem; }
.contact-form-section form {
    position: relative;
    text-align: left;
    padding: clamp(1.6rem, 4vw, 2.8rem);
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold-500);
    box-shadow: var(--shadow-lg);
}
.contact-form-section .btn-submit { width: 100%; }

/* ---------- 18. Footer ---------- */
footer.bg-dark {
    position: relative;
    overflow: hidden;
    background: var(--navy-950) !important;
    color: var(--on-dark-muted);
}
footer.bg-dark::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: var(--gold-rule);
}
.main-footer {
    padding: clamp(4rem, 7vw, 5.5rem) 0 2.5rem;
    background: radial-gradient(50% 70% at 100% 0%, rgba(30, 58, 95, .45) 0%, transparent 70%);
}
.footer-logo { margin-bottom: 1.3rem; }
.footer-description { color: var(--on-dark-muted); font-size: 1.02rem; line-height: 1.75; max-width: 360px; margin-bottom: 1.5rem; }
.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    color: var(--on-dark);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: .8rem;
    transition: color .25s ease;
}
.footer-phone::before {
    content: "\f095";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    font-size: .75rem;
    color: var(--gold-400);
    border: 1px solid var(--line-dark);
}
.footer-phone:hover { color: var(--gold-300); }
.footer-col-main p[style] { color: var(--on-dark-muted) !important; font-size: 1rem; margin-bottom: 1rem; }
.footer-heading {
    position: relative;
    font-size: .86rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-400);
    margin-bottom: 1.5rem;
    padding-bottom: .9rem;
}
.footer-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 30px; height: 1px; background: var(--gold-500); }
.footer-list { list-style: none; padding: 0; columns: 2; column-gap: 1.5rem; }
.footer-list-item { margin-bottom: .6rem; break-inside: avoid; }
.footer-list-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--on-dark-muted);
    font-size: 1rem;
    text-decoration: none;
    transition: color .25s ease;
}
.footer-list-link::before {
    content: "";
    width: 0;
    height: 1px;
    margin-right: 0;
    background: var(--gold-400);
    transition: width .3s var(--ease-out), margin-right .3s var(--ease-out);
}
.footer-list-link:hover { color: var(--gold-300); }
.footer-list-link:hover::before { width: 12px; margin-right: 8px; }
.social-icons { display: flex; gap: .6rem; }
.social-icons a {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    margin: 0;
    border-radius: 50%;
    color: var(--on-dark);
    font-size: .95rem;
    border: 1px solid var(--line-dark);
    transition: background-color .3s ease, border-color .3s ease, color .3s ease, transform .3s var(--ease-out);
}
.social-icons a:hover { color: var(--navy-950); background: var(--gold-400); border-color: var(--gold-400); transform: translateY(-3px); }
.payment-methods img {
    height: auto;
    max-width: 250px;
    margin: 0;
    padding: .55rem .8rem;
    border-radius: var(--radius);
    background: #fff;
    opacity: 1;
}
.trust-badges { gap: .6rem; margin-top: .6rem; flex-wrap: wrap; }
.trust-badges img { height: 44px; width: auto; margin: 0; transition: transform .3s var(--ease-out); }
.trust-badges img:hover { transform: translateY(-2px); }
.copyright-strip {
    background: rgba(0, 0, 0, .25);
    border-top: 1px solid var(--line-dark);
    color: rgba(246, 241, 231, .7);
    padding: 1.2rem 0;
    font-size: .92rem;
}
.copyright-strip [style*="margin-left"] { margin-left: 0 !important; }
.copyright-strip a { color: var(--on-dark-muted); text-decoration: none; margin: 0 .5rem; transition: color .25s ease; }
.copyright-strip a:hover { color: var(--gold-300); text-decoration: none; }
@media (min-width: 768px) { .copyright-strip .col-md-6:last-child { text-align: right !important; } }
@media (max-width: 991.98px) {
    .footer-col { margin-bottom: 2.2rem; }
}
@media (max-width: 767.98px) {
    .footer-col-main { text-align: center; }
    .footer-col-main .footer-logo { justify-content: center; }
    .footer-description { margin-left: auto; margin-right: auto; }
    .trust-badges { justify-content: center; }
}

/* Back-to-top button (injected by theme.js) */
/* Bottom-left so it never collides with the Tawk.to chat bubble (bottom-right) */
.to-top {
    position: fixed;
    left: 22px;
    bottom: 22px;
    z-index: 1040;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 1px solid var(--gold-500);
    border-radius: var(--radius);
    color: var(--gold-300);
    background: var(--navy-900);
    box-shadow: 0 14px 28px -12px rgba(12, 28, 51, .6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .35s ease, transform .35s var(--ease-out), visibility .35s, background-color .3s ease, color .3s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--navy-950); background: var(--gold-400); }

/* ---------- 19. Quote modal ---------- */
#serviceModal .modal-content {
    position: relative;
    background: var(--grain), var(--paper) !important;
    border: 0 !important;
    border-top: 3px solid var(--gold-500) !important;
    border-radius: var(--radius) !important;
    color: var(--text);
    overflow: hidden;
    box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .7) !important;
}
#serviceModal .modal-header,
#serviceModal .modal-body { position: relative; }
#serviceModal .modal-title::before { content: ""; width: 28px; height: 1px; background: var(--gold-500); }
#serviceModal .btn-close { opacity: .6; }
#serviceModal .btn-close:hover { opacity: 1; }
#serviceModal .custom-heading-2 { color: var(--ink) !important; font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
#serviceModal .form-label { color: var(--ink); }
#serviceModal button[type="submit"] {
    min-height: 54px;
    color: var(--on-dark);
    background: var(--navy-900) !important;
    border: 1px solid var(--navy-900);
    border-radius: var(--radius) !important;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    transition: background-color .3s ease, color .3s ease, transform .3s var(--ease-out);
}
#serviceModal button[type="submit"]:hover { color: var(--navy-950); background: var(--gold-400) !important; border-color: var(--gold-400); transform: translateY(-2px); }
#serviceModal .illustration-container {
    min-height: 0;
    height: 100%;
    padding: 0;
    border-radius: var(--radius);
    background: transparent;
    overflow: hidden;
}
#serviceModal .illustration-container::before,
#serviceModal .illustration-container::after { display: none; }
#serviceModal .illustration-container img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); box-shadow: none; }
#serviceModal .text-secondary { color: var(--muted) !important; }
.modal.fade .modal-dialog { transform: translateY(40px); transition: transform .5s var(--ease-out); }
.modal.show .modal-dialog { transform: none; }
.modal-backdrop { --bs-backdrop-bg: #081322; }
.modal-backdrop.show { opacity: .7; }

/* ---------- 20. Service pages ---------- */
body > div.py-5 { position: relative; }
.main-content-card {
    position: relative;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold-500);
    box-shadow: var(--shadow);
}
.illustration-container {
    position: relative;
    isolation: isolate;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background:
        repeating-linear-gradient(135deg, rgba(211, 176, 122, .07) 0 1px, transparent 1px 9px),
        var(--navy-900);
}
.illustration-container::after {
    content: "";
    position: absolute;
    inset: 12px;
    z-index: -1;
    border: 1px solid var(--line-dark);
    pointer-events: none;
}
.illustration-container img { position: relative; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.feature-icon {
    flex: none;
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gold-50);
    border: 1px solid var(--gold-300);
    color: var(--gold-700);
    font-size: 1.05rem;
    min-width: 0;
}
.main-content-card .row-cols-1 > .col > .d-flex {
    align-items: center !important;
    height: 100%;
    padding: .7rem 0;
    border-bottom: 1px solid var(--line);
}
.main-content-card .row-cols-1 .text-secondary { color: var(--ink) !important; font-weight: 600 !important; line-height: 1.4; }
.main-content-card > .row > .col-md-7 > p.text-secondary { font-size: 1.12rem; }

/* "Unlock Our More Services" and the guarantees: even cards with a gold top rule */
div:has(> .service-icon-bg),
.feature-process-card {
    position: relative;
    height: 100%;
    padding: 2.4rem 1.7rem 2rem !important;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .45s var(--ease-out), box-shadow .45s ease, border-color .45s ease;
}
div:has(> .service-icon-bg)::before,
.feature-process-card::before {
    content: "";
    position: absolute;
    top: -1px; left: -1px; right: -1px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
    transform: scaleX(0);
    transition: transform .5s var(--ease-out);
}
div:has(> .service-icon-bg):hover,
.feature-process-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold-300); }
/* Service cards link to their page; the link covers the whole card */
.service-card-link { color: inherit; text-decoration: none; }
.service-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
div:has(> .service-icon-bg):hover .service-card-link,
.service-card-link:focus-visible { color: var(--gold-700); }
div:has(> .service-icon-bg):hover::before,
.feature-process-card:hover::before { transform: none; }
.service-icon-bg,
.feature-process-card .icon-wrapper {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--gold-50) !important;
    border: 1px solid var(--gold-300);
    transition: transform .6s var(--ease-out), box-shadow .45s ease;
}
.feature-process-card .icon-wrapper { margin: 0 auto 1.3rem; }
.service-icon-bg img { width: 46px !important; height: 46px !important; }
.feature-process-card .icon-wrapper img { width: 40px !important; height: 40px !important; }
div:has(> .service-icon-bg):hover .service-icon-bg,
.feature-process-card:hover .icon-wrapper { transform: translateY(-4px); box-shadow: 0 0 0 6px var(--gold-50), 0 0 0 7px var(--gold-300); }
div:has(> .service-icon-bg) h5,
.feature-process-card h5 { font-family: var(--font-serif); font-size: 1.28rem; font-weight: 600; }
div:has(> .service-icon-bg) p { line-height: 1.8; }

/* Guarantees band */
div[style*="#f0f0f0"] {
    position: relative;
    background: var(--grain), var(--paper-2) !important;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
p.text-uppercase.fw-bold[style*="teal-color"] { display: flex; justify-content: center; margin: 0 auto 1rem !important; }
p.text-uppercase.fw-bold[style*="teal-color"]::before,
p.text-uppercase.fw-bold[style*="teal-color"]::after { content: ""; width: 32px; height: 1px; background: var(--gold-500); }

/* Writing process timeline */
.timeline-container { position: relative; padding: 20px 0; counter-reset: step; }
.timeline-container::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 1px;
    background: var(--line-2);
}
.timeline-container::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 2px;
    margin-left: -.5px;
    background: linear-gradient(180deg, var(--gold-600), var(--gold-400));
    transform: scaleY(var(--tl-progress, 0));
    transform-origin: top;
}
.timeline-item { position: relative; margin-bottom: 40px; counter-increment: step; }
.timeline-item.left { padding-right: 46px; text-align: right; }
.timeline-item.right { padding-left: 46px; text-align: left; }
.timeline-dot {
    position: absolute;
    top: 30px;
    width: 16px;
    height: 16px;
    background: var(--paper);
    border: 1px solid var(--gold-500);
    rotate: 45deg;
    z-index: 2;
    transition: background-color .35s ease, scale .45s var(--ease-out);
}
.timeline-item.left .timeline-dot { right: -8px; }
.timeline-item.right .timeline-dot { left: -8px; }
.timeline-item:hover .timeline-dot,
.timeline-item.is-visible .timeline-dot { background: var(--gold-500); }
.timeline-item:hover .timeline-dot { scale: 1.3; }
.timeline-card {
    position: relative;
    padding: 1.8rem 2rem;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform .45s var(--ease-out), box-shadow .45s ease, border-color .45s ease;
}
/* Step numeral, purely decorative */
.timeline-card::after {
    content: counter(step, upper-roman);
    position: absolute;
    top: .9rem;
    right: 1.3rem;
    font-family: var(--font-serif);
    font-size: 2.6rem;
    font-weight: 500;
    line-height: 1;
    color: var(--gold-100);
    pointer-events: none;
}
.timeline-item.left .timeline-card::after { right: auto; left: 1.3rem; }
.timeline-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-300); }
.timeline-card h5 { position: relative; z-index: 1; color: var(--ink); font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; }
.timeline-card p { position: relative; z-index: 1; }

/* Reviews */
.review-card {
    position: relative;
    height: 100%;
    padding: 2.4rem 2.2rem 2rem;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    transition: transform .45s var(--ease-out), box-shadow .45s ease, border-color .45s ease;
}
.review-card::before {
    content: "\201C";
    position: absolute;
    top: .6rem;
    right: 1.6rem;
    font-family: var(--font-serif);
    font-size: 6rem;
    line-height: 1;
    color: var(--gold-100);
    transition: color .45s ease;
}
.review-card::after { display: none !important; }
.review-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold-300); }
.review-card:hover::before { color: var(--gold-300); }
.review-card.p-0 { overflow: hidden; }
.review-card.p-0::before { display: none; }
.review-card.p-0 video { display: block; }

/* Video reviews (testimonial page): the author's video, their book and a line from the video */
.vt-list { display: grid; gap: clamp(5rem, 10vw, 8rem); margin-top: clamp(3rem, 6vw, 4.5rem); }
.vt-story {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(3rem, 7vw, 6.5rem);
    align-items: center;
}
.vt-story:nth-child(even) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.vt-story:nth-child(even) .vt-media { order: 2; margin-left: auto; }
.vt-media {
    position: relative;
    width: 100%;
    max-width: 470px;
    padding: 0 26% 9% 0;
}
.vt-story:nth-child(even) .vt-media { padding: 0 0 9% 26%; }
.vt-video,
.vt-photo {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: var(--radius-lg);
    background: var(--navy-950);
    outline: 1px solid var(--gold-400);
    outline-offset: 12px;
    box-shadow: var(--shadow-lg);
}
.vt-video video,
.vt-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    background: var(--navy-950);
}
.vt-photo { aspect-ratio: 3 / 4; }
.vt-play { display: none; }
.js .vt-play {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(8, 19, 34, 0) 45%, rgba(8, 19, 34, .35) 100%);
    cursor: pointer;
    transition: opacity .35s ease;
}
.vt-play span {
    position: relative;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: rgba(8, 19, 34, .62);
    border: 1px solid var(--gold-400);
    box-shadow: 0 0 0 8px rgba(211, 176, 122, .18);
    backdrop-filter: blur(4px);
    transition: transform .35s var(--ease-out), background-color .35s ease, box-shadow .35s ease;
}
.vt-play span::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 54%;
    width: 24px;
    height: 28px;
    translate: -50% -50%;
    background: var(--gold-300);
    clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.vt-play:hover span,
.vt-play:focus-visible span { transform: scale(1.08); background: var(--navy-900); box-shadow: 0 0 0 12px rgba(211, 176, 122, .22); }
.vt-play:focus-visible { outline: 2px solid var(--gold-400); outline-offset: 4px; }
.vt-video.is-started .vt-play { opacity: 0; pointer-events: none; }

/* The book stands in front of the video's lower corner, like a hardcover on a desk */
.vt-book {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 2;
    width: 44%;
    rotate: 4deg;
    border-radius: var(--book-radius);
    box-shadow: var(--book-shadow);
    transition: transform .55s var(--ease-out);
}
.vt-story:nth-child(even) .vt-book { right: auto; left: 0; rotate: -4deg; }
.vt-book img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--book-radius); }
.vt-book::after { content: ""; position: absolute; inset: 0; border-radius: var(--book-radius); background: var(--spine); pointer-events: none; }
.vt-story:hover .vt-book { transform: translateY(-10px); }

.vt-eyebrow {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1.4rem;
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-700);
}
.vt-eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold-500); }
.vt-stars { margin-bottom: 1.2rem; color: var(--gold-500); font-size: 1rem; letter-spacing: .12em; }
.vt-quote { position: relative; margin: 0 0 2rem; padding-top: 2.6rem; }
.vt-quote::before {
    content: "\201C";
    position: absolute;
    top: -1.2rem;
    left: -.3rem;
    font-family: var(--font-serif);
    font-size: 6.5rem;
    line-height: 1;
    color: var(--gold-300);
}
.vt-quote p {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 1.9vw, 1.6rem);
    line-height: 1.55;
    color: var(--ink);
    text-wrap: pretty;
}
.vt-caption { margin: 0 0 2rem; }
.vt-caption-title {
    margin: 0 0 .9rem;
    font-family: var(--font-serif);
    font-size: clamp(1.6rem, 2.4vw, 2.1rem);
    font-weight: 600;
    line-height: 1.25;
    color: var(--ink);
    text-wrap: balance;
}
.vt-caption-title + p { margin: 0; font-size: 1.125rem; color: var(--muted); }
.vt-author { display: flex; align-items: center; gap: 1.1rem; padding-top: 1.6rem; border-top: 1px solid var(--line-2); }
.vt-author::before { content: ""; flex: none; width: 4px; align-self: stretch; border-radius: 2px; background: linear-gradient(180deg, var(--gold-500), var(--gold-300)); }
.vt-name { margin: 0; font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; line-height: 1.25; color: var(--ink); }
.vt-role { margin: .2rem 0 0; color: var(--muted); }
.vt-role cite { font-style: normal; font-weight: 600; color: var(--gold-700); }

@media (max-width: 991.98px) {
    .vt-story,
    .vt-story:nth-child(even) { grid-template-columns: minmax(0, 1fr); gap: 3.2rem; }
    .vt-story:nth-child(even) .vt-media { order: 0; }
    .vt-media,
    .vt-story:nth-child(even) .vt-media { max-width: 420px; margin: 0 auto; padding: 0 22% 9% 0; }
    .vt-story:nth-child(even) .vt-book { right: 0; left: auto; rotate: 4deg; }
    .vt-body { max-width: 640px; margin: 0 auto; }
}
@media (max-width: 575.98px) {
    .vt-play span { width: 70px; height: 70px; }
    .vt-quote::before { font-size: 5.5rem; }
}
.review-card h5 { position: relative; font-family: var(--font-serif); font-size: 1.35rem; font-weight: 600 !important; padding-right: 3rem; }
.review-card > p.text-dark {
    position: relative;
    color: var(--text) !important;
    font-family: var(--font-serif);
    font-size: 1.12rem;
    line-height: 1.75;
}
.review-card .d-flex { padding-top: 1.1rem; border-top: 1px solid var(--line); }
.initials-circle {
    width: 48px;
    height: 48px;
    line-height: 48px;
    border-radius: 50%;
    background: var(--navy-900);
    color: var(--gold-300);
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: center;
}
.star-rating .fa-star { color: var(--gold-500); margin-right: 1px; }
.display-6 { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 600; color: var(--ink); }
.lead.fst-italic { font-family: var(--font-serif); font-style: normal !important; color: var(--muted) !important; font-size: 1.18rem; max-width: 760px; margin-left: auto; margin-right: auto; }

/* Contact card (review include, contact & testimonial pages) */
.card { background-color: #fff; }
.card-shadow {
    border: 1px solid var(--line) !important;
    border-top: 3px solid var(--gold-500) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow-lg);
}
.card-shadow h1 { font-family: var(--font-serif); font-weight: 600; color: var(--ink); }
.card-shadow h3 { color: var(--ink); }
.card-shadow .form-label.text-danger { color: var(--ink) !important; }
.card-shadow .border-end { border-color: var(--line) !important; }
.service-header {
    padding: 1.6rem 2.2rem;
    color: var(--on-dark);
    background: var(--navy-900);
    border-bottom: 1px solid var(--gold-500);
}
.service-header h4 { font-family: var(--font-serif); font-size: 1.45rem; font-weight: 600 !important; color: var(--on-dark); }
.service-body { padding: 2rem; background: var(--paper); }
.accordion-item {
    border: 1px solid var(--line) !important;
    border-radius: var(--radius) !important;
    margin-bottom: .7rem;
    overflow: hidden;
    background: #fff;
    transition: border-color .3s ease;
}
.accordion-item:hover { border-color: var(--gold-300) !important; }
.accordion-button {
    font-weight: 600;
    color: var(--ink);
    background: #fff;
    box-shadow: none !important;
    transition: color .25s ease, background-color .25s ease;
}
.accordion-button::after { display: none !important; }
.accordion-button:not(.collapsed) { color: var(--ink); background: var(--gold-50); }
.service-icon-wrapper { margin-left: 1rem; color: var(--gold-600); font-size: 1rem; transition: transform .4s var(--ease-out); }
.accordion-button:not(.collapsed) .service-icon-wrapper { transform: rotate(45deg); }

/* Service page FAQ: heading and call-to-action beside the questions */
.faq-section {
    padding: var(--section-y) 0;
    background: var(--grain), var(--paper-2);
    border-top: 1px solid var(--line);
}
.faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 6vw, 5.5rem);
    align-items: start;
}
.faq-intro { position: sticky; top: 130px; }
.faq-eyebrow {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1rem;
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-700);
}
.faq-eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold-500); }
.faq-intro h2 {
    margin: 0 0 1rem;
    font-family: var(--font-serif);
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink);
    text-wrap: balance;
}
.faq-intro h2 + p { margin: 0; font-size: 1.125rem; color: var(--muted); }
.faq-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 1.8rem; }
.faq-call { display: inline-flex; align-items: center; gap: .55rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.faq-call i { color: var(--gold-600); }
.faq-call:hover { color: var(--gold-700); }
.faq-list .accordion-item { margin-bottom: .8rem; }
.faq-list .accordion-item:has(.accordion-collapse.show) { border-color: var(--gold-400) !important; box-shadow: var(--shadow-sm); }
.faq-list .accordion-button {
    padding: 1.25rem 1.4rem;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.4;
}
.faq-list .accordion-button:not(.collapsed) { background: #fff; }
.faq-list .accordion-body { padding: 0 1.4rem 1.4rem; font-size: 1.0625rem; line-height: 1.7; color: var(--muted); }
@media (max-width: 991.98px) {
    .faq-layout { grid-template-columns: minmax(0, 1fr); }
    .faq-intro { position: static; max-width: 640px; }
}
@media (max-width: 575.98px) {
    .faq-list .accordion-button { padding: 1.1rem 1.1rem; font-size: 1.06rem; }
    .faq-list .accordion-body { padding: 0 1.1rem 1.2rem; }
}

/* ---------- 21. Illustration page stories ---------- */
.featured-stories { background: var(--grain), var(--paper); }
.featured-stories .row { justify-content: center; }
.book-card {
    height: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform .45s var(--ease-out), box-shadow .45s ease;
}
.book-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.book-card img { width: 100%; height: 350px; object-fit: cover; display: block; transition: transform .9s var(--ease-out); }
.book-card:hover img { transform: scale(1.04); }
.btn-read-story { width: calc(100% - 2rem); margin: 1rem auto; }
@media (max-width: 768px) { .book-card img { height: 240px; } }

/* ---------- 22. Legal pages ---------- */
.privacy-policy,
.refund-policy {
    max-width: 900px;
    margin-top: clamp(2.5rem, 6vw, 4.5rem) !important;
    margin-bottom: clamp(2.5rem, 6vw, 4.5rem) !important;
    padding: clamp(1.75rem, 5vw, 3.75rem);
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold-500);
    box-shadow: var(--shadow);
}
.privacy-policy h1,
.refund-policy h1 {
    font-size: clamp(2.2rem, 4vw, 3.1rem);
    font-weight: 600;
    margin-bottom: 1.6rem;
    color: var(--ink) !important;
}
.refund-policy h1 { text-align: center; margin-bottom: 2.2rem; }
.privacy-policy h2,
.refund-policy h2 {
    font-size: clamp(1.35rem, 2vw, 1.65rem);
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .9rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.privacy-policy h2:first-of-type,
.refund-policy h2:first-of-type { border-top: 0; padding-top: 0; }
.privacy-policy p,
.refund-policy p,
.privacy-policy li,
.refund-policy li { font-size: 1rem; line-height: 1.9; color: var(--text); }
.refund-policy li { margin-bottom: .6rem; }
.privacy-policy a,
.refund-policy a { color: var(--gold-700); font-weight: 600; }

header.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 260px;
    padding: 3.5rem 0 3rem;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(8, 19, 34, .96) 0%, rgba(8, 19, 34, .78) 60%, rgba(8, 19, 34, .55) 100%),
        url(../img/bg-study.webp) right center / cover no-repeat;
}
header.hero .container { position: relative; z-index: 2; }
header.hero h1 { color: var(--on-dark); font-size: clamp(2.2rem, 4.2vw, 3.3rem); font-weight: 600; margin: 0; animation: heroIn .9s var(--ease-out) both; }
.hero-divider { height: 2px; background: var(--gold-rule); }
.terms-wrap {
    max-width: 900px;
    margin: clamp(2rem, 5vw, 3.5rem) auto clamp(2.5rem, 6vw, 4.5rem);
    padding: clamp(1.75rem, 5vw, 3.75rem);
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    color: var(--text);
}
.terms-title { font-family: var(--font-serif); color: var(--ink); font-size: clamp(1.8rem, 3vw, 2.3rem); font-weight: 600; margin-bottom: 1rem; }
.terms-sub { color: var(--muted); font-size: 1.02rem; line-height: 1.75; }
.terms h4.section-heading { font-family: var(--font-serif); color: var(--ink); font-size: 1.25rem; font-weight: 600; margin-top: 2.2rem; margin-bottom: .6rem; }
.terms p,
.terms ul li { color: var(--text); font-size: 1.04rem; line-height: 1.9; }
.terms ul { padding-left: 1.3rem; }
.terms ul li { margin: .4rem 0; }
.terms ul li::marker { color: var(--gold-600); }

/* ---------- 22b. Bookshelf page ---------- */
header.hero.hero-shelf {
    min-height: 360px;
    background:
        linear-gradient(90deg, rgba(8, 19, 34, .95) 0%, rgba(8, 19, 34, .8) 55%, rgba(8, 19, 34, .5) 100%),
        url(../img/bg-bookstore.webp) center / cover no-repeat;
}
.shelf-eyebrow {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1rem;
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-400);
}
.shelf-eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--gold-500); }
.shelf-intro { max-width: 620px; margin: 1rem 0 .4rem; font-size: 1.14rem; color: var(--on-dark-muted); }
.shelf-new { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem 1rem; margin: 0; color: var(--on-dark-muted); }
.shelf-new-label { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 600; color: var(--gold-300); }
.shelf-new-label::before { content: "\2726"; margin-right: .55rem; font-size: .8em; color: var(--gold-500); }

.shelf-section { --gap-x: 2.2rem; padding: clamp(3rem, 6vw, 4.5rem) 0 var(--section-y); overflow-x: clip; }
.shelf-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: clamp(2.8rem, 5vw, 4rem);
    padding: 1.1rem 1.2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold-500);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.shelf-tools .form-control {
    flex: 1 1 280px;
    max-width: 440px;
    padding-left: 2.8rem;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238a6430' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") 1rem center no-repeat;
}
.shelf-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.shelf-filters button {
    padding: .55rem 1rem;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    background: transparent;
    color: var(--ink);
    font-size: .9rem;
    font-weight: 600;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.shelf-filters button:hover { border-color: var(--gold-500); color: var(--gold-700); }
.shelf-filters button.is-active { background: var(--navy-900); border-color: var(--navy-900); color: var(--on-dark); }

.shelf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 3.4rem var(--gap-x);
    margin: 0;
    padding: 0;
    list-style: none;
}
.shelf-book { display: flex; flex-direction: column; align-items: center; text-align: center; }
.shelf-book[hidden] { display: none; }
.shelf-cover {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    height: 270px;
    padding: 0 .4rem;
}
/* Wooden ledge under every book; ledges meet across the gaps so each row reads as one shelf */
.shelf-cover::after {
    content: "";
    position: absolute;
    left: calc(var(--gap-x) / -2 - 1px);
    right: calc(var(--gap-x) / -2 - 1px);
    bottom: -14px;
    height: 14px;
    background: linear-gradient(180deg, #e9dcc2 0%, #d8c39d 45%, #b99c6c 100%);
    box-shadow: 0 16px 22px -12px rgba(70, 48, 15, .55);
}
.shelf-jacket {
    position: relative;
    z-index: 1;
    display: block;
    max-height: 100%;
    border-radius: var(--book-radius);
    box-shadow: 0 2px 3px rgba(12, 28, 51, .2), 0 14px 22px -12px rgba(12, 28, 51, .55);
    transition: transform .55s var(--ease-out), box-shadow .55s ease;
}
.shelf-jacket::after { content: ""; position: absolute; inset: 0; border-radius: var(--book-radius); background: var(--spine); pointer-events: none; }
.shelf-jacket img { display: block; width: auto; max-width: 100%; height: auto; max-height: 270px; border-radius: var(--book-radius); }
.shelf-book:hover .shelf-jacket { transform: translateY(-12px) rotate(-1.5deg); box-shadow: 0 4px 6px rgba(12, 28, 51, .15), 0 34px 44px -18px rgba(12, 28, 51, .6); }
.shelf-info { flex: 1; width: 100%; margin-top: 2rem; }
.shelf-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0 0 .25rem;
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ink);
}
.shelf-subtitle {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    margin: 0 0 .35rem;
    font-size: .92rem;
    line-height: 1.45;
    color: var(--muted);
}
.shelf-author { margin: 0 0 .2rem; font-weight: 600; color: var(--gold-700); }
.shelf-meta { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--muted); }
.shelf-buy,
.vt-buy {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1rem;
    padding: .6rem 1.05rem;
    border: 1px solid var(--navy-900);
    border-radius: var(--radius);
    color: var(--navy-900);
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-decoration: none;
    transition: background-color .25s ease, color .25s ease;
}
.shelf-buy::before,
.vt-buy::before { content: "\f270"; font-family: "Font Awesome 6 Brands"; font-weight: 400; font-size: 1.05em; color: var(--gold-600); transition: color .25s ease; }
.shelf-buy:hover,
.vt-buy:hover { background: var(--navy-900); color: var(--on-dark); }
.shelf-buy:hover::before,
.vt-buy:hover::before { color: var(--gold-300); }
.vt-buy { margin: 0 0 0 auto; flex: none; }
.vt-note { margin-top: .8rem; font-size: .88rem; color: var(--muted); }
.shelf-empty { margin: 2rem 0 0; text-align: center; color: var(--muted); }

.shelf-cta {
    position: relative;
    padding: var(--section-y) 0;
    text-align: center;
    color: var(--on-dark-muted);
    background:
        radial-gradient(60% 80% at 50% 0%, rgba(30, 58, 95, .55) 0%, transparent 70%),
        var(--navy-950);
}
.shelf-cta::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--gold-rule); }
.shelf-cta h2 { color: var(--on-dark); font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 1rem; }
.shelf-cta p { max-width: 580px; margin: 0 auto 2rem; font-size: 1.12rem; }

@media (max-width: 575.98px) {
    .shelf-section { --gap-x: 1.1rem; }
    .shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.8rem; }
    .shelf-cover { height: 210px; padding: 0; }
    .shelf-jacket img { max-height: 210px; }
    .shelf-title { font-size: 1.04rem; }
    .shelf-buy { padding: .55rem .7rem; font-size: .8rem; }
    .shelf-tools .form-control { max-width: none; }
    .shelf-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .vt-author { flex-wrap: wrap; }
    .vt-buy { margin-left: calc(4px + 1.1rem); }
}

/* ---------- 23. Scroll reveal (enabled by theme.js) ---------- */
.js [data-reveal] {
    opacity: 0;
    translate: 0 30px;
    transition:
        opacity 1s var(--ease-out) var(--d, 0s),
        translate 1s var(--ease-out) var(--d, 0s),
        scale 1s var(--ease-out) var(--d, 0s),
        transform .45s var(--ease-out),
        box-shadow .45s ease,
        border-color .45s ease,
        background-color .4s ease,
        color .3s ease;
}
.js [data-reveal="left"] { translate: -40px 0; }
.js [data-reveal="right"] { translate: 40px 0; }
.js [data-reveal="zoom"] { translate: 0 16px; scale: .95; }
.js [data-reveal].is-visible { opacity: 1; translate: none; scale: none; }

/* ---------- 24. Keyframes ---------- */
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ruleIn { from { transform: scaleX(0); } to { transform: none; } }

.shadow-xl { box-shadow: 0 25px 50px -12px rgba(8, 19, 34, .45); }

/* ---------- 25. Responsive polish ---------- */
@media (max-width: 991.98px) {
    .hero-section::before {
        background:
            linear-gradient(180deg, rgba(8, 19, 34, .88) 0%, rgba(8, 19, 34, .93) 60%, rgba(8, 19, 34, .97) 100%),
            url(../img/bg-study.webp) 72% center / cover no-repeat;
    }
    .hero-content-container .col-lg-7 { margin-bottom: 3.5rem; text-align: left; }
    .hero-section .d-flex.flex-column.flex-sm-row { justify-content: flex-start; }
    .hero-content-container .col-lg-4 { max-width: 540px; margin: 0 auto; }
}
@media (max-width: 575.98px) {
    .hero-section .d-flex.flex-column.flex-sm-row > *,
    .button-group > * { width: 100%; }
    .trust-logos { display: flex; width: 100%; }
    .signup-card { padding: 2.2rem 1.5rem 1.7rem; }
    .main-content-card { border-radius: var(--radius); }
    .illustration-container { min-height: 240px; }
    .service-body { padding: 1.4rem; }
    .service-header { padding: 1.3rem 1.4rem; }
    .to-top { left: 14px; bottom: 14px; width: 42px; height: 42px; }
    .copyright-strip { padding-bottom: 4.5rem; }
}

/* ---------- 26. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }
    .js [data-reveal] { opacity: 1; translate: none; scale: none; }
}
