:root {
    --bg-color: #F8F7F3;
    --text-color: #2C352D;
    --primary-color: #384A3B;
    --accent-color: #C0A080;
    --white: #FFFFFF;
    --border-color: #E2DFD8;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

/* Core Base Styles */

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 500;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #4A554C;
}

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

/* Layout */
.section-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 5rem 2rem;
}

/* Navbar */
.navbar {
    background-color: rgba(248, 247, 243, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    padding: 1.2rem 5%;
    transition: var(--transition);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

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

.btn-nav {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 30px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1;
}

.btn-nav:hover {
    background-color: var(--text-color);
}

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

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
    transform-origin: center;
}

/* Hamburger active transformation (forming an 'X') */
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

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

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 6rem 5% 0;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    padding-right: 3rem;
}

.btn-primary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    margin-top: 1rem;
    border: 1px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent-color);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    width: 100%;
}

.image-placeholder {
    width: 100%;
    max-width: 500px;
    height: 600px;
    background-image: linear-gradient(135deg, rgba(56, 74, 59, 0.35), rgba(87, 111, 90, 0.35)), url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    border-radius: 20px 100px 20px 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

/* About */
.about {
    background-color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

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

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

.about-card {
    padding: 2.5rem;
    background-color: var(--bg-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Services */
.services {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

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

.service-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* Process Section */
.process {
    background-color: #F8F5F0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.process-header {
    text-align: center;
    margin-bottom: 4rem;
}

.process-header h2 {
    font-size: 2.5rem;
    color: #4A5D4E;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.script-font {
    font-family: 'Dancing Script', cursive;
    font-size: 4.5rem;
    color: #4A5D4E;
    text-transform: none;
    display: block;
    margin-top: -1.5rem;
}


.process-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    width: 100%;
}

.process-card {
    flex: 0 0 calc(20% - 1.2rem);
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    position: relative;
    overflow: visible;
}

/* Decorative Leaf Branding on Cards */
.process-card::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="none" stroke="%23A3B5A6" stroke-width="1.5" xmlns="http://www.w3.org/2000/svg"><path d="M12 2L12 22"/><path d="M12 2C8 2 4 6 4 10C4 14 12 22 12 22C12 22 20 14 20 10C20 6 16 2 12 2Z"/></svg>');
    opacity: 0.6;
    z-index: 0;
}

/* Connection S-Curve */
.process-connection {
    flex: 0 0 100%;
    height: 80px;
    margin: 10px 0;
}

.s-curve-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Elegant right arrows between horizontal cards */
.process-card:not(:nth-child(5)):not(:last-child)::after {
    content: '→';
    position: absolute;
    top: 50%;
    right: -1.2rem;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 1.5rem;
    z-index: 2;
    opacity: 0.6;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.process-number {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-color);
    opacity: 0.1;
    line-height: 1;
    z-index: 0;
}

.process-icon-svg {
    width: 36px;
    height: 36px;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.process-card h3 {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.process-divider {
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
    margin: 0.5rem 0;
    position: relative;
    z-index: 1;
}

.process-card p {
    font-size: 0.8rem;
    color: var(--text-color);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
    line-height: 1.4;
}

.process-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.6);
}


/* Contact */
.contact {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 6rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact h2 {
    color: var(--white);
    text-align: left;
}

.contact p {
    color: #A3B5A6;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-form-wrapper {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 16px;
    color: var(--text-color);
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.required {
    color: #D32F2F;
    margin-left: 2px;
}

.optional {
    color: #8C998F;
    font-size: 0.85em;
    font-weight: 400;
    margin-left: 4px;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background-color: var(--bg-color);
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(192, 160, 128, 0.2);
}

.btn-submit {
    width: 100%;
    background-color: var(--accent-color);
    color: var(--white);
    padding: 1rem;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: #a88a6d;
}

.form-message {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    display: none;
}

.form-message.success {
    display: block;
    color: #2E7D32;
}

.form-message.error {
    display: block;
    color: #D32F2F;
}

/* Footer */
footer {
    background-color: #1A241C;
    color: #8C998F;
    text-align: center;
    padding: 3rem 2rem;
}

.footer-logo {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Responsive */

/* Tablet & Smaller Laptops: 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .process-card {
        flex: 0 0 calc(33.333% - 1.2rem);
        aspect-ratio: 1 / 1;
    }

    .process-connection {
        display: none !important;
    }

    /* Reset arrows to point right */
    .process-card::after {
        content: '→' !important;
        position: absolute !important;
        top: 50% !important;
        right: -1.2rem !important;
        bottom: auto !important;
        left: auto !important;
        transform: translateY(-50%) !important;
        display: block !important;
    }

    /* Hide arrows on the 3rd column of each row */
    .process-card:nth-child(3)::after,
    .process-card:nth-child(7)::after,
    .process-card:nth-child(10)::after {
        display: none !important;
    }
}

/* Medium Devices (stacked Hero & Contact): max-width: 900px */
@media (max-width: 900px) {

    .contact-container,
    .hero {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .hero-content {
        padding-right: 0;
        text-align: center;
        margin-bottom: 2rem;
    }

    .hero {
        padding-top: 8rem;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    h1 {
        font-size: 2.8rem;
    }

    .hero-image {
        width: 100%;
        margin-top: 1.5rem;
    }

    .image-placeholder {
        display: block;
        width: 100%;
        max-width: 500px;
        height: 380px;
        min-height: 380px;
        border-radius: 20px 20px 20px 20px;
        margin: 0 auto;
    }
}

/* Small Devices (Mobile & Tablets): max-width: 768px */
@media (max-width: 768px) {
    .services-list {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 2rem 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        gap: 1.5rem;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .process-grid {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        /* Space to fit downward indicators */
    }

    .process-card {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
        aspect-ratio: auto;
        padding: 2rem;
    }

    .process-connection {
        display: none !important;
    }

    /* Hide horizontal arrows on mobile */
    .process-card::after {
        display: none !important;
    }

    /* Stack arrows pointing downwards */
    .process-card:not(:last-child)::after {
        display: block !important;
        content: '↓' !important;
        position: absolute !important;
        bottom: -2.2rem !important;
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        transform: translateX(-50%) !important;
        font-size: 1.5rem;
        color: var(--accent-color);
        opacity: 0.8;
    }
}

/* Accessibility: Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 2000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* Footer Additions */
.footer-contact {
    margin: 1rem 0;
    color: #A3B5A6;
}

.trust-badges {
    margin: 1.5rem 0;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.trust-badges span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--accent-color);
    margin: 0 0.5rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Ensure minimum touch target for nav links */
.nav-links a {
    padding: 10px;
    display: inline-block;
}

/* ==========================================================================
   Ultra-Wide Screens (2K and 4K)
   ========================================================================== */

/* 2K Screens */
@media (min-width: 1800px) {
    html {
        font-size: 18px;
        /* Scales layout and fonts up by 12.5% */
    }

    .section-container,
    .hero,
    .navbar-container {
        max-width: 1600px;
    }

    .image-placeholder {
        max-width: 600px;
        height: 680px;
    }
}

/* 4K Screens */
@media (min-width: 2500px) {
    html {
        font-size: 22px;
        /* Scales layout and fonts up by 37.5% */
    }

    .section-container,
    .hero,
    .navbar-container {
        max-width: 2000px;
    }

    .image-placeholder {
        max-width: 750px;
        height: 800px;
    }

    .about-card {
        padding: 3.5rem;
    }

    .contact-container {
        max-width: 1500px;
    }

    .contact-form-wrapper {
        padding: 4.5rem;
    }
}