/* ═══════════════════════════════════════════════════
   RESTORER CLEANING SERVICES — blog.css
   Design: refined navy + sky-blue + warm white
   Fonts: Cormorant Garamond (headings) + DM Sans (body)
   Mirrors index_new.css tokens & navbar patterns
═══════════════════════════════════════════════════ */

/* ── GOOGLE FONTS ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@400;500;600;700&display=swap');

/* ── TOKENS (mirrors index_new.css) ── */
:root {
    --navy:      #0a1628;
    --navy-mid:  #122040;
    --navy-lite: #1c3058;
    --sky:       #34b4f4;
    --sky-dark:  #1a8fc4;
    --sky-lite:  #a8dcf8;
    --cream:     #f8f6f2;
    --white:     #ffffff;
    --grey-1:    #f0eeea;
    --grey-2:    #d4d0c8;
    --grey-3:    #8a8680;
    --text:      #1a1814;
    --text-lite: #5a5650;

    --font-head: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;

    --radius-sm: 6px;
    --radius:    12px;
    --radius-lg: 20px;

    --shadow-sm: 0 2px 8px rgba(10,22,40,.08);
    --shadow:    0 6px 24px rgba(10,22,40,.12);
    --shadow-lg: 0 16px 48px rgba(10,22,40,.18);

    --nav-h: 72px;
    --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ── RESET ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; font-size:16px; }
img  { display:block; max-width:100%; height:auto; }
a    { color:inherit; text-decoration:none; }
button { cursor:pointer; border:none; background:none; font-family:inherit; }
ul, ol { list-style:none; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ── LAYOUT ── */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ════════════════════════════════════
   NAVBAR (matches index_new.css)
════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 999;
    background: rgba(10,22,40,.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,.06);
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.3); }

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-h);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
    gap: 2rem;
}

/* Brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    flex-shrink: 0;
}
.nav-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(52,180,244,.4);
}
.nav-brand-text {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--white);
    line-height: 1.2;
}
.nav-brand-text em {
    display: block;
    font-style: italic;
    color: var(--sky-lite);
    font-size: .9em;
}

/* Desktop links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-left: auto;
}
.nav-link {
    font-size: .88rem;
    font-weight: 500;
    color: rgba(255,255,255,.8);
    transition: color var(--transition);
    position: relative;
    white-space: nowrap;
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0; bottom: -4px;
    width: 0; height: 2px;
    background: var(--sky);
    transition: width var(--transition);
}
.nav-link:hover,
.nav-link.active { color: var(--white); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* Services dropdown */
.has-dropdown { position: relative; }
.has-dropdown .caret {
    font-size: .7em;
    margin-left: .2em;
    display: inline-block;
    transition: transform var(--transition);
}
.has-dropdown:hover .caret { transform: rotate(180deg); }
.dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    min-width: 210px;
    background: var(--navy-mid);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    padding: .5rem 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition), transform var(--transition);
    box-shadow: var(--shadow-lg);
    z-index: 10;
}
.has-dropdown:hover .dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}
.dropdown li a {
    display: block;
    padding: .55rem 1.25rem;
    font-size: .84rem;
    color: rgba(255,255,255,.75);
    transition: color var(--transition), background var(--transition);
}
.dropdown li a:hover { color: var(--sky); background: rgba(52,180,244,.07); }

/* CTA pill */
.nav-cta-btn {
    padding: .55em 1.4em;
    background: var(--sky);
    color: var(--white) !important;
    border-radius: var(--radius-sm);
    font-size: .85rem;
    font-weight: 600;
    transition: background var(--transition);
    white-space: nowrap;
}
.nav-cta-btn:hover { background: var(--sky-dark); }
.nav-cta-btn::after { display:none !important; }

/* Hamburger */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: .4rem;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
}
.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition), width var(--transition);
    transform-origin: center;
}
.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-drawer {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-h));
    background: var(--navy);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 998;
    padding: 1.5rem 1.25rem;
}
.mobile-drawer.open {
    display: block;
    transform: translateX(0);
}
.mobile-nav-links li {
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.mobile-nav-links li a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 1rem 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255,255,255,.85);
    transition: color var(--transition);
}
.mobile-nav-links li a:hover,
.mobile-nav-links li a.active { color: var(--sky); }

/* Mobile services accordion */
.mobile-services-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
}
.mobile-services-row span {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255,255,255,.85);
    transition: color var(--transition);
}
.mobile-services-row svg {
    width: 16px; height: 16px;
    stroke: rgba(255,255,255,.5);
    flex-shrink: 0;
    transition: transform var(--transition), stroke var(--transition);
}
.mobile-services-row:hover span,
.mobile-services-row.open span { color: var(--sky); }
.mobile-services-row:hover svg { stroke: var(--sky); }
.mobile-services-row.open svg { transform: rotate(90deg); stroke: var(--sky); }

.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
    padding-left: 1rem;
}
.mobile-dropdown.open { max-height: 400px; }
.mobile-dropdown li a {
    font-size: .95rem;
    padding: .6rem 0;
    color: rgba(255,255,255,.65);
}
.mobile-dropdown li a:hover { color: var(--sky); }

.mobile-cta {
    display: inline-block;
    margin-top: 1.5rem;
    padding: .8em 2em;
    background: var(--sky);
    color: var(--white) !important;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
}


