/* ===================================
   CSS Reset and Base Styles
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Professional Pastel Palette - Earthy & Elegant */
    --primary-color: #A8B88B;
    /* Soft Sage Green - Darker for better contrast */
    --secondary-color: #D4A5A5;
    /* Dusty Rose */
    --accent-color: #E8C4A8;
    /* Warm Terracotta */
    --highlight-color: #C4D4B0;
    /* Light Sage */
    --dark-color: #5A6650;
    /* Deep Olive */
    --light-color: #F9F7F4;
    /* Warm White */
    --white: #FFFFFF;
    --text-dark: #3D4438;
    --text-light: #6B7566;
    --success: #A8B88B;
    --error: #D9A5A5;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* Spacing */
    --section-padding: 80px 20px;
    --container-width: 1200px;

    /* Transitions */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

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

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

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

a {
    text-decoration: none;
    color: inherit;
}

/* ===================================
   Header and Navigation
   =================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: var(--transition);
}

.navbar {
    padding: 15px 0;
}

.nav-container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

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

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    margin-top: 70px;
    min-height: 90vh;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: var(--white);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
}

.hero-content {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: var(--section-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
}

.hero-image {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hero-text {
    max-width: 550px;
}

.hero-subtitle {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 15px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 56px;
    line-height: 1.2;
    color: var(--dark-color);
    margin-bottom: 25px;
    font-weight: 700;
}

.hero-description {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 35px;
    line-height: 1.8;
}

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

/* ===================================
   Buttons
   =================================== */
.btn {
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(168, 184, 139, 0.4);
}

.btn-primary:hover {
    background: #94A477;
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(168, 184, 139, 0.5);
}

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

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

/* ===================================
   Section Styles
   =================================== */
section {
    padding: var(--section-padding);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-subtitle {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 42px;
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.section-description {
    font-size: 18px;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ===================================
   About Section
   =================================== */
.about {
    background: var(--white);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: var(--white);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.badge-number {
    display: block;
    font-size: 42px;
    font-weight: 700;
    font-family: var(--font-heading);
}

.badge-text {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.about-text {
    max-width: 550px;
}

.about-description {
    font-size: 17px;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.credentials {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.credential-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.credential-icon {
    font-size: 32px;
    flex-shrink: 0;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-color);
    border-radius: 12px;
}

.credential-text h4 {
    font-size: 18px;
    color: var(--dark-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.credential-text p {
    color: var(--text-light);
    font-size: 15px;
}

/* ===================================
   Services Section
   =================================== */
.services {
    background: var(--white);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 22px;
    color: var(--dark-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* ===================================
   Process Section
   =================================== */
.process {
    background: var(--white);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 40px;
    margin-top: 50px;
    width: 100%;
    box-sizing: border-box;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    font-size: 72px;
    font-weight: 700;
    color: var(--primary-color);
    opacity: 0.7;
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 20px;
}

.step-content h3 {
    font-size: 22px;
    color: var(--dark-color);
    margin-bottom: 12px;
    font-weight: 600;
}

.step-content p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
    background: var(--white);
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.contact-content {
    display: grid;
    gap: 60px;
    width: 100%;
    box-sizing: border-box;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
}

.contact-card {
    background: var(--light-color);
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
}

.contact-card:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.contact-card:hover .contact-icon {
    color: var(--white);
}

.contact-icon {
    font-size: 42px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.contact-card h3 {
    font-size: 20px;
    color: var(--dark-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-card p {
    color: var(--text-light);
    font-size: 15px;
}

.contact-forms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
}

.form-container {
    background: var(--light-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
    box-sizing: border-box;
}

.form-container h3 {
    font-size: 24px;
    color: var(--dark-color);
    margin-bottom: 25px;
    font-weight: 600;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-color);
}

.form-group input,
.form-group textarea {
    padding: 15px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 15px;
    background: var(--white);
    transition: var(--transition);
    width: 100%;
    box-sizing: border-box;
}

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

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

.form-status {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
    display: none;
}

.form-status.success {
    background: var(--success);
    color: var(--white);
    display: block;
}

.form-status.error {
    background: var(--error);
    color: var(--white);
    display: block;
}

/* ===================================
   Footer
   =================================== */
.footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 60px 20px 30px;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.footer-content {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    box-sizing: border-box;
}

.footer-section h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 600;
}

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

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

.footer-section ul li {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li i {
    color: var(--primary-color);
    font-size: 16px;
}

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

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    box-sizing: border-box;
}

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

/* ===================================
   Back to Top Button
   =================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--dark-color);
    transform: translateY(-5px);
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 992px) {
    :root {
        --section-padding: 60px 20px;
    }

    .hero {
        flex-direction: column;
        min-height: auto;
        padding: 40px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 20px;
        order: 1;
    }

    .hero-image {
        position: relative;
        right: 0;
        top: 0;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0;
        order: 2;
        box-sizing: border-box;
    }

    .hero-image img {
        height: 400px;
    }

    .hero-text {
        max-width: 100%;
        text-align: center;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-image img {
        height: 450px;
    }

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

@media (max-width: 768px) {
    section {
        padding: 60px 15px;
    }

    .container {
        padding: 0 15px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 40px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

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

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

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

    .hero {
        padding: 20px 0;
    }

    .hero-content {
        padding: 20px 15px;
    }

    .hero-image {
        padding: 0;
        margin-top: 30px;
        width: 100%;
        max-width: 100%;
    }

    .hero-image img {
        height: 350px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-description {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

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

    .service-card {
        margin: 0 auto;
        max-width: 100%;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 30px 20px;
        width: 100%;
        max-width: 100%;
    }

    .contact-forms {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-card {
        margin: 0 auto;
        max-width: 100%;
    }

    .footer {
        padding: 50px 15px 20px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 50px 10px;
    }

    .container {
        padding: 0 10px;
    }

    .logo h1 {
        font-size: 20px;
    }

    .hero {
        padding: 15px 0;
    }

    .hero-content {
        padding: 15px 10px;
    }

    .hero-image {
        padding: 0;
        margin-top: 25px;
        width: 100%;
        max-width: 100%;
    }

    .hero-image img {
        height: 300px;
        border-radius: 15px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .hero-description {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn {
        width: 100%;
        padding: 14px 30px;
    }

    .section-title {
        font-size: 28px;
    }

    .about-image img {
        height: 350px;
    }

    .experience-badge {
        bottom: 20px;
        right: 20px;
        padding: 20px;
    }

    .badge-number {
        font-size: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-container {
        padding: 25px 15px;
    }

    .contact-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .contact-card {
        padding: 25px 20px;
    }

    .contact-forms {
        gap: 20px;
    }

    .footer {
        padding: 50px 10px 20px;
    }
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Smooth scrolling offset for fixed header */
section {
    scroll-margin-top: 70px;
}