/* ==============================================
   LANDING PAGE TEMPLATE — BASE STYLES

   Customize these variables for each site.
   Everything else should just work.
   ============================================== */

:root {
    /* === BRAND COLORS — Change these per site === */
    --color-primary: #2563eb;
    --color-primary-hover: #1d4ed8;
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-text: #1a1a2e;
    --color-text-muted: #64748b;
    --color-border: #e2e8f0;

    /* === TYPOGRAPHY === */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-size-base: 1rem;
    --line-height: 1.6;

    /* === LAYOUT === */
    --max-width: 720px;
    --section-padding: 5rem 1.5rem;
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-main);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

/* === LAYOUT === */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* === HERO === */
.hero {
    padding: 6rem 1.5rem 4rem;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.subheadline {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: var(--color-text-muted);
    max-width: 560px;
    margin: 0 auto 2rem;
    line-height: 1.5;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1.15rem;
}

/* === TRUST SECTION === */
.trust {
    padding: 2rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.trust-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.trust-logos span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    opacity: 0.6;
}

/* === BENEFITS === */
.benefits {
    padding: var(--section-padding);
    background-color: var(--color-bg-alt);
}

.benefits .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
}

.benefit h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.benefit p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* === CTA SECTION === */
.cta-section {
    padding: var(--section-padding);
    text-align: center;
}

.cta-section h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-section p {
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* === CAPTURE FORM === */
.capture-form {
    display: flex;
    gap: 0.75rem;
    max-width: 440px;
    margin: 0 auto;
    justify-content: center;
}

.capture-form input[type="email"] {
    flex: 1;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--border-radius);
    font-family: var(--font-main);
    outline: none;
    transition: border-color 0.2s;
}

.capture-form input[type="email"]:focus {
    border-color: var(--color-primary);
}

.capture-form .btn {
    white-space: nowrap;
}

/* === FOOTER === */
.footer {
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--color-border);
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-links {
    margin-top: 0.75rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--color-text);
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .capture-form {
        flex-direction: column;
    }

    .capture-form input[type="email"],
    .capture-form .btn {
        width: 100%;
    }

    .hero {
        padding: 4rem 1.5rem 3rem;
    }
}

/* ==============================================
   CNC.IE — SALE/LEASE PAGE OVERRIDES
   Premium-domain positioning. Darker, more
   confident palette than portfolio default.
   ============================================== */
body.cnc-sale {
    --color-primary: #0f172a;
    --color-primary-hover: #1e293b;
    --color-accent: #d4af37;      /* warm gold — premium cue */
    --color-bg: #ffffff;
    --color-bg-alt: #f4f6fb;
    --color-text: #0f172a;
    --color-text-muted: #475569;
    --max-width: 960px;
}

body.cnc-sale .container { max-width: var(--max-width); }

/* Hero refinements */
body.cnc-sale .hero {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #f8fafc;
    padding: 6rem 1.5rem 5rem;
    text-align: center;
}
body.cnc-sale .hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 1.25rem;
}
body.cnc-sale .hero h1 {
    font-size: clamp(3rem, 9vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.5rem;
}
body.cnc-sale .hero .domain-mark {
    color: #f8fafc;
    letter-spacing: -0.02em;
}
body.cnc-sale .hero .subheadline {
    color: #cbd5e1;
    max-width: 640px;
    margin: 0 auto 2.25rem;
    font-size: 1.15rem;
}
body.cnc-sale .hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
body.cnc-sale .btn-primary {
    background-color: var(--color-accent);
    color: #0f172a;
    font-weight: 700;
    padding: 0.9rem 1.75rem;
}
body.cnc-sale .btn-primary:hover {
    background-color: #e6c158;
}
body.cnc-sale .btn-ghost {
    display: inline-block;
    padding: 0.9rem 1.75rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(248, 250, 252, 0.3);
    color: #f8fafc;
    font-weight: 500;
    transition: border-color 0.2s, background-color 0.2s;
}
body.cnc-sale .btn-ghost:hover {
    border-color: var(--color-accent);
    background-color: rgba(212, 175, 55, 0.08);
}

/* Stats strip */
body.cnc-sale .stats {
    background-color: var(--color-bg-alt);
    padding: 3rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
}
body.cnc-sale .stats .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}
body.cnc-sale .stat-value {
    display: block;
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.35rem;
}
body.cnc-sale .stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

/* Section headings */
body.cnc-sale h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 2.25rem;
    text-align: center;
}

/* Benefits refinement */
body.cnc-sale .benefits {
    padding: var(--section-padding);
}
body.cnc-sale .benefits .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
body.cnc-sale .benefits h2 { grid-column: 1 / -1; }
body.cnc-sale .benefit {
    padding: 1.5rem;
    background: var(--color-bg-alt);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--color-accent);
}
body.cnc-sale .benefit h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}

