/* 
======================================================================
   PROJECT: TaxProPune (TaxPro Solutions Pvt. Ltd.)
   THEME: Deloitte Inspired (Green #86BC25 / Black / White)
   AUTHOR: Antigravity
======================================================================
*/

/* -------------------------------------------------------------------
   1. IMPORTS & FONTS
------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@400;600;700;800&display=swap');

/* -------------------------------------------------------------------
   2. CSS VARIABLES (THEME)
------------------------------------------------------------------- */
:root {
    /* Deloitte-Inspired Brand Colors */
    --color-navy: #002776;
    --color-green: #92d400;
    --color-blue: #00a1de;
    --color-black: #000000;
    --color-white: #ffffff;

    /* Legacy compatibility */
    --color-primary: #92d400;
    --color-primary-hover: #7ab300;
    --color-secondary: #002776;
    --color-dark: #1A1A1A;
    --color-light-gray: #F2F2F2;

    /* Text Colors */
    --text-main: #000000;
    --text-light: #666666;
    --text-white: #FFFFFF;

    /* Typography */
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing & Layout */
    --container-width: 1200px;
    --section-padding: 80px 0;
    --nav-height: 70px;

    /* Transition */
    --transition-speed: 0.3s;
}

/* -------------------------------------------------------------------
   3. RESET & BASE STYLES
------------------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--color-white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

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

/* -------------------------------------------------------------------
   4. UTILITY CLASSES
------------------------------------------------------------------- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
}

.bg-light {
    background-color: var(--color-light-gray);
}

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

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

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

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

/* Navy on green: white on #92d400 was ~1.8:1, navy on #92d400 is above 4.5:1 */
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-navy);
}

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

.btn-outline {
    border-color: var(--color-white);
    color: var(--color-white);
}

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

.btn-dark {
    background-color: var(--color-secondary);
    color: var(--color-white);
    border: 2px solid var(--color-secondary);
}

.btn-dark:hover {
    background-color: transparent;
    color: var(--color-secondary);
}

/* -------------------------------------------------------------------
   5. HEADER & NAVIGATION
------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: #FFFFFF;
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span {
    color: var(--color-primary);
}

.main-nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.main-nav a {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--color-secondary);
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--color-primary);
    transition: width 0.3s;
}

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

/* --- Mega Menu / Dropdown --- */
.has-dropdown {
    position: relative;
    padding: 20px 0;
    /* Increase hit area */
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: -100px;
    /* Center relative to parent if needed, or adjust */
    width: 600px;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--color-primary);
    padding: 30px;
    display: flex;
    gap: 40px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 0 0 8px 8px;
    z-index: 1001;
}

.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-column .mega-title {
    margin-top: 0;
    line-height: 1.2;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 14px;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.mega-column a {
    display: block;
    margin-bottom: 10px;
    color: #444;
    text-transform: none;
    font-weight: 500;
    font-size: 14px;
    transition: 0.2s;
}

.mega-column a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.mega-column a::after {
    display: none;
    /* Remove underline animation for dropdown items */
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* -------------------------------------------------------------------
   6. HERO SECTION
------------------------------------------------------------------- */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    background-color: var(--color-secondary);
    color: var(--color-white);
    overflow: hidden;
}

/* Deloitte Style: Slant or clean lines overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    background: radial-gradient(circle at top right, var(--color-primary), transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: 4rem;
    color: var(--color-white);
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
}

/* Circle Accent (Green Dot) */
.green-dot {
    width: 12px;
    height: 12px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: inline-block;
    margin-left: 5px;
}

/* -------------------------------------------------------------------
   7. FLOATING WHATSAPP
------------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    transition: all 0.3s ease;
    opacity: 0;
    /* Hidden initially for animation */
    visibility: hidden;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.wa-icon {
    width: 32px;
    height: 32px;
    fill: white;
}
/* -------------------------------------------------------------------
   9. TAXPRO REBRAND (STAGE A) - shared header/footer/mobile CTA
   Markup comes from partials/*.html via scripts/build.mjs.
   Header rules that must beat nav-deloitte.css live in that file.
------------------------------------------------------------------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip link: off-screen until it receives keyboard focus. */
.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10000;
    padding: 12px 20px;
    background: #002776;
    color: #fff;
    font-weight: 600;
    transform: translateY(-120%);
}

.skip-link:focus {
    transform: translateY(0);
    outline: 3px solid #92d400;
    outline-offset: 2px;
}

main:focus {
    outline: none;
}

