/* ============================================================
   Travelmaker By Robin — Blog & Guides stylesheet
   Matches the design system of index.html (same colors & fonts)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&family=DM+Sans:wght@400;500;700&display=swap');

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

:root {
    --navy:      #042C53;
    --navy-deep: #021D37;
    --ocean:     #185FA5;
    --ocean-text:#155086;  /* darker ocean for body text — passes AA on white */
    --ocean-mid: #378ADD;
    --sky:       #B5D4F4;
    --sky-light: #E6F1FB;
    --teal:      #0F6E56;
    --teal-light:#E1F5EE;
    --teal-mid:  #9FE1CB;
    --sand:      #FAEEDA;
    --amber:     #EF9F27;
    --white:     #ffffff;
    --off-white: #F7FAFD;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    color: var(--navy);
    background: var(--white);
    font-size: 15px;
    line-height: 1.6;
}

/* Visible keyboard focus */
a:focus-visible, button:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 3px;
    border-radius: 2px;
}

/* ── SKIP LINK ── */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--white);
    color: var(--navy);
    padding: 8px 16px;
    font-size: 13px;
    z-index: 9999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ── NAV ── */
nav {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--white);
    border-bottom: 0.5px solid var(--sky);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 3rem;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--navy);
    letter-spacing: 0.03em;
    text-decoration: none;
}
.logo span { color: var(--ocean); }

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--ocean); }
.nav-links a[aria-current="page"] { color: var(--ocean); font-weight: 500; }

.nav-cta {
    background: var(--navy) !important;
    color: var(--white) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 2px;
}
.nav-cta:hover { background: var(--ocean) !important; }

/* ── PAGE HERO (blog & guide landing headers) ── */
.page-hero {
    background: linear-gradient(155deg, var(--sky-light) 0%, var(--teal-light) 55%, var(--sky) 100%);
    padding: 4rem 3rem 3.5rem;
    text-align: center;
}
.page-hero .sec-label { margin-bottom: 0.75rem; }
.page-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 300;
    line-height: 1.12;
    color: var(--navy);
    margin-bottom: 1rem;
}
.page-hero h1 em { font-style: italic; color: var(--ocean); }
.page-hero p {
    font-size: 15px;
    color: var(--ocean-text);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.75;
}

/* ── SHARED SECTION BITS ── */
section { padding: 4rem 3rem; }
.section-inner { max-width: 1100px; margin: 0 auto; }

.sec-label {
    font-size: 11px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}
.sec-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 300;
    color: var(--navy);
    margin-bottom: 2.5rem;
}

/* ── CARD GRID (blog index & guides index) ── */
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.post-card {
    border: 0.5px solid var(--sky);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: var(--white);
    display: flex;
    flex-direction: column;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(4,44,83,0.08); }

.post-card-icon {
    height: 120px;
    background: var(--sky-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
}
.post-card:nth-child(3n+2) .post-card-icon { background: var(--teal-light); }
.post-card:nth-child(3n)   .post-card-icon { background: var(--sand); }

.post-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.post-card-meta {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 500;
    margin-bottom: 6px;
}
.post-card-body h2, .post-card-body h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--navy);
    margin-bottom: 6px;
    line-height: 1.25;
}
.post-card-body h2 a, .post-card-body h3 a {
    color: var(--navy);
    text-decoration: none;
}
.post-card-body h2 a:hover, .post-card-body h3 a:hover { color: var(--ocean); }
.post-card-body p { font-size: 13px; color: var(--ocean-text); line-height: 1.65; flex: 1; }
.post-card-link {
    margin-top: 1rem;
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--ocean);
    text-decoration: none;
}
.post-card-link:hover { text-decoration: underline; }

/* Featured (first) card spans full width on the blog index */
.card-grid .featured {
    grid-column: 1 / -1;
    flex-direction: row;
}
.card-grid .featured .post-card-icon { width: 260px; height: auto; flex-shrink: 0; }
.card-grid .featured .post-card-body h2 { font-size: 28px; }
.card-grid .featured .post-card-body p { font-size: 14px; }

/* ── ARTICLE (single post / guide) ── */
.article-hero {
    background: linear-gradient(155deg, var(--sky-light) 0%, var(--teal-light) 55%, var(--sky) 100%);
    padding: 3.5rem 3rem 3rem;
}
.article-hero-inner { max-width: 760px; margin: 0 auto; }
.article-hero .crumbs {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}
.article-hero .crumbs a { color: var(--ocean-text); text-decoration: none; }
.article-hero .crumbs a:hover { color: var(--ocean); text-decoration: underline; }
.article-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 44px;
    font-weight: 300;
    line-height: 1.15;
    color: var(--navy);
    margin-bottom: 1rem;
}
.article-hero h1 em { font-style: italic; color: var(--ocean); }
.article-meta {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ocean-text);
}
.article-meta span + span::before { content: "·"; margin: 0 8px; }

article {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
}

article > p, article li {
    color: var(--ocean-text);
    line-height: 1.85;
    font-size: 15px;
}
article > p { margin-bottom: 1.15rem; }
article strong { color: var(--navy); }
article a { color: var(--ocean); }

