/* =============================================
   RESET & BASE STYLES
   ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

:root {
    /* Colors - Natural & Calming Palette */
    --primary: #6B9080;
    --primary-light: #A4C3B2;
    --primary-dark: #4A6B5A;
    --secondary: #CCE3DE;
    --accent: #F6FFF8;
    --accent-2: #EAF4F4;
    
    --text-primary: #2C3E50;
    --text-secondary: #5D6D7E;
    --text-light: #7F8C8D;
    
    --white: #FFFFFF;
    --off-white: #F9FAFB;
    --border: #E5E7EB;
    
    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 20px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

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

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.7;
    background-color: var(--white);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    position: relative;
}

/* =============================================
   ACCESSIBILITY
   ============================================= */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: 12px 20px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 8px 0;
    font-weight: 600;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
    outline: 3px solid var(--primary-dark);
    outline-offset: 2px;
}

*:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary-dark);
    outline-offset: 3px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 968px) {
    .container {
        padding: 0 20px;
        width: 100%;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 16px;
        width: 100%;
    }
}

/* =============================================
   NAVIGATION
   ============================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    width: 100%;
    max-width: 100%;
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px var(--container-padding);
}

.logo h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 600;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 12px;
    z-index: 1001;
    min-width: 48px;
    min-height: 48px;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-toggle:hover {
    background: var(--off-white);
}

.mobile-toggle:focus-visible {
    background: var(--secondary);
}

.mobile-toggle span {
    width: 28px;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
    border-radius: 3px;
}

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

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

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

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(164, 195, 178, 0.85) 0%, rgba(204, 227, 222, 0.75) 100%);
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(-45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
    display: inline-block;
    padding: 16px 36px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(107, 144, 128, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(107, 144, 128, 0.4);
}

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

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

.btn-service {
    background: var(--secondary);
    color: var(--primary-dark);
    padding: 12px 28px;
    font-size: 0.9rem;
}

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

.btn-full {
    width: 100%;
}

/* =============================================
   SECTION HEADERS
   ============================================= */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about {
    padding: var(--section-padding);
    background: var(--white);
    width: 100%;
    overflow-x: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    max-width: 100%;
}

.about-content > * {
    min-width: 0;
}

.about-image {
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: 20px;
    max-width: 100%;
    width: 100%;
}

.about-text .lead {
    font-size: 1.25rem;
    color: var(--primary-dark);
    font-weight: 500;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--accent-2);
    color: var(--primary-dark);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid var(--secondary);
}

.about-stats {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.95;
}

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

/* =============================================
   CERTIFICATIONS SECTION
   ============================================= */
.certifications {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
    position: relative;
    overflow: hidden;
}

.certifications::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(107, 144, 128, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.certifications .container {
    position: relative;
    z-index: 1;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 10px auto 0;
    line-height: 1.6;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.cert-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.cert-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--accent-2);
}

.cert-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.cert-card:hover .cert-image-wrapper img {
    transform: scale(1.05);
}

.cert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(107, 144, 128, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.cert-card:hover .cert-overlay {
    opacity: 1;
}

.view-cert-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--white);
    color: var(--primary);
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.view-cert-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary);
    transition: var(--transition);
}

.view-cert-btn:hover {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.05);
}

.view-cert-btn:hover svg {
    stroke: var(--white);
}

.cert-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cert-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.cert-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Certificate Modal Styles */
.cert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
}

.cert-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.cert-modal-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    animation: slideUp 0.4s ease;
}

.cert-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.cert-modal-close:hover {
    background: var(--primary-dark);
    transform: rotate(90deg);
}

.cert-modal-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
}

.cert-modal-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 10px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Responsive Design for Certifications */
@media (max-width: 768px) {
    .certifications-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .cert-modal-content {
        padding: 30px 20px;
    }
    
    .cert-modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-info h3 {
        font-size: 1.1rem;
    }
    
    .view-cert-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

/* =============================================
   SERVICES SECTION
   ============================================= */
.services {
    padding: var(--section-padding);
    background: var(--off-white);
    width: 100%;
    overflow-x: hidden;
}

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid var(--border);
    cursor: pointer;
    position: relative;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover::after {
    opacity: 0.05;
}

.service-card:active {
    transform: translateY(-5px) scale(0.98);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

.service-icon svg {
    width: 35px;
    height: 35px;
    color: var(--white);
}

.service-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.7;
}

.service-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    font-family: var(--font-heading);
}

/* =============================================
   TESTIMONIALS SECTION
   ============================================= */