/* Brand lock-up: TaxProPune + "A TaxPro Solutions Pvt. Ltd. Initiative" */
.logo .logo-lockup {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    color: var(--color-navy);
}

.logo .logo-name {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--color-navy);
    line-height: 1.1;
}

.logo .logo-tagline {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.2;
    color: #4d4d4d;
    white-space: nowrap;
}

/* Header buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 16px;
}

.nav-actions .btn {
    padding: 10px 16px;
    font-size: 13px;
    letter-spacing: 0.2px;
    text-transform: none;
    white-space: nowrap;
    text-align: center;
}

.nav-actions .btn::after {
    display: none;
}

.nav-actions .btn-nav-primary {
    background-color: var(--color-navy);
    border-color: var(--color-navy);
    color: var(--color-white);
}

.nav-actions .btn-nav-primary:hover {
    background-color: #001a52;
    border-color: #001a52;
}

.nav-actions .btn-nav-secondary {
    border-color: var(--color-navy);
    color: var(--color-navy);
}

.nav-actions .btn-nav-secondary:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.nav-actions .btn:focus-visible {
    outline: 3px solid var(--color-blue);
    outline-offset: 2px;
}

/* Not enough room for both buttons between the mobile breakpoint and ~1360px */
@media (min-width: 1101px) and (max-width: 1359px) {
    .nav-actions .btn-nav-secondary {
        display: none;
    }
}

@media (max-width: 1100px) {
    .nav-actions {
        flex-direction: column;
        align-items: stretch;
        margin: 0;
        padding: 8px 20px 32px;
    }

    .nav-actions .btn {
        padding: 14px 16px;
    }
}

/* Breadcrumb (skeleton and Stage B pages) */
.breadcrumb {
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: 14px;
}

/* ol, unlike the ul reset above, keeps list markers unless removed */
.breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    color: #767676;
}

.breadcrumb a {
    color: var(--color-navy);
    text-decoration: underline;
}

.breadcrumb a:focus-visible {
    outline: 3px solid var(--color-blue);
    outline-offset: 2px;
}

.page-intro {
    padding-top: 24px;
}

/* Footer */
.site-footer.section {
    padding: 64px 0 32px;
}

.site-footer {
    font-size: 15px;
    line-height: 1.7;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.site-footer p,
.site-footer li {
    color: #d5dbeb;
}

.site-footer p {
    margin-bottom: 8px;
}

.site-footer a {
    color: var(--color-white);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer a:hover {
    color: var(--color-primary);
}

.site-footer a:focus-visible {
    outline: 3px solid var(--color-blue);
    outline-offset: 2px;
}

.site-footer address {
    font-style: normal;
}

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

.site-footer .footer-company {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-white);
}

.site-footer .footer-heading {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--color-white);
}

.site-footer li {
    padding: 4px 0;
}

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

.site-footer .footer-disclaimer {
    font-size: 13px;
    line-height: 1.7;
    max-width: 960px;
}

.site-footer .footer-copy {
    margin-top: 16px;
    margin-bottom: 0;
    font-size: 14px;
}

/* Sticky mobile CTA: Call | WhatsApp | Enquire (small screens only, no popups) */
.mobile-cta {
    display: none;
}

