/* ============================================================
   Clive Stacey — refined design system
   ------------------------------------------------------------
   Principles:
   - Two layouts only: .split-sticky (with mandatory label) and
     .centered (no label, max-width column).
   - Visual interest from structure, not decoration.
   - Strategic visual breaks: 1px tan rules, offset pull quotes,
     light step numbers.
   ============================================================ */

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

:root {
    --navy: #1c2e3f;
    --navy-light: #253545;
    --accent: #c5a180;
    --accent-light: #e3d3bf;
    --text: #1f2a36;       /* darker for stronger contrast vs body */
    --text-body: #4a5765;  /* body copy */
    --text-muted: #6b7684;
    --bg: #fcfaf8;
    --bg-alt: #f7f4f0;
    --border: #ece6dd;
    --rule: #c5a180;       /* horizontal rules use accent */
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: var(--tweak-body-size, 17px);
    line-height: 1.65;
    color: var(--text-body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.no-sticky header { position: static; }
body.no-rules .bg-white + .bg-white::before,
body.no-rules .bg-grey  + .bg-grey::before { display: none; }

/* ============================================================
   Header / footer
   ============================================================ */
header {
    border-bottom: 1px solid var(--border);
    padding: 18px 0;
    position: sticky;
    top: 0;
    background: rgba(252, 250, 248, 0.92);
    backdrop-filter: blur(8px);
    z-index: 100;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--navy);
}

.logo-mark {
    height: var(--tweak-logo-size, 110px);
    width: auto;
    display: block;
    transition: height 0.15s ease;
}

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

.logo-name {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--navy);
    text-transform: uppercase;
}

.logo-role {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.4px;
    color: var(--accent);
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-body);
    text-decoration: none;
    font-size: var(--tweak-nav-size, 15px);
    font-weight: 500;
    transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--navy); }

.cta-nav {
    padding: 11px 22px;
    background: #b8845a;
    color: #ffffff;
    border: none;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    transition: background 0.15s ease;
}

.cta-nav:hover { background: var(--navy); color: #ffffff; }

footer {
    border-top: 1px solid var(--border);
    padding: 56px 0 32px 0;
    background: var(--bg);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-section h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.footer-nav { 
    display: flex; 
    flex-direction: column;
    gap: 12px; 
}

.footer-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.footer-nav a:hover { color: var(--navy); }

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-contact a,
.footer-contact p {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    margin: 0;
}

.footer-contact a:hover { color: var(--navy); }

.footer-connect {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-connect a {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
}

.footer-connect a:hover { color: var(--navy); }

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.footer-copyright {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

/* ============================================================
   Layout primitives
   ============================================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
}

section {
    padding: 80px 0;
    position: relative;
}

section.bg-white { background: var(--bg); }
section.bg-grey  { background: var(--bg-alt); }

/* Thin tan rule between consecutive same-tone sections.
   Implemented as a 1px line drawn at the top of any section
   that follows another section with the same background. */
.bg-white + .bg-white::before,
.bg-grey  + .bg-grey::before {
    content: '';
    position: absolute;
    top: 0;
    left: 60px;
    right: 60px;
    height: 1px;
    background: var(--rule);
    opacity: 0.45;
}

/* Optional explicit rule */
.section-rule {
    border: 0;
    height: 1px;
    background: var(--rule);
    opacity: 0.45;
    max-width: 1080px;
    margin: 0 auto;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3 {
    color: var(--navy);
    font-weight: 700;
    letter-spacing: -0.015em;
}

h2 {
    font-size: 38px;
    line-height: 1.1;
    margin-bottom: 24px;
}

h3 {
    font-size: 20px;
    line-height: 1.25;
}

p {
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 22px;
    color: var(--text-body);
}

p:last-child { margin-bottom: 0; }

.emphasis {
    color: var(--text);
    font-weight: 600;
}

a { color: var(--navy); }

/* ============================================================
   Hero — kept accent bar, removed circles
   ============================================================ */
.hero {
    background: var(--navy);
    padding: 100px 0 88px;
    overflow: hidden;
}

.hero-accent {
    width: 56px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 36px;
}

.hero h1 {
    font-size: var(--tweak-hero-size, 64px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: var(--bg);
    margin-bottom: 32px;
    max-width: 880px;
    text-wrap: balance;
}

.hero p {
    font-size: 19px;
    line-height: 1.55;
    max-width: 620px;
    color: rgba(252, 250, 248, 0.78);
    margin-bottom: 12px;
}

.hero p:last-child { margin-bottom: 0; }

/* ============================================================
   Section label — required on every .split-sticky sidebar
   ============================================================ */
.section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    color: var(--accent);
    margin-bottom: 18px;
    text-transform: uppercase;
}

/* ============================================================
   LAYOUT 1: Sticky sidebar — long-form pages
   ============================================================ */
.split-sticky {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 96px;
    align-items: start;
}

.split-sidebar {
    position: sticky;
    top: 120px;
}

.split-sidebar h2 {
    margin-bottom: 0;
}

/* ============================================================
   LAYOUT 2: Centered column — shorter pages / focal content
   No labels here, by rule.
   ============================================================ */
.centered {
    max-width: 720px;
    margin: 0 auto;
}

.centered h2 {
    margin-bottom: 32px;
    text-wrap: balance;
}

.centered p { font-size: 18px; }

/* ============================================================
   Tension — full-bleed editorial intro statements.
   Removed the decorative square; rely on type weight + size.
   ============================================================ */
.tension .container { max-width: 980px; }

.tension-text {
    font-size: 30px;
    line-height: 1.3;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 36px;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.tension-text:last-child { margin-bottom: 0; }

/* ============================================================
   Lists
   ============================================================ */
ul { list-style: none; }

ul li {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 12px;
    padding-left: 22px;
    position: relative;
    color: var(--text);
}

ul li:last-child { margin-bottom: 0; }

ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 8px;
    height: 1px;
    background: var(--accent);
}

/* ============================================================
   Highlight box — used SPARINGLY for key lists / conclusions
   ============================================================ */
.highlight-box {
    background: var(--bg-alt);
    padding: 28px 32px;
    margin: 28px 0;
    border-left: 2px solid var(--accent);
}

.bg-grey .highlight-box {
    background: var(--bg);
}

/* ============================================================
   Pull quote — offset LEFT of text column with tan border.
   Use inside a .split-sticky right column to break long copy.
   ============================================================ */
.pull-quote {
    margin: 40px 0 40px -56px;
    padding: 8px 0 8px 24px;
    border-left: 2px solid var(--accent);
    max-width: 520px;
}

.pull-quote p {
    font-size: 22px;
    line-height: 1.4;
    font-style: italic;
    font-weight: 500;
    color: var(--navy);
    letter-spacing: -0.01em;
    margin-bottom: 0;
    text-wrap: balance;
}

.pull-quote cite {
    display: block;
    margin-top: 14px;
    font-style: normal;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted);
}

@media (max-width: 1024px) {
    .pull-quote { margin-left: 0; }
}

/* ============================================================
   Step number — large, light, tan. For sequential sections.
   Sits in the sidebar in place of a section label.
   ============================================================ */
.step-number {
    font-size: 88px;
    line-height: 1;
    font-weight: 500;
    color: var(--accent);
    opacity: 0.55;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
    font-feature-settings: 'tnum';
    display: block;
}

/* When a step number is used, suppress the label spacing */
.split-sidebar .step-number + h2 { margin-top: 4px; }

/* ============================================================
   Method section — dark band. Removed grid pattern.
   ============================================================ */
.method {
    background: var(--navy);
}

.method h2 {
    font-size: 44px;
    color: var(--bg);
    margin-bottom: 20px;
    max-width: 760px;
    line-height: 1.08;
}

.method > .container > p {
    color: rgba(252, 250, 248, 0.72);
    max-width: 640px;
    margin-bottom: 56px;
    font-size: 18px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 44px 60px;
    margin-top: 56px;
    padding-top: 56px;
    border-top: 1px solid rgba(197, 161, 128, 0.25);
}

.process-item {
    border-left: 2px solid var(--accent);
    padding-left: 24px;
}

.process-item h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--bg);
    margin-bottom: 8px;
    letter-spacing: 0.2px;
    text-transform: none;
}

.process-item p {
    font-size: 15px;
    color: rgba(252, 250, 248, 0.7);
    line-height: 1.55;
    margin: 0;
}

/* ============================================================
   Full-width quote section — kept the quote glyph,
   centered the column, removed the absolute-positioned mark.
   ============================================================ */
.quote .container {
    max-width: 900px;
    text-align: left;
}

.quote-mark {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 96px;
    line-height: 0.7;
    color: var(--accent);
    opacity: 0.45;
    margin-bottom: 8px;
    display: block;
}

.quote p {
    font-size: 28px;
    line-height: 1.4;
    font-style: italic;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.quote cite {
    font-size: 12px;
    font-style: normal;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

/* ============================================================
   Offerings (two-card row on home)
   ============================================================ */
.offerings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 56px;
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--rule);
}

.offering-card {
    border-left: 2px solid var(--accent);
    padding-left: 24px;
}

.offering-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    line-height: 1.25;
}

.offering-card p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-body);
}

