@import url('https://fonts.googleapis.com/css?family=Kadwa:700|Kadwa:400');

:root {
    /* User provided variables */
    --text: #1f051a;
    --background: #D3DCD4;
    --primary: #426c53;
    --secondary: #7ab889;
    --accent: #ba7373;

    /* Mapped semantic variables for existing components */
    --bg-color: var(--background);
    --card-bg: #ffffff; /* White cards for contrast */
    --text-color: var(--text);
    --heading-color: var(--text);
    --accent-primary: var(--primary);
    --accent-secondary: var(--secondary);
    --accent-tertiary: var(--accent);
    
    --gradient-main: linear-gradient(135deg, var(--primary), var(--secondary));
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(66, 108, 83, 0.2); /* Primary color with low opacity */
    --nav-height: 80px;
}

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

html {
    font-size: 100%; /* 16px */
}

body {
    font-family: 'Kadwa', serif;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

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

h1 {
    font-size: 2.489rem; /* 39.84px */
    margin-bottom: 1.5rem;
    /* Removed gradient text for cleaner look on light theme, or keep it? User didn't specify, but standard text is safer with this palette */
    color: var(--primary); 
}

h2 {
    font-size: 2.074rem; /* 33.12px */
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

h3 { font-size: 1.728rem; }
h4 { font-size: 1.440rem; }
h5 { font-size: 1.200rem; }
small { font-size: 0.833rem; }

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: transparent;
}

header.scrolled {
    background: rgba(252, 238, 251, 0.9); /* Light background */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(66, 108, 83, 0.1);
    padding: 0.5rem 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--primary);
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700; /* Kadwa is bold by default for headings, but links should be readable */
    transition: color 0.3s ease;
    position: relative;
}

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

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

nav a:hover::after {
    width: 100%;
}

.language-toggle {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-left: 1rem;
    font-family: 'Kadwa', serif;
}

.language-toggle:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px rgba(66, 108, 83, 0.3);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
}

/* Dynamic Background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(122, 184, 137, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(186, 115, 115, 0.2) 0%, transparent 50%);
    z-index: -1;
    animation: pulseBg 10s infinite alternate;
}

@keyframes pulseBg {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
    z-index: 1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: var(--text-color);
}

.cta-button {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: 'Kadwa', serif;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(66, 108, 83, 0.3);
}

.cta-button:hover::before {
    opacity: 1;
}

/* Visual Navigation (Ryzon Style) */
.visual-nav {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.nav-row {
    display: flex;
    width: 100%;
    height: 600px; /* Fixed height for rows */
    overflow: hidden;
}

.nav-row.full {
    height: 700px; /* Taller for full width */
}

.nav-item {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    text-decoration: none;
    color: white;
}

.nav-row.split .nav-item {
    width: 50%;
}

.nav-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 3rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 2;
    transition: all 0.3s ease;
}

.nav-item:hover .nav-image {
    transform: scale(1.05);
}

.nav-item h2 {
    font-size: 2.5rem;
    margin: 0;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    font-family: 'Kadwa', serif;
    text-align: left;
    transform: none;
    left: auto;
    display: block;
    position: relative;
}

.nav-item h2::after {
    display: none; /* Remove the underline from standard h2 */
}

.nav-arrow {
    font-size: 2rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.4s ease;
    color: var(--accent);
}

.nav-item:hover .nav-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Responsive Visual Nav */
@media (max-width: 768px) {
    .nav-row {
        flex-direction: column;
        height: auto;
    }

    .nav-row.split .nav-item {
        width: 100%;
        height: 400px; /* Fixed height for mobile items */
    }

    .nav-row.full {
        height: 400px;
    }

    .nav-item h2 {
        font-size: 1.8rem;
    }
}

/* Contact Section Adjustments */
.contact {
    padding-top: 4rem;
    background: var(--background);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-info, .contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-info h3, .contact-form h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--primary);
}

.contact-details p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.contact-details strong {
    color: var(--primary);
    margin-right: 1rem;
    min-width: 30px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.1);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(66, 108, 83, 0.3);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--background);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    color: var(--text-color);
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 15px rgba(66, 108, 83, 0.1);
}

.contact-form button {
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Kadwa', serif;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(66, 108, 83, 0.3);
}

/* Footer */
footer {
    background: var(--primary);
    padding: 2rem;
    text-align: center;
    border-top: none;
    color: white;
}

/* Loading Screen */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(66, 108, 83, 0.1);
    border-top: 3px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

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

    nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(252, 238, 251, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    nav ul.active {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .about-content, .contact-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 4rem 1.5rem;
    }
}