/* ============================================================
   Jewellers Reviews Child Theme v1.0.5
   Cormorant Garamond + DM Sans  |  Gold #c8a951 · Dark #1a1a1a
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,400&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap');

:root {
    --gold:   #c8a951;
    --gold-d: #a8893a;
    --gold-l: #f0e4b0;
    --dark:   #1a1a1a;
    --mid:    #555;
    --muted:  #888;
    --border: #e4ddd4;
    --bg:     #faf9f7;
    --white:  #fff;
    --hh:     68px;
    --max:    1280px;
    --px:     clamp(16px, 4vw, 40px);
    --ease:   cubic-bezier(.22,1,.36,1);
}

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

body {
    font-family: 'DM Sans', system-ui, sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--dark);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

h1,h2,h3,h4,h5,h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    color: var(--dark);
}

a { color: var(--gold-d); text-decoration: none; }
a:hover { color: var(--dark); }
img { max-width: 100%; height: auto; display: block; }

/* ── Hide any GP elements that might sneak through ── */
.site-header, #site-header,
.main-navigation, #site-navigation,
.mobile-menu-control-wrapper,
#colophon, .site-footer,
.generate-back-to-top,
.page-header.archive-header,
.author-bio-wrap,
.author.vcard,
.archive .author-description { display: none !important; }

/* ══════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════ */

.jr-site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--hh);
    z-index: 9999;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .25s, height .25s;
}

.jr-site-header.is-scrolled {
    height: 58px;
    box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

/* Push page content below fixed header */
body { padding-top: var(--hh); }
.admin-bar .jr-site-header { top: 32px; }
.admin-bar body { padding-top: calc(var(--hh) + 32px); }

.jr-header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--px);
    height: 100%;
    display: flex;
    align-items: center;
}

/* Logo */
.jr-logo {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-right: 28px;
}

.jr-logo img,
.jr-logo .custom-logo { height: 42px !important; width: auto !important; max-height: 42px !important; }

.jr-logo-text { display: flex; align-items: center; gap: 8px; }
.jr-logo-mark { font-size: 20px; color: var(--gold); line-height: 1; }
.jr-logo-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 16px; font-weight: 600;
    color: var(--dark); line-height: 1.15;
}

/* Desktop nav */
.jr-primary-nav { flex: 1; }
.jr-nav-list {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: center; gap: 2px;
}
.jr-nav-link {
    display: block; padding: 7px 10px;
    font-size: 13.5px; font-weight: 500; color: var(--mid);
    border-radius: 6px; white-space: nowrap; text-decoration: none;
    transition: color .15s, background .15s;
}
.jr-nav-link:hover { color: var(--dark); background: var(--bg); }
.jr-nav-link--cta {
    color: var(--gold-d) !important; font-weight: 600;
    background: #fffbeb; border: 1px solid rgba(200,169,81,.3);
    margin-left: 4px; padding: 6px 12px;
}
.jr-nav-link--cta:hover { background: var(--gold); color: var(--dark) !important; border-color: var(--gold); }