@media (max-width: 767px) {
    .mobile-cta {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900;
        background-color: var(--color-white);
        border-top: 1px solid #d9d9d9;
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-cta-link {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 56px;
        font-size: 15px;
        font-weight: 600;
        color: var(--color-navy);
    }

    .mobile-cta-link + .mobile-cta-link {
        border-left: 1px solid #e5e5e5;
    }

    .mobile-cta-primary {
        background-color: var(--color-navy);
        color: var(--color-white);
    }

    .mobile-cta-link:focus-visible {
        outline: 3px solid var(--color-blue);
        outline-offset: -3px;
    }

    /* Keep the last lines of every page clear of the bar */
    body {
        padding-bottom: calc(56px + env(safe-area-inset-bottom));
    }

    /* The bar already carries WhatsApp */
    .whatsapp-float {
        display: none;
    }
}

/* -------------------------------------------------------------------
   10. PAGES (STAGE B1)
   Home, About, Services, Careers, Professional/Statutory, Knowledge
   Centre and legal pages. Mobile-first; wider layouts via min-width.
------------------------------------------------------------------- */
.hero.hero-home {
    height: auto;
    min-height: 0;
    padding: 72px 0 64px;
}

.hero.hero-home h1 {
    font-size: clamp(2.25rem, 7vw, 4rem);
    max-width: 16ch;
}

.hero.hero-home .hero-sub {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 500;
    max-width: 640px;
    opacity: 1;
    margin-bottom: 16px;
}

.hero.hero-home .hero-support {
    max-width: 640px;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero.hero-home .hero-location {
    margin: 32px 0 0;
    font-size: 0.95rem;
    opacity: 0.85;
}

/* Buttons with safe contrast on both dark and light backgrounds */
.btn-accent {
    background-color: var(--color-primary);
    color: var(--color-navy);
}

.btn-accent:hover {
    background-color: #a6e61a;
    transform: translateY(-2px);
}

.btn-ghost {
    border-color: var(--color-navy);
    color: var(--color-navy);
}

.btn-ghost:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.hero .btn-ghost,
.cta-band .btn-ghost {
    border-color: var(--color-white);
    color: var(--color-white);
}

.hero .btn-ghost:hover,
.cta-band .btn-ghost:hover {
    background-color: var(--color-white);
    color: var(--color-navy);
}

.btn:focus-visible,
.card a:focus-visible,
.chip:focus-visible,
.anchor-nav a:focus-visible,
.link-arrow:focus-visible {
    outline: 3px solid var(--color-blue);
    outline-offset: 3px;
}

/* Page headings and text rhythm */
.page-title {
    font-size: clamp(2rem, 5vw, 3.25rem);
    max-width: 22ch;
    margin-bottom: 1.25rem;
}

.eyebrow {
    margin-bottom: 12px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--color-navy);
}

.h-section {
    font-size: clamp(1.625rem, 3.5vw, 2.5rem);
    max-width: 28ch;
    margin-bottom: 1.25rem;
}

.lead {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: #333333;
    max-width: 68ch;
    margin-bottom: 1.25rem;
}

.prose {
    max-width: 72ch;
}

.prose p,
.prose li {
    color: #333333;
    line-height: 1.75;
}

.prose p {
    margin-bottom: 1rem;
}

.prose h2 {
    font-size: 1.5rem;
    margin: 2.25rem 0 0.75rem;
}

.prose ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.prose li {
    margin-bottom: 0.4rem;
}

.prose a,
.link-arrow {
    color: var(--color-navy);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.page-section {
    padding: 56px 0;
}

.page-section + .page-section {
    border-top: 1px solid #e6e6e6;
}

.page-section.bg-light {
    border-top: 0;
}

/* Statement line: one strong sentence, no decoration */
.statement {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--color-navy);
    border-left: 4px solid var(--color-primary);
    padding-left: 20px;
    margin: 32px 0 0;
    max-width: 30ch;
}

/* Authority strip: factual team make-up, static */
.authority-strip {
    padding: 40px 0;
    border-bottom: 1px solid #e6e6e6;
}

.authority-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
    margin: 16px 0 20px;
}

.authority-item {
    border-top: 3px solid var(--color-navy);
    padding-top: 12px;
}

.authority-figure {
    display: block;
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    line-height: 1;
    color: var(--color-navy);
}

.authority-label {
    display: block;
    margin-top: 6px;
    font-size: 0.95rem;
    color: #333333;
}

.authority-note {
    max-width: 68ch;
    color: #333333;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 28px;
}

.card {
    background: var(--color-white);
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    padding: 24px;
    transition: border-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.card:hover {
    border-color: var(--color-navy);
    transform: translateY(-2px);
}

.card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.card p {
    color: #333333;
    font-size: 0.95rem;
    margin-bottom: 0;
}

.card .card-tag {
    margin-bottom: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #4d4d4d;
}

.card a {
    color: var(--color-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Service groups (home grid and services page) */
.service-group {
    background: var(--color-white);
    border: 1px solid #dcdcdc;
    border-radius: 6px;
    padding: 24px;
}

.service-group h3 {
    font-size: 1.25rem;
    padding-bottom: 12px;
    margin-bottom: 8px;
    border-bottom: 3px solid var(--color-primary);
}

.service-group li {
    padding: 12px 0;
    border-bottom: 1px solid #eeeeee;
}

.service-group li:last-child {
    border-bottom: 0;
}

.service-group .item-name {
    display: block;
    font-weight: 600;
    color: var(--color-navy);
}

.service-group a.item-name {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.service-group .item-desc {
    display: block;
    margin-top: 2px;
    font-size: 0.95rem;
    color: #333333;
}

.service-group a:focus-visible {
    outline: 3px solid var(--color-blue);
    outline-offset: 2px;
}

/* Services page: anchored categories clear the fixed header */
.service-category {
    scroll-margin-top: calc(var(--nav-height) + 16px);
}

.anchor-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.anchor-nav a,
.chip {
    display: inline-block;
    padding: 10px 16px;
    border: 1px solid var(--color-navy);
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-navy);
}

.anchor-nav a:hover {
    background-color: var(--color-navy);
    color: var(--color-white);
}

.plain-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 24px;
    margin-top: 20px;
}

.plain-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e6e6e6;
    color: #222222;
}

.chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.chip-list .chip {
    border-color: #b8b8b8;
    font-weight: 500;
}

/* Process steps */
.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 28px;
    counter-reset: step;
}

