/* ──────────────────────────────────────────
   Design Tokens
   ────────────────────────────────────────── */
:root {
    --bg-color: #f4f6f9;
    --text-color: #1a1a1a;
    --text-muted: #4a5568; /* WCAG AA on #f4f6f9 (4.87:1) — was #5a6b7c (3.87:1) */

    --primary-color: #0d2c4d;
    --secondary-color: #444444; /* Darker for better contrast — was #555555 */
    --accent-color: #0066d6; /* Darker blue for AA on white (4.68:1) — was #007bff (3.97:1) */

    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-highlight: rgba(255, 255, 255, 0.9);

    --font-main: 'Outfit', sans-serif;
    --transition-speed: 0.3s;

    --card-shadow: 0 10px 30px rgba(13, 44, 77, 0.1);
    --hover-shadow: 0 15px 40px rgba(13, 44, 77, 0.2);

    --color-white: #fff;
    --color-primary-hover: #154575;
    --color-primary-dark: #0a1f38;
    --color-input-bg: #f9f9f9;
    --color-input-border: #ccc; /* Darker border for contrast — was #ddd */
    --color-input-focus: #0d2c4d;
    --color-success-bg: #d4edda;
    --color-success-text: #155724;
    --color-success-border: #c3e6cb;
    --color-error-bg: #f8d7da;
    --color-error-text: #721c24;
    --color-error-border: #f5c6cb;
    --color-error-accent: #dc3545;
    --color-muted-light: #6b7280; /* AA compliant — was #888 */
}

/* ──────────────────────────────────────────
   Reset & Base (Mobile-First)
   ────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 52px; /* Space for sticky mobile CTA */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(13, 44, 77, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 123, 255, 0.05) 0%, transparent 40%);
}

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

ul {
    list-style: none;
}

/* ──────────────────────────────────────────
   Skip Link (a11y)
   ────────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--color-white);
    padding: 12px 24px;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 0;
}

/* ──────────────────────────────────────────
   Focus & Accessibility
   ────────────────────────────────────────── */
*:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.btn:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(0, 102, 214, 0.2);
}

/* ──────────────────────────────────────────
   Reduced Motion
   ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ──────────────────────────────────────────
   Typography (Mobile-First)
   ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2rem;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-color);
    background: none;
    -webkit-text-fill-color: initial;
}

.subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: -1rem auto 2rem auto;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* ──────────────────────────────────────────
   Utilities
   ────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
    text-align: center;
    min-height: 44px; /* Touch target */
}

.btn:hover {
    background: var(--primary-color);
    color: var(--color-white);
    box-shadow: 0 5px 15px rgba(13, 44, 77, 0.2);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--color-white);
    border: 1px solid var(--primary-color);
}

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

.section-padding {
    padding: 48px 0;
}

.consultation-cta {
    font-size: 0.95rem;
    padding: 14px 28px;
}

.consultation-cta i {
    margin-right: 8px;
}

/* ──────────────────────────────────────────
   Glass Card
   ────────────────────────────────────────── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 24px;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
    border-color: var(--color-white);
}

/* ──────────────────────────────────────────
   Header (Mobile-First)
   ────────────────────────────────────────── */
