/* ==========================================================================
   Pride Holding — shared styles (design tokens, base, reusable components)
   Header: header.css · Footer: footer.css · Pages: pages/*.css
   ========================================================================== */

:root {
    /* Brand (master spec, 15 Oct 2026) */
    --ph-red: #ec1f27;            /* brand red: accents, links, active nav, icons */
    --ph-red-strong: #d81b19;     /* button red: primary buttons, red text */
    --ph-red-deep: #ac100f;       /* button hover/active, focus outline on light backgrounds */
    --ph-red-soft: #fdf1f1;

    /* Neutrals */
    --ph-ink: #343234;            /* charcoal: headings, footer background */
    --ph-body: #262424;           /* body text */
    --ph-muted: #5c595c;
    --ph-border: #e4e2e2;
    --ph-surface: #f5f5f5;        /* light grey: alternate bands, cards, Highlights */
    --ph-white: #fff;
    --ph-dark: #343234;
    --ph-dark-2: #2b292b;
    --ph-dark-border: #4a474a;

    /* Type */
    --ph-font-heading: "Oswald", "Arial Narrow", "Segoe UI", system-ui, sans-serif;
    --ph-font-body: "Mulish", "Segoe UI", system-ui, -apple-system, sans-serif;

    /* Layout */
    --ph-header-h: 84px;
    --ph-section-y: 96px;
    --ph-radius: 4px;
    --ph-shadow-sm: 0 1px 2px rgba(13, 17, 23, .06), 0 1px 3px rgba(13, 17, 23, .05);
    --ph-shadow-md: 0 10px 30px -12px rgba(13, 17, 23, .22);

    /* Bootstrap overrides */
    --bs-body-font-family: var(--ph-font-body);
    --bs-body-color: var(--ph-body);
    --bs-body-bg: var(--ph-white);
    --bs-link-color-rgb: 200, 22, 29;
    --bs-link-hover-color-rgb: 165, 18, 23;
    --bs-border-color: var(--ph-border);
}

/* Base ------------------------------------------------------------------- */

html {
    scroll-padding-top: calc(var(--ph-header-h) + 12px);
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    font-family: var(--ph-font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ph-body);
    background: var(--ph-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ph-font-heading);
    color: var(--ph-ink);
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
}

img { max-width: 100%; height: auto; }

a { text-underline-offset: .2em; }

address { font-style: normal; }

:focus-visible {
    outline: 3px solid var(--ph-red-deep);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    z-index: 2000;
    padding: .6rem 1rem;
    background: var(--ph-ink);
    color: var(--ph-white);
    border-radius: var(--ph-radius);
}

.text-brand { color: var(--ph-red-strong) !important; }

/* Buttons ---------------------------------------------------------------- */

.btn {
    --bs-btn-font-family: var(--ph-font-heading);
    --bs-btn-font-weight: 600;
    --bs-btn-border-radius: 3px;
    --bs-btn-padding-x: 1.4rem;
    --bs-btn-padding-y: .7rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    letter-spacing: .005em;
}

.btn-lg {
    --bs-btn-font-size: 1rem;
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-padding-y: .85rem;
}

.btn-brand {
    --bs-btn-color: var(--ph-white);
    --bs-btn-bg: var(--ph-red-strong);
    --bs-btn-border-color: var(--ph-red-strong);
    --bs-btn-hover-color: var(--ph-white);
    --bs-btn-hover-bg: var(--ph-red-deep);
    --bs-btn-hover-border-color: var(--ph-red-deep);
    --bs-btn-active-color: var(--ph-white);
    --bs-btn-active-bg: var(--ph-red-deep);
    --bs-btn-active-border-color: var(--ph-red-deep);
    --bs-btn-focus-shadow-rgb: 236, 31, 39;
    box-shadow: 0 6px 16px -8px rgba(200, 22, 29, .7);
}