.steps li {
    counter-increment: step;
    border-top: 3px solid var(--color-navy);
    padding-top: 12px;
}

.steps li::before {
    content: "0" counter(step);
    display: block;
    margin-bottom: 4px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--color-navy);
}

.steps h3 {
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.steps p {
    color: #333333;
    font-size: 0.95rem;
}

/* Closing call to action */
.cta-band {
    background-color: var(--color-secondary);
    color: var(--text-white);
    padding: 64px 0;
}

.cta-band h2 {
    color: var(--color-white);
    font-size: clamp(1.625rem, 4vw, 2.5rem);
    max-width: 24ch;
}

.cta-band p {
    max-width: 60ch;
    margin-bottom: 28px;
    color: #e6eaf5;
}

/* Planned-topic lists (Knowledge Centre) */
.topic-group h3 {
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.topic-group li {
    padding: 8px 0;
    border-bottom: 1px solid #eeeeee;
    color: #222222;
}

.status-note {
    display: inline-block;
    padding: 10px 16px;
    background: var(--color-light-gray);
    border-left: 4px solid var(--color-navy);
    color: #222222;
}

/* Careers form */
.form-card {
    background: var(--color-white);
    border-radius: 6px;
    padding: 24px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

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

.form-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #222222;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #767676;
    border-radius: 4px;
    background: var(--color-white);
    font: inherit;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
    outline: 3px solid var(--color-blue);
    outline-offset: 1px;
}

.form-upload {
    padding: 16px;
    border: 1px dashed #767676;
    border-radius: 4px;
    background: #f7f7f7;
}

.form-card .btn {
    width: 100%;
}

.form-field .required-mark {
    color: #b00020;
}

.form-field .field-hint {
    margin: 6px 0 0;
    font-size: 0.85rem;
    color: #555555;
}

/* Honeypot: off-screen rather than display:none so naive bots still fill it */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Live region for form success / error messages */
.form-status {
    margin: 0 0 16px;
    padding: 0;
    font-weight: 600;
}

.form-status:not(:empty) {
    padding: 14px 16px;
    border-radius: 4px;
    border: 1px solid;
}

.form-status.is-success {
    background: #e6f4ea;
    border-color: #1e7e34;
    color: #14532d;
}

.form-status.is-error {
    background: #fdecea;
    border-color: #b00020;
    color: #7f1d1d;
}

/* Contact page */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact-details h3 {
    margin: 24px 0 6px;
    font-size: 1rem;
}

.contact-details p {
    margin: 0 0 4px;
}

.contact-note {
    font-size: 0.9rem;
    color: #555555;
}

.btn-whatsapp-alt {
    margin-top: 12px;
}

@media (min-width: 960px) {
    .contact-layout {
        grid-template-columns: 1fr 1.4fr;
        align-items: start;
    }
}

/* Wider screens */
@media (min-width: 640px) {
    .authority-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }

    .card-grid,
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .plain-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-grid.two-col {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 960px) {
    .hero.hero-home {
        padding: 112px 0 96px;
    }

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

    .card-grid.cols-3,
    .steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .card-grid.cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }

    .plain-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .form-card {
        padding: 40px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card,
    .btn,
    .btn-accent {
        transition: none;
    }

    .card:hover,
    .btn-accent:hover,
    .btn-primary:hover {
        transform: none;
    }
}

.link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-top: 28px;
}

.prose-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
    max-width: 68ch;
    color: #333333;
    line-height: 1.7;
}

.prose-list li {
    margin-bottom: 0.4rem;
}

/* Contact page map */
.map-embed {
    margin: 12px 0 8px;
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    border: 0;
}

.footer-phones a {
    display: inline-block;
    padding: 6px 0;
}
