/* ═══════════════════════════════════════════════════════
   WELCH MARKETING — Main Stylesheet
   Premium, conversion-focused design system
   ═══════════════════════════════════════════════════════ */

/* ── CSS Custom Properties ─────────────────────────── */
:root {
    /* Brand colours */
    --white: #FFFFFF;
    --off-white: #F9FAFB;
    --light-grey: #F3F4F6;
    --mid-grey: #9CA3AF;
    --dark-grey: #1F2937;
    --charcoal: #051928;
    --black: #030712;

    --orange: #FF8800;
    --orange-hover: #E67A00;
    --orange-light: rgba(255, 136, 0, 0.08);
    --orange-glow: rgba(255, 136, 0, 0.15);

    --blue: #4A90D9;
    --blue-light: rgba(74, 144, 217, 0.08);

    --green: #10B981;
    --red: #EF4444;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Spacing */
    --section-padding: 5rem;
    --container-max: 1200px;
    --container-narrow: 800px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.15);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 0.3s var(--ease);
}

/* ── Reset & Base ──────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--dark-grey);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

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

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

/* ── Typography ────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--charcoal);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

.text-orange { color: var(--orange); }

/* ── Layout ────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section-padding {
    padding: var(--section-padding) 0;
    overflow-x: hidden;
}

.bg-dark {
    background: var(--charcoal);
    color: var(--white);
}

.bg-dark h2, .bg-dark h3, .bg-dark h4 {
    color: var(--white);
}

.bg-light {
    background: var(--off-white);
}

/* ── Section Headers ───────────────────────────────── */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-header p {
    color: var(--mid-grey);
    font-size: 1.1rem;
    margin-top: 0.75rem;
}

.section-header--light p {
    color: rgba(255, 255, 255, 0.7);
}

.section-tag {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--orange);
    margin-bottom: 0.75rem;
}

.section-tag--light {
    color: var(--orange);
}

.section-cta {
    text-align: center;
    margin-top: 2.5rem;
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

.btn-primary:hover {
    background: var(--orange-hover);
    border-color: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 136, 0, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--charcoal);
    border-color: var(--charcoal);
}

.btn-outline:hover {
    background: var(--charcoal);
    color: var(--white);
    transform: translateY(-2px);
}

.bg-dark .btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}

.bg-dark .btn-outline:hover {
    background: var(--white);
    color: var(--charcoal);
    border-color: var(--white);
}

.btn-ghost {
    background: transparent;
    color: var(--mid-grey);
    border: none;
    padding: 0.75rem 1rem;
}

.btn-ghost:hover {
    color: var(--charcoal);
}

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-xl { padding: 1.15rem 2.5rem; font-size: 1.1rem; }
.btn-block { width: 100%; }

/* ── Header ────────────────────────────────────────── */
.welch-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: all var(--transition);
}

.welch-header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 2rem;
}

.welch-logo {
    flex-shrink: 0;
    max-height: 50px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Target EVERY possible WordPress logo image output */
.welch-logo img,
.welch-logo .custom-logo,
.welch-logo .welch-logo-img,
.custom-logo-link img,
.header-inner img,
.header-inner .custom-logo-link,
.header-inner .custom-logo-link img,
.welch-logo figure,
.welch-logo figure img {
    height: 40px !important;
    max-height: 40px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain !important;
    display: block !important;
}

/* Kill WordPress figure/link wrapper sizing */
.welch-logo a,
.welch-logo figure {
    display: flex !important;
    align-items: center !important;
    max-height: 40px !important;
    line-height: 1 !important;
}

.welch-logo .custom-logo-link {
    display: flex !important;
    align-items: center !important;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--charcoal);
    letter-spacing: -0.03em;
}

.logo-accent {
    color: var(--orange);
}

/* Nav */
.welch-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.welch-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.welch-menu li {
    position: relative;
}

.welch-nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--dark-grey);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all var(--transition);
}

.welch-nav-link:hover {
    color: var(--orange);
    background: var(--orange-light);
}

.dropdown-chevron {
    transition: transform var(--transition);
}

.welch-menu li:hover .dropdown-chevron {
    transform: rotate(180deg);
}

/* Dropdown */
.welch-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s var(--ease);
    padding-top: 0.5rem;
}

.welch-menu li:hover .welch-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.welch-dropdown-menu {
    list-style: none;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 0.5rem;
    min-width: 220px;
}

.welch-dropdown-menu a {
    display: block;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.welch-dropdown-menu a:hover {
    background: var(--orange-light);
    color: var(--orange);
}

/* Header CTA */
.header-cta {
    flex-shrink: 0;
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--charcoal);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    z-index: 99999;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
}

.mobile-menu.open {
    display: block !important;
    transform: translateX(0) !important;
}

/* Account for WP admin bar */
.admin-bar .mobile-menu {
    top: 118px;
}

.admin-bar .welch-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    .admin-bar .mobile-menu {
        top: 118px;
    }
    .admin-bar .welch-header {
        top: 46px;
    }
}

.mobile-menu-inner {
    padding: 2rem 1.5rem;
}

.mobile-menu-list {
    list-style: none;
}

.mobile-menu-list li {
    border-bottom: 1px solid var(--light-grey);
}

.mobile-menu-list a {
    display: block;
    padding: 1rem 0;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
}

.mobile-menu-cta {
    margin-top: 1.5rem;
    width: 100%;
}

