/* ===========================
   MAYFAIR LAW — RESOURCES
   Shared stylesheet for all article pages
=========================== */

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

:root {
    --navy:        #1B2A6B;
    --navy-dark:   #111B4E;
    --navy-deeper: #0C1230;
    --gold:        #C4A44A;
    --gold-light:  #D4B56A;
    --gold-pale:   #F7F0DF;
    --white:       #FFFFFF;
    --off-white:   #F5F5F7;
    --charcoal:    #1d1d1f;
    --gray-mid:    #6e6e73;
    --gray-light:  #d2d2d7;
    --border:      rgba(0,0,0,0.08);
    --shadow-sm:   0 2px 12px rgba(0,0,0,0.07);
    --shadow-md:   0 8px 40px rgba(0,0,0,0.11);
    --radius:      18px;
    --ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition:  all 0.4s var(--ease);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--charcoal);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ===========================
   NAVBAR
=========================== */
#navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 14px 0;
    background: rgba(255,255,255,0.93);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.07), var(--shadow-sm);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; transition: opacity 0.3s; }
.nav-logo img { height: 62px; width: auto; display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.12)); transition: filter 0.3s; }
.nav-logo:hover img { filter: drop-shadow(0 0 8px rgba(196,164,74,0.55)); }
.logo-text-wrap { display: flex; flex-direction: column; line-height: 1; }
.logo-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 21px; font-weight: 600; letter-spacing: 0.06em;
    color: var(--navy); transition: color 0.3s;
}
.nav-logo:hover .logo-name { color: var(--gold); }
.logo-sub {
    font-size: 9.5px; font-weight: 500; letter-spacing: 0.3em;
    color: var(--gold); margin-top: 5px;
}

.nav-links { display: flex; align-items: center; gap: 24px; list-style: none; }
.nav-links a {
    font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
    color: var(--charcoal); text-decoration: none;
    white-space: nowrap; transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.btn-nav-call {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 20px; border-radius: 100px;
    background: var(--gold); color: #fff;
    font-size: 13px; font-weight: 600; text-decoration: none;
    white-space: nowrap; transition: var(--transition);
}
.btn-nav-call:hover { background: var(--navy); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(27,42,107,0.28); }

/* ===========================
   PAGE HEADER
=========================== */
.blog-header {
    padding: 160px 0 56px;
    background: linear-gradient(170deg, var(--navy-deeper) 0%, var(--navy) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.blog-header::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.section-label {
    display: inline-block;
    font-size: 11px; font-weight: 600; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}

.blog-header h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(38px, 5.4vw, 58px);
    font-weight: 600; line-height: 1.12; letter-spacing: -0.015em;
    margin-bottom: 18px;
}
.blog-header p {
    font-size: 17px; line-height: 1.75;
    color: rgba(255,255,255,0.74); max-width: 640px;
}

/* ===========================
   ARTICLE INDEX GRID
=========================== */
.blog-list { padding: 68px 0 88px; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 26px;
}

.blog-card {
    display: flex; flex-direction: column;
    padding: 32px 30px 30px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    position: relative; overflow: hidden;
    transition: var(--transition);
}
.blog-card::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.45s var(--ease);
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.blog-card:hover::after { transform: scaleX(1); }

.blog-card-tag {
    display: inline-block; align-self: flex-start;
    font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--gold);
    padding: 6px 12px; border: 1px solid rgba(196,164,74,0.34);
    border-radius: 100px; margin-bottom: 18px;
}
.blog-card h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px; font-weight: 600; line-height: 1.32;
    color: var(--navy); margin-bottom: 12px;
    transition: color 0.3s;
}
.blog-card:hover h2 { color: var(--gold); }
.blog-card p {
    font-size: 14.5px; line-height: 1.72; color: var(--gray-mid);
    margin-bottom: 20px; flex: 1;
}
.blog-card-meta {
    font-size: 12.5px; color: var(--gray-mid);
    padding-top: 16px; border-top: 1px solid var(--border);
}

/* ===========================
   ARTICLE BODY
=========================== */
.article-wrap { padding: 62px 0 84px; }
.article-inner { max-width: 728px; margin: 0 auto; }

.article-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
    font-size: 13.5px; color: var(--gray-mid);
    padding-bottom: 30px; margin-bottom: 38px;
    border-bottom: 1px solid var(--border);
}
.article-meta strong { color: var(--navy); font-weight: 600; }
.article-meta span.dot { color: var(--gray-light); }

.article-inner p {
    font-size: 17px; line-height: 1.82;
    color: #33333a; margin-bottom: 24px;
}

