/* ==========================================================================
   RESIDE PROJECTS LIMITED - ESTABLISHED 1997
   Premier Residential Construction, Alteration & Architectural Advisory
   Clean Human Crafted CSS - Strict Performance & Accessibility
   ========================================================================== */

:root {
    --primary: #122239;
    --primary-dark: #0a1524;
    --primary-light: #1e3557;
    --accent: #c49a3c;
    --accent-hover: #b0872e;
    --accent-light: #f7f1e1;
    --text-main: #2b3544;
    --text-muted: #5e6d82;
    --bg-light: #f8fafc;
    --bg-alt: #f1f5f9;
    --border-color: #e2e8f0;
    --border-dark: #cbd5e1;
    --white: #ffffff;
    --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
    --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -5px rgba(18, 34, 57, 0.12), 0 8px 10px -6px rgba(18, 34, 57, 0.08);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.25s ease-in-out;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
    color: var(--accent);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary);
    line-height: 1.25;
    font-weight: 700;
}

h1 { font-size: 2.75rem; margin-bottom: 1.25rem; }
h2 { font-size: 2.25rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.75rem;
    padding: 4px 10px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
}

.section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 3rem auto;
}

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

/* Top Announcement Bar */
.top-bar {
    background-color: var(--primary-dark);
    color: #b7c5d9;
    font-size: 0.85rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.top-bar-left span {
    font-weight: 500;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-right a {
    color: #e2e8f0;
}

.top-bar-right a:hover {
    color: var(--accent);
}

.top-sep {
    color: rgba(255, 255, 255, 0.2);
}

/* Header & Navigation */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-symbol {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--accent);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 2px solid var(--accent);
}

.logo-symbol.small {
    width: 36px;
    height: 36px;
    font-size: 1rem;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.03em;
    line-height: 1.1;
}

.brand-sub {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    padding: 6px 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-toggle .bar {
    display: block;
    width: 24px;
    height: 3px;
    margin: 4px 0;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition);
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--accent-hover);
    color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

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

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

.btn-white:hover {
    background-color: var(--bg-light);
    color: var(--primary-dark);
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 80px 0 90px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: radial-gradient(rgba(196, 154, 60, 0.12) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.6;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(196, 154, 60, 0.15);
    border: 1px solid rgba(196, 154, 60, 0.35);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3rem;
    line-height: 1.18;
    margin-bottom: 20px;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-lead {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 24px;
}

.stat-item .stat-num {
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--accent);
    display: block;
}

.stat-item .stat-label {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.3;
}

.hero-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}

.hero-card-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.hero-card-header h3 {
    margin-bottom: 4px;
}

.hero-card-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Feature & Service Pillars */
.section {
    padding: 80px 0;
}

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

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

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.pillar-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.pillar-icon {
    width: 52px;
    height: 52px;
    background: var(--accent-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
    border: 1px solid rgba(196, 154, 60, 0.3);
}

.pillar-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.pillar-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    flex-grow: 1;
}

.pillar-list {
    list-style: none;
    margin-bottom: 20px;
    font-size: 0.88rem;
}

.pillar-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    color: var(--text-main);
}

.pillar-list li::before {
    content: "\2022";
    color: var(--accent);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

/* Interactive Calculator Widget */
.calc-wrapper {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 36px;
    margin-top: 20px;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 36px;
}

.calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.calc-field label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}

.calc-field select, .calc-field input[type="range"], .calc-field input[type="number"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: var(--white);
    color: var(--text-main);
}

.range-val {
    display: inline-block;
    font-weight: 700;
    color: var(--accent);
    margin-left: 8px;
}

.calc-result-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-radius: var(--radius-md);
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calc-result-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.calc-result-header h4 {
    color: var(--white);
    font-size: 1.3rem;
}

.calc-price-display {
    margin-bottom: 24px;
}

.calc-price-label {
    font-size: 0.85rem;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.calc-price-val {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent);
    margin: 6px 0;
}

.calc-price-time {
    font-size: 0.9rem;
    color: #e2e8f0;
}

.calc-breakdown-list {
    list-style: none;
    font-size: 0.85rem;
    color: #cbd5e1;
    margin-bottom: 24px;
}

