/* CSS Reset and Variable Declarations */
:root {
    --primary-color: #03594E; /* Custom Teal/Green (80% weight) */
    --primary-dark: #023d35; /* Dark teal/green */
    --primary-light: #e6f2f0; /* Soft mint teal light background */
    --accent-color: #f1b814; /* Warm yellow/gold (20% weight) */
    --accent-hover: #d19e0d; /* Darker yellow/gold */
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --bg-main: #f4f7f5; /* Light greenish-grey tint */
    --bg-card: #ffffff;
    --border-color: #cbd5e1;
    --border-focus: #03594E;
    --error-color: #dc2626;
    --success-color: #16a34a;
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(9, 58, 125, 0.05), 0 4px 6px -2px rgba(9, 58, 125, 0.02);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', var(--font-sans);
    
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 16px;
    --border-radius-full: 9999px;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Navbar */
.navbar {
    background-color: var(--bg-card);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar-container {
    height: 80px;
    display: flex;
    align-items: center;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-image {
    flex-shrink: 0;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.org-name-primary {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.org-name-secondary {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 0.05em;
    margin-top: 2px;
}

/* Hero Banner Section */
.hero-banner {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.1;
    margin-bottom: 15px;
}

.hero-divider {
    width: 65px;
    height: 4px;
    background-color: var(--accent-color);
    margin-bottom: 24px;
    border-radius: var(--border-radius-full);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
}

.hero-illustrations {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Intersecting design circles in hero background */
.hero-illustrations::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    border: 1px dashed rgba(241, 184, 20, 0.25); /* yellow dashed circle */
    border-radius: var(--border-radius-full);
    pointer-events: none;
}

.hero-illustrations::after {
    content: '';
    position: absolute;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-full);
    pointer-events: none;
}

.hero-logo-container {
    position: relative;
    width: 170px;
    height: 170px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 4px solid var(--accent-color);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 30px rgba(241, 184, 20, 0.3);
    z-index: 2;
    animation: logo-pulse 3s ease-in-out infinite alternate;
}

.hero-large-logo {
    width: 82%;
    height: 82%;
    object-fit: contain;
}

@keyframes logo-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 20px rgba(241, 184, 20, 0.2);
    }
    100% {
        transform: scale(1.04);
        box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2), 0 0 45px rgba(241, 184, 20, 0.55);
    }
}

.floating-icon-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.floating-icon {
    position: absolute;
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.15);
    transition: var(--transition-normal);
    font-size: 20px;
    pointer-events: auto;
}

.floating-icon:hover {
    color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(241, 184, 20, 0.5);
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.15);
}

/* Floating Animations */
.icon-phone {
    top: 20%;
    left: 10%;
    animation: float-slow 6s ease-in-out infinite alternate;
}

.icon-email {
    bottom: 15%;
    right: 10%;
    animation: float-medium 5s ease-in-out infinite alternate;
}

.icon-web {
    top: 15%;
    right: 20%;
    animation: float-fast 4s ease-in-out infinite alternate;
}

@keyframes float-slow {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-15px) rotate(5deg); }
}

@keyframes float-medium {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-20px) rotate(-8deg); }
}

@keyframes float-fast {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-12px) rotate(12deg); }
}

/* Contact Cards Section */
.contact-details-section {
    padding: 60px 0;
    margin-top: -30px;
    position: relative;
    z-index: 10;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.details-card {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-md);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.details-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(9, 58, 125, 0.1);
}

.card-icon-container {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius-full);
    background-color: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition-normal);
    font-size: 24px;
}

.details-card:hover .card-icon-container {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: rotateY(180deg);
}

.details-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.card-info {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.6;
}

.card-info a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.closed-tag {
    color: var(--text-light);
    font-size: 0.85rem;
    font-style: italic;
    display: block;
    margin-top: 4px;
}

/* Form and Map Layout Section */
.form-map-section {
    padding: 0 0 80px 0;
}

.form-map-container {
    background-color: var(--bg-card);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.04);
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    overflow: hidden;
}

.form-column {
    padding: 56px;
    border-right: 1px solid var(--border-color);
}

.map-column {
    padding: 56px;
    background-color: #fcfdfe;
    display: flex;
    flex-direction: column;
}

.form-column h2, .map-column h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 36px;
    position: relative;
}

/* Left alignment borders under section titles */
.form-column h2::after, .map-column h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: var(--border-radius-full);
}

