/* shelter.ie — deep teal + brass + cream
   Cormorant headings, Inter body. Private-club, lightly-menacing.
   No charity-bright palette. */

:root {
    --teal: #0F3D3E;
    --teal-deep: #0A2829;
    --teal-light: #1A5556;
    --brass: #B08D57;
    --brass-soft: #C9A877;
    --cream: #F4EFE6;
    --cream-warm: #EDE5D5;
    --ink: #0E1614;
    --ink-soft: #2C3531;
    --muted: #6B6B68;
    --warning: #A8261B;
    --rule: #D8CFBE;
    --shadow: 0 1px 2px rgba(14,22,20,0.06), 0 4px 16px rgba(14,22,20,0.04);
    --shadow-strong: 0 4px 20px rgba(14,22,20,0.12);
    --max: 1140px;
    --narrow: 760px;
    --radius: 4px;
}

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

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

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--teal); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brass); }

h1, h2, h3, h4, h5 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-top: 2.2em; }
h3 { font-size: 1.4rem; margin-top: 1.6em; }
h4 { font-size: 1.15rem; margin-top: 1.4em; }

p { margin: 0 0 1.1em; }
strong { font-weight: 600; }
em { font-style: italic; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5em 0; }

ul, ol { padding-left: 1.4em; margin: 0 0 1.2em; }
li { margin-bottom: 0.4em; }

blockquote {
    border-left: 3px solid var(--brass);
    margin: 1.4em 0;
    padding: 0.4em 0 0.4em 1.4em;
    color: var(--ink-soft);
    font-style: italic;
}

code, pre { font-family: 'SF Mono', Menlo, Consolas, monospace; font-size: 0.92em; }

table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.95rem; }
th, td { padding: 0.7em 0.8em; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { background: var(--cream-warm); font-weight: 600; font-family: 'Inter', sans-serif; }

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

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.4rem; }
.narrow { max-width: var(--narrow); margin: 0 auto; }

/* ─── NAV ───────────────────────────────────── */
.navbar {
    background: var(--teal);
    color: var(--cream);
    border-bottom: 1px solid var(--teal-deep);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0.9rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--cream);
    text-decoration: none;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    font-size: 1.55rem;
    letter-spacing: -0.005em;
}
.logo:hover { color: var(--brass-soft); }
.logo svg { width: 24px; height: 24px; }
.nav-menu {
    display: flex;
    gap: 1.6rem;
    list-style: none;
    margin: 0; padding: 0;
    align-items: center;
}
.nav-menu a {
    color: var(--cream);
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 500;
}
.nav-menu a:hover { color: var(--brass-soft); }
.nav-cta {
    background: var(--brass);
    color: var(--teal-deep) !important;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius);
    font-weight: 600;
}
.nav-cta:hover { background: var(--brass-soft); }
.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 32px;
    height: 32px;
    cursor: pointer;
    padding: 0;
}
.menu-toggle span {
    display: block;
    height: 2px;
    background: var(--cream);
    margin: 5px 0;
}

@media (max-width: 760px) {
    .menu-toggle { display: block; }
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--teal);
        flex-direction: column;
        padding: 1.2rem 1.4rem;
        gap: 1rem;
        align-items: flex-start;
        border-bottom: 1px solid var(--teal-deep);
        display: none;
    }
    .nav-menu.is-open { display: flex; }
    .nav-cta { width: 100%; text-align: center; }
}

/* ─── HERO ──────────────────────────────────── */
.hero {
    background: var(--teal);
    color: var(--cream);
    padding: 4.5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(176,141,87,0.12), transparent 60%);
    pointer-events: none;
}
.hero h1 {
    color: var(--cream);
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    line-height: 1.05;
    margin-bottom: 0.7em;
    position: relative;
}
.hero h1 .accent { color: var(--brass-soft); }
.hero p.lede {
    font-size: 1.18rem;
    line-height: 1.55;
    color: var(--cream-warm);
    margin-bottom: 2rem;
    max-width: 640px;
    position: relative;
}
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; position: relative; }
.hero-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
    margin: 3rem 0 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(244,239,230,0.18);
    position: relative;
}
.hero-trust .stat { display: block; }
.hero-trust .stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--brass-soft);
    font-weight: 600;
    line-height: 1.1;
}
.hero-trust .stat-body {
    font-size: 0.92rem;
    color: var(--cream-warm);
    line-height: 1.45;
    margin-top: 0.3rem;
}
.hero-trust cite {
    display: block;
    font-size: 0.78rem;
    color: rgba(244,239,230,0.6);
    margin-top: 0.3rem;
    font-style: normal;
}

@media (max-width: 700px) {
    .hero { padding: 3rem 0 2.5rem; }
    .hero-trust { grid-template-columns: 1fr; gap: 1.2rem; }
}