/* Audience grid */
body.cnc-sale .audience {
    padding: var(--section-padding);
    background: var(--color-bg-alt);
}
body.cnc-sale .audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}
body.cnc-sale .audience-card {
    padding: 1.75rem;
    background: var(--color-bg);
    border-radius: var(--border-radius);
    border: 1px solid var(--color-border);
}
body.cnc-sale .audience-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}
body.cnc-sale .audience-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Options */
body.cnc-sale .options {
    padding: var(--section-padding);
}
body.cnc-sale .option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
body.cnc-sale .option-card {
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: var(--color-bg);
}
body.cnc-sale .option-card-highlight {
    border-color: var(--color-accent);
    box-shadow: 0 4px 24px -8px rgba(212, 175, 55, 0.25);
}
body.cnc-sale .option-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}
body.cnc-sale .option-card p {
    color: var(--color-text-muted);
}
body.cnc-sale .options-note {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-style: italic;
}

/* CTA / enquire form */
body.cnc-sale .cta-section {
    background-color: var(--color-primary);
    color: #f8fafc;
    text-align: center;
    padding: var(--section-padding);
}
body.cnc-sale .cta-section h2 { color: #f8fafc; }
body.cnc-sale .cta-section p {
    color: #cbd5e1;
    max-width: 560px;
    margin: 0 auto 2rem;
}
body.cnc-sale .capture-form {
    display: grid;
    gap: 0.75rem;
    max-width: 520px;
    margin: 0 auto 1.5rem;
}
body.cnc-sale .capture-form input,
body.cnc-sale .capture-form textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(248, 250, 252, 0.2);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
}
body.cnc-sale .capture-form input::placeholder,
body.cnc-sale .capture-form textarea::placeholder {
    color: #94a3b8;
}
body.cnc-sale .capture-form input:focus,
body.cnc-sale .capture-form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.08);
}
body.cnc-sale .capture-form .btn {
    width: 100%;
}
body.cnc-sale .direct-contact {
    font-size: 0.9rem;
    color: #94a3b8;
}
body.cnc-sale .direct-contact a {
    color: var(--color-accent);
}

/* Footer */
body.cnc-sale .footer {
    padding: 2rem 1.5rem;
    border-top: 1px solid var(--color-border);
    background: var(--color-bg);
    text-align: center;
}
body.cnc-sale .footer p {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}
body.cnc-sale .footer a {
    color: var(--color-primary);
}

/* Accessibility */
body.cnc-sale .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Mobile tweaks */
@media (max-width: 600px) {
    body.cnc-sale .hero {
        padding: 4.5rem 1.25rem 3.5rem;
    }
    body.cnc-sale .hero-actions {
        flex-direction: column;
    }
    body.cnc-sale .hero-actions .btn,
    body.cnc-sale .hero-actions .btn-ghost {
        width: 100%;
        text-align: center;
    }
}

/* ==============================================
   CNC.IE — CONTENT HUB OVERRIDES
   Engineering aesthetic — steel grey + electric blue.
   Used by index, suppliers, guides, city pages.
   ============================================== */
body.cnc-hub {
    --color-primary: #1e40af;
    --color-primary-hover: #1e3a8a;
    --color-accent: #0ea5e9;
    --color-bg: #ffffff;
    --color-bg-alt: #f1f5f9;
    --color-text: #0f172a;
    --color-text-muted: #475569;
    --color-border: #cbd5e1;
    --max-width: 1080px;
}
body.cnc-hub .container { max-width: var(--max-width); }

