/* =============================================================================
   WEDDING MAGICIANS: THE SHARED LOOK  (2 Dec 2026, third version)
   =============================================================================
   Loads after styles.css on every page, so the whole site matches.

   History, so nobody repeats it. Nick asked for "really flashy. High-end
   wedding. Magic." Version one (plum and gold, centred headings, card grids) he
   called "a basic WordPress template". Version two (Bodoni lettering, photos
   fanned like playing cards) he rejected too: "your font is over the top, the
   layout is poor and the card fan is glitchy. Look at Ric from Alchemy's designs."

   This version follows what Ric at Alchemy Inc does on the sites he built for
   Phil Pearson, Richard Jones and Chris Tennant:
     - one big cinematic photograph does the work, not decoration
     - a near-black ground, an off-white ground, and ONE accent colour (gold)
     - large, plain, readable headings (Cormorant Garamond 600) over a clean
       sans (Manrope); short headings; small spaced-out labels above them
     - simple layouts with a lot of room; hairlines; rounded photographs and
       buttons (Nick asked for both to be rounded, to match the photo gallery)
     - almost no animation
   No playing-card frames, no script lettering, no twinkles, no rotated photos.

   Headings on this site are written in Title Case (Nick, 2 Dec 2026).
   CSS is cached for a year: change the ?v= on the <link> when this file changes.
   To switch the look off on a page, remove its wm-luxe.css <link>.
   ============================================================================= */

:root {
    --black: #0a0909;
    --coal: #151314;
    --paper: #f4f1ec;
    --ink: #151314;
    --gold: #c9a24b;
    --gold-hi: #e6cf95;
    --gold-lo: #8a6a1e;
    --text: #2b2829;
    --muted: #625d5b;
    --line: #dcd5ca;
    --line-d: rgba(255,255,255,0.14);
    --radius: 14px;
    --display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans: 'Manrope', 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

    /* The old site tokens, pointed at the new palette so older markup follows. */
    --primary: #8a6a1e;
    --primary-dark: #6e5416;
    --primary-light: #c9a24b;
    --secondary: #0a0909;
    --accent-gold: #c9a24b;
    --text-dark: #151314;
    --text-gray: #4a4543;
    --text-light: #625d5b;
    --bg-light: #f4f1ec;
}