/* ════════════════════════════════════
   BLOG HERO / PAGE HEADER
════════════════════════════════════ */
.blog-hero {
    padding-top: var(--nav-h);
    background: var(--navy);
    position: relative;
    overflow: hidden;
}
.blog-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 90% at 80% 50%, rgba(52,180,244,.10) 0%, transparent 65%),
        radial-gradient(ellipse 40% 60% at 10% 90%, rgba(52,180,244,.06) 0%, transparent 60%);
    pointer-events: none;
}
/* subtle diagonal texture */
.blog-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255,255,255,.013) 0px,
        rgba(255,255,255,.013) 1px,
        transparent 1px,
        transparent 28px
    );
}
.blog-hero-inner {
    position: relative;
    z-index: 2;
    padding: 5rem 1.25rem 4.5rem;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.blog-hero-tag {
    display: inline-block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sky);
    margin-bottom: .85rem;
}
.blog-hero h1 {
    font-family: var(--font-head);
    font-size: clamp(2.6rem, 5.5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.1rem;
}
.blog-hero h1 em { color: var(--sky); font-style: italic; }
.blog-hero p {
    font-size: 1.05rem;
    color: rgba(255,255,255,.68);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.75;
}

/* thin sky rule at the bottom of the hero */
.blog-hero-rule {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--sky), transparent);
    opacity: .4;
}


/* ════════════════════════════════════
   BLOG SECTION
════════════════════════════════════ */
.blog-section {
    background: var(--cream);
    padding: 5rem 0;
}

/* ── grid ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ── card ── */
.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--grey-2);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.blog-card:hover {
    border-color: var(--sky);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

/* coloured top accent bar */
.blog-card-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--sky), var(--sky-dark));
    flex-shrink: 0;
}

.blog-card-body {
    padding: 1.6rem 1.6rem .5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.blog-card-tag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--sky-dark);
    background: rgba(52,180,244,.1);
    padding: .3em .9em;
    border-radius: 100px;
    width: fit-content;
}

.blog-card-title {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
    transition: color var(--transition);
}
.blog-card:hover .blog-card-title { color: var(--sky-dark); }

.blog-card-excerpt {
    font-size: .9rem;
    color: var(--text-lite);
    line-height: 1.75;
    flex: 1;
    /* collapsed state */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: none;
}
.blog-card-excerpt.expanded {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.read-more-btn {
    font-size: .8rem;
    font-weight: 700;
    color: var(--sky-dark);
    letter-spacing: .04em;
    transition: color var(--transition);
    align-self: flex-start;
    margin-top: .25rem;
}
.read-more-btn:hover { color: var(--navy); }

/* card footer */
.blog-card-footer {
    padding: 1rem 1.6rem 1.4rem;
    border-top: 1px solid var(--grey-1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: wrap;
}
.blog-card-meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
}
.author-avatar-sm {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--navy-lite);
    color: var(--sky-lite);
    display: flex; align-items: center; justify-content: center;
    font-size: .68rem;
    font-weight: 700;
    flex-shrink: 0;
}
.blog-card-meta-info { display: flex; flex-direction: column; gap: .1rem; }
.author-name {
    font-weight: 600;
    color: var(--navy);
    font-size: .8rem;
    line-height: 1.2;
}
.post-date {
    color: var(--grey-3);
    font-size: .72rem;
}

/* Share button */
.share-wrap { position: relative; }
.share-toggle-btn {
    display: flex;
    align-items: center;
    gap: .3rem;
    font-size: .75rem;
    font-weight: 600;
    color: var(--grey-3);
    transition: color var(--transition);
    padding: .35em .75em;
    border-radius: var(--radius-sm);
    border: 1px solid var(--grey-2);
    background: transparent;
}
.share-toggle-btn:hover { color: var(--sky-dark); border-color: var(--sky); }
.share-toggle-btn svg { width: 13px; height: 13px; }

.share-menu {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: var(--white);
    border: 1px solid var(--grey-2);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 20;
    animation: fadeUp .18s ease forwards;
}
.share-menu.visible { display: block; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.share-menu a {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1rem;
    font-size: .8rem;
    font-weight: 500;
    color: var(--text-lite);
    transition: background var(--transition), color var(--transition);
}
.share-menu a:hover { background: var(--grey-1); color: var(--navy); }
.share-menu a .sm-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}


/* ── Empty state ── */
.blog-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--grey-2);
}
.blog-empty-icon {
    width: 52px; height: 52px;
    margin: 0 auto 1.25rem;
    color: var(--grey-2);
}
.blog-empty h3 {
    font-family: var(--font-head);
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: .5rem;
}
.blog-empty p {
    font-size: .92rem;
    color: var(--text-lite);
}


/* ════════════════════════════════════
   FOOTER
════════════════════════════════════ */
.site-footer {
    background: var(--navy);
    padding: 2.5rem 0;
    border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.footer-logo {
    width: 40px; height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(52,180,244,.3);
}
.footer-brand-text strong {
    display: block;
    color: var(--white);
    font-size: .95rem;
    font-weight: 600;
}
.footer-brand-text p {
    color: rgba(255,255,255,.45);
    font-size: .78rem;
}
.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: .82rem;
    font-weight: 500;
    color: rgba(255,255,255,.55);
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--sky); }
.footer-copy {
    font-size: .78rem;
    color: rgba(255,255,255,.35);
}


/* ════════════════════════════════════
   RESPONSIVE
════════════════════════════════════ */
@media (max-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --nav-h: 64px; }

    .nav-links { display: none; }
    .hamburger-btn { display: flex; }

    .blog-grid { grid-template-columns: 1fr; gap: 1.5rem; }

    .blog-hero h1 { font-size: 2.4rem; }
    .blog-hero-inner { padding: 3.5rem 1.25rem 3rem; }

    .blog-section { padding: 3.5rem 0; }

    .footer-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
    .footer-links { gap: 1rem; }
}

@media (max-width: 480px) {
    .blog-card-footer { flex-direction: column; align-items: flex-start; gap: .75rem; }
    .share-menu { right: auto; left: 0; }
}