/* =========================================================
   Pentamart Digital — Elegant Ebook & Digital Services Theme
   ========================================================= */

:root {
    --navy: #10172A;
    --navy-light: #1B2440;
    --gold: #C9A24B;
    --gold-light: #E4C77D;
    --cream: #FAF7F1;
    --cream-dark: #F1EBDD;
    --text-dark: #1F2433;
    --text-muted: #6B7280;
    --white: #FFFFFF;
    --radius: 14px;
    --shadow-sm: 0 4px 14px rgba(16, 23, 42, 0.06);
    --shadow-md: 0 12px 32px rgba(16, 23, 42, 0.10);
    --shadow-lg: 0 24px 60px rgba(16, 23, 42, 0.16);
    --font-head: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--cream);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 700; line-height: 1.25; color: var(--navy); }

.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 13px;
    margin-bottom: 14px;
}
.section-tag::before { content: ''; width: 28px; height: 2px; background: var(--gold); display: inline-block; }

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.section-head p { color: var(--text-muted); font-size: 17px; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-3px); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }
.btn-block { width: 100%; justify-content: center; }

/* ===== Top Bar ===== */
.topbar { background: var(--navy); color: rgba(255,255,255,0.75); font-size: 13.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; padding: 9px 24px; }
.topbar-contact span { margin-right: 22px; }
.topbar-contact i { color: var(--gold); margin-right: 6px; }
.topbar-social a { color: rgba(255,255,255,0.75); margin-left: 14px; transition: var(--transition); }
.topbar-social a:hover { color: var(--gold); }

/* ===== Header / Nav ===== */
.site-header {
    background: rgba(250, 247, 241, 0.92);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(16,23,42,0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: 23px; font-weight: 700; color: var(--navy); }
.logo i { color: var(--gold); font-size: 22px; }
.logo-light { color: var(--white); }

.main-nav { display: flex; gap: 38px; }
.nav-link { font-weight: 500; font-size: 15.5px; color: var(--text-dark); position: relative; padding: 6px 0; transition: var(--transition); }
.nav-link::after {
    content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
    background: var(--gold); transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta { padding: 12px 26px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 26px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--transition); }

/* ===== Hero ===== */
.hero {
    position: relative;
    background: linear-gradient(135deg, var(--navy) 0%, #1A2342 60%, #232C52 100%);
    color: var(--white);
    overflow: hidden;
    padding: 130px 0 110px;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(circle at 20% 20%, rgba(201,162,75,0.18), transparent 45%),
                       radial-gradient(circle at 85% 75%, rgba(201,162,75,0.12), transparent 40%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero-content .section-tag { color: var(--gold-light); }
.hero h1 { font-size: clamp(34px, 5vw, 56px); color: var(--white); margin-bottom: 22px; }
.hero h1 em { color: var(--gold-light); font-style: normal; }
.hero p { color: rgba(255,255,255,0.78); font-size: 18px; max-width: 520px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 50px; }
.hero .btn-outline { color: var(--white); border-color: rgba(255,255,255,0.5); }
.hero .btn-outline:hover { background: var(--white); color: var(--navy); }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-head); font-size: 30px; color: var(--gold-light); }
.hero-stats div span { font-size: 13.5px; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 1px; }

.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: var(--radius);
    padding: 34px;
    backdrop-filter: blur(8px);
    width: 100%;
    max-width: 360px;
}
.hero-card-icon {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--gold); color: var(--navy);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 18px;
}
.hero-card h3 { color: var(--white); font-size: 21px; margin-bottom: 10px; }
.hero-card p { color: rgba(255,255,255,0.7); font-size: 15px; margin-bottom: 0; }
.hero-badge {
    position: absolute; top: -22px; right: -16px;
    background: var(--gold); color: var(--navy);
    border-radius: 50%; width: 92px; height: 92px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; font-weight: 700; font-size: 13px; line-height: 1.3;
    box-shadow: var(--shadow-lg);
    transform: rotate(8deg);
}