.calc-breakdown-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Interactive Process Stage Explorer */
.process-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.tab-btn {
    padding: 12px 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

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

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

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-pane.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: center;
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.tab-pane-img img {
    border-radius: var(--radius-sm);
    width: 100%;
    height: 320px;
    object-fit: cover;
}

/* Accordion FAQ */
.faq-accordion {
    max-width: 860px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    width: 100%;
    padding: 20px 24px;
    text-align: left;
    background: none;
    border: none;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: "+";
    font-size: 1.4rem;
    color: var(--accent);
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 24px;
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    padding-bottom: 20px;
}

/* Forms */
.form-group {
    margin-bottom: 18px;
}

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

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    background: var(--white);
    color: var(--text-main);
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(196, 154, 60, 0.2);
}

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

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.form-check input {
    margin-top: 4px;
}

.form-status {
    margin-top: 14px;
    padding: 10px;
    border-radius: var(--radius-sm);
    display: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-status.success {
    display: block;
    background-color: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-status.error {
    display: block;
    background-color: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Content Pages & Legal Templates */
.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 60px 0;
    border-bottom: 3px solid var(--accent);
}

.page-hero h1 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-hero p {
    color: #cbd5e1;
    font-size: 1.1rem;
    max-width: 780px;
}

.content-wrapper {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 44px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin: 40px auto;
}

.content-wrapper h2 {
    font-size: 1.7rem;
    margin-top: 32px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.content-wrapper h3 {
    font-size: 1.3rem;
    margin-top: 24px;
    margin-bottom: 10px;
}

.content-wrapper ul, .content-wrapper ol {
    margin-bottom: 1.25rem;
    padding-left: 24px;
}

.content-wrapper li {
    margin-bottom: 6px;
}

.compliance-box {
    background: var(--bg-alt);
    border-left: 4px solid var(--accent);
    padding: 20px;
    margin: 24px 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.compliance-box p {
    font-size: 0.95rem;
    color: var(--text-main);
}

.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.92rem;
}

.policy-table th, .policy-table td {
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.policy-table th {
    background: var(--bg-alt);
    font-weight: 700;
    color: var(--primary);
}

/* Articles & Guides Section */
.articles-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--accent);
    color: var(--primary-dark);
    border-color: var(--accent);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.article-img {
    height: 220px;
    width: 100%;
    object-fit: cover;
}

.article-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.article-meta {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.article-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    line-height: 1.35;
}

.article-card p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Contact Page Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 30px;
}

.contact-info-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.contact-detail-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--accent-light);
    color: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 1px solid rgba(196, 154, 60, 0.3);
}

.map-container {
    width: 100%;
    height: 380px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-top: 24px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Footer Styling */
.main-footer {
    background-color: var(--primary-dark);
    color: #cbd5e1;
    font-size: 0.92rem;
    border-top: 3px solid var(--accent);
}

.footer-top {
    padding: 70px 0 50px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 1.1fr 1.2fr;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-logo .brand-title {
    color: var(--white);
}

.footer-about-text {
    font-size: 0.88rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 20px;
}

.registration-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    color: #cbd5e1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-heading {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    transition: var(--transition);
}

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

.nz-standards-badge {
    margin-top: 20px;
    background: rgba(196, 154, 60, 0.1);
    border: 1px solid rgba(196, 154, 60, 0.25);
    padding: 14px;
    border-radius: var(--radius-sm);
}

.nz-standards-badge .badge-title {
    font-weight: 700;
    color: var(--accent);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 4px;
}

.nz-standards-badge .badge-desc {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.4;
}

.footer-address p {
    margin-bottom: 4px;
    font-style: normal;
    color: #94a3b8;
}

.footer-address a {
    color: #cbd5e1;
}

.footer-address a:hover {
    color: var(--accent);
}

.mt-2 { margin-top: 8px; }

.footer-bottom {
    background: #060e18;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.82rem;
    color: #64748b;
}

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

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 21, 36, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 580px;
    width: 100%;
    padding: 36px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalSlide 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.6rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-header {
    margin-bottom: 24px;
}

.modal-tag {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.modal-header h3 {
    margin-top: 4px;
    margin-bottom: 8px;
}

.modal-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes modalSlide {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }
    .nav-menu {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-md);
        display: none;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-list {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }
    .nav-cta {
        width: 100%;
    }
    .calc-grid, .tab-pane.active, .contact-grid {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}
