/* ==========================
RESET
========================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
section { padding: 100px 0; }

:root {
    --primary: #8e0c0f;
    --primary-light: #c62023;
    --black: #131212;
    --gray: #666;
    --light: #fafafa;
    --white: #fff;
}

body { font-family: 'Poppins', sans-serif; background: #fff; color: var(--black); }
img { max-width: 100%; display: block; }
a { text-decoration: none; }
ul { list-style: none; }
.container { width: 90%; max-width: 1200px; margin: auto; }

/* ==========================
ACCESSIBILITY
========================== */

/* .screen-reader-text is WordPress core's name for the same utility
   (pagination, "Continue reading", search/comment form labels). */
.sr-only,
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 12px;
    z-index: 2000;
    background: var(--primary);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ==========================
HEADER
========================== */

.header {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; position: relative; }
/* width:auto — the <img> carries intrinsic width/height attributes (for CLS),
   and without it the width attribute would win and stretch the logo. */
.logo img { height: 85px; width: auto; transition: .3s; }
.nav-menu { display: flex; gap: 45px; }
.nav-menu a { font-weight: 500; color: #222; transition: .3s; }
.nav-menu a:hover,
.nav-menu .active { color: var(--primary); }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--black);
    border-radius: 2px;
    transition: .3s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ==========================
HERO
========================== */

.hero {
    padding: 90px 0;
    background:
        radial-gradient(circle at top right, #fdeaea 0%, transparent 35%),
        linear-gradient(135deg, #ffffff, #fff7f7);
}

.hero-wrapper { display: grid; grid-template-columns: 55% 45%; gap: 40px; align-items: center; }

.hero-badge {
    display: inline-block;
    padding: 10px 18px;
    background: #fdeaea;
    color: var(--primary);
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 25px;
}

.hero h1 { font-size: 72px; line-height: 1.1; font-weight: 700; margin-bottom: 25px; }
.hero h1 span { color: var(--primary); }
.hero p { font-size: 18px; color: var(--gray); max-width: 600px; margin-bottom: 35px; }

/* Multi-paragraph hero copy: a larger lead paragraph, tighter spacing between
   the rest, and the 35px gap before the buttons moved onto the wrapper. */
.hero-intro { max-width: 600px; margin-bottom: 35px; }
.hero-intro p { font-size: 16px; line-height: 1.75; margin-bottom: 14px; }
.hero-intro p:first-child { font-size: 18px; }
.hero-intro p:last-child { margin-bottom: 0; }
.hero-buttons { display: flex; gap: 18px; margin-bottom: 45px; }

.primary-btn,
.secondary-btn { padding: 18px 38px; border-radius: 12px; font-weight: 600; transition: .3s; }
.primary-btn { background: var(--primary); color: #fff; }
.primary-btn:hover { background: var(--primary-light); }
.secondary-btn { border: 2px solid var(--primary); color: var(--primary); }
.secondary-btn:hover { background: var(--primary); color: #fff; }
button.primary-btn { border: none; cursor: pointer; font-family: inherit; }

.hero-stats { display: flex; gap: 50px; }
.stat h2 { color: var(--primary); font-size: 36px; }
.stat p { margin-top: 8px; color: var(--gray); }

.hero-right { position: relative; height: 520px; }

.hero-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 92%;
    height: 100%;
    background: #fdeaea;
    border-radius: 38% 38% 0 38%;
}

/* The hero art is a transparent-background illustration, so it's shown whole
   (contained) over .hero-shape rather than cropped into a circular photo
   frame — the composition runs edge to edge and a cover-crop would cut it. */
.hero-art {
    position: absolute;
    /* Matches .hero-shape's box (right: 0; width: 92%) so the art sits
       centred on the blob, not on the column. */
    inset: 0 0 0 8%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 26px;
}

.hero-art img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .18));
}

.hero-icon-badge,
.hero-percent-badge {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .15);
}