/* ===== Trust strip ===== */
.trust-strip { background: var(--white); padding: 32px 0; border-bottom: 1px solid rgba(16,23,42,0.06); }
.trust-strip .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.trust-strip span { color: var(--text-muted); font-size: 14px; letter-spacing: 0.5px; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.trust-strip i { color: var(--gold); }

/* ===== Services / Feature cards ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 38px 32px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(16,23,42,0.05);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); border-color: rgba(201,162,75,0.3); }

.card-icon {
    width: 58px; height: 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--gold-light);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 22px;
}
.card h3 { font-size: 21px; margin-bottom: 12px; }
.card p { color: var(--text-muted); font-size: 15.5px; margin-bottom: 0; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--gold); font-weight: 600; font-size: 14.5px; }

.services-strip { background: var(--cream-dark); }

/* ===== About split ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.split-media-frame {
    position: absolute; inset: 18px -18px -18px 18px; z-index: -1;
    border: 2px solid var(--gold); border-radius: var(--radius);
}
.split-stat {
    position: absolute; bottom: -26px; left: -26px;
    background: var(--navy); color: var(--white);
    padding: 22px 26px; border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.split-stat strong { display: block; font-family: var(--font-head); font-size: 28px; color: var(--gold-light); }
.split-stat span { font-size: 13px; color: rgba(255,255,255,0.7); }

.checklist li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; color: var(--text-dark); }
.checklist i { color: var(--gold); margin-top: 4px; }

/* ===== Process steps ===== */
.process-step { text-align: center; position: relative; }
.process-num {
    width: 64px; height: 64px; margin: 0 auto 22px;
    border-radius: 50%; background: var(--white);
    border: 2px solid var(--gold);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-size: 22px; color: var(--navy); font-weight: 700;
}
.process-step h3 { font-size: 19px; margin-bottom: 10px; }
.process-step p { color: var(--text-muted); font-size: 15px; }

/* ===== Stats band ===== */
.stats-band { background: var(--navy); color: var(--white); }
.stats-band .grid-4 { text-align: center; }
.stats-band strong { display: block; font-family: var(--font-head); font-size: 38px; color: var(--gold-light); }
.stats-band span { font-size: 14px; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 1px; }

/* ===== Testimonials ===== */
.testimonial-card {
    background: var(--white); border-radius: var(--radius); padding: 36px;
    box-shadow: var(--shadow-sm); border: 1px solid rgba(16,23,42,0.05);
}
.testimonial-stars { color: var(--gold); margin-bottom: 16px; font-size: 14px; }
.testimonial-card p.quote { font-size: 16px; color: var(--text-dark); margin-bottom: 22px; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--gold); color: var(--navy);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-family: var(--font-head); font-size: 18px;
}
.testimonial-author strong { display: block; font-size: 15px; }
.testimonial-author span { font-size: 13px; color: var(--text-muted); }

/* ===== Pricing ===== */
.pricing-card {
    background: var(--white); border-radius: var(--radius); padding: 40px 34px;
    box-shadow: var(--shadow-sm); border: 1px solid rgba(16,23,42,0.05);
    text-align: center; transition: var(--transition);
}
.pricing-card.featured { background: var(--navy); color: var(--white); transform: scale(1.04); box-shadow: var(--shadow-lg); }
.pricing-card.featured h3, .pricing-card.featured .price { color: var(--white); }
.pricing-card.featured .price span { color: rgba(255,255,255,0.6); }
.pricing-card.featured p { color: rgba(255,255,255,0.75); }
.pricing-card.featured .checklist li { color: rgba(255,255,255,0.9); }
.pricing-card:hover { transform: translateY(-8px); }
.pricing-card.featured:hover { transform: scale(1.04) translateY(-8px); }
.pricing-badge {
    display: inline-block; background: var(--gold); color: var(--navy);
    font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 50px;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px;
}
.pricing-card h3 { font-size: 20px; margin-bottom: 6px; }
.pricing-card .price { font-family: var(--font-head); font-size: 42px; color: var(--navy); margin: 14px 0; }
.pricing-card .price span { font-size: 15px; color: var(--text-muted); font-family: var(--font-body); }
.pricing-card .checklist { text-align: left; margin: 26px 0; }

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(120deg, var(--navy), #232C52); color: var(--white); padding: 64px 0; }
.cta-band-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.cta-band h2 { color: var(--white); font-size: 28px; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.75); }

/* ===== Footer ===== */
.site-footer { background: #0C1220; color: rgba(255,255,255,0.65); padding-top: 80px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 50px; }
.footer-col h4 { color: var(--white); font-size: 16px; margin-bottom: 20px; font-family: var(--font-head); }
.footer-col ul li { margin-bottom: 12px; font-size: 14.5px; }
.footer-col ul li a { transition: var(--transition); }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-about p { font-size: 14.5px; margin: 18px 0 22px; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--navy); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact i { color: var(--gold); margin-top: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 22px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13.5px; }
.footer-bottom a:hover { color: var(--gold-light); }

.back-to-top {
    position: fixed; bottom: 26px; right: 26px;
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--gold); color: var(--navy);
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
    transition: var(--transition); z-index: 999;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-4px); }