header {
    padding: 12px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header.scrolled {
    box-shadow: 0 2px 20px rgba(13, 44, 77, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px;
    width: auto;
    display: block;
}

/* Mobile nav (default) */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    display: flex;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 90px 30px 30px;
    gap: 0;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

nav.open {
    right: 0;
}

.nav-link {
    display: block;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.3px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(13, 44, 77, 0.06);
    border-radius: 0;
    transition: all var(--transition-speed);
    min-height: 44px;
}

.nav-link:hover {
    color: var(--primary-color);
}

nav .btn {
    margin-top: 20px;
    text-align: center;
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
}

.nav-overlay.visible {
    display: block;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    min-height: 44px;
}

/* ──────────────────────────────────────────
   Hero Section (Mobile-First)
   ────────────────────────────────────────── */
.hero {
    position: relative;
    margin-top: 80px;
    padding: 40px 0 60px;
    width: 100%;
    background: url('assets/images/nisa-tax-hero.webp') no-repeat 70% top/cover;
    display: flex;
    align-items: center;
}

.no-webp .hero {
    background: url('assets/images/nisa-tax-hero-optimized.jpeg') no-repeat 70% top/cover;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    z-index: 1;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.hero-text-content {
    max-width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 24px 16px;
    box-shadow: 0 8px 32px rgba(13, 44, 77, 0.1);
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    background: none;
    -webkit-text-fill-color: initial;
}

.hero-features-list {
    list-style: none;
    margin-bottom: 2rem;
    display: inline-block;
    text-align: left;
}

.hero-features-list li {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    font-weight: 500;
}

.hero-features-list li i {
    color: var(--primary-color);
    margin-right: 12px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-image-container {
    display: none;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

.qr-download {
    display: none; /* Hidden on mobile */
}

.terms-text {
    font-size: 0.8rem;
    color: var(--color-muted-light);
    margin-top: 10px;
}

/* ──────────────────────────────────────────
   How It Works (Mobile-First)
   ────────────────────────────────────────── */
.how-it-works {
    background: linear-gradient(180deg, var(--color-white) 0%, var(--bg-color) 100%);
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
}

.step-card {
    text-align: center;
    padding: 28px 20px 24px;
    position: relative;
    z-index: 1;
    overflow: visible;
}

.step-card:hover {
    transform: translateY(-6px);
}

.step-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-color);
    background: rgba(0, 102, 214, 0.08);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.step-icon-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--color-white);
    transition: all var(--transition-speed);
    box-shadow: 0 6px 20px rgba(13, 44, 77, 0.15);
}

.step-icon-wrap svg {
    width: 28px;
    height: 28px;
}

.step-card:hover .step-icon-wrap {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(13, 44, 77, 0.25);
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 0;
}

/* ──────────────────────────────────────────
   Strategic Pillars (Mobile-First)
   ────────────────────────────────────────── */
.pillars-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.pillar-card-v2 {
    background: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(13, 44, 77, 0.08);
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(13, 44, 77, 0.06);
}

.pillar-card-v2:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(13, 44, 77, 0.14);
}

.pillar-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.pillar-body {
    padding: 24px 20px 20px;
    text-align: center;
}

.pillar-icon-badge {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(13, 44, 77, 0.06);
    color: var(--primary-color);
    margin: 0 auto 16px;
    transition: all var(--transition-speed);
}

.pillar-card-v2:hover .pillar-icon-badge {
    background: var(--primary-color);
    color: var(--color-white);
}

.pillar-card-v2 h3 {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.pillar-meta {
    font-size: 0.88rem;
    margin-bottom: 16px;
    display: block;
    font-weight: 500;
    color: var(--accent-color);
}

.pillar-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-block;
    text-align: left;
}

.pillar-points li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
}

.pillar-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.pillar-points li:last-child {
    margin-bottom: 0;
}

/* ──────────────────────────────────────────
   CTA Banner
   ────────────────────────────────────────── */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--color-primary-hover) 50%, var(--accent-color) 100%);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
}

.cta-banner-alt {
    background: linear-gradient(135deg, var(--color-primary-hover) 0%, var(--primary-color) 50%, var(--color-primary-dark) 100%);
}

.cta-banner-inner {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-banner h3 {
    color: var(--color-white);
    font-size: 1.5rem;
    margin-bottom: 8px;
    letter-spacing: 0;
    text-transform: none;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.85); /* Better contrast — was 0.75 */
    font-size: 1rem;
    margin-bottom: 24px;
}

.btn-cta {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: 2px solid var(--color-white);
    background: var(--color-white);
    color: var(--primary-color);
    transition: all var(--transition-speed) ease;
    min-height: 44px;
}

.btn-cta:hover {
    background: transparent;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-phone {
    display: block;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.8); /* Better contrast — was 0.6 */
    font-size: 0.9rem;
}

.cta-phone a {
    color: var(--color-white);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5);
}

.cta-phone a:hover {
    text-decoration-color: var(--color-white);
}

/* ──────────────────────────────────────────
   Testimonials (Mobile-First)
   ────────────────────────────────────────── */