.btn-glass {
    --bs-btn-color: var(--ph-white);
    --bs-btn-bg: rgba(255, 255, 255, .1);
    --bs-btn-border-color: rgba(255, 255, 255, .22);
    --bs-btn-hover-color: var(--ph-ink);
    --bs-btn-hover-bg: var(--ph-white);
    --bs-btn-hover-border-color: var(--ph-white);
    --bs-btn-active-color: var(--ph-ink);
    --bs-btn-active-bg: var(--ph-white);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

/* Sections --------------------------------------------------------------- */

.section {
    padding-block: var(--ph-section-y);
}

.section-title {
    font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem);
    font-weight: 800;
    letter-spacing: 0;
    margin-bottom: 1rem;
}

.section-lead {
    font-size: 1.0625rem;
    color: var(--ph-body);
    max-width: 62ch;
}

/* Reusable cards --------------------------------------------------------- */

.photo-card {
    position: relative;
    margin: 0;
    border-radius: var(--ph-radius);
    overflow: hidden;
    box-shadow: var(--ph-shadow-md);
    background: var(--ph-surface);
}

.photo-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quote-block {
    margin: 0 0 2rem;
    padding: 1.4rem 1.6rem;
    background: var(--ph-red-soft);
    border-inline-start: 4px solid var(--ph-red);
    border-radius: 0 var(--ph-radius) var(--ph-radius) 0;
}

.quote-block p {
    margin: 0;
    font-family: var(--ph-font-heading);
    font-style: italic;
    font-weight: 500;
    font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem);
    line-height: 1.5;
    color: var(--ph-ink);
}

.quote-block p::before { content: "\201C"; }
.quote-block p::after { content: "\201D"; }

/* Cookie notice (behaviour carried over from the existing site) ---------- */

.cookie-alert {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 1045; /* below Bootstrap modals (1050+) */
    padding: .85rem 0 calc(.85rem + env(safe-area-inset-bottom));
    background: rgba(11, 15, 23, .97);
    color: #e5e7eb;
    font-size: .875rem;
    transform: translateY(100%);
    transition: transform .4s ease-out;
}

.cookie-alert.is-visible { transform: translateY(0); }

.cookie-alert__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.cookie-alert__text { margin: 0; }

.cookie-alert__text a {
    color: var(--ph-white);
    font-weight: 600;
}

.cookie-alert__actions { display: flex; flex-shrink: 0; gap: .5rem; }

.cookie-alert__accept,
.cookie-alert__decline { min-width: 80px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Section header + eyebrow (Stitch: red dot + small uppercase label) ------ */

.section-head { margin-bottom: 2.75rem; }

.section-head .section-lead { margin-bottom: 0; }

.section-head--center {
    text-align: center;
    margin-inline: auto;
    max-width: 760px;
}

.section-head--center .section-lead { margin-inline: auto; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .75rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ph-red-strong);
}

.eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ph-red);
    display: inline-block;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.6);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(255, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
    }
}

.eyebrow--light { color: var(--ph-white); }

/* Highlights band: four word tiles on light grey (no counters) ------------- */

.highlights {
    background: var(--ph-surface);
    padding-block: 2.25rem;
}

.highlights__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.highlight {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding: 1.25rem 1.4rem;
    background: var(--ph-white);
    border-inline-start: 3px solid var(--ph-red);
}

.highlight__title {
    font-family: var(--ph-font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ph-ink);
}

.highlight__sub { font-size: .9rem; color: var(--ph-muted); }

/* Our Approach: five steps (horizontal on desktop, vertical on phones) ----- */

.approach__steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 0 2rem;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.approach-step {
    position: relative;
    padding: 1.5rem 1.25rem 1.4rem;
    background: var(--ph-white);
    border: 1px solid var(--ph-border);
    border-top: 3px solid var(--ph-red);
    border-radius: 3px;
}

.approach-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-bottom: .9rem;
    border-radius: 50%;
    background: var(--ph-red-strong);
    color: var(--ph-white);
    font-family: var(--ph-font-heading);
    font-weight: 600;
}

.approach-step__title { margin: 0 0 .5rem; font-size: 1.3rem; }
.approach-step p { margin: 0; font-size: .95rem; line-height: 1.6; }

/* Capital statement / important notice: light-grey box ---------------------- */

.capital-note {
    margin: 0 0 2rem;
    padding: 1.5rem 1.75rem;
    background: var(--ph-surface);
    border-inline-start: 3px solid var(--ph-red);
    border-radius: 0 3px 3px 0;
}

