/* ============================================
   KNR Enterprises — Design System v2
   ============================================ */

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

:root {
    /* Color Palette */
    --primary: #1A5C5E;
    --primary-dark: #0F3D3F;
    --primary-light: #DCF0EF;
    --primary-glow: rgba(26, 92, 94, 0.2);

    --secondary: #0C1520;
    --text-primary: #1A2332;
    --text-secondary: #4A5568;
    --text-muted: #8A9BB0;

    --surface: #FFFFFF;
    --surface-alt: #F5F9F9;
    --surface-raised: #FFFFFF;
    --border: #DDE7E7;
    --border-light: #EBF2F2;

    /* Dark surfaces — footer, CTA, page headers */
    --dark-bg: #0C1520;
    --dark-surface: #111C2A;
    --dark-border: rgba(255, 255, 255, 0.07);

    /* Gradients */
    --gradient-teal: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(12, 21, 32, 0.05), 0 1px 2px rgba(12, 21, 32, 0.07);
    --shadow-md: 0 4px 16px rgba(12, 21, 32, 0.07), 0 2px 4px rgba(12, 21, 32, 0.04);
    --shadow-lg: 0 12px 40px rgba(12, 21, 32, 0.09), 0 4px 12px rgba(12, 21, 32, 0.05);
    --shadow-xl: 0 24px 60px rgba(12, 21, 32, 0.12), 0 8px 20px rgba(12, 21, 32, 0.06);
    --shadow-glow: 0 0 0 3px var(--primary-glow);
    --shadow-teal: 0 8px 32px rgba(26, 92, 94, 0.28);

    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    /* Spacing */
    --max-width: 1200px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.7;
    background-color: var(--surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.no-scroll {
    overflow: hidden;
}

/* ============================================
   Utilities
   ============================================ */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s ease, border-color 0.25s ease;
}

ul {
    list-style: none;
}

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

/* ============================================
   Typography
   ============================================ */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

h3 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 13px 32px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.925rem;
    letter-spacing: 0.01em;
    border-radius: 8px;
    transition: all 0.28s var(--ease-out);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-teal);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

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

.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid rgba(221, 231, 231, 0.75);
    transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    padding: 0.6rem 0;
    box-shadow: var(--shadow-sm);
}

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

/* Scroll Progress Bar */
.scroll-progress-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: transparent;
    z-index: 1001;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-light), var(--primary));
    width: 0%;
    transition: width 0.1s ease-out;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 46px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.04);
    opacity: 0.85;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    padding-bottom: 3px;
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-links a.btn-nav {
    border: 1.5px solid var(--border);
    padding: 7px 18px;
    border-radius: 7px;
    font-weight: 500;
    color: var(--text-primary);
}

.nav-links a.btn-nav::after {
    display: none;
}

.nav-links a.btn-nav:hover {
    border-color: var(--primary);
    color: var(--primary);
    background-color: var(--primary-light);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 180px 0 120px;
    background:
        linear-gradient(to right,
            rgba(255, 255, 255, 0.96) 0%,
            rgba(255, 255, 255, 0.82) 52%,
            rgba(232, 244, 244, 0.22) 100%),
        url('images/Gemini_Generated_Image_50gcyw50gcyw50gc.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--surface-alt), transparent);
    pointer-events: none;
}

.hero-content {
    max-width: 760px;
    position: relative;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-transform: uppercase;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    margin-bottom: 1.5rem;
    padding: 5px 12px;
    background-color: var(--primary-light);
    border-radius: 4px;
    border: 1px solid rgba(26, 92, 94, 0.18);
}

.eyebrow::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--primary);
    flex-shrink: 0;
}

.hero h1 {
    color: var(--secondary);
    margin-bottom: 1.5rem;
    line-height: 1.08;
}

.hero-subtext {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 2.5rem;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   Services Section (Homepage)
   ============================================ */
.services {
    padding: 120px 0;
    background-color: var(--surface-alt);
    position: relative;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 0.875rem;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 520px;
    line-height: 1.75;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--surface-raised);
    padding: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.3s ease, box-shadow 0.35s var(--ease-out), transform 0.35s var(--ease-out);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-out);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: rgba(26, 92, 94, 0.25);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.icon-box {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-light);
    border-radius: 10px;
    letter-spacing: 0.02em;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* ============================================
   About Section (Homepage)
   ============================================ */
.about {
    padding: 120px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.85;
}

.stat-box {
    background: var(--gradient-teal);
    padding: 3.5rem 2.5rem;
    color: white;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    box-shadow: var(--shadow-teal);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.stat-box::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.6rem;
    letter-spacing: -0.04em;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.72rem;
    opacity: 0.8;
    font-weight: 600;
}

/* ============================================
   Contact CTA (Homepage) — Dark
   ============================================ */
.contact {
    padding: 120px 0;
    text-align: center;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(26, 92, 94, 0.22) 0%, transparent 65%);
    pointer-events: none;
}

.contact-container {
    max-width: 620px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact h2 {
    color: white;
    margin-bottom: 1.25rem;
}

.contact p {
    color: rgba(255, 255, 255, 0.58);
    margin-bottom: 2.5rem;
    font-size: 1.15rem;
    line-height: 1.75;
}

.contact .btn-primary {
    background-color: white;
    color: var(--primary-dark);
    border-color: white;
    box-shadow: none;
}

.contact .btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* ============================================
   Footer — Dark
   ============================================ */
footer {
    padding: 2.5rem 0;
    background-color: var(--dark-bg);
    border-top: 1px solid var(--dark-border);
}

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

.footer-brand p {
    font-family: var(--font-heading);
    font-weight: 700;
    color: white;
    font-size: 1rem;
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
}

.copyright {
    color: rgba(255, 255, 255, 0.32);
    font-size: 0.78rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.82);
}