.testimonials-section {
    background: linear-gradient(180deg, var(--color-white) 0%, var(--bg-color) 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.testimonial-card {
    text-align: left;
    padding: 24px;
}

.testimonial-card:hover {
    transform: translateY(-6px);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 16px;
}

.testimonial-quote {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 16px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.testimonial-author strong {
    color: var(--primary-color);
    font-size: 0.95rem;
}

.testimonial-author span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ──────────────────────────────────────────
   FAQ (Mobile-First)
   ────────────────────────────────────────── */
.faq-section {
    background: linear-gradient(180deg, var(--bg-color) 0%, var(--color-white) 100%);
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    padding: 5px 16px;
}

.faq-list:hover {
    transform: none;
}

.faq-item {
    border-bottom: 1px solid rgba(13, 44, 77, 0.06);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: left;
    gap: 16px;
    transition: color var(--transition-speed);
    min-height: 44px;
}

.faq-question:hover {
    color: var(--accent-color);
}

.faq-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(13, 44, 77, 0.05);
    font-size: 0.7rem;
    flex-shrink: 0;
    transition: all var(--transition-speed);
    color: var(--primary-color);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: var(--primary-color);
    color: var(--color-white);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
    padding: 0 0 18px 0;
    line-height: 1.75;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* ──────────────────────────────────────────
   Contact Actions (Mobile-First)
   ────────────────────────────────────────── */
.contact-section {
    text-align: center;
    background: var(--color-white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 700px;
    margin: 24px auto;
}

.contact-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 12px;
    border-radius: 16px;
    border: 1px solid rgba(13, 44, 77, 0.08);
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 2px 12px rgba(13, 44, 77, 0.04);
    min-height: 44px;
}

.contact-action-btn:hover {
    background: var(--primary-color);
    color: var(--color-white);
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(13, 44, 77, 0.18);
}

.contact-action-btn:hover small {
    color: rgba(255, 255, 255, 0.8); /* Better contrast — was 0.7 */
}

.contact-action-btn i {
    font-size: 1.3rem;
}

.contact-action-btn span {
    font-weight: 600;
    font-size: 0.88rem;
}

.contact-action-btn small {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: color var(--transition-speed);
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(13, 44, 77, 0.05);
    font-size: 1.1rem;
    color: var(--secondary-color);
    transition: all var(--transition-speed);
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(13, 44, 77, 0.15);
}

/* ──────────────────────────────────────────
   Sticky Mobile CTA (visible by default)
   ────────────────────────────────────────── */
.sticky-mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--primary-color);
    padding: 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}

.sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border: none;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    text-decoration: none;
    color: var(--color-white);
    background: transparent;
    transition: background var(--transition-speed);
    min-height: 48px; /* iOS safe area */
}

.sticky-call {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.sticky-btn:hover,
.sticky-btn:active {
    background: rgba(255, 255, 255, 0.1);
}

/* ──────────────────────────────────────────
   Footer
   ────────────────────────────────────────── */
footer {
    text-align: center;
    padding: 32px 0;
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.85); /* Better contrast — was 0.7 */
    font-size: 0.9rem;
}

.footer-qr-section {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-qr-label {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    margin: 0;
}

.footer-qr {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0.9;
}

.footer-qr:hover {
    transform: scale(1.1);
    opacity: 1;
}

.footer-main {
    color: var(--color-white);
}

.footer-main a {
    color: var(--color-white);
    text-decoration: underline;
}

.footer-links {
    margin-top: 10px;
    font-size: 0.9rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85); /* Better contrast — was 0.8 */
    text-decoration: underline;
    margin-right: 15px;
}

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

.footer-powered {
    margin-top: 14px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5); /* Better contrast — was 0.35 */
}

.footer-powered a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer-powered a:hover {
    text-decoration: underline;
    color: var(--color-white);
}

/* ──────────────────────────────────────────
   Modal
   ────────────────────────────────────────── */
.modal {
    display: flex;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background: var(--color-white);
    border: none;
    padding: 28px 20px;
    border-radius: 20px;
    width: 92%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
}

.modal.open .modal-content {
    transform: scale(1) translateY(0);
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-muted);
    background: none;
    border: none;
    font-family: inherit;
    padding: 4px;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-title {
    margin-bottom: 16px;
    text-align: center;
    color: var(--primary-color);
}

.modal-subtitle {
    text-align: center;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.btn-full {
    width: 100%;
}

/* ──────────────────────────────────────────
   Form
   ────────────────────────────────────────── */
.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--color-input-bg);
    border: 2px solid var(--color-input-border); /* Thicker border for visibility */
    border-radius: 8px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 16px; /* Prevents iOS zoom on focus */
    transition: border-color 0.3s, box-shadow 0.3s;
    min-height: 44px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-input-focus);
    background: var(--color-white);
    box-shadow: 0 0 0 3px rgba(13, 44, 77, 0.1);
    /* outline handled by :focus-visible */
}

.field-error {
    color: var(--color-error-accent);
    font-size: 0.85rem;
    display: block;
    margin-top: 4px;
}