.hero-icon-badge { top: 6%; left: 0; width: 60px; height: 60px; background: var(--primary); color: #fff; font-size: 24px; }
.hero-percent-badge { bottom: 20%; left: -10px; width: 56px; height: 56px; background: #fff; color: var(--primary); font-weight: 700; font-size: 16px; }

.floating-card {
    position: absolute;
    background: #fff;
    border-radius: 20px;
    padding: 18px 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .15);
}

.floating-card h3 { font-size: 24px; color: var(--primary); }
.floating-card p { margin-top: 4px; font-size: 13px; color: var(--gray); font-weight: 500; }
.top-card { top: -16px; right: 6%; }
.bottom-card { bottom: -6px; left: 6%; }

/* ==========================
ANIMATIONS
========================== */

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .12s; }
.reveal-delay-2 { transition-delay: .24s; }
.reveal-delay-3 { transition-delay: .36s; }

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-icon-badge { animation: floatY 4s ease-in-out infinite; }
.hero-percent-badge { animation: floatY 4.5s ease-in-out infinite .4s; }
.top-card { animation: floatY 5s ease-in-out infinite .2s; }
.bottom-card { animation: floatY 5.5s ease-in-out infinite .8s; }

@media (prefers-reduced-motion: reduce) {
    .reveal { transition: none; opacity: 1; transform: none; }
    .hero-icon-badge,
    .hero-percent-badge,
    .top-card,
    .bottom-card { animation: none; }
    .lead-popup-backdrop,
    .lead-popup-card { transition: none; }
}

/* ==========================
WHY CHOOSE US
========================== */

.why-us { padding: 100px 0; background: #f8f8f8; }
.section-title { text-align: center; margin-bottom: 60px; }
.section-title span { color: var(--primary); font-weight: 600; letter-spacing: 1px; }
.section-title h2 { font-size: 42px; margin: 15px 0; }
.section-title p { max-width: 650px; margin: auto; color: var(--gray); }
.section-title p + p { margin-top: 14px; }

/* Centred headings: even out line lengths so a wrap never strands a single
   word on its own line ("…Consultant / Pakistan"). Browsers without
   text-wrap support simply wrap as before. */
.page-hero h1,
.section-title h2,
.final-cta h2 { text-wrap: balance; }

/* A section title sitting right under a page hero: smaller, so the page reads
   as one headline with a subheading, not two competing headlines. */
.section-title.is-sub h2 { font-size: 30px; }

/* A text-only section (heading and paragraphs, no grid below) shouldn't
   carry the 60px gap that normally separates the title from its grid. */
.section-title:last-child { margin-bottom: 0; }

.eyebrow { display: inline-block; color: var(--primary); font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 14px; }

.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

.why-card {
    background: #fff;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    transition: .35s ease;
}

.why-card:hover { transform: translateY(-10px); box-shadow: 0 18px 45px rgba(0, 0, 0, .12); }

.icon {
    width: 70px;
    height: 70px;
    background: #fdeaea;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    border-radius: 50%;
    margin-bottom: 25px;
}

/* Illustrated icons (service cards) instead of an emoji in a tinted circle:
   the art is already a finished composition on transparency, and it carries
   fine detail — including lettering — that is unreadable at 70px. Drop the
   circle and give it room. Used by the service cards and the About page's
   value cards alike. */
.icon.icon-img {
    width: auto;
    height: 96px;
    background: none;
    border-radius: 0;
    justify-content: flex-start;
    margin-bottom: 20px;
}

.icon.icon-img img { width: auto; height: 100%; }

.why-card h3 { margin-bottom: 15px; font-size: 22px; }
.why-card p { color: var(--gray); line-height: 1.8; }

.why-feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

.why-feature-card { background: var(--primary); color: #fff; border-radius: 18px; padding: 30px 32px; transition: .3s ease; }
.why-feature-card:hover { transform: translateY(-6px); box-shadow: 0 15px 30px rgba(142, 12, 15, .25); }
.why-feature-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 10px; }
.why-feature-card p { font-size: 15px; line-height: 1.7; color: rgba(255, 255, 255, .85); }

/* ==========================
HOME ABOUT
========================== */

.home-about-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; align-items: center; }
.home-about-content h2 { font-size: 42px; font-weight: 700; margin-bottom: 20px; }
.home-about-content p { color: var(--gray); line-height: 1.8; margin-bottom: 20px; }
.link-arrow { color: var(--primary); font-weight: 600; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; }