/* Modern Floating Label Inputs */
.form-row-double {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    position: relative;
    margin-bottom: 28px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 16px;
    font-size: 0.95rem;
    font-family: var(--font-sans);
    color: var(--text-main);
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    outline: none;
    transition: var(--transition-fast);
}

.form-group textarea {
    resize: none;
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 16px;
    font-size: 0.95rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: var(--transition-fast);
    background-color: transparent;
}

/* Input states for float action */
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--border-focus);
    background-color: #ffffff;
    box-shadow: 0 0 0 4px var(--primary-light);
}

/* Match sibling when active or typing */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    background-color: #ffffff;
    padding: 0 6px;
    border-radius: 4px;
}

/* Validation states */
.form-group.invalid input, .form-group.invalid textarea {
    border-color: var(--error-color);
    background-color: #fffafb;
}

.form-group.invalid label {
    color: var(--error-color);
}

.form-group.invalid input:focus, .form-group.invalid textarea:focus {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.error-msg {
    position: absolute;
    left: 0;
    bottom: -20px;
    font-size: 0.75rem;
    color: var(--error-color);
    font-weight: 600;
    display: none;
}

.form-group.invalid .error-msg {
    display: block;
}

/* Buttons Styling */
.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 16px 36px;
    font-size: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: var(--shadow-md);
}

.arrow-icon {
    transition: var(--transition-fast);
}

.btn-primary:hover .arrow-icon {
    transform: translateX(5px);
}

.btn-secondary {
    border: 2px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: var(--border-radius-sm);
    padding: 14px 28px;
    font-size: 0.95rem;
    font-family: var(--font-heading);
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-fast);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    box-shadow: var(--shadow-md);
}

.btn-map-icon {
    flex-shrink: 0;
}

/* Map Wrapper */
.map-wrapper {
    flex-grow: 1;
    min-height: 320px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

/* Toast System */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.toast {
    min-width: 300px;
    max-width: 420px;
    padding: 16px 20px;
    background-color: #ffffff;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 14px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-success {
    border-left-color: var(--success-color);
}

.toast-error {
    border-left-color: var(--error-color);
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    color: var(--success-color);
}

.toast-error .toast-icon {
    color: var(--error-color);
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 2px;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0 4px;
}

.toast-close:hover {
    color: var(--text-main);
}

/* Responsive Rules */
@media (max-width: 1024px) {
    .details-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .form-map-container {
        grid-template-columns: 1fr;
    }
    
    .form-column {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 40px;
    }
    
    .map-column {
        padding: 40px;
    }
    
    .map-wrapper {
        min-height: 360px;
    }
}

@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .hero-divider {
        margin: 0 auto 24px auto;
    }
    
    .hero-subtitle {
        margin: 0 auto;
    }
    
    .hero-illustrations {
        height: 240px;
    }
    
    .hero-illustrations::before {
        width: 250px;
        height: 250px;
    }
    
    .hero-illustrations::after {
        width: 160px;
        height: 160px;
    }
    
    .hero-logo-container {
        width: 130px;
        height: 130px;
    }
    
    .floating-icon {
        width: 46px;
        height: 46px;
        font-size: 16px;
    }
    
    .icon-phone {
        top: 12%;
        left: 18%;
    }
    
    .icon-email {
        bottom: 12%;
        right: 18%;
    }
    
    .icon-web {
        top: 15%;
        right: 28%;
    }
    
    .form-row-double {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        height: auto;
        padding: 16px 20px;
    }
    
    .logo-group {
        gap: 12px;
    }
    
    .logo-image {
        width: 42px;
        height: 42px;
    }
    
    .org-name-primary {
        font-size: 0.95rem;
    }
    
    .org-name-secondary {
        font-size: 0.75rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
    
    .form-column, .map-column {
        padding: 24px;
    }
    
    .form-column h2, .map-column h2 {
        font-size: 1.6rem;
    }
    
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
    
    .btn-secondary {
        width: 100%;
    }
    
    .toast-container {
        left: 20px;
        right: 20px;
        bottom: 20px;
    }
    
    .toast {
        min-width: 100%;
    }
}

/* Floating WhatsApp Button */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
    z-index: 999;
    transition: var(--transition-normal);
    font-size: 32px;
}

.floating-whatsapp:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
    background-color: #20ba5a;
}

.center-container {
    display: flex;
    justify-content: center; /* Horizontal center */
    align-items: center;     /* Vertical center */
    min-height: 100vh;       /* Full viewport height */
}

.details-card {
    text-align: center;
}