body { font-family: var(--sans); color: var(--text); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.06; color: var(--ink); text-wrap: balance; }
h4, h5, h6 { font-family: var(--sans); font-weight: 700; }
h1 { font-size: clamp(2.8rem, 6.2vw, 4.8rem); }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.8rem); }
p { line-height: 1.75; }
::selection { background: var(--gold); color: var(--black); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---- Buttons: rounded, small spaced capitals ------------------------------ */
/* Nick, 2 Dec 2026: "I think the buttons should have a radius on them as well." */
.btn {
    border-radius: 999px; font-family: var(--sans); font-weight: 700; font-size: 0.74rem;
    letter-spacing: 0.2em; text-transform: uppercase; padding: 1.1rem 2rem; line-height: 1.2;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-primary, .btn-gold { background: var(--gold); color: var(--black); border: 1px solid var(--gold); box-shadow: none; }
.btn-primary:hover, .btn-primary:focus-visible, .btn-gold:hover, .btn-gold:focus-visible { background: #fff; border-color: #fff; color: var(--black); transform: none; box-shadow: none; }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-secondary:hover, .btn-secondary:focus-visible { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--black); border: 1px solid #fff; }
.btn-white:hover, .btn-white:focus-visible { background: var(--gold); border-color: var(--gold); color: var(--black); transform: none; }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.55); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: #fff; color: var(--black); border-color: #fff; }

/* ---- Header: dark, white logo -------------------------------------------- */
.header { background: rgba(10,9,9,0.94); backdrop-filter: blur(10px); box-shadow: none; border-bottom: 1px solid var(--line-d); }
.header.scrolled { box-shadow: 0 12px 30px rgba(0,0,0,0.35); }
.logo img { height: 44px; width: auto; }
.nav { gap: 2.5rem; }
.nav-links { gap: 2.1rem; }
.nav-link { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.72); }
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link::after { height: 1px; background: var(--gold); bottom: -8px; }
.nav .btn { padding: 0.85rem 1.4rem; font-size: 0.68rem; }
.mobile-toggle span { height: 2px; background: #fff; }
.mobile-menu { background: var(--black); border-top: 1px solid var(--line-d); }
.mobile-menu a { color: rgba(255,255,255,0.8); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; border-radius: 10px; }
.mobile-menu a:hover { background: var(--coal); color: #fff; }
.mobile-menu .btn { background: var(--gold); color: var(--black) !important; }

/* ---- Dark grounds: page tops, calls to action ---------------------------- */
.page-header, .cta-section { background: var(--black); color: #fff; position: relative; }

/* The top of every inner page matches the homepage hero (Nick, 2 Dec 2026: "can
   you match the home page hero for the rest of the pages?"): a black-and-white
   wedding photograph, darkened towards the bottom, with the label, heading and
   one line of text sitting bottom-left. Each page names its own photograph with
   style="--hero: url(...); --hero-pos: x y" on the <section class="page-header">. */
.page-header {
    min-height: clamp(460px, 66vh, 660px); display: flex; align-items: flex-end; text-align: left;
    padding: calc(80px + 3rem) 0 clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--line-d);
    background:
        linear-gradient(to top, var(--black) 4%, rgba(10,9,9,0.9) 32%, rgba(10,9,9,0.32) 66%, rgba(10,9,9,0.5) 100%),
        linear-gradient(to right, rgba(10,9,9,0.55), transparent 62%),
        var(--hero, none) var(--hero-pos, 50% 30%) / cover no-repeat,
        var(--black);
}
.page-header .container { width: 100%; max-width: 1280px; padding: 0 clamp(1.25rem, 4vw, 3rem); text-align: left !important; }
.page-header h1 { color: #fff; font-size: clamp(3rem, 6.8vw, 6rem); line-height: 0.96; letter-spacing: -0.02em; margin: 0 0 1.4rem; }
.page-header h1 em, .cta-section h2 em { font-style: italic; font-weight: 500; color: var(--gold-hi); }
.page-header p { color: rgba(255,255,255,0.82); font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.75; max-width: 54ch; margin: 0; }
.breadcrumb { justify-content: flex-start; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; gap: 0.8rem; margin-bottom: 1.4rem; }
main h2 em { font-style: italic; font-weight: 500; color: var(--gold-lo); }
.breadcrumb a { color: var(--gold-hi); }
.breadcrumb span { color: rgba(255,255,255,0.5); }
.cta-section { padding: clamp(4.5rem, 9vw, 7rem) 0; }
.cta-section h2 { color: #fff; }
.cta-section p { color: rgba(255,255,255,0.78); }
.trust-bar { background: var(--coal); }

/* ---- Sections, labels, cards --------------------------------------------- */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-light { background: var(--paper); }
.section-header p { color: var(--muted); font-size: 1.05rem; }
.section-badge {
    background: none; color: var(--gold-lo); padding: 0; border-radius: 0;
    font-size: 0.7rem; font-weight: 700; letter-spacing: 0.26em; margin-bottom: 1.1rem;
}
.feature-card, .testimonial-card, .pricing-card, .contact-form {
    border-radius: var(--radius); border: 1px solid var(--line); box-shadow: none;
}
.feature-card:hover { box-shadow: none; transform: none; border-color: var(--ink); }
.feature-icon { background: var(--black); border-radius: 50%; }
.feature-icon i { color: var(--gold); }
.testimonial-stars { color: var(--gold); }
.testimonial-avatar { background: var(--black); color: var(--gold-hi); font-family: var(--display); font-size: 1.1rem; }
.pricing-card.featured { border: 1px solid var(--ink); transform: none; }
.pricing-card.featured::before { background: var(--black); color: var(--gold-hi); border-radius: 999px; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.62rem; }
.pricing-price { font-family: var(--display); font-weight: 600; color: var(--ink); }

/* ---- A text-and-photograph block for the older pages, as on the homepage ---- */
.wm-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2.5rem, 7vw, 6.5rem); align-items: center; }
.wm-split h2 { font-size: clamp(2.5rem, 5.2vw, 4.2rem); line-height: 1; margin: 0 0 2rem; }
.wm-split p { font-size: 1.08rem; line-height: 1.85; color: var(--text); margin: 0 0 1.2rem; max-width: 58ch; }
.wm-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 82% 40%; }
.wm-links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.25rem; margin-top: 2.25rem; }
.wm-link { display: inline-flex; align-items: center; gap: 0.7rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); padding-bottom: 0.5rem; border-bottom: 1px solid var(--gold); margin-right: 0.75rem; }
.wm-link i { font-size: 0.68rem; transition: transform 0.25s ease; }
.wm-link:hover i { transform: translateX(5px); }
.wm-chip { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); padding: 0.7rem 1.15rem; border: 1px solid #cfc7ba; border-radius: 999px; background: transparent; }
.wm-chip i { color: var(--gold-lo); font-size: 0.8rem; }
.wm-chip:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.wm-chip:hover i { color: var(--gold-hi); }
@media (max-width: 900px) {
    .wm-split { grid-template-columns: 1fr; }
    .wm-photo { max-width: 520px; }
}

/* ---- Forms ---------------------------------------------------------------- */
.form-group label { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.form-group input, .form-group select, .form-group textarea {
    border-radius: 10px; border: 1px solid #cfc7ba; background: #fff; font-family: var(--sans); font-size: 1rem; color: var(--text);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(201,162,75,0.3); }

/* ---- Footer ---------------------------------------------------------------- */
.footer { background: var(--black); border-top: 1px solid var(--line-d); padding-top: 4.5rem; }
.footer h4 { font-family: var(--sans); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-hi); margin-bottom: 1.4rem; }
.footer-logo { background: none; padding: 0; border-radius: 0; }
/* width:auto matters: the <img> carries width and height attributes, and without
   it the footer logo was stretched sideways (Nick spotted it, 2 Dec 2026). */
.footer-brand img { height: 46px; width: auto; max-width: 100%; }
.footer-brand p { color: rgba(255,255,255,0.62); max-width: 34ch; }
.footer-links a { color: rgba(255,255,255,0.66); font-size: 0.95rem; }
.footer-links a:hover { color: #fff; }
.footer-grid { margin-bottom: 3rem; }
.footer-bottom { border-top-color: var(--line-d); font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--gold-hi); }

/* ---- Odds and ends on the older pages -------------------------------------- */
/* The "as seen on television" logo strip is a black-backed picture with square
   corners (Nick, 2 Dec 2026: "This banner has got square edges. Doesn't look
   nice."). On a dark ground the black melts away with screen blending. */
img[src*="TV-Magician"] { mix-blend-mode: screen; border-radius: 12px; }

/* Photographs and films are rounded everywhere, the same as the photo gallery. */
main img:not(.hero-photo):not(.bg):not([src*="TV-Magician"]), main iframe { border-radius: var(--radius); }
/* "body" in front so this beats the gallery component's own 6px, which is printed later in the page. */
body .wm-tile { border-radius: var(--radius); overflow: hidden; }
body .wm-tile img { border-radius: 0; }

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