.field-invalid {
    border-color: var(--color-error-accent) !important;
}

/* ──────────────────────────────────────────
   Button Loading State
   ────────────────────────────────────────── */
.btn.loading {
    pointer-events: none;
    opacity: 0.75;
    position: relative;
}

.btn.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* ──────────────────────────────────────────
   Urgency Banner
   ────────────────────────────────────────── */
.urgency-banner {
    background: linear-gradient(90deg, var(--primary-color), var(--color-primary-hover));
    color: var(--color-white);
    text-align: center;
    padding: 10px 48px 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.urgency-banner a {
    color: var(--color-white);
    text-decoration: underline;
    margin-left: 8px;
}

.urgency-banner a:hover {
    opacity: 0.85;
}

.urgency-banner .urgency-close {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    line-height: 1;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.urgency-banner .urgency-close:hover {
    color: var(--color-white);
}

body.has-banner header {
    top: 40px;
}

body.has-banner .hero {
    margin-top: 120px;
}

body.has-banner .message {
    top: 120px;
}

/* ──────────────────────────────────────────
   Back to Top
   ────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 68px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--color-white);
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(13, 44, 77, 0.25);
    z-index: 997;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 44, 77, 0.3);
}

/* ──────────────────────────────────────────
   Flash Messages
   ────────────────────────────────────────── */
.message {
    position: fixed;
    top: 90px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 24px;
    border-radius: 8px;
    z-index: 3000;
    max-width: 90%;
    text-align: center;
    font-weight: 600;
    animation: slideDown 0.3s ease-out;
}

.message.success {
    background: var(--color-success-bg);
    color: var(--color-success-text);
    border: 1px solid var(--color-success-border);
}

.message.error {
    background: var(--color-error-bg);
    color: var(--color-error-text);
    border: 1px solid var(--color-error-border);
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* ──────────────────────────────────────────
   QR Download & QR Modal
   ────────────────────────────────────────── */
.qr-download img {
    width: 75px;
    max-width: 75px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.qr-download img:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.qr-download p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--secondary-color);
    line-height: 1.4;
}

/* QR modal hidden on mobile */
.qr-modal {
    display: none !important;
}

/* ──────────────────────────────────────────
   Pricing (Mobile-First)
   ────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: visible;
}

.pricing-card .btn {
    margin-top: auto;
}

.pricing-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--color-white);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 20px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(13, 44, 77, 0.25);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(13, 44, 77, 0.15);
    margin-top: 14px;
}

.pricing-header .plan-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    display: block;
}

.pricing-features li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    color: var(--text-muted);
}

.pricing-features li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.78rem;
}

/* ──────────────────────────────────────────
   Legal Content
   ────────────────────────────────────────── */
.legal-content {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h2 {
    text-align: left;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 0.5rem;
    text-transform: none;
    letter-spacing: normal;
}

.legal-content h3 {
    text-align: left;
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--primary-color);
}

.legal-content p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.legal-content ul,
.legal-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.legal-content strong {
    color: var(--primary-color);
}

.legal-content a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s;
}

.legal-content a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

/* ══════════════════════════════════════════
   TABLET+ (min-width: 769px)
   ══════════════════════════════════════════ */
@media (min-width: 769px) {
    body {
        padding-bottom: 0;
    }

    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.2rem;
        margin-bottom: 3rem;
    }

    .subtitle {
        font-size: 1.1rem;
        margin: -2rem auto 3rem auto;
    }

    .container {
        padding: 0 20px;
    }

    .section-padding {
        padding: 80px 0;
    }

    .glass-card {
        padding: 30px;
    }

    .glass-card:hover {
        transform: translateY(-10px);
    }

    /* Desktop nav */
    .hamburger {
        display: none;
    }

    nav {
        position: static;
        width: auto;
        height: auto;
        flex-direction: row;
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0;
        gap: 6px;
        box-shadow: none;
        display: flex;
    }

    .nav-link {
        display: inline-block;
        font-size: 0.85rem;
        padding: 8px 14px;
        border-bottom: none;
        border-radius: 8px;
        min-height: auto;
    }

    .nav-link:hover {
        background: rgba(13, 44, 77, 0.05);
    }

    nav .btn {
        margin-top: 0;
    }

    .logo img {
        max-height: 60px;
    }

    /* Hero */
    .hero {
        margin-top: 100px;
        padding: 60px 0 80px;
        background-position: center top;
    }

    .hero::before {
        background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.8) 40%, rgba(255, 255, 255, 0) 100%);
    }

    .hero-text-content {
        max-width: 560px;
        text-align: left;
        padding: 36px;
        border-radius: 20px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-features-list li {
        font-size: 1.15rem;
    }

    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-actions {
        align-items: flex-start;
    }

    .qr-download {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    /* Steps */
    .steps-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        max-width: none;
    }

    .steps-grid::before {
        content: "";
        position: absolute;
        top: 76px;
        left: 16.66%;
        right: 16.66%;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--accent-color) 20%, var(--accent-color) 80%, transparent);
        opacity: 0.3;
        z-index: 0;
    }

    .step-card {
        padding: 35px 25px 30px;
    }

    .step-icon-wrap {
        width: 80px;
        height: 80px;
    }

    .step-icon-wrap svg {
        width: 32px;
        height: 32px;
    }

    /* Pillars */
    .pillars-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }

    .pillar-body {
        padding: 32px 28px 28px;
    }

    /* CTA */
    .cta-banner {
        padding: 56px 0;
    }

    .cta-banner h3 {
        font-size: 2rem;
    }

    .btn-cta {
        padding: 16px 40px;
        font-size: 1rem;
    }

    /* Testimonials */
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }

    .testimonial-card {
        padding: 32px;
    }

    /* FAQ */
    .faq-list {
        padding: 10px 30px;
    }

    .faq-question {
        font-size: 1rem;
        padding: 22px 0;
    }

    /* Contact */
    .contact-actions {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        margin: 30px auto;
    }

    .contact-action-btn {
        padding: 24px 16px;
        gap: 8px;
    }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }

    /* Sticky CTA — hidden on desktop */
    .sticky-mobile-cta {
        display: none;
    }

    /* Back to top */
    .back-to-top {
        bottom: 24px;
        right: 24px;
    }

    /* Modal */
    .modal-content {
        padding: 40px;
    }

    /* Flash message */
    .message {
        max-width: 500px;
        top: 100px;
    }

    /* QR Modal visible on desktop */
    .qr-modal {
        display: flex !important;
        position: fixed;
        z-index: 2500;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(13, 44, 77, 0.75);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .qr-modal.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .qr-modal-content {
        background: var(--color-white);
        border-radius: 20px;
        padding: 32px;
        text-align: center;
        box-shadow: 0 25px 60px rgba(13, 44, 77, 0.3);
        position: relative;
        max-width: 280px;
        width: 90%;
        transform: scale(0.88) translateY(16px);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .qr-modal.open .qr-modal-content {
        transform: scale(1) translateY(0);
    }

    .qr-modal-content img {
        width: 200px;
        height: 200px;
        border-radius: 12px;
        display: block;
        margin: 0 auto 16px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    }

    .qr-modal-content p {
        font-size: 0.9rem;
        color: var(--text-muted);
        margin: 0;
        line-height: 1.5;
    }

    .qr-modal-content strong {
        color: var(--primary-color);
    }

    .qr-modal-close {
        position: absolute;
        top: 12px;
        right: 16px;
        font-size: 1.8rem;
        line-height: 1;
        cursor: pointer;
        color: var(--text-muted);
        background: none;
        border: none;
        font-family: inherit;
        padding: 4px;
        transition: color 0.2s ease;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .qr-modal-close:hover {
        color: var(--primary-color);
    }

    /* Legal */
    .legal-content h2 {
        font-size: 1.8rem;
        margin-top: 2.5rem;
    }

    .legal-content h3 {
        font-size: 1.4rem;
        margin-top: 2rem;
    }
}

/* ══════════════════════════════════════════
   LARGE DESKTOP (min-width: 993px)
   ══════════════════════════════════════════ */
@media (min-width: 993px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.5rem;
    }

    .hero {
        min-height: calc(90vh - 100px);
        padding: 60px 0 100px;
        background-position: center top;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .hero-text-content {
        max-width: 600px;
        padding: 40px;
    }

    .hero-features-list li {
        font-size: 1.25rem;
    }

    .btn {
        padding: 12px 30px;
    }

    .consultation-cta {
        font-size: 1rem;
        padding: 16px 36px;
    }
}

/* ══════════════════════════════════════════
   TINY SCREENS (max-width: 360px)
   ══════════════════════════════════════════ */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-text-content {
        padding: 20px 12px;
    }

    .contact-actions {
        grid-template-columns: 1fr;
    }

    .hero-features-list li {
        font-size: 0.9rem;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}
