/*
Theme Name:  JEC Conveyancing Centre
Theme URI:   https://jec-conveyancing-centre.je-hosting.co.uk
Author:      JE Consulting
Author URI:  https://je-consulting.co.uk
Description: Custom platform theme for JEC Conveyancing Centre
Version:     1.0.1
License:     Private
Text Domain: jec-theme
*/

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

/* ── Design tokens ──────────────────────────────────── */
:root {
    --brand:          #1a3a6b;
    --brand-dark:     #122a52;
    --brand-light:    #e8edf5;
    --brand-mid:      #2d5499;
    --silver:         #9aa5b4;
    --silver-light:   #dce3ec;
    --silver-dark:    #6b7a8d;
    --ink:            #0f1e38;
    --ink-mid:        #3a4a60;
    --ink-muted:      #7a8a9a;
    --surface:        #ffffff;
    --surface-alt:    #f4f6f9;
    --border:         #dce3ec;
    --radius-sm:      6px;
    --radius-md:      12px;
    --radius-lg:      20px;
    --shadow-sm:      0 1px 4px rgba(15,30,56,0.08);
    --shadow-md:      0 4px 16px rgba(15,30,56,0.12);
    --shadow-lg:      0 12px 40px rgba(15,30,56,0.15);
    --font:           'Montserrat', sans-serif;
    --max-width:      1140px;
    --header-h:       76px;
}

/* ── Base ───────────────────────────────────────────── */
body {
    font-family: var(--font);
    color: var(--ink);
    background: var(--surface);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-mid); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
    font-family: var(--font);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
    letter-spacing: -0.02em;
}

p { color: var(--ink-mid); margin-bottom: 1em; line-height: 1.7; }
p:last-child { margin-bottom: 0; }

/* ── Layout ─────────────────────────────────────────── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 28px;
}

.site-main {
    min-height: calc(100vh - var(--header-h) - 200px);
    padding: 64px 0;
}

/* ── Header ─────────────────────────────────────────── */
.site-header {
    height: var(--header-h);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.site-header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.site-logo img {
    height: 48px;
    width: auto;
}

.site-logo-divider {
    width: 1px;
    height: 32px;
    background: var(--border);
}

.site-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.site-logo-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--brand);
    letter-spacing: -0.01em;
}

.site-logo-sub {
    font-size: 10px;
    color: var(--silver-dark);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
}

.site-nav a {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-mid);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    letter-spacing: 0.01em;
}

.site-nav a:hover {
    color: var(--brand);
    background: var(--brand-light);
}

/* ── Hero ───────────────────────────────────────────── */
.jec-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--brand);
}

.jec-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    opacity: 0.2;
}

.jec-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(10,22,48,0.98) 0%,
        rgba(26,58,107,0.90) 50%,
        rgba(26,58,107,0.40) 100%
    );
}



.jec-hero .container {
    position: relative;
    z-index: 3;
    padding-top: 80px;
    padding-bottom: 80px;
}

.jec-hero-inner { max-width: 600px; }

.jec-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--silver);
    background: rgba(154,165,180,0.10);
    border: 1px solid rgba(154,165,180,0.28);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.jec-hero h1 {
    font-size: clamp(34px, 4.5vw, 52px);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.jec-hero h1 span {
    color: var(--silver);
}

.jec-hero p {
    font-size: 17px;
    color: rgba(255,255,255,0.70);
    max-width: 480px;
    margin-bottom: 40px;
    line-height: 1.65;
}

.jec-hero-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* ── Buttons ────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1;
    letter-spacing: 0.02em;
    font-family: var(--font);
}

.btn-primary {
    background: white;
    color: var(--brand);
    box-shadow: var(--shadow-md);
}
.btn-primary:hover {
    background: var(--surface-alt);
    color: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-silver {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(154,165,180,0.4);
}
.btn-silver:hover {
    background: rgba(154,165,180,0.1);
    color: white;
    border-color: rgba(154,165,180,0.65);
}

.btn-brand {
    background: var(--brand);
    color: white;
    box-shadow: 0 4px 16px rgba(26,58,107,0.3);
}
.btn-brand:hover {
    background: var(--brand-dark);
    color: white;
    transform: translateY(-1px);
}

/* ── Cards ──────────────────────────────────────────── */
.jec-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}
.jec-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--silver-light);
}

.jec-card-icon {
    width: 48px;
    height: 48px;
    background: var(--brand-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 22px;
    border: 1px solid var(--silver-light);
}

.jec-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--ink);
}

.jec-card p {
    font-size: 14px;
    color: var(--ink-muted);
    margin: 0;
    line-height: 1.6;
}

/* ── Section ────────────────────────────────────────── */
.jec-section { padding: 80px 0; }
.jec-section-alt { background: var(--surface-alt); }

.jec-section-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 56px;
}

.jec-section-header h2 {
    font-size: clamp(26px, 3vw, 38px);
    margin-bottom: 14px;
}

.jec-section-header p {
    font-size: 16px;
    color: var(--ink-muted);
    margin: 0;
    line-height: 1.65;
}

.jec-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-mid);
    background: var(--brand-light);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 14px;
    border: 1px solid var(--silver-light);
}

/* ── Grid ───────────────────────────────────────────── */
.jec-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.jec-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ── Stats strip ────────────────────────────────────── */
.jec-stats-strip {
    background: var(--brand-dark);
    padding: 44px 0;
    border-top: 3px solid var(--silver-dark);
    border-bottom: 3px solid var(--silver-dark);
}

.jec-stats-inner {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 24px;
}

.jec-stat { text-align: center; }

.jec-stat-num {
    font-size: 38px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.03em;
}

.jec-stat-label {
    font-size: 11px;
    color: var(--silver);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 4px;
}

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
    background: var(--ink);
    padding: 44px 0;

}

.site-footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.site-footer p { color: rgba(255,255,255,0.4); font-size: 13px; margin: 0; }
.site-footer a { color: rgba(255,255,255,0.55); font-size: 13px; }
.site-footer a:hover { color: white; }

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo img {
    height: 34px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.6;
}

.footer-logo-text {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
}

/* ── WP content ─────────────────────────────────────── */
.entry-content h1, .entry-content h2,
.entry-content h3, .entry-content h4 { margin: 1.5em 0 0.6em; }
.entry-content ul, .entry-content ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
    color: var(--ink-mid);
}
.entry-content li { margin-bottom: 0.4em; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
    .jec-grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .jec-grid-3, .jec-grid-2 { grid-template-columns: 1fr; }
    .site-nav { display: none; }
    .jec-hero { min-height: auto; }
    .jec-stats-inner { gap: 32px; }
}