.offering-card a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
}

.offering-card a:hover { color: var(--accent); }

.strategy-intro {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-body);
    max-width: 640px;
}

/* ============================================================
   CTA button
   ============================================================ */
.cta-button {
    display: inline-block;
    padding: 18px 36px;
    background: #b8845a;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.4px;
    margin-top: 32px;
    transition: background 0.15s ease;
}

.cta-button:hover { background: var(--navy); color: #ffffff; }

.alternative-contact {
    margin-top: 16px;
    font-size: 15px;
    color: var(--text-muted);
}

.alternative-contact a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 600;
}

.alternative-contact a:hover {
    text-decoration: underline;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1180px) {
    .nav-links { gap: 22px; font-size: 14px; }
    .nav-links a { font-size: 14px; }
    .cta-nav { padding: 10px 18px; font-size: 13px; }
}

@media (max-width: 1024px) {
    .container, nav, .footer-content {
        padding-left: 40px;
        padding-right: 40px;
    }

    .bg-white + .bg-white::before,
    .bg-grey  + .bg-grey::before {
        left: 40px;
        right: 40px;
    }

    .split-sticky {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .split-sidebar { position: static; }

    .offerings-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .step-number { font-size: 64px; margin-bottom: 12px; }
}

@media (max-width: 768px) {
    .container, nav, .footer-content {
        padding-left: 24px;
        padding-right: 24px;
    }

    .bg-white + .bg-white::before,
    .bg-grey  + .bg-grey::before {
        left: 24px;
        right: 24px;
    }

    section { padding: 60px 0; }
    .hero { padding: 72px 0 60px; }
    .hero h1 { font-size: 42px; }
    .hero p { font-size: 17px; }

    h2 { font-size: 30px; }
    .method h2 { font-size: 32px; }
    .tension-text { font-size: 22px; }
    .quote p { font-size: 22px; }
    .pull-quote p { font-size: 19px; }
    .pull-quote { margin-left: 0; }

    .nav-links { gap: 14px; font-size: 13px; }
    .nav-links a { font-size: 13px; }
    .cta-nav { padding: 9px 14px; font-size: 12px; }
    .logo-mark { height: clamp(40px, var(--tweak-logo-size, 110px), 60px); }
    nav { gap: 16px; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}