/* Header buttons */
.jr-header-actions { flex-shrink: 0; display: flex; align-items: center; gap: 6px; margin-left: 12px; }
.jr-header-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 0 15px; height: 34px; font-size: 13px; font-weight: 600;
    border-radius: 7px; border: 1.5px solid transparent;
    cursor: pointer; text-decoration: none; font-family: inherit;
    white-space: nowrap; transition: all .15s; line-height: 1;
}
.jr-header-btn--ghost { color: var(--mid); border-color: var(--border); background: transparent; }
.jr-header-btn--ghost:hover { color: var(--dark); border-color: var(--dark); background: var(--bg); }
.jr-header-btn--primary { background: var(--dark); color: #fff !important; border-color: var(--dark); }
.jr-header-btn--primary:hover { background: var(--gold); border-color: var(--gold); color: var(--dark) !important; }
.jr-header-btn--text { color: var(--muted); background: none; border-color: transparent; font-size: 12px; padding: 0 8px; }
.jr-header-btn--text:hover { color: var(--dark); }

/* Hamburger */
.jr-hamburger {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 8px; border-radius: 6px; margin-left: auto; flex-shrink: 0;
}
.jr-hamburger:hover { background: var(--bg); }
.jr-ham-line { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.jr-hamburger[aria-expanded="true"] .jr-ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.jr-hamburger[aria-expanded="true"] .jr-ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.jr-hamburger[aria-expanded="true"] .jr-ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.jr-mobile-menu {
    display: none; position: fixed;
    top: var(--hh); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0,0,0,.12);
    padding: 12px var(--px) 24px;
    max-height: 0; overflow: hidden;
    transition: max-height .35s var(--ease); z-index: 9998;
}
.jr-mobile-menu.is-open { max-height: 80vh; overflow-y: auto; }
.jr-mobile-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.jr-mobile-list li a {
    display: block; padding: 12px 14px; font-size: 15px; font-weight: 500;
    color: var(--mid); border-radius: 8px; text-decoration: none;
    transition: background .12s, color .12s;
}
.jr-mobile-list li a:hover { background: var(--bg); color: var(--dark); }
.jr-mobile-cta  { color: var(--gold-d) !important; font-weight: 700 !important; background: #fffbeb !important; }
.jr-mobile-join { color: var(--dark) !important; font-weight: 700 !important; }
.jr-mobile-sep  { height: 1px; background: var(--border); margin: 6px 14px; }

/* Scroll progress */
.jr-scroll-bar { position: fixed; top: 0; left: 0; height: 2px; background: var(--gold); z-index: 10000; width: 0%; pointer-events: none; }

/* ══════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════ */

.jr-site-footer { background: #141210; color: #7a7268; font-family: 'DM Sans', sans-serif; margin-top: 80px; }

/* CTA strip */
.jr-footer-cta { background: linear-gradient(135deg, #1c1811 0%, #262014 100%); border-bottom: 1px solid rgba(200,169,81,.15); padding: clamp(24px,4vw,40px) var(--px); }
.jr-footer-cta-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.jr-footer-cta-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(20px,2.5vw,28px); font-weight: 600; color: #fff; margin: 0 0 4px; }
.jr-footer-cta-sub { font-size: 14px; color: #7a7268; margin: 0; line-height: 1.5; }
.jr-footer-cta-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background: var(--gold); color: var(--dark) !important; font-weight: 700; font-size: 14px; border-radius: 7px; white-space: nowrap; text-decoration: none; flex-shrink: 0; transition: background .15s, transform .15s; }
.jr-footer-cta-btn:hover { background: var(--gold-l); transform: translateX(2px); }

/* Grid */
.jr-footer-main { max-width: var(--max); margin: 0 auto; padding: clamp(36px,5vw,60px) var(--px) clamp(32px,4vw,52px); }
.jr-footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: clamp(24px,4vw,56px); }

/* Brand */
.jr-footer-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; margin-bottom: 16px; }
.jr-footer-logo-mark { font-size: 18px; color: var(--gold); }
.jr-footer-logo-name { font-family: 'Cormorant Garamond', serif; font-size: 15px; font-weight: 600; color: #fff; line-height: 1.2; }
.jr-footer-tagline { font-size: 13px; color: #4e4840; line-height: 1.6; margin: 0 0 20px; max-width: 260px; }
.jr-trust-badges { display: flex; flex-direction: column; gap: 8px; }
.jr-trust-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #5a5248; font-weight: 500; }
.jr-trust-badge svg { color: var(--gold); flex-shrink: 0; }

/* Columns */
.jr-footer-col-title { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #ccc; margin: 0 0 16px; }
.jr-footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.jr-footer-links a { font-size: 13px; color: #5a5248; text-decoration: none; transition: color .15s; }
.jr-footer-links a:hover { color: var(--gold); }

/* Bottom */
.jr-footer-bottom { border-top: 1px solid rgba(255,255,255,.06); }
.jr-footer-bottom-inner { max-width: var(--max); margin: 0 auto; padding: 16px var(--px); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.jr-footer-copy { font-size: 12px; color: #3a3530; margin: 0; }
.jr-footer-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }
.jr-footer-legal a { font-size: 12px; color: #3a3530; text-decoration: none; transition: color .15s; }
.jr-footer-legal a:hover { color: var(--gold); }

/* ══════════════════════════════════════════════════
   RESPONSIVE — consolidated, no conflicts
══════════════════════════════════════════════════ */

/* ── Tablet & Mobile (≤1024px) ── */
@media (max-width: 1024px) {
    /* Hide desktop nav and action buttons completely */
    .jr-primary-nav  { display: none !important; }
    .jr-header-actions { display: none !important; }

    /* Show hamburger, push it to the right */
    .jr-hamburger { display: flex !important; margin-left: auto; }
    .jr-header-inner { justify-content: space-between; }

    /* Mobile drawer — hidden by default with clip */
    .jr-mobile-menu {
        display: block !important;
        position: fixed;
        top: var(--hh); left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 12px 40px rgba(0,0,0,.12);
        padding: 0;           /* no padding when closed */
        max-height: 0;
        overflow: hidden;     /* clips the "Home" peeking */
        transition: max-height .35s var(--ease), padding .35s;
        z-index: 9998;
    }
    .jr-mobile-menu.is-open {
        max-height: 80vh;
        overflow-y: auto;
        padding: 12px var(--px) 24px; /* padding only when open */
    }

    /* Footer */
    .jr-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 24px; }
    .jr-footer-brand { grid-column: 1 / -1; }
}

/* ── Tablet portrait (≤768px) ── */
@media (max-width: 768px) {
    :root { --hh: 60px; }
    .jr-footer-cta-inner { flex-direction: column; align-items: flex-start; }
    .jr-footer-cta-btn { width: 100%; justify-content: center; }
    .jr-footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ── Mobile (≤580px) ── */
@media (max-width: 580px) {
    :root { --hh: 56px; }
    .jr-footer-grid { grid-template-columns: 1fr; }
    .jr-site-footer { margin-top: 48px; }
}

/* ── Admin bar offsets ── */
@media screen and (max-width: 782px) {
    .admin-bar .jr-site-header { top: 46px; }
    .admin-bar body { padding-top: calc(var(--hh) + 46px); }
    .admin-bar .jr-mobile-menu { top: calc(var(--hh) + 46px); }
}

/* ══════════════════════════════════════════════════
   CONTENT WIDTH
══════════════════════════════════════════════════ */

.generate-columns-container,
.grid-container {
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(16px, 4vw, 40px) !important;
    padding-right: clamp(16px, 4vw, 40px) !important;
    width: 100% !important;
}

.jr-profile-wrap,
.jr-biz-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px clamp(16px, 4vw, 40px) 64px;
    width: 100%;
}