/* ─── BUTTONS ───────────────────────────────── */
.btn {
    display: inline-block;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
    line-height: 1.2;
}
.btn-primary {
    background: var(--brass);
    color: var(--teal-deep) !important;
    border-color: var(--brass);
}
.btn-primary:hover { background: var(--brass-soft); border-color: var(--brass-soft); color: var(--teal-deep) !important; }
.btn-ghost {
    background: transparent;
    color: var(--cream) !important;
    border-color: rgba(244,239,230,0.4);
}
.btn-ghost:hover { background: rgba(244,239,230,0.08); border-color: var(--cream); }
.btn-solid {
    background: var(--teal);
    color: var(--cream) !important;
    border-color: var(--teal);
}
.btn-solid:hover { background: var(--teal-deep); }

/* ─── SECTIONS ──────────────────────────────── */
section { padding: 4rem 0; }
section.tight { padding: 3rem 0; }
section.alt { background: var(--cream-warm); }
section.dark { background: var(--teal); color: var(--cream); }
section.dark h2, section.dark h3 { color: var(--cream); }

.section-head { max-width: 760px; margin-bottom: 2.4rem; }
.section-head .eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: var(--brass);
    font-weight: 600;
    margin-bottom: 0.6rem;
}
section.dark .section-head .eyebrow { color: var(--brass-soft); }
.section-head h2 { margin-top: 0; }
.section-head p { font-size: 1.1rem; color: var(--ink-soft); }
section.dark .section-head p { color: var(--cream-warm); }

/* ─── PACKS / CARDS ─────────────────────────── */
.pack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.4rem;
}
.pack-card {
    background: var(--cream);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 1.8rem 1.6rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    display: flex;
    flex-direction: column;
}
.pack-card:hover { border-color: var(--brass); box-shadow: var(--shadow); }
.pack-card .price {
    font-family: 'Cormorant Garamond', serif;
    color: var(--brass);
    font-size: 1.7rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
    line-height: 1;
}
.pack-card h3 { margin: 0 0 0.6em; font-size: 1.35rem; }
.pack-card p { color: var(--ink-soft); font-size: 0.96rem; margin-bottom: 1.2rem; flex-grow: 1; }
.pack-card .pack-link {
    color: var(--teal);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
}
.pack-card .pack-link::after { content: ' →'; }