.mobile-menu-contact {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-contact a {
    color: var(--mid-grey);
    font-size: 0.9rem;
}

/* ── Page Hero ─────────────────────────────────────── */
.page-hero {
    padding: 8rem 0 3rem;
    background: var(--off-white);
}

.page-hero h1 {
    margin-top: 0.5rem;
}

.page-hero p {
    font-size: 1.15rem;
    color: var(--mid-grey);
    max-width: 600px;
    margin-top: 0.75rem;
}

.page-hero--dark {
    background: var(--charcoal);
    color: var(--white);
}

.page-hero--dark h1 {
    color: var(--white);
}

.page-hero--dark p,
.page-hero--dark .hero-meta {
    color: rgba(255, 255, 255, 0.7);
}

/* Breadcrumbs */
.welch-breadcrumbs {
    font-size: 0.85rem;
    color: var(--mid-grey);
    margin-bottom: 1rem;
}

.welch-breadcrumbs a {
    color: var(--mid-grey);
}

.welch-breadcrumbs a:hover {
    color: var(--orange);
}

.breadcrumb-sep {
    margin: 0 0.5rem;
}

/* ── Footer ────────────────────────────────────────── */
.footer-cta {
    background: linear-gradient(135deg, var(--orange), #FF6B00);
    padding: 4rem 0;
}

.footer-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-cta-content h2 {
    color: var(--white);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.footer-cta-content p {
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.5rem;
}

.footer-cta-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-cta .btn-primary {
    background: var(--white);
    color: var(--orange);
    border-color: var(--white);
}

.footer-cta .btn-primary:hover {
    background: var(--charcoal);
    color: var(--white);
    border-color: var(--charcoal);
}

.footer-cta .btn-outline {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.4);
}

.footer-cta .btn-outline:hover {
    background: var(--white);
    color: var(--orange);
}

.footer-main {
    background: var(--charcoal);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-logo .logo-text {
    color: var(--white);
    font-size: 1.5rem;
}

.footer-logo img,
.footer-logo .custom-logo {
    height: 36px !important;
    max-height: 36px !important;
    width: auto !important;
    max-width: 180px !important;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-col-about p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin-top: 1rem;
    line-height: 1.7;
}

.footer-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.footer-badges .badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 136, 0, 0.1);
    color: var(--orange);
    border-radius: var(--radius-full);
    font-weight: 600;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.6rem;
}

.footer-col ul a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-col ul a:hover {
    color: var(--orange);
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact-list svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--orange);
}

.footer-contact-list span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 700;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--orange);
    color: var(--white);
}

.footer-bottom {
    background: var(--black);
    padding: 1.25rem 0;
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

.footer-legal a:hover {
    color: var(--white);
}

/* ── Sticky Mobile CTA ─────────────────────────────── */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 998;
    background: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.6rem;
    gap: 0.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
}

.sticky-book {
    background: var(--orange);
    color: var(--white);
    flex: 2;
}

.sticky-call {
    background: var(--light-grey);
    color: var(--charcoal);
}

.sticky-whatsapp {
    background: #25D366;
    color: var(--white);
}

/* ── WhatsApp Float (Desktop) ──────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 997;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ── Animations ────────────────────────────────────── */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-animate="fade-left"] {
    transform: translateX(30px);
}

[data-animate].visible {
    opacity: 1;
    transform: translateY(0) translateX(0);
}

/* ── Post Content Styles ───────────────────────────── */
.post-content h2 { margin: 2rem 0 1rem; }
.post-content h3 { margin: 1.5rem 0 0.75rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content ul, .post-content ol { margin: 1rem 0; padding-left: 1.5rem; }
.post-content li { margin-bottom: 0.5rem; }
.post-content img { border-radius: var(--radius-md); margin: 2rem 0; }
.post-content blockquote {
    border-left: 4px solid var(--orange);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
    background: var(--orange-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
}

.post-featured-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 2.5rem;
}

/* ── Internal Links (SEO) ──────────────────────────── */
.welch-internal-links {
    padding: 3rem 0;
    background: var(--off-white);
}

.internal-links-section {
    max-width: var(--container-max);
    margin: 0 auto 2rem;
    padding: 0 1.5rem;
}

.internal-links-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.link-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.link-pill {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--dark-grey);
    transition: all var(--transition);
}

.link-pill:hover {
    background: var(--orange);
    color: var(--white);
    border-color: var(--orange);
}

/* ═══ Scroll Reveal ═══ */
[data-reveal]{opacity:0;transform:translateY(40px);transition:opacity .8s cubic-bezier(.16,1,.3,1),transform .8s cubic-bezier(.16,1,.3,1)}
[data-reveal].revealed{opacity:1;transform:translateY(0) translateX(0) scale(1)}
[data-reveal="left"]{transform:translateX(-60px)}
[data-reveal="right"]{transform:translateX(60px)}
[data-reveal="scale"]{transform:scale(0.9)}
[data-reveal-delay="100"]{transition-delay:.1s}
[data-reveal-delay="200"]{transition-delay:.2s}
[data-reveal-delay="300"]{transition-delay:.3s}
[data-reveal-delay="400"]{transition-delay:.4s}
[data-reveal-delay="500"]{transition-delay:.5s}
[data-reveal-delay="600"]{transition-delay:.6s}

/* ═══ Scroll Reveal ═══ */
[data-reveal]{opacity:0;transform:translateY(40px);transition:opacity .8s cubic-bezier(.16,1,.3,1),transform .8s cubic-bezier(.16,1,.3,1)}
[data-reveal].revealed{opacity:1;transform:translateY(0) translateX(0) scale(1)}
[data-reveal="left"]{transform:translateX(-60px)}
[data-reveal="right"]{transform:translateX(60px)}
[data-reveal="scale"]{transform:scale(0.9)}
[data-reveal-delay="100"]{transition-delay:.1s}
[data-reveal-delay="200"]{transition-delay:.2s}
[data-reveal-delay="300"]{transition-delay:.3s}
[data-reveal-delay="400"]{transition-delay:.4s}
[data-reveal-delay="500"]{transition-delay:.5s}
[data-reveal-delay="600"]{transition-delay:.6s}