/* ============================================
   Reveal Animations
   ============================================ */
[data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Mobile Menu Button
   ============================================ */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 2px;
    transition: all 0.35s var(--ease-out);
}

/* ============================================
   Mobile Responsive
   ============================================ */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        height: 100dvh;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        width: 100%;
        transform: translateX(100%);
        transition: transform 0.45s var(--ease-out);
        box-shadow: none;
        padding-top: 60px;
        gap: 1.5rem;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(12px);
        transition: all 0.35s var(--ease-out);
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.18s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.26s;
    }

    .nav-links a {
        font-size: 1.35rem;
    }

    .nav-links a::after {
        display: none;
    }

    /* Hamburger Animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Hero — on mobile use centered overlay */
    .hero {
        padding: 140px 0 80px;
        text-align: center;
        background:
            linear-gradient(rgba(255, 255, 255, 0.93) 0%, rgba(255, 255, 255, 0.88) 100%),
            url('images/Gemini_Generated_Image_50gcyw50gcyw50gc.png');
        background-size: cover;
        background-position: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-subtext {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
    }

    .btn {
        width: 100%;
        max-width: 340px;
        display: block;
        text-align: center;
    }

    /* About */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .about-stat {
        order: -1;
    }

    .stat-box {
        padding: 2.5rem 2rem;
    }

    /* Section padding */
    .services,
    .about,
    .contact {
        padding: 80px 0;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ============================================
   Sub-Page Styles
   ============================================ */

/* Page Headers */
.page-header {
    padding: 170px 0 70px;
    background-color: var(--surface-alt);
    text-align: center;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--surface), transparent);
    pointer-events: none;
}

.page-header h1 {
    margin-bottom: 0.75rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.75;
}

/* Dark page hero backgrounds — images actually visible */
.services-hero {
    background:
        linear-gradient(rgba(12, 21, 32, 0.62) 0%, rgba(12, 21, 32, 0.5) 100%),
        url('images/hero-services.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.about-hero {
    background:
        linear-gradient(rgba(12, 21, 32, 0.62) 0%, rgba(12, 21, 32, 0.5) 100%),
        url('images/hero-about.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* White text for dark-overlay headers */
.page-header.about-hero h1,
.page-header.services-hero h1 {
    color: white;
}

.page-header.about-hero p,
.page-header.services-hero p {
    color: rgba(255, 255, 255, 0.7);
}

.page-header.about-hero::after {
    background: linear-gradient(to top, var(--surface), transparent);
}

.page-header.services-hero::after {
    background: linear-gradient(to top, var(--surface), transparent);
}

/* ============================================
   Services Page
   ============================================ */
.services-content {
    padding: 80px 0 100px;
}

/* Service Card Images */
.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 1.25rem;
    border-radius: 10px;
    background-color: var(--surface-alt);
    transition: transform 0.4s var(--ease-out);
}

.service-card:hover .service-image {
    transform: scale(1.02);
}

/* Hide details (shown in modal) */
.service-details {
    display: none;
}

/* ============================================
   Service Modal
   ============================================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(12, 21, 32, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--surface);
    padding: 2.5rem;
    width: 90%;
    max-width: 560px;
    border-radius: 16px;
    position: relative;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.35s var(--ease-spring);
    box-shadow: var(--shadow-xl);
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    font-size: 1.6rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
    padding: 4px;
    border-radius: 6px;
}

.modal-close:hover {
    color: var(--primary);
    transform: scale(1.1);
}

#modal-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-right: 2.5rem;
}

#modal-body {
    color: var(--text-primary);
    line-height: 1.7;
}

#modal-body p {
    color: var(--text-secondary);
    font-size: 0.975rem;
    line-height: 1.75;
}

#modal-body ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
    list-style: disc;
    color: var(--text-secondary);
}

#modal-body li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

/* ============================================
   About Page
   ============================================ */
.about-overview {
    padding: 80px 0;
    text-align: center;
}

.overview-text {
    max-width: 760px;
    margin: 0 auto;
}

.overview-text h2 {
    margin-bottom: 1.5rem;
}

.overview-text p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.team-section {
    padding: 80px 0 100px;
    background-color: var(--surface-alt);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.team-card {
    background: var(--surface);
    padding: 2.5rem 2rem;
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: center;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: rgba(26, 92, 94, 0.3);
    box-shadow: var(--shadow-lg);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    object-fit: cover;
    border: 3px solid var(--primary-light);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover .member-photo {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.team-card h3 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.team-card .role {
    display: block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.72rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.team-card .bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ============================================
   Contact Form Page
   ============================================ */
.contact-page-section {
    padding: 80px 0 100px;
}

.contact-wrapper {
    max-width: 620px;
    margin: 0 auto;
    background: var(--surface);
    padding: 3rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    background-color: var(--surface);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
}

/* Mobile adjustments for sub-pages */
@media (max-width: 768px) {
    .page-header {
        padding: 140px 0 50px;
    }

    .contact-wrapper {
        padding: 1.75rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 960px) and (min-width: 769px) {
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}
