@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@600;700;800&display=swap');

:root {
    --primary-color: #3D2C5E;
    --primary-light: #5A4485;
    --secondary-color: #D4AF37;
    --secondary-dark: #C19A2E;
    --accent-color: #9B8AB0;
    --bg-color: #FDFCF0;
    --text-color: #2D2D2D;
    --text-muted: #666;
    --white: #FFFFFF;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html,
body {
    overflow-x: clip;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* ── Buttons ── */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 1rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(61, 44, 94, 0.2);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.2);
}

/* ── Header ── */
html {
    scroll-padding-top: 120px;
}

header {
    background: var(--white);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    width: 100%;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-right: auto;
}

.logo-image {
    height: 44px;
    width: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
}

.footer-logo-image {
    height: 70px;
    width: auto;
    flex-shrink: 0;
    background-color: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    filter: contrast(1.1) brightness(1.05);
}

/* ── Nav Links ── */
.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    position: relative;
    color: var(--primary-color);
    padding: 10px 8px;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--secondary-color);
}

.nav-btn {
    padding: 12px 24px !important;
    font-size: 0.8rem !important;
    text-transform: uppercase;
    font-weight: 700 !important;
    border-radius: 4px !important;
    letter-spacing: 1px;
    margin-left: 10px;
    color: var(--white) !important;
    background-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(61, 44, 94, 0.15);
}

.nav-btn:hover {
    background-color: var(--primary-light) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(61, 44, 94, 0.3);
}

/* ── Mobile Menu Burger ── */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2001;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
    display: block;
}

/* ── Hero ── */
.hero {
    background: linear-gradient(rgba(61, 44, 94, 0.85), rgba(61, 44, 94, 0.85)),
        url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?auto=format&fit=crop&q=80&w=2000') no-repeat center center/cover !important;
    color: white;
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--bg-color);
    clip-path: ellipse(50% 50% at 50% 100%);
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

/* ── Section Titles ── */
.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-title p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* ── Form Styles ── */
input:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* ── Enhanced Professional Footer ── */
.main-footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 80px 0 30px;
    position: relative;
}

.main-footer.footer-no-cta {
    padding: 60px 0 30px;
}

.footer-cta-wrapper {
    transform: translateY(-60%);
    padding: 0 20px;
    margin-bottom: -30px;
}

.footer-cta {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    border-radius: 16px;
    padding: 40px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    gap: 30px;
    flex-wrap: wrap;
}

.footer-cta-text h2 {
    color: var(--white);
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.footer-cta-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
}

.footer-cta-btn .btn {
    background: var(--white);
    color: var(--secondary-dark);
    font-size: 1.1rem;
    padding: 16px 36px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.footer-cta-btn .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr 1.5fr;
    gap: 60px;
    margin-bottom: 50px;
}

.footer-logo-image {
    height: 60px;
    background-color: var(--white);
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 25px;
    filter: contrast(1.05);
    display: inline-block;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 25px;
    padding-right: 20px;
}

.footer-links-group {
    display: flex;
    justify-content: space-around;
    gap: 30px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 25px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.footer-links a i {
    font-size: 0.7rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 6px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
}

.contact-info-list i {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-top: 4px;
}

.contact-info-list a:hover {
    color: var(--secondary-color);
}

.payment-icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.payment-icons i {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition);
}

.payment-icons i:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-flex p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.legal-links a:hover {
    color: var(--secondary-color);
}

/* ── Social Links ── */
.social-links-container {
    display: flex;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    color: var(--white) !important;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-4px);
    background: var(--secondary-color);
    color: var(--primary-color) !important;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* ── Card Customization ── */
.service-card {
    text-align: center;
}

/* ── Card Hover Effects ── */
.service-card:hover,
.book-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* ── Book / Portfolio Placeholders ── */
.book-item img,
.portfolio-box {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 3rem;
    overflow: hidden;
}

