/* PREPAY BUSINESS UK LTD — Ink navy + warm paper + amber accent */

:root {
    --ink: #101820;
    --ink-soft: #1b2733;
    --paper: #F1EFE7;
    --paper-alt: #E7E3D6;
    --card: #FBFAF6;
    --line: #D6D1C1;
    --line-dark: #2C3846;
    --steel: #5C7186;
    --amber: #F2A93C;
    --amber-dark: #C97F1B;

    --font-heading: 'Libre Franklin', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --header-h: 78px;
    --max: 1100px;
    --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.6;
    padding-top: var(--header-h);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

button, input, textarea {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    outline: none;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    z-index: 1000;
}

.header-bar {
    max-width: var(--max);
    margin: 0 auto;
    height: 100%;
    padding: 0 1.25rem;
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    align-items: center;
}

.menu-btn {
    width: 48px;
    height: 48px;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
    cursor: pointer;
    padding: 10px 6px;
    z-index: 2;
}

.menu-btn span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--ink);
    border-radius: 1px;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--amber);
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: lowercase;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink);
}

.header-spacer { width: 48px; height: 48px; }

/* Drawer */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 32, 0.45);
    z-index: 1004;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0.35s;
}

.drawer-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.nav-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: min(320px, 88vw);
    height: 100%;
    background: var(--card);
    border-right: 1px solid var(--line);
    z-index: 1005;
    padding: 5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    transform: translateX(-105%);
    transition: transform 0.35s var(--ease);
    box-shadow: 10px 0 30px rgba(16, 24, 32, 0.12);
}

.nav-drawer.is-open { transform: translateX(0); }

.drawer-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--ink);
    cursor: pointer;
}

.drawer-link {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--ink);
    line-height: 1.25;
}

.drawer-link.active {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--amber);
    text-underline-offset: 7px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    padding: 0.9rem 1.8rem;
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-amber,
.btn-sage {
    background: var(--amber);
    color: var(--ink);
}

.btn-amber:hover,
.btn-sage:hover {
    background: var(--amber-dark);
    color: #fff;
}

.btn-dark {
    background: var(--amber);
    color: var(--ink);
}

.btn-dark:hover {
    background: var(--amber-dark);
    color: #fff;
}

/* Hero */
.hero {
    text-align: center;
    padding: 5.5rem 1.5rem 4.5rem;
    max-width: 820px;
    margin: 0 auto;
}

.hero-eyebrow {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--amber-dark);
    margin-bottom: 1.25rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.6vw, 1.85rem);
    font-weight: 700;
    line-height: 1.45;
    color: var(--ink);
    margin-bottom: 2rem;
}

/* About */
.about {
    padding: 1.5rem 1.5rem 4.5rem;
    max-width: var(--max);
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--ink);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-card {
    text-align: center;
    background: var(--card);
    border: 1px solid var(--line);
    padding: 1.25rem 1.15rem 1.5rem;
}

.about-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    margin-bottom: 1.2rem;
    background: var(--paper-alt);
    border: 1px solid var(--line);
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--ink);
}

.about-card p {
    font-size: 0.95rem;
    color: var(--steel);
    line-height: 1.65;
}

/* Partnership / supply story */
.story {
    padding: 4.5rem 1.5rem;
    background: var(--paper);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    text-align: center;
}

.story-inner {
    max-width: 720px;
    margin: 0 auto;
}

.story-eyebrow {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber-dark);
    margin-bottom: 0.85rem;
}

.story-copy {
    text-align: left;
    margin: 0 auto 1.75rem;
}