.capital-note p { margin: 0; line-height: 1.7; }

.capital-note__label {
    margin-bottom: .4rem !important;
    font-family: var(--ph-font-heading);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ph-ink);
}

/* CTA band ("Business enquiries" + button) ---------------------------------- */

.cta-band {
    padding-block: 3.5rem;
    background: var(--ph-dark);
    color: var(--ph-white);
}

.cta-band__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.cta-band__title {
    margin: 0;
    color: var(--ph-white);
    font-size: clamp(1.6rem, 1.3rem + 1vw, 2.2rem);
}

/* Empty state (News, Gallery until approved items exist) -------------------- */

.empty-state {
    padding: 3rem 2rem;
    background: var(--ph-surface);
    border-radius: 3px;
    text-align: center;
}

.empty-state p { margin: 0; font-size: 1.1rem; }

/* Generic content blocks for text pages -------------------------------------- */

.prose { max-width: 820px; }
.prose h2 { margin: 2.5rem 0 1rem; font-size: clamp(1.5rem, 1.25rem + .8vw, 2rem); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 1.0625rem; line-height: 1.8; }
.prose ul { padding-inline-start: 1.25rem; }
.prose li { margin-bottom: .5rem; }

.page-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }

.btn-outline-brand {
    --bs-btn-color: var(--ph-red-strong);
    --bs-btn-border-color: var(--ph-red-strong);
    --bs-btn-hover-color: var(--ph-white);
    --bs-btn-hover-bg: var(--ph-red-strong);
    --bs-btn-hover-border-color: var(--ph-red-strong);
    --bs-btn-active-color: var(--ph-white);
    --bs-btn-active-bg: var(--ph-red-deep);
    --bs-btn-active-border-color: var(--ph-red-deep);
}

@media (max-width: 1199.98px) {
    .approach__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
    .highlights__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .approach__steps { grid-template-columns: 1fr; }
    .approach-step { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; }
    .approach-step__num { grid-row: span 2; margin: 0; }
}

@media (max-width: 419.98px) {
    .highlights__list { grid-template-columns: 1fr; }
}

/* Small link card (logo + label + icon) ---------------------------------- */

.link-card {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .9rem 1.1rem;
    background: var(--ph-white);
    border: 1px solid var(--ph-border);
    border-radius: 3px;
    box-shadow: var(--ph-shadow-sm);
    color: var(--ph-ink);
    text-decoration: none;
    transition: border-color .2s ease;
}

.link-card img { width: 40px; height: 40px; object-fit: contain; }

.link-card__label {
    flex: 1;
    font-family: var(--ph-font-heading);
    font-weight: 600;
}

.link-card__icon { font-size: 1.35rem; color: var(--ph-red-strong); }

.link-card:hover { border-color: rgba(236, 31, 39, .45); color: var(--ph-red-strong); }


/* Inner-page header (includes/page-header.php) -------------------------- */

.page-header {
    padding: 3rem 0 3.5rem;
    background: var(--ph-white);
}

.page-header__crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin: 0 0 1.75rem;
    padding: 0;
    list-style: none;
    font-size: .85rem;
    color: var(--ph-muted);
}

.page-header__crumbs li + li::before {
    content: "/";
    margin-inline-end: .35rem;
    color: #b3b9c4;
}

.page-header__crumbs a { color: var(--ph-body); text-decoration: none; }
.page-header__crumbs a:hover { color: var(--ph-red-strong); }
.page-header__crumbs [aria-current] { color: var(--ph-red-strong); }

.page-header__title {
    margin: 0 0 1rem;
    font-size: clamp(2.3rem, 1.6rem + 3vw, 4rem);
    font-weight: 700;
    letter-spacing: 0;
}

.page-header__lead {
    margin: 0;
    max-width: 760px;
    font-size: clamp(1.02rem, .98rem + .3vw, 1.2rem);
    line-height: 1.65;
    color: var(--ph-body);
}

/* Contact form (includes/contact-form.php) ------------------------------- */