.book-item img::after {
    content: '📖';
}

.portfolio-box::after {
    content: '📚';
}

/* ── Legal & Policy Pages ── */
.legal-content-wrapper {
    padding: 80px 0;
    line-height: 1.8;
    color: #444;
}

.legal-content-inner {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content-inner h2, 
.legal-content-inner h3 {
    color: var(--primary-color);
    margin: 40px 0 20px;
    font-weight: 700;
}

.legal-content-inner ul {
    margin-bottom: 25px;
    padding-left: 20px;
    list-style: disc;
}

.legal-content-inner li {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .legal-content-wrapper {
        padding: 40px 0;
    }
}

/* ═════
   RESPONSIVE BREAKPOINTS — TABLET (≤992px)
═══════════════════════════════════════════ */
@media (max-width: 1120px) {

    /* Slide-in mobile nav */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(120%);
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 2000;
        gap: 25px;
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1rem;
        letter-spacing: 1px;
        opacity: 1;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

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

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-btn {
        width: 180px;
        text-align: center;
        margin-left: 0;
    }

    /* Logo smaller on tablet */
    .logo-image {
        height: 42px;
    }

    /* Page title sections */
    section[style*="padding: 60px 0"] {
        padding: 50px 0 !important;
    }

    /* Services flip grid */
    .flip-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Pricing cards */
    .pricing-card__header {
        padding: 28px 22px 18px !important;
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS — MOBILE (≤768px)
═══════════════════════════════════════════ */
@media (max-width: 768px) {

    html {
        scroll-padding-top: 80px;
    }

    section {
        padding: 50px 0;
    }

    /* Typography */
    h1 {
        font-size: 2rem !important;
        line-height: 1.25 !important;
    }

    h2 {
        font-size: 1.7rem !important;
    }

    h3 {
        font-size: 1.3rem !important;
    }

    .section-title h2 {
        font-size: 1.7rem !important;
    }

    .section-title p {
        font-size: 1rem;
    }

    /* Hero */
    .hero {
        padding: 110px 0 70px !important;
    }

    .hero .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 2rem !important;
        line-height: 1.3 !important;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
        margin-left: 0 !important;
    }

    /* Nav stays one row */
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* Logo sizes */
    .logo-image {
        height: 40px;
    }

    .footer-logo-image {
        height: 50px;
    }

    /* Contact grid */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }

    /* eBook responsive grid */
    .responsive-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Workflow container */
    .workflow-container {
        flex-direction: column-reverse !important;
        gap: 20px !important;
    }

    .workflow-graphic {
        min-width: 100% !important;
        height: 300px !important;
    }

    /* Services flip cards */
    .flip-grid {
        grid-template-columns: 1fr !important;
    }

    .flip-card {
        height: 300px;
    }

    /* Portfolio grid */
    .portfolio-img {
        height: 280px !important;
    }

    /* Pricing */
    .pricing-card__title {
        font-size: 1.5rem !important;
    }

    /* About mission/vision */
    .mission-vision-container {
        grid-template-columns: 1fr !important;
    }

    /* Core values grid */
    .m-v-card {
        padding: 35px 25px !important;
    }

    /* Section padding reductions */
    section {
        padding: 50px 0 !important;
    }

    /* Hide workflow graphic on very small mobile */
    .workflow-circle {
        display: none !important;
    }

    /* Format cards in ebook page */
    .format-card {
        padding: 35px 20px !important;
    }

    /* Grids → single column */
    .services-grid,
    .book-grid {
        grid-template-columns: 1fr !important;
    }

    /* Process steps */
    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .step {
        max-width: 100% !important;
        width: 100%;
    }

    /* Footer Mobile */
    .main-footer {
        padding-top: 0;
        margin-top: 100px !important;
    }

    .main-footer.footer-no-cta {
        margin-top: 0 !important;
    }

    .footer-cta-wrapper {
        transform: none !important;
        margin-bottom: 0 !important;
        padding: 0 20px;
        background: transparent;
        position: relative;
        z-index: 10;
        margin-top: 0;
    }

    .footer-cta {
        padding: 20px 15px;
        text-align: center;
        flex-direction: column;
        gap: 12px;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .footer-cta-text h2 {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }

    .footer-cta-text p {
        font-size: 0.9rem;
    }

    .footer-cta-btn .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .main-footer>.container {
        padding-top: 50px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-desc {
        padding-right: 0;
    }

    .footer-links-group {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a {
        justify-content: center;
    }

    .contact-info-list li {
        justify-content: center;
        text-align: center;
    }

    .payment-icons {
        justify-content: center;
    }

    .social-links-container {
        justify-content: center;
    }

    .footer-logo-image {
        margin: 0 auto 25px;
        display: block;
    }

    .footer-bottom-flex {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    /* Buttons */
    .btn {
        padding: 12px 22px;
        font-size: 0.95rem;
    }

    /* CTA Banner */
    .cta-banner h2 {
        font-size: 1.6rem !important;
    }

    .cta-banner p {
        font-size: 0.95rem;
    }

    /* Book images smaller */
    .book-item img {
        height: 250px !important;
    }

    /* Tawk native chat mobile adjustments */
    iframe[title*="chat"]:not([title*="status"]) {
        transform: scale(0.9);
        transform-origin: bottom left;
    }

    /* Ensure Tawk widget stays left on mobile to avoid touching the drawer */
    .tawk-min-container,
    .tawk-widget,
    iframe[src*="tawk"] {
        left: 20px !important;
        right: auto !important;
        bottom: 20px !important;
    }

}

/* ═══════════════════════════════════════════
   RESPONSIVE BREAKPOINTS — SMALL (≤480px)
═══════════════════════════════════════════ */
@media (max-width: 480px) {

    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 1.7rem !important;
    }

    h2 {
        font-size: 1.5rem !important;
    }

    h3 {
        font-size: 1.15rem !important;
    }

    .hero {
        padding: 95px 0 60px !important;
    }

    .hero h1 {
        font-size: 1.7rem !important;
    }

    .logo-image {
        height: 35px;
    }

    .btn {
        padding: 11px 18px;
        font-size: 0.9rem;
    }

    /* CTA banner */
    .cta-banner {
        padding: 50px 0 !important;
    }

    /* Pricing CTA button text */
    .pricing-card__cta {
        font-size: 0.78rem !important;
        padding: 12px 10px 12px 18px !important;
    }

    /* Modal padding */
    #inquiryModal>div {
        padding: 28px 20px !important;
    }

    /* Contact form padding */
    .contact-grid>div:last-child {
        padding: 25px 18px !important;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 28px 20px !important;
    }

    /* Portfolio items */
    .portfolio-img {
        height: 230px !important;
    }

    /* flip cards */
    .flip-card {
        height: 320px !important;
    }

    /* Tables in admin — horizontal scroll */
    .leads-table-wrapper {
        overflow-x: auto;
    }

    table {
        min-width: 600px;
    }

    /* Format cards */
    .format-card {
        padding: 28px 15px !important;
    }

    /* Mission vision padding */
    .m-v-card {
        padding: 30px 20px !important;
    }

    /* About section responsive grid image */
    .responsive-grid img {
        height: 240px !important;
    }

    /* Section titles */
    .section-title h2 {
        font-size: 1.5rem !important;
    }
}

/* ═══════════════════════════════════════════
   LARGE SCREENS (≥1200px)
═══════════════════════════════════════════ */
@media (min-width: 1200px) {
    .logo-image {
        height: 65px;
    }
}

/* ═══════════════════════════════════════════
   EXTRA LARGE SCREENS (≥1400px)
═══════════════════════════════════════════ */
@media (min-width: 1400px) {
    .logo-image {
        height: 70px;
    }
}