article .lede {
    font-size: 17px;
    line-height: 1.8;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

article h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 400;
    color: var(--navy);
    margin: 2.5rem 0 1rem;
    line-height: 1.2;
}
article h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 400;
    color: var(--navy);
    margin: 2rem 0 0.6rem;
}

article ul, article ol {
    margin: 0 0 1.25rem 1.4rem;
}
article li { margin-bottom: 0.5rem; }
article li::marker { color: var(--ocean); }

/* Tip / note boxes */
.tip-box {
    background: var(--teal-light);
    border-left: 3px solid var(--teal);
    border-radius: 0 8px 8px 0;
    padding: 1.1rem 1.4rem;
    margin: 1.5rem 0;
}
.tip-box p, .tip-box li { color: var(--navy); font-size: 14px; margin-bottom: 0; }
.tip-box .tip-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.note-box {
    background: var(--sky-light);
    border-left: 3px solid var(--ocean);
    border-radius: 0 8px 8px 0;
    padding: 1.1rem 1.4rem;
    margin: 1.5rem 0;
}
.note-box p { color: var(--navy); font-size: 14px; margin-bottom: 0; }
.note-box .tip-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ocean);
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

/* Checklists (guides) */
.checklist {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
}
.checklist li {
    position: relative;
    padding-left: 34px;
    margin-bottom: 0.7rem;
}
.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    width: 22px;
    height: 22px;
    background: var(--teal-light);
    color: var(--teal);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}

/* In-page table of contents (guides) */
.toc {
    background: var(--off-white);
    border: 0.5px solid var(--sky);
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    margin: 2rem 0;
}
.toc .tip-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 700;
    display: block;
    margin-bottom: 10px;
}
.toc ol { margin: 0 0 0 1.2rem; }
.toc li { margin-bottom: 6px; font-size: 14px; }
.toc a { color: var(--ocean-text); text-decoration: none; }
.toc a:hover { color: var(--ocean); text-decoration: underline; }

/* Article CTA */
.article-cta {
    background: var(--navy);
    color: var(--white);
    border-radius: 12px;
    padding: 2.25rem 2rem;
    text-align: center;
    margin: 3rem 0 0;
}
.article-cta h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 30px;
    font-weight: 300;
    color: var(--white);
    margin: 0 0 0.6rem;
}
.article-cta h2 em { font-style: italic; color: var(--teal-mid); }
.article-cta p { color: rgba(255,255,255,0.85); font-size: 14px; margin-bottom: 1.5rem; }
.article-cta .btn-primary {
    background: var(--white);
    color: var(--navy);
}
.article-cta .btn-primary:hover { background: var(--sky-light); }
.article-cta .cta-phone {
    display: block;
    margin-top: 0.9rem;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
}
.article-cta .cta-phone a { color: var(--white); font-weight: 500; text-decoration: none; }
.article-cta .cta-phone a:hover { text-decoration: underline; }

/* Buttons */
.btn-primary {
    background: var(--navy);
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.04em;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-block;
}
.btn-primary:hover { background: var(--ocean); }

/* Prev/next + back links */
.article-nav {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.article-nav a {
    font-size: 13px;
    letter-spacing: 0.04em;
    color: var(--ocean);
    text-decoration: none;
    font-weight: 500;
}
.article-nav a:hover { text-decoration: underline; }

/* Pills */
.pill {
    background: var(--teal-light);
    color: var(--teal);
    font-size: 12px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.03em;
}

/* ── FOOTER ── */
footer {
    background: var(--navy-deep);
    color: rgba(255,255,255,0.7);
    padding: 1.75rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    color: var(--white);
    text-decoration: none;
}
.footer-logo span { color: var(--teal-mid); }
footer p { font-size: 12px; }
footer a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 12px; transition: color 0.2s; }
footer a:hover { color: var(--white); }
.footer-links { display: flex; gap: 1.5rem; align-items: center; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    nav { padding: 1rem 1.5rem; }
    section { padding: 3rem 1.5rem; }
    .page-hero { padding: 3rem 1.5rem 2.5rem; }
    .page-hero h1 { font-size: 38px; }
    .article-hero { padding: 2.5rem 1.5rem 2rem; }
    .article-hero h1 { font-size: 34px; }
    .card-grid { grid-template-columns: 1fr 1fr; }
    .card-grid .featured { flex-direction: column; }
    .card-grid .featured .post-card-icon { width: 100%; height: 120px; }
}
@media (max-width: 600px) {
    .card-grid { grid-template-columns: 1fr; }
    .nav-links { gap: 1rem; }
    nav { padding: 1rem; }
    footer { flex-direction: column; text-align: center; }
    .page-hero h1 { font-size: 32px; }
    .article-hero h1 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
    .post-card:hover { transform: none; }
}

/* ── PRINT (guides double as printable handouts) ── */
@media print {
    nav, footer, .article-cta, .article-nav, .skip-link { display: none; }
    body { font-size: 12pt; color: #000; }
    article, .article-hero-inner { max-width: 100%; }
    .article-hero { background: none; padding: 0 0 1rem; }
    article > p, article li { color: #000; }
    a { color: #000; text-decoration: none; }
    .tip-box, .note-box, .toc { border: 1px solid #999; background: none; }
}