.story-copy p {
    font-size: 1.05rem;
    color: var(--steel);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.story-copy a {
    color: var(--amber-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.story-question {
    color: var(--ink) !important;
    font-weight: 600;
}

.story-quote {
    background: var(--card);
    border: 1px solid var(--line);
    border-left: 4px solid var(--amber);
    padding: 1.5rem 1.6rem;
    margin: 0 0 2rem;
    text-align: left;
}

.story-quote p {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.45;
    margin-bottom: 0.75rem;
}

.story-quote cite {
    display: block;
    font-style: normal;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--amber-dark);
}

.story .btn {
    margin-top: 0.5rem;
}

/* Contact — dark navy */
.contact {
    background: var(--ink);
    color: #F5F2EA;
    padding: 4rem 1.5rem;
    text-align: center;
}

.contact .section-title {
    color: #F5F2EA;
}

.contact-inner {
    max-width: 560px;
    margin: 0 auto;
}

.contact-company {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #F5F2EA;
}

.contact-block { margin-bottom: 1.5rem; }

.contact-block p {
    margin-bottom: 0.35rem;
    font-size: 1rem;
    color: #E7E3D6;
}

.contact-block a {
    color: var(--amber);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-block a:hover {
    color: #fff;
}

.contact-block .note {
    font-size: 0.9rem;
    color: var(--steel);
    margin-bottom: 0.75rem;
}

.hours { margin: 2rem 0; }

.hours-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #F5F2EA;
}

.hours-status {
    margin-bottom: 1rem;
    color: var(--amber);
    font-weight: 600;
}

.hours-list {
    max-width: 320px;
    margin: 0 auto 1.75rem;
    background: var(--ink-soft);
    border: 1px solid var(--line-dark);
    padding: 0.75rem 1.1rem;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--line-dark);
    color: #E7E3D6;
}

.hours-list li:last-child {
    border-bottom: none;
}

.inline-form-wrap {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s var(--ease), opacity 0.35s ease, margin 0.35s ease;
}

.inline-form-wrap.is-open {
    max-height: 900px;
    opacity: 1;
    margin-top: 1.5rem;
}

.contact-form {
    background: var(--ink-soft);
    text-align: left;
    padding: 1.75rem;
    border: 1px solid var(--line-dark);
}

.contact-form h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #F5F2EA;
}

.contact-form label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0.85rem 0 0.35rem;
    color: #E7E3D6;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--line-dark);
    background: var(--ink);
    color: #F5F2EA;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--amber);
}

.contact-form .form-error {
    display: none;
    color: #F2A93C;
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.contact-form input.has-error,
.contact-form textarea.has-error {
    border-color: var(--amber);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.btn-cancel {
    font-weight: 600;
    color: var(--steel);
    cursor: pointer;
}

.btn-cancel:hover {
    color: var(--amber);
}

.success-message {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: var(--ink);
    border: 1px solid var(--amber);
    color: var(--amber);
}

/* Mailing */
.mailing {
    padding: 2.5rem 1.5rem;
    background: var(--paper-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.mailing-inner {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.mailing h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
}

.mailing-form {
    display: flex;
    gap: 0.75rem;
    flex: 1;
    min-width: 260px;
    justify-content: flex-end;
}

.mailing-input {
    flex: 1;
    max-width: 280px;
    border-bottom: 1px solid var(--line);
    padding: 0.55rem 0.25rem;
    color: var(--ink);
    background: transparent;
}

.mailing-input:focus {
    border-bottom-color: var(--amber-dark);
}

.mailing-form .btn { min-width: 110px; }

/* Footer — ink */
.site-footer {
    padding: 2.5rem 1.5rem 3rem;
    text-align: center;
    background: var(--ink);
    color: var(--steel);
    font-size: 0.9rem;
    border-top: 1px solid var(--line-dark);
}

.site-footer a {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--amber);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer a:hover {
    color: #fff;
}

.footer-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #F5F2EA;
    margin-bottom: 0.5rem;
}

.footer-copy {
    color: var(--steel);
}

.footer-meta {
    font-size: 0.8rem;
    margin-top: 0.35rem;
    color: var(--steel);
}

/* Legal pages */
.text-document {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.document-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.document-content h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.75rem 0 0.75rem;
    color: var(--ink);
}

.document-content p,
.document-content li {
    margin-bottom: 0.9rem;
    color: var(--steel);
    font-size: 1.02rem;
}

.document-content ul {
    margin: 0 0 1rem 1.25rem;
    list-style: disc;
}

.document-content a {
    color: var(--amber-dark);
    text-decoration: underline;
}

.sig-block {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.sig-name {
    font-weight: 700;
    color: var(--ink);
}

.sig-role,
.sig-date {
    color: var(--steel);
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
        gap: 2.5rem;
    }
}

@media (max-width: 640px) {
    :root { --header-h: 72px; }

    .hero { padding: 3.5rem 1.25rem 3rem; }

    .mailing-inner {
        flex-direction: column;
        text-align: center;
    }

    .mailing-form {
        width: 100%;
        flex-direction: column;
    }

    .mailing-input { max-width: none; }
    .btn { width: 100%; }

    .form-actions { flex-direction: column; }
}