.testimonials {
    padding: var(--section-padding);
    background: linear-gradient(135deg, rgba(246, 255, 248, 0.95) 0%, rgba(204, 227, 222, 0.95) 100%), 
                url('https://images.unsplash.com/photo-1512290923902-8a9f81dc236c?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

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

.testimonial-card {
    background: var(--white);
    padding: 35px;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-stars {
    color: #FFB84D;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.testimonial-text {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
}

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

.testimonial-author strong {
    color: var(--text-primary);
    font-weight: 600;
}

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

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact {
    padding: var(--section-padding);
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-bg-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.03;
    z-index: 0;
}

.floating-img {
    position: absolute;
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    filter: blur(1px);
}

.floating-img-1 {
    top: 10%;
    left: -100px;
}

.floating-img-2 {
    bottom: 10%;
    right: -100px;
}

/* Hide floating images on tablets and mobile */
@media (max-width: 968px) {
    .floating-img {
        display: none;
    }
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
    max-width: 100%;
}

.contact-wrapper > * {
    min-width: 0;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.contact-info .lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.contact-method {
    display: flex;
    gap: 20px;
    align-items: center;
}

.method-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.method-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-dark);
}

.method-details h4 {
    color: var(--text-primary);
    margin-bottom: 5px;
    font-weight: 600;
}

.method-details p {
    color: var(--text-secondary);
    word-break: break-word;
    overflow-wrap: break-word;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-dark);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.social-link:hover::before {
    transform: scale(1);
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link:active {
    transform: translateY(-1px) scale(0.95);
}

.social-link svg {
    width: 22px;
    height: 22px;
    color: var(--white);
}

/* Contact Form */
.contact-form {
    background: var(--off-white);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(107, 144, 128, 0.1);
}

.form-group input:invalid:not(:placeholder-shown),
.form-group select:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

.form-group input:valid,
.form-group select:valid,
.form-group textarea:valid {
    border-color: var(--primary-light);
}

.required-mark {
    color: #e74c3c;
    font-weight: 700;
}

.char-count {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: right;
    margin-top: 8px;
}

.char-count.warning {
    color: #f39c12;
}

.char-count.error {
    color: #e74c3c;
}

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

/* =============================================
   FOOTER
   ============================================= */
.footer {
    background: var(--text-primary);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-section h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* =============================================
   MODAL
   ============================================= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    max-width: 600px;
    width: 100%;
    border-radius: 20px;
    padding: 40px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@media (max-width: 640px) {
    .modal {
        padding: 0;
        align-items: flex-end;
    }
    
    .modal-content {
        max-height: 85vh;
        border-radius: 25px 25px 0 0;
        padding: 30px 25px;
        animation: modalSlideUp 0.3s ease-out;
    }
    
    @keyframes modalSlideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    background: var(--off-white);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.modal-close:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

/* =============================================
   RESPONSIVE DESIGN
   ============================================= */
@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        flex-direction: column;
        background: var(--white);
        width: 85%;
        max-width: 400px;
        height: 100vh;
        padding: 100px 40px 40px;
        box-shadow: var(--shadow-lg);
        transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 0;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: -1;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
    }
    
    .nav-links.active::before {
        opacity: 1;
        pointer-events: auto;
    }
    
    body.nav-open {
        overflow: hidden;
    }
    
    .nav-link {
        padding: 20px 0;
        font-size: 1.3rem;
        border-bottom: 1px solid var(--border);
        position: relative;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-link::before {
        content: '';
        position: absolute;
        left: -40px;
        top: 50%;
        transform: translateY(-50%);
        width: 4px;
        height: 0;
        background: linear-gradient(180deg, var(--primary-light), var(--primary));
        border-radius: 4px;
        transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 0 12px rgba(107, 144, 128, 0.4);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .nav-link:hover {
        color: var(--primary);
        background: linear-gradient(90deg, rgba(164, 195, 178, 0.08) 0%, rgba(164, 195, 178, 0) 100%);
        padding-left: 15px;
        transform: none;
    }
    
    .nav-link:hover::before {
        height: 45px;
    }
    
    .nav-link.active {
        color: var(--primary);
        background: linear-gradient(90deg, rgba(164, 195, 178, 0.12) 0%, rgba(164, 195, 178, 0) 100%);
        padding-left: 15px;
    }
    
    .nav-link.active::before {
        height: 45px;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .about-image {
        height: 280px;
        order: -1;
    }
    
    .about-text .lead {
        font-size: 1.15rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .expertise-tags {
        gap: 10px;
    }
    
    .tag {
        font-size: 0.8rem;
        padding: 7px 14px;
    }
    
    .about-stats {
        gap: 15px;
        margin-top: 30px;
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        padding: 25px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info h2 {
        font-size: 2rem;
    }
    
    .contact-info .lead {
        font-size: 1rem;
    }
    
    .contact-methods {
        gap: 20px;
    }
    
    .contact-method {
        padding: 15px;
        background: var(--off-white);
        border-radius: 15px;
    }
    
    .method-icon {
        width: 55px;
        height: 55px;
    }
    
    .social-links {
        justify-content: center;
        gap: 20px;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-tag {
        font-size: 0.8rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .hero {
        min-height: 100svh;
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 20px;
    }
    
    .btn {
        width: 100%;
        padding: 18px 36px;
        font-size: 1.05rem;
        min-height: 56px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }
    
    .service-card {
        padding: 30px 25px;
    }
    
    .service-title {
        font-size: 1.35rem;
    }
    
    .service-icon {
        width: 65px;
        height: 65px;
    }
    
    .btn-service {
        width: 100%;
        padding: 16px 28px;
        font-size: 1rem;
        min-height: 52px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 25px;
    }
    
    .footer {
        padding: 50px 0 25px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-section h3 {
        font-size: 1.3rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .footer-section ul li a:hover {
        padding-left: 0;
    }
    
    .footer-bottom {
        padding-top: 25px;
        font-size: 0.85rem;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .form-group {
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 16px 18px;
        font-size: 1rem;
        min-height: 54px;
        border-radius: 12px;
    }
    
    .form-group textarea {
        min-height: 140px;
    }
    
    .form-group select {
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236B9080' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 15px center;
        background-size: 20px;
        padding-right: 45px;
    }
}

/* Very small mobile devices */
@media (max-width: 480px) {
    .service-icon {
        width: 60px;
        height: 60px;
    }
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.text-center {
    text-align: center;
}

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

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

.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