.inquiry-card {
    padding: 2rem;
    background: var(--ph-white);
    border: 1px solid var(--ph-border);
    border-radius: 3px;
    box-shadow: var(--ph-shadow-md);
}

.inquiry-card__title {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 600;
}

.form-required-note { margin: 0 0 1.25rem; font-size: .9rem; color: var(--ph-muted); }
.form-required-note span { color: var(--ph-red-strong); font-weight: 600; }
.careers-form__intro { margin: 0 0 1.5rem; line-height: 1.75; }
.approach__after { max-width: 85ch; margin: 0 0 1.5rem; line-height: 1.8; }
.approach__cta, .sectors__cta { margin-top: .5rem; }

.inquiry-card .form-label {
    margin-bottom: .4rem;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ph-ink);
}

.inquiry-card .form-control {
    min-height: 46px;
    padding: .65rem 1rem;
    border-color: #d5d9df;
    border-radius: 2px;
    font-size: 1rem; /* 16px avoids iOS zoom on focus */
}

.inquiry-card .form-control:focus {
    border-color: var(--ph-red);
    box-shadow: 0 0 0 .2rem rgba(236, 31, 39, .15);
}

.inquiry-card .form-control.is-invalid {
    border-color: #b42318;
    background-image: none;
    padding-inline-end: 1rem;
}

.inquiry-card__submit {
    margin-top: .5rem;
    min-width: 180px;
    border-radius: 2px;
}

.form-error {
    margin: .35rem 0 0;
    font-size: .82rem;
    color: #b42318;
}

.form-alert {
    margin-bottom: 1.25rem;
    padding: .9rem 1.1rem;
    border-inline-start: 3px solid;
    border-radius: 2px;
    font-size: .925rem;
}

.form-alert p { margin: 0; }
.form-alert:focus { outline: none; }
.form-alert--success { background: #ecfdf3; border-color: #12b76a; color: #05603a; }
.form-alert--error { background: #fef3f2; border-color: #d92d20; color: #912018; }

/* Spam trap: off-screen for people, still visible to bots. */
.form-trap {
    position: absolute !important;
    inset-inline-start: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.captcha-field {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.captcha-field .form-control { flex: 1 1 auto; min-width: 0; }

.captcha-field__image {
    flex-shrink: 0;
    width: 150px;
    height: 44px;
    border-radius: 2px;
}

.captcha-field__refresh {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 46px;
    border: 1px solid #d5d9df;
    border-radius: 2px;
    background: var(--ph-white);
    color: var(--ph-ink);
    font-size: 1.2rem;
}

.captcha-field__refresh:hover { color: var(--ph-red-strong); border-color: var(--ph-red); }

@media (max-width: 575.98px) {
    .inquiry-card { padding: 1.25rem; }
    .inquiry-card__submit { width: 100%; }
    .captcha-field { flex-wrap: wrap; }
    .captcha-field .form-control { flex-basis: 100%; }
    .page-header { padding: 2rem 0 2.5rem; }
}

/* Form locked while submitting (assets/js/forms.js) */
.inquiry-card.is-submitting .form-control,
.inquiry-card.is-submitting .file-field,
.inquiry-card.is-submitting .captcha-field__refresh {
    pointer-events: none;
    opacity: .65;
}

.inquiry-card.is-submitting .inquiry-card__submit:disabled {
    opacity: .85;
    cursor: progress;
}

/* Button hover: shine sweep (all .btn buttons) ------------------------------ */

.btn {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 1;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .45) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    pointer-events: none;
}

.btn:hover::after,
.btn:focus-visible::after {
    left: 130%;
    transition: left .75s ease;
}

.btn:disabled::after,
.btn.disabled::after { display: none; }

@media (prefers-reduced-motion: reduce) {
    .btn::after { display: none; }
}

/* RTL (dir="rtl"): mirror direction arrows. No effect on LTR pages. */
[dir="rtl"] .bi-arrow-right, [dir="rtl"] .bi-arrow-left, [dir="rtl"] .bi-chevron-right, [dir="rtl"] .bi-chevron-left,
[dir="rtl"] .bi-arrow-up-right { display: inline-block; transform: scaleX(-1); }