.article-inner h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 30px; font-weight: 600; line-height: 1.26;
    color: var(--navy); margin: 48px 0 18px;
    letter-spacing: -0.01em;
}
.article-inner h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px; font-weight: 600; line-height: 1.34;
    color: var(--navy); margin: 34px 0 14px;
}

.article-inner ul, .article-inner ol { margin: 0 0 26px 22px; }
.article-inner li {
    font-size: 17px; line-height: 1.8;
    color: #33333a; margin-bottom: 11px; padding-left: 6px;
}
.article-inner li::marker { color: var(--gold); }

.article-inner a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(196,164,74,0.55); transition: color 0.25s; }
.article-inner a:hover { color: var(--gold); }

.article-inner strong { color: var(--navy); font-weight: 600; }

/* Callout box for key legal points */
.callout {
    background: var(--off-white);
    border-left: 3px solid var(--gold);
    border-radius: 0 10px 10px 0;
    padding: 24px 28px;
    margin: 32px 0;
}
.callout p { margin-bottom: 0; font-size: 16px; }
.callout p + p { margin-top: 14px; }
.callout-label {
    display: block;
    font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}

/* Disclaimer at article end */
.article-disclaimer {
    margin-top: 48px; padding: 22px 26px;
    background: rgba(0,0,0,0.028);
    border-left: 3px solid rgba(196,164,74,0.4);
    border-radius: 0 8px 8px 0;
}
.article-disclaimer p {
    font-size: 13.5px; line-height: 1.75;
    color: var(--gray-mid); margin-bottom: 0; font-style: italic;
}

/* ===========================
   CTA BLOCK
=========================== */
.article-cta {
    margin: 56px auto 0;
    max-width: 728px;
    padding: 44px 42px;
    background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deeper) 100%);
    border-radius: var(--radius);
    text-align: center;
    color: #fff;
}
.article-cta h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 27px; font-weight: 600; line-height: 1.3;
    margin-bottom: 14px; color: #fff;
}
.article-cta p {
    font-size: 15.5px; line-height: 1.72;
    color: rgba(255,255,255,0.75); margin-bottom: 26px;
}
.cta-btns { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }
.btn-gold, .btn-ghost {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 14px 28px; border-radius: 100px;
    font-size: 14.5px; font-weight: 600; text-decoration: none;
    transition: var(--transition);
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(196,164,74,0.36); }
.btn-ghost { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.22); }
.btn-ghost:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

/* Back link */
.back-link {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13.5px; font-weight: 500; color: var(--gray-mid);
    text-decoration: none; margin-bottom: 30px;
    transition: color 0.25s;
}
.back-link:hover { color: var(--gold); }

/* ===========================
   FOOTER
=========================== */
#footer {
    background: var(--navy-deeper);
    color: rgba(255,255,255,0.62);
    padding: 64px 0 34px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
    gap: 46px;
}
.footer-brand .logo-name { color: #fff; font-size: 24px; }
.footer-brand > p {
    font-size: 14px; line-height: 1.78;
    color: rgba(255,255,255,0.5); margin-top: 18px; max-width: 320px;
}
.footer-col h4 {
    font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--gold); margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col ul li a {
    font-size: 14px; color: rgba(255,255,255,0.58);
    text-decoration: none; transition: color 0.3s;
}
.footer-col ul li a:hover { color: #fff; }

.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 44px 0 26px; }

.footer-bottom { display: flex; justify-content: space-between; gap: 34px; align-items: flex-start; }
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.38); }
.footer-legal-links { display: flex; gap: 18px; margin-top: 8px; }
.footer-legal-links a { font-size: 12.5px; color: rgba(255,255,255,0.38); text-decoration: none; transition: color 0.3s; }
.footer-legal-links a:hover { color: var(--gold); }
.footer-disclaimer {
    font-size: 11.5px; line-height: 1.72;
    color: rgba(255,255,255,0.3); max-width: 560px; text-align: right;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 980px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px; }
}

@media (max-width: 860px) {
    .nav-links { display: none; }
    .nav-logo img { height: 52px; }
    .logo-name { font-size: 18px; }
    .blog-header { padding: 132px 0 46px; }
    .article-wrap { padding: 46px 0 64px; }
    .article-inner p, .article-inner li { font-size: 16.5px; }
    .article-inner h2 { font-size: 26px; margin: 40px 0 16px; }
    .article-cta { padding: 36px 26px; }
    .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; }
    .footer-disclaimer { text-align: left; }
    .cta-btns { flex-direction: column; }
    .btn-gold, .btn-ghost { justify-content: center; }
}