/* ─── CASE CARDS ────────────────────────────── */
.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.4rem;
}
.case-card {
    background: var(--cream);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 1.6rem 1.5rem;
    display: flex;
    flex-direction: column;
}
.case-card:hover { border-color: var(--brass); }
.case-card .tag {
    display: inline-block;
    background: var(--cream-warm);
    color: var(--ink-soft);
    padding: 0.2em 0.7em;
    border-radius: 30px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
    align-self: flex-start;
}
.case-card .tag.cautionary { background: rgba(168,38,27,0.1); color: var(--warning); }
.case-card .tag.safety { background: rgba(168,38,27,0.15); color: var(--warning); }
.case-card .tag.benchmark { background: rgba(176,141,87,0.18); color: var(--brass); }
.case-card h3 { margin: 0 0 0.4em; font-size: 1.3rem; }
.case-card .summary { color: var(--ink-soft); font-style: italic; font-size: 0.94rem; margin-bottom: 1rem; }
.case-card .meta { font-size: 0.86rem; color: var(--muted); margin-bottom: 0.5em; }
.case-card .hook { color: var(--ink); margin-bottom: 1.2rem; flex-grow: 1; font-size: 0.96rem; }
.case-card .read-more { color: var(--teal); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.case-card .read-more::after { content: ' →'; }

/* ─── ARTICLE / LONG-FORM ───────────────────── */
.article { padding: 3rem 0 4rem; }
.article-header { margin-bottom: 2.4rem; }
.article-header .breadcrumb { font-size: 0.88rem; color: var(--muted); margin-bottom: 1rem; }
.article-header .breadcrumb a { color: var(--muted); }
.article-header h1 { margin-bottom: 0.4em; }
.article-header .standfirst { font-size: 1.18rem; color: var(--ink-soft); line-height: 1.5; }

.article-body { font-size: 1.05rem; line-height: 1.7; }
.article-body h2:first-of-type { margin-top: 0; }
.article-body h2 { font-size: 1.65rem; margin-top: 2.2em; padding-top: 0.5em; border-top: 1px solid var(--rule); }
.article-body h2:first-of-type { border-top: 0; padding-top: 0; }
.article-body h3 { font-size: 1.25rem; }

/* ─── CALLOUT ───────────────────────────────── */
.callout {
    background: var(--cream-warm);
    border-left: 4px solid var(--brass);
    padding: 1.2rem 1.4rem;
    margin: 1.8em 0;
    border-radius: 0 var(--radius) var(--radius) 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout.warning {
    background: rgba(168,38,27,0.06);
    border-left-color: var(--warning);
}
.callout.note {
    background: var(--cream);
    border: 1px solid var(--rule);
    border-left: 4px solid var(--teal);
}

/* ─── CTA BANNER ────────────────────────────── */
.cta-banner {
    background: var(--teal);
    color: var(--cream);
    padding: 3.5rem 0;
    text-align: center;
}
.cta-banner h2 { color: var(--cream); margin-bottom: 0.4em; }
.cta-banner p { color: var(--cream-warm); font-size: 1.1rem; max-width: 600px; margin: 0 auto 2rem; }

/* ─── FORMS ─────────────────────────────────── */
.form { max-width: 640px; }
.form-row { margin-bottom: 1.2rem; }
.form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.95rem;
}
.form .hint { font-size: 0.85rem; color: var(--muted); margin-top: 0.3rem; }
.form input[type=text],
.form input[type=email],
.form input[type=tel],
.form select,
.form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    background: var(--cream);
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus {
    outline: 2px solid var(--brass);
    outline-offset: -1px;
    border-color: var(--brass);
}
.form textarea { min-height: 140px; resize: vertical; }
.form .radio-row { display: flex; gap: 1.2rem; flex-wrap: wrap; padding-top: 0.2rem; }
.form .radio-row label { font-weight: 400; display: flex; align-items: center; gap: 0.4rem; }
.form .honeypot { position: absolute; left: -10000px; }
.form .form-error {
    background: rgba(168,38,27,0.06);
    border: 1px solid var(--warning);
    color: var(--warning);
    padding: 0.8rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.2rem;
    display: none;
}

/* ─── FOOTER ────────────────────────────────── */
.site-footer {
    background: var(--teal-deep);
    color: var(--cream-warm);
    padding: 3.5rem 0 1.5rem;
    margin-top: 4rem;
}
.site-footer a { color: var(--cream-warm); }
.site-footer a:hover { color: var(--brass-soft); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.4rem;
    margin-bottom: 2.4rem;
}
.footer-brand .logo { color: var(--cream); margin-bottom: 0.8rem; }
.footer-brand p { font-size: 0.95rem; line-height: 1.55; max-width: 320px; color: var(--cream-warm); }
.footer-col h4 {
    color: var(--cream);
    font-family: 'Inter', sans-serif;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.9em;
    font-weight: 600;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.45em; font-size: 0.95rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }

.footer-disclaimers {
    border-top: 1px solid rgba(244,239,230,0.15);
    padding-top: 1.6rem;
    margin-bottom: 1.4rem;
    font-size: 0.86rem;
    color: rgba(244,239,230,0.7);
    line-height: 1.55;
}
.footer-disclaimers p { margin: 0 0 0.6em; }
.footer-disclaimers strong { color: var(--cream); font-weight: 600; }
.footer-bottom {
    border-top: 1px solid rgba(244,239,230,0.15);
    padding-top: 1.2rem;
    font-size: 0.85rem;
    color: rgba(244,239,230,0.6);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (max-width: 760px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.6rem; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ─── COOKIE BANNER ─────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    max-width: 480px;
    margin: 0 auto;
    background: var(--ink);
    color: var(--cream);
    padding: 1.1rem 1.3rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-strong);
    font-size: 0.9rem;
    line-height: 1.5;
    z-index: 200;
    display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner h4 { color: var(--brass-soft); margin: 0 0 0.4em; font-size: 1.05rem; }
.cookie-banner p { margin: 0 0 0.9em; color: rgba(244,239,230,0.85); }
.cookie-banner a { color: var(--brass-soft); }
.cookie-banner-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-banner button {
    background: var(--brass);
    color: var(--teal-deep);
    border: 0;
    padding: 0.5rem 1rem;
    border-radius: 3px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.88rem;
}
.cookie-banner button.secondary {
    background: transparent;
    color: var(--cream-warm);
    border: 1px solid rgba(244,239,230,0.3);
}
.cookie-banner button:hover { background: var(--brass-soft); }
.cookie-banner button.secondary:hover { background: rgba(244,239,230,0.08); }

/* ─── MISC ──────────────────────────────────── */
.intensity-strip {
    background: var(--cream-warm);
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding: 1.4rem 0;
    font-size: 0.95rem;
    color: var(--ink-soft);
}
.intensity-strip strong { color: var(--ink); }

.disclaim-block {
    background: var(--cream-warm);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    font-size: 0.94rem;
    line-height: 1.55;
    margin: 1.6em 0;
    color: var(--ink-soft);
}
.disclaim-block strong { color: var(--ink); font-weight: 600; }

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--brass);
    color: var(--teal-deep);
    padding: 0.4em 0.8em;
    text-decoration: none;
    z-index: 300;
}
.skip-link:focus { top: 0; }

/* Print */
@media print {
    .navbar, .site-footer, .cookie-banner, .hero-ctas, .cta-banner { display: none !important; }
    body { background: white; color: black; font-size: 11pt; }
    a { color: black; text-decoration: underline; }
    .hero { background: white; color: black; padding: 1rem 0; }
    .hero h1, h2, h3 { color: black !important; }
}
