/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --primary-color: #149346;
    --primary-color-hover: #107a39;
    --secondary-color: #EEeff0;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --border-color: #e2e2e2;
    
    --font-primary: "Ibrand Regular", "Helvetica Neue", Arial, sans-serif;
    --font-secondary: "Microsoft Sans Serif", "Helvetica Neue", Arial, sans-serif;
    
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    
    --header-height: 80px;
}

/* ==========================================================================
   Fonts
   ========================================================================== */
@font-face {
    font-family: 'Ibrand Regular';
    src: url('../assets/fonts/ibrand.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

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

body {
    font-family: var(--font-secondary);
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: normal; /* Adjust based on Ibrand font characteristics */
}

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

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

ul {
    list-style: none;
}

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

/* ==========================================================================
   Layout & Utility Classes
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--secondary-color);
}

.center {
    text-align: center;
}

.section-header {
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 4px;
    font-family: var(--font-secondary);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

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

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

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

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

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all var(--transition-fast);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.site-logo {
    height: 48px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

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

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

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

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

.hamburger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger-menu .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-primary);
    transition: all 0.3s ease-in-out;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background-color: var(--secondary-color);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.abstract-shape {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background-color: var(--primary-color);
    opacity: 0.1;
    border-radius: 50%;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-image-placeholder {
    width: 100%;
    aspect-ratio: 1/1;
    background-color: var(--bg-white);
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.abstract-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(20, 147, 70, 0.1), transparent);
}

/* ==========================================================================
   Platform Section
   ========================================================================== */
.platform-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.platform-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.card-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-size: 1.5rem;
    line-height: 1;
    top: -2px;
}

/* ==========================================================================
   Experience Section
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-block {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-text {
    color: var(--text-secondary);
}

/* ==========================================================================
   Vision & Mission Section
   ========================================================================== */
.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.vm-block {
    padding: 3rem;
    background-color: var(--bg-white);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.vm-title {
    font-size: 1rem;
    color: var(--primary-color);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.vm-statement {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.vm-text {
    color: var(--text-secondary);
}

/* ==========================================================================
   Values Section
   ========================================================================== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-block {
    background-color: var(--bg-white);
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.value-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.value-text {
    color: var(--text-secondary);
}

/* ==========================================================================
   Spirit Section
   ========================================================================== */
.spirit-content {
    max-width: 800px;
    margin: 0 auto;
}

.spirit-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.spirit-words {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.spirit-word {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    color: var(--primary-color);
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    border-radius: 4px;
}

/* ==========================================================================
   Why Section
   ========================================================================== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.why-block {
    padding: 2rem;
    background-color: var(--bg-white);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.why-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.why-text {
    color: var(--text-secondary);
}

/* ==========================================================================
   Trust Section
   ========================================================================== */
.trust-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
    background-color: var(--primary-color);
    color: var(--bg-white);
    border-radius: 8px;
}

.trust-content .section-title {
    color: var(--bg-white);
}

.trust-text {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.contact-info-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.contact-info-title {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.contact-info-detail {
    font-weight: 600;
    font-size: 1.125rem;
}

.contact-cta {
    background-color: var(--bg-white);
    padding: 4rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.cta-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-text {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: #111;
    color: var(--bg-white);
    padding-top: 5rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 48px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1); /* Ensure it looks good on dark bg if it's a dark logo */
}

.footer-desc {
    color: #999;
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-heading {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #999;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    background-color: #0a0a0a;
    padding: 1.5rem 0;
    text-align: center;
    color: #666;
    font-size: 0.875rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .fade-in-section {
        transition: none;
        opacity: 1;
        transform: none;
    }
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
/* Desktop 1024px to 1280px */
@media (max-width: 1280px) {
    .hero-title {
        font-size: 3rem;
    }
}

/* Tablet Landscape */
@media (max-width: 1024px) {
    section {
        padding: 5rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-text {
        font-size: 1.125rem;
    }
    
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

/* Tablet Portrait */
@media (max-width: 912px) {
    .hero-container,
    .about-container,
    .platform-grid,
    .vm-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-image-placeholder,
    .about-image-placeholder {
        aspect-ratio: 16/9;
    }
    
    .features-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Navigation & Layout */
@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .desktop-only {
        display: none;
    }
    
    .hamburger-menu {
        display: block;
        z-index: 1001;
    }
    
    .hamburger-menu.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger-menu.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-menu.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-white);
        flex-direction: column;
        justify-content: center;
        transition: left var(--transition-fast);
        z-index: 1000;
    }
    
    .main-nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .nav-link {
        font-size: 1.5rem;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .spirit-words {
        flex-direction: column;
        gap: 1rem;
    }
    
    .trust-content {
        padding: 3rem 2rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* Small Mobile */
@media (max-width: 430px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .platform-card {
        padding: 2rem;
    }
}