/* ===== Page Hero (inner pages) ===== */
.page-hero {
    background: linear-gradient(135deg, var(--navy), #232C52);
    color: var(--white); padding: 80px 0 70px; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background-image: radial-gradient(circle at 15% 30%, rgba(201,162,75,0.15), transparent 45%);
}
.page-hero h1 { color: var(--white); font-size: clamp(30px, 4vw, 44px); position: relative; }
.page-hero p.breadcrumb { color: rgba(255,255,255,0.65); margin-top: 12px; position: relative; font-size: 14.5px; }
.page-hero p.breadcrumb a { color: var(--gold-light); }

/* ===== Contact Page ===== */
.contact-wrap { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 50px; align-items: start; }
.contact-info-card {
    background: var(--navy); color: var(--white); border-radius: var(--radius);
    padding: 40px 34px;
}
.contact-info-card h3 { color: var(--white); margin-bottom: 8px; }
.contact-info-card p { color: rgba(255,255,255,0.7); font-size: 15px; margin-bottom: 28px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-info-item .icon {
    width: 44px; height: 44px; border-radius: 12px; background: rgba(201,162,75,0.15);
    color: var(--gold-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-info-item strong { display: block; font-size: 15px; margin-bottom: 3px; }
.contact-info-item span, .contact-info-item a { font-size: 14.5px; color: rgba(255,255,255,0.7); }

.contact-form-card { background: var(--white); border-radius: var(--radius); padding: 44px; box-shadow: var(--shadow-sm); border: 1px solid rgba(16,23,42,0.05); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--navy); }
.form-group label .req { color: #C0392B; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 14px 16px; border-radius: 10px;
    border: 1.5px solid #E5E1D6; background: var(--cream); font-family: var(--font-body);
    font-size: 15px; color: var(--text-dark); transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--gold); background: var(--white); box-shadow: 0 0 0 4px rgba(201,162,75,0.12);
}
.form-group textarea { resize: vertical; min-height: 150px; }
.form-honeypot { position: absolute; left: -9999px; opacity: 0; }

.alert { padding: 16px 20px; border-radius: 10px; margin-bottom: 26px; font-size: 14.5px; display: flex; gap: 12px; align-items: flex-start; }
.alert-success { background: #E6F4EA; color: #1E7B34; border: 1px solid #BFE6CA; }
.alert-error { background: #FBEAEA; color: #B3261E; border: 1px solid #F3C6C4; }
.alert ul { margin: 6px 0 0 18px; list-style: disc; }

.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); margin-top: 40px; }
.map-embed iframe { width: 100%; height: 320px; border: 0; display: block; }

/* ===== Legal Pages ===== */
.legal-content { max-width: 860px; margin: 0 auto; }
.legal-content .updated { color: var(--text-muted); font-size: 14px; margin-bottom: 40px; }
.legal-content h2 { font-size: 24px; margin: 44px 0 16px; }
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 { font-size: 18px; margin: 24px 0 10px; color: var(--text-dark); }
.legal-content p { color: var(--text-muted); margin-bottom: 16px; font-size: 16px; }
.legal-content ul { margin: 0 0 16px 0; }
.legal-content ul li { position: relative; padding-left: 24px; color: var(--text-muted); margin-bottom: 10px; }
.legal-content ul li::before { content: '\f0da'; font-family: 'Font Awesome 6 Free'; font-weight: 900; color: var(--gold); position: absolute; left: 0; top: 1px; }
.legal-toc { background: var(--white); border: 1px solid rgba(16,23,42,0.06); border-radius: var(--radius); padding: 30px 34px; margin-bottom: 44px; box-shadow: var(--shadow-sm); }
.legal-toc h4 { font-size: 16px; margin-bottom: 14px; }
.legal-toc ol { padding-left: 20px; }
.legal-toc ol li { margin-bottom: 8px; font-size: 14.5px; }
.legal-toc ol li a { color: var(--text-dark); transition: var(--transition); }
.legal-toc ol li a:hover { color: var(--gold); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero-inner, .split, .contact-wrap { grid-template-columns: 1fr; }
    .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-card.featured { transform: none; }
    .split-stat { position: static; margin-top: 20px; display: inline-block; }
}

@media (max-width: 768px) {
    .topbar-contact span:nth-child(2) { display: none; }
    .main-nav {
        position: fixed; top: 0; right: -100%; height: 100vh; width: 78%; max-width: 320px;
        background: var(--navy); flex-direction: column; padding: 100px 36px 36px; gap: 26px;
        transition: var(--transition); z-index: 1001;
    }
    .main-nav.open { right: 0; box-shadow: var(--shadow-lg); }
    .main-nav .nav-link { color: rgba(255,255,255,0.85); font-size: 18px; }
    .main-nav .nav-link.active, .main-nav .nav-link:hover { color: var(--gold-light); }
    .nav-toggle { display: flex; }
    .nav-cta { display: none; }
    .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .cta-band-inner { text-align: center; justify-content: center; }
    .section { padding: 70px 0; }
}

body.nav-open-lock { overflow: hidden; }
.nav-overlay {
    position: fixed; inset: 0; background: rgba(16,23,42,0.5); opacity: 0; pointer-events: none;
    transition: var(--transition); z-index: 1000;
}
.nav-overlay.visible { opacity: 1; pointer-events: auto; }