body.cnc-hub .navbar {
    background: #0f172a;
    color: #f8fafc;
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
}
body.cnc-hub .nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
body.cnc-hub .nav-container .logo {
    color: #f8fafc;
    font-weight: 800;
    font-size: 1.25rem;
    text-decoration: none;
    letter-spacing: -0.01em;
}
body.cnc-hub .nav-container .logo .dot { color: var(--color-accent); }
body.cnc-hub .nav-menu {
    display: flex;
    list-style: none;
    gap: 1.4rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
body.cnc-hub .nav-menu a {
    color: #cbd5e1;
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: color 0.15s;
}
body.cnc-hub .nav-menu a:hover { color: var(--color-accent); }
body.cnc-hub .nav-menu a.nav-cta {
    background: var(--color-accent);
    color: #0f172a;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
}
body.cnc-hub .nav-menu a.nav-cta:hover { background: #38bdf8; color: #0f172a; }

body.cnc-hub .hub-hero {
    background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
    padding: 4.5rem 1.5rem 3.5rem;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}
body.cnc-hub .hub-hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}
body.cnc-hub .hub-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}
body.cnc-hub .hub-hero p.lede {
    color: var(--color-text-muted);
    max-width: 720px;
    margin: 0 auto 2rem;
    font-size: 1.15rem;
}
body.cnc-hub .hero-ctas {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

body.cnc-hub .section {
    padding: 4rem 1.5rem;
}
body.cnc-hub .section.alt {
    background: var(--color-bg-alt);
}
body.cnc-hub .section h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}
body.cnc-hub .section .lede {
    color: var(--color-text-muted);
    max-width: 720px;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

body.cnc-hub .pillar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
body.cnc-hub .pillar-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 1.5rem;
    transition: border-color 0.2s, transform 0.2s;
}
body.cnc-hub .pillar-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-2px);
}
body.cnc-hub .pillar-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
}
body.cnc-hub .pillar-card .arrow {
    display: inline-block;
    margin-top: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

body.cnc-hub .city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}
body.cnc-hub .city-grid a {
    display: block;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
body.cnc-hub .city-grid a:hover {
    background: var(--color-primary);
    color: #fff;
}

body.cnc-hub .supplier-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
}
body.cnc-hub .supplier-card h3 {
    margin-bottom: 0.4rem;
    font-size: 1.2rem;
    color: var(--color-text);
}
body.cnc-hub .supplier-card .meta {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}
body.cnc-hub .supplier-card .meta strong { color: var(--color-text); }
body.cnc-hub .supplier-card p { margin-bottom: 0.5rem; }
body.cnc-hub .supplier-card .external {
    display: inline-block;
    margin-top: 0.4rem;
    font-weight: 600;
    color: var(--color-primary);
}

body.cnc-hub .breadcrumb {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}
body.cnc-hub .breadcrumb a { color: var(--color-text-muted); text-decoration: underline; }

body.cnc-hub article.guide-body {
    max-width: 760px;
    margin: 0 auto;
}
body.cnc-hub article.guide-body h2 {
    font-size: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}
body.cnc-hub article.guide-body h3 {
    font-size: 1.2rem;
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
}
body.cnc-hub article.guide-body p { margin-bottom: 1.1rem; }
body.cnc-hub article.guide-body ul,
body.cnc-hub article.guide-body ol { margin: 0.5rem 0 1.1rem 1.5rem; }
body.cnc-hub article.guide-body li { margin-bottom: 0.45rem; }
body.cnc-hub article.guide-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.95rem;
}
body.cnc-hub article.guide-body th,
body.cnc-hub article.guide-body td {
    border: 1px solid var(--color-border);
    padding: 0.6rem 0.8rem;
    text-align: left;
}
body.cnc-hub article.guide-body th {
    background: var(--color-bg-alt);
    font-weight: 600;
}

body.cnc-hub .quote-form {
    max-width: 600px;
    margin: 0 auto;
}
body.cnc-hub .quote-form label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.95rem;
}
body.cnc-hub .quote-form input,
body.cnc-hub .quote-form textarea,
body.cnc-hub .quote-form select {
    width: 100%;
    padding: 0.7rem 0.9rem;
    margin-bottom: 1.1rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
}
body.cnc-hub .quote-form textarea { min-height: 120px; resize: vertical; }
body.cnc-hub .quote-form .btn-primary {
    background: var(--color-primary);
    color: #fff;
    border: 0;
    cursor: pointer;
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
}
body.cnc-hub .quote-form .btn-primary:hover { background: var(--color-primary-hover); }

body.cnc-hub .sale-card {
    background: #0f172a;
    color: #f8fafc;
    padding: 2rem 1.5rem;
    border-radius: 10px;
    text-align: center;
    margin: 2rem 0;
}
body.cnc-hub .sale-card h3 {
    color: #f8fafc;
    margin-bottom: 0.5rem;
}
body.cnc-hub .sale-card p { color: #cbd5e1; margin-bottom: 1rem; }
body.cnc-hub .sale-card .btn {
    background: #d4af37;
    color: #0f172a;
    font-weight: 700;
    padding: 0.7rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
}

body.cnc-hub .footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 2.5rem 1.5rem;
    text-align: center;
    font-size: 0.9rem;
}
body.cnc-hub .footer a { color: #f8fafc; text-decoration: underline; }
body.cnc-hub .footer .footer-links {
    margin: 0.75rem 0;
}
body.cnc-hub .footer .footer-links a {
    margin: 0 0.5rem;
    color: #cbd5e1;
}

@media (max-width: 720px) {
    body.cnc-hub .nav-menu {
        flex-basis: 100%;
        justify-content: center;
    }
    body.cnc-hub .hero-ctas { flex-direction: column; }
    body.cnc-hub .hero-ctas .btn { width: 100%; text-align: center; }
}