.photo-placeholder {
    border-radius: 20px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background:
        radial-gradient(circle at top right, #fdeaea 0%, transparent 60%),
        linear-gradient(135deg, var(--primary), var(--primary-light));
}

.cta-photo { height: 420px; }

/* Modifier for a .photo-placeholder holding a real illustration. The
   illustrations are dark red on black, so the deep red gradient above is
   swapped for a pale tint they can actually read against; every layout rule
   attached to .photo-placeholder (heights, and responsive.css's `order`
   flips) keeps applying because the base class stays on the element. */
.photo-placeholder.has-art {
    padding: 26px;
    background:
        radial-gradient(circle at top right, #fdeaea 0%, transparent 62%),
        linear-gradient(135deg, #fff7f7, #fdeaea);
}

.photo-placeholder.has-art img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* about.php reuses the same block at the taller size the page was built for.
   Beats `.about-wrapper img`'s cover-crop on specificity, which would
   otherwise clip the illustration. */
.about-art { height: 480px; }

/* ==========================
TESTIMONIALS
========================== */

.testimonials { background: #f8f8f8; }
.testimonial-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }

.testimonial-card { background: #fff; border-radius: 18px; padding: 28px; box-shadow: 0 10px 30px rgba(0, 0, 0, .06); transition: .35s ease; }
.testimonial-card:hover { transform: translateY(-8px); box-shadow: 0 18px 40px rgba(0, 0, 0, .1); }
.testimonial-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.testimonial-avatar { width: 42px; height: 42px; border-radius: 50%; background: #fdeaea; color: var(--primary); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.testimonial-head h4 { font-size: 14px; font-weight: 600; }
.testimonial-head span { font-size: 12px; color: var(--gray); }
.testimonial-card p { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* ==========================
HOME CTA
========================== */

.home-cta-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.home-cta-text h2 { font-size: 42px; font-weight: 700; margin-bottom: 16px; }
.home-cta-text p { color: var(--gray); line-height: 1.8; margin-bottom: 32px; max-width: 460px; }

/* ==========================
HOME SERVICES
========================== */

.home-services { background: #f8f8f8; }

/* ==========================
STUDY PROCESS
========================== */

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.process-card {
    background: #fff;
    padding: 35px 30px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    transition: .35s ease;
}

.process-card:hover { transform: translateY(-10px); box-shadow: 0 18px 45px rgba(0, 0, 0, .12); }

.process-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 22px;
}

.process-card h3 { font-size: 20px; margin-bottom: 12px; }
.process-card p { color: var(--gray); line-height: 1.7; }

/* ==========================
INFO SPLIT (Why UK / Why SP Jain)
========================== */

.info-split.alt { background: #f8f8f8; }
.info-split-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.info-split-content h2 { font-size: 40px; font-weight: 700; margin-bottom: 20px; }
.info-split-content p { color: var(--gray); line-height: 1.8; margin-bottom: 18px; }
.info-split-visual { height: 380px; }

/* ==========================
FAQ
========================== */

.faq { background: #f8f8f8; }
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

.faq-item {
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .05);
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 22px 26px;
    font-weight: 600;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--primary); font-size: 26px; font-weight: 400; line-height: 1; transition: transform .3s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 26px 24px; color: var(--gray); line-height: 1.8; }

/* ==========================
FINAL CTA
========================== */

.final-cta {
    text-align: center;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, .12) 0%, transparent 45%),
        linear-gradient(135deg, var(--primary), var(--primary-light));
}

/* When a page ends on the final CTA, drop it flush against the dark footer
   (no white gap, and red-to-dark avoids a heavy red-on-red block). */
main:has(> .final-cta:last-child) + .footer { margin-top: 0; }

.final-cta h2 { font-size: 44px; font-weight: 700; margin-bottom: 18px; color: #fff; }
.final-cta p { max-width: 680px; margin: 0 auto 32px; color: rgba(255, 255, 255, .9); line-height: 1.8; }
.final-cta p:not(:last-of-type) { margin-bottom: 14px; }
.final-cta .eyebrow { color: rgba(255, 255, 255, .85); }
.final-cta .primary-btn { background: #fff; color: var(--primary); }
.final-cta .primary-btn:hover { background: #fdeaea; color: var(--primary); }

/* ==========================
PAGE HERO (inner pages)
========================== */

.page-hero {
    padding: 70px 0;
    text-align: center;
    background:
        radial-gradient(circle at top right, #fdeaea 0%, transparent 35%),
        linear-gradient(135deg, #ffffff, #fff7f7);
}

.page-hero span { color: var(--primary); font-weight: 600; letter-spacing: 1px; }
.page-hero h1 { font-size: 48px; margin: 15px 0; }
.page-hero p { max-width: 650px; margin: auto; color: var(--gray); font-size: 17px; }
.page-hero .hero-buttons { justify-content: center; margin-top: 30px; }

/* ==========================
SERVICES
========================== */

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.service-card {
    background: #fff;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    transition: .35s ease;
}

.service-card:hover { transform: translateY(-10px); box-shadow: 0 18px 45px rgba(0, 0, 0, .12); }
.service-card h3 { margin-bottom: 15px; font-size: 22px; }
.service-card p { color: var(--gray); line-height: 1.8; }
.service-card p + p { margin-top: 12px; }
.service-card .link-arrow { margin-top: 18px; }

/* ==========================
ABOUT
========================== */

.about-wrapper { display: grid; grid-template-columns: 45% 55%; gap: 50px; align-items: center; }
.about-wrapper img { border-radius: 20px; width: 100%; height: 480px; object-fit: cover; }
.about-content h2 { font-size: 38px; margin-bottom: 20px; }
.about-content p { color: var(--gray); line-height: 1.8; margin-bottom: 18px; }

.about-list { margin-top: 25px; }
.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: var(--black);
}
.about-list li::before { content: "✓"; color: var(--primary); font-weight: 700; }

/* ==========================
BLOG
========================== */

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.blog-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
    transition: .35s ease;
}

.blog-card:hover { transform: translateY(-10px); box-shadow: 0 18px 45px rgba(0, 0, 0, .12); }

.blog-card-thumb {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    background:
        radial-gradient(circle at top right, #fdeaea 0%, transparent 60%),
        linear-gradient(135deg, var(--primary), var(--primary-light));
}

.blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; }

.blog-card-body { padding: 25px; }
.blog-date { color: var(--primary); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.blog-card-body h3 { margin: 12px 0; font-size: 20px; }
.blog-card-body h3 a { color: inherit; transition: .3s; }
.blog-card-body h3 a:hover { color: var(--primary); }
.blog-card-body p { color: var(--gray); line-height: 1.7; }

.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 50px; }
.pagination .page-numbers {
    min-width: 44px;
    padding: 10px 14px;
    border-radius: 10px;
    text-align: center;
    background: #fff;
    color: var(--black);
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}
.pagination a.page-numbers:hover { color: var(--primary); }
.pagination .page-numbers.current { background: var(--primary); color: #fff; }

/* ==========================
ENTRY CONTENT (posts + default pages)
========================== */

.entry-content { max-width: 800px; margin: auto; line-height: 1.8; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2 { font-size: 30px; line-height: 1.3; margin-top: 1.6em; }
.entry-content h3 { font-size: 22px; line-height: 1.4; margin-top: 1.4em; }
.entry-content p,
.entry-content li { color: var(--gray); }
.entry-content a { color: var(--primary); text-decoration: underline; }
.entry-content ul,
.entry-content ol { padding-left: 1.4em; }
.entry-content ul { list-style: disc; }
.entry-content img { height: auto; border-radius: 18px; }
.entry-content blockquote { border-left: 4px solid var(--primary); padding-left: 20px; font-style: italic; }

.entry-thumbnail { max-width: 800px; margin: 0 auto 40px; }
.entry-thumbnail img { width: 100%; height: auto; border-radius: 18px; }

.post-navigation { max-width: 800px; margin: 60px auto 0; padding-top: 30px; border-top: 1px solid #eee; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 30px; }
.post-navigation .nav-next { margin-left: auto; text-align: right; }
.post-navigation a { color: var(--black); font-weight: 500; }
.post-navigation a:hover { color: var(--primary); }
.post-navigation .nav-subtitle { display: block; color: var(--primary); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }

/* ==========================
CONTACT
========================== */

.contact-wrapper { display: grid; grid-template-columns: 40% 60%; gap: 50px; }

.contact-info-card {
    background: var(--primary);
    color: #fff;
    padding: 40px;
    border-radius: 18px;
}
.contact-info-card h3 { margin-bottom: 25px; font-size: 24px; }
.contact-info-card p { margin-bottom: 18px; line-height: 1.6; }

/* Forminator forms — every form on the site. Each form's Design Style is
   "None", so Forminator only loads its grid (20px between rows) and these
   rules carry the whole look. */
.forminator-ui .forminator-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--black);
}
.forminator-ui .forminator-required { color: var(--primary); }

/* When a field has a placeholder (set in Forminator), the placeholder labels
   it visually — the site's original look — and the label stays for screen
   readers. Fields without one keep their visible label. */
.forminator-ui .forminator-field:has(.forminator-input:not([placeholder=""]), .forminator-textarea:not([placeholder=""])) > .forminator-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.forminator-ui .forminator-input,
.forminator-ui .forminator-textarea,
.forminator-ui select {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    color: var(--black);
}
.forminator-ui .forminator-textarea { resize: vertical; min-height: 140px; }
.forminator-ui .forminator-input:focus,
.forminator-ui .forminator-textarea:focus,
.forminator-ui select:focus { outline: 2px solid var(--primary-light); }
.forminator-ui .iti { display: block; width: 100%; }

.forminator-ui .forminator-has_error .forminator-input,
.forminator-ui .forminator-has_error .forminator-textarea { border-color: var(--primary); }
.forminator-ui .forminator-error-message { display: block; margin-top: 6px; font-size: 13px; color: var(--primary); }

.forminator-ui .forminator-button-submit {
    width: 100%;
    padding: 18px 38px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}
.forminator-ui .forminator-button-submit:hover { background: var(--primary-light); }
.forminator-ui .forminator-button-submit:disabled { opacity: .7; cursor: wait; }

.forminator-ui .forminator-response-message {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 500;
    line-height: 1.5;
}
.forminator-ui .forminator-response-message[aria-hidden="true"],
.forminator-ui .forminator-response-message:empty { display: none; }
.forminator-ui .forminator-response-message.forminator-success { background: #e6f4ea; color: #1e7b34; border: 1px solid #b7e1c0; }
.forminator-ui .forminator-response-message.forminator-error { background: #fdeaea; color: var(--primary); border: 1px solid #f3c2c2; }
.forminator-ui .forminator-response-message p { margin: 0; }

.form-status {
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 500;
    line-height: 1.5;
}
.form-status.success { background: #e6f4ea; color: #1e7b34; border: 1px solid #b7e1c0; }
.form-status.error { background: #fdeaea; color: var(--primary); border: 1px solid #f3c2c2; }

/* ==========================
LEAD POPUP (homepage)
========================== */

/* Markup ships with the `hidden` attribute and js/script.js removes it, so the
   dialog never flashes before JS runs — hence the explicit [hidden] rule, which
   the `display: flex` below would otherwise override. */
.lead-popup {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lead-popup[hidden] { display: none; }

.lead-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(19, 18, 18, .6);
    opacity: 0;
    transition: opacity .3s ease;
}

.lead-popup-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    padding: 38px 34px 32px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .25);
    opacity: 0;
    transform: translateY(24px) scale(.98);
    transition: opacity .3s ease, transform .3s ease;
}

/* .is-open is added a frame after [hidden] is removed, so both fade in. */
.lead-popup.is-open .lead-popup-backdrop { opacity: 1; }
.lead-popup.is-open .lead-popup-card { opacity: 1; transform: none; }

/* Locks the page behind the dialog while it's open. */
body.popup-open { overflow: hidden; }

.lead-popup-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #f8f8f8;
    color: var(--black);
    font-family: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    transition: .3s;
}

.lead-popup-close:hover { background: #fdeaea; color: var(--primary); }

/* Reuses the hero pill; the hero's own bottom margin is too large here. */
.lead-popup .hero-badge { margin-bottom: 0; }

.lead-popup-card h2 { font-size: 26px; line-height: 1.3; margin: 14px 0 10px; }
.lead-popup-card > p { color: var(--gray); font-size: 15px; line-height: 1.7; margin-bottom: 26px; }
/* Tighter than Forminator's 20px rows; must out-specify its
   `.forminator-ui.forminator-custom-form[data-grid=open] .forminator-row:not(:last-child)`. */
.lead-popup .forminator-ui.forminator-custom-form[data-grid] .forminator-row:not(:last-child),
.lead-popup .forminator-ui.forminator-custom-form[data-grid] .forminator-col:not(:last-child) { margin-bottom: 16px; }
.lead-popup-note { margin-top: 14px; font-size: 12px; color: var(--gray); text-align: center; line-height: 1.6; }

/* ==========================
LAYOUT UTILITIES
========================== */

/* Column-count overrides for the card grids (.services-grid, .process-grid,
   .why-grid), for when a section's card count divides better by 4 or 5 than by
   the grid's default. They sit last in this file so they beat each grid's own
   rule, and they carry the same specificity as those rules — so the grid
   selectors in responsive.css, loaded after this file, still win on tablet
   and mobile. Only use them alongside one of those grid classes. */
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-5 { grid-template-columns: repeat(5, 1fr); }

/* Opt-in: a lone card on the last row of a 3-column grid spans the whole row
   and lays out horizontally (icon beside heading and text), so it reads as a
   deliberate closing card rather than one stranded tile. The text is capped
   at a readable measure. On tablet the grid is 2 columns and card 7 still
   spans the row, which suits it; responsive.css stacks it back to a normal
   card on mobile, where there's no room beside the icon. */
.wide-orphan > :last-child:nth-child(3n+1) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 32px;
    align-content: center;
}
.wide-orphan > :last-child:nth-child(3n+1) .icon { grid-row: 1 / 3; align-self: center; margin-bottom: 0; }
.wide-orphan > :last-child:nth-child(3n+1) p { max-width: 640px; }

/* Section backgrounds for new sections, matching the alternating grey and
   the pale hero tint already used across the site. */
.section-alt { background: #f8f8f8; }
.section-tint {
    background:
        radial-gradient(circle at top right, #fdeaea 0%, transparent 35%),
        linear-gradient(135deg, #ffffff, #fff7f7);
}

/* A single centred link or button under a grid. */
.section-cta { text-align: center; margin-top: 40px; }

/* ==========================
   FOOTER
========================== */

.footer { background: #1a1214; color: #fff; padding: 40px 0 0; margin-top: 100px; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 45px; }

.footer-logo { height: 70px; width: auto; background: #fff; padding: 8px; border-radius: 10px; margin-bottom: 18px; }
.footer-column h3 { color: #fff; }
.footer-column p,
.footer-column a { color: #f2f2f2; }
.footer-column a:hover { color: #ffdede; }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .2); margin-top: 40px; padding: 18px 0; text-align: right; }
.footer-bottom p { color: #f5dede; font-size: 13px; }
