/* 
  Theme: Organic Soft-Tech
  Colors: Primary #004A7F, Secondary #E0F2F7, Accent #28B4C6
  Fonts: Primary 'Inter', Secondary 'Lora'
*/

:root {
    --color-primary: #004A7F;
    --color-secondary: #E0F2F7;
    --color-accent: #28B4C6;
    --color-text-dark: #111111;
    --color-text-light: #555555;
    --color-white: #FFFFFF;
    --color-bg-light: #F2F7F9;
    
    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Lora', serif;
    
    --border-radius-sm: 12px;
    --border-radius-md: 20px;
    --border-radius-lg: 30px;
    --border-radius-pill: 50px;
    
    --shadow-soft: 0 8px 24px rgba(0, 74, 127, 0.08);
    --shadow-hover: 0 12px 32px rgba(0, 74, 127, 0.15);
    
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

h1, h2, h3, h4, h5, h6, .hero-title, .section-title, nav, .btn {
    font-family: var(--font-primary);
    color: var(--color-primary);
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

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

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

/* Page Container (MANDATORY) */
.page-container, #page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

@media (min-width: 768px) {
    .page-container, #page {
        padding: 1.5rem 2rem;
    }
}

main {
    flex: 1;
}

/* Typography Scale */
.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-dark);
    margin-bottom: 2rem;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--color-primary);
}

/* Buttons (Organic Soft-Tech Style) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: var(--border-radius-pill);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 15px rgba(0, 74, 127, 0.3);
}

.btn-primary:hover {
    background-color: #003865;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 74, 127, 0.4);
    color: var(--color-white);
}

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

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

.btn-white {
    background-color: var(--color-white);
    color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

/* Navbar (Floating/Soft Style) */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-pill);
    padding: 0.5rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(0, 74, 127, 0.05);
    position: sticky;
    top: 1rem;
    z-index: 100;
    border: 1px solid rgba(224, 242, 247, 0.5);
}

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

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    background: transparent !important;
    object-fit: contain;
    max-height: 40px;
    width: auto;
    height: auto;
    display: block;
    z-index: 10;
}

@media (min-width: 768px) {
    .logo {
        max-height: 48px;
    }
}

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

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    color: var(--color-text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
    border-radius: 2px;
}

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

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

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile Menu Active State */
.nav-links.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    margin-top: 10px;
    gap: 1.5rem;
}

/* Hero Section (Index - Matching Mockup) */
.hero-section {
    background: linear-gradient(135deg, var(--color-secondary) 0%, rgba(255,255,255,0) 100%);
    border-radius: 40px;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

/* Organic shape overlay */
.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1440 100" xmlns="http://www.w3.org/2000/svg"><path fill="%23FFFFFF" d="M0,50 C320,150 420,-50 1440,50 L1440,100 L0,100 Z"></path></svg>') no-repeat bottom;
    background-size: cover;
    z-index: 1;
}

@media (min-width: 992px) {
    .hero-section {
        flex-direction: row;
        padding: 6rem 4rem;
        justify-content: space-between;
    }
}

.hero-content {
    flex: 1;
    max-width: 500px;
    position: relative;
    z-index: 2;
}

.hero-image-wrapper {
    flex: 1;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

/* Organic image mask matching mockup */
.hero-img {
    width: 100%;
    max-width: 450px;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    box-shadow: var(--shadow-soft);
    animation: morph 8s ease-in-out infinite;
    object-fit: cover;
}

@keyframes morph {
    0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
    34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
    67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
}

/* Features Section */
.features-section {
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background: var(--color-white);
    border-radius: var(--border-radius-md);
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(224, 242, 247, 0.5);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    background-color: var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--color-white);
    font-size: 1.8rem;
}

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

.feature-desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* Content Section (Discover Difference) */
.content-section {
    background: linear-gradient(to right, var(--color-secondary), rgba(224, 242, 247, 0.3));
    border-radius: var(--border-radius-lg);
    padding: 4rem 2rem;
    margin-bottom: 4rem;
}

.content-flex {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .content-flex {
        flex-direction: row;
    }
}

.content-image-wrapper {
    flex: 1;
}

.content-img {
    border-radius: 50% 20% / 10% 40%;
    box-shadow: var(--shadow-soft);
    width: 100%;
    max-width: 500px;
}

.content-text {
    flex: 1;
}

.content-text p {
    color: var(--color-text-dark);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary) 100%);
    border-radius: var(--border-radius-lg);
    padding: 4rem 2rem;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--color-white);
}

.cta-title {
    color: var(--color-white);
    margin-bottom: 1rem;
}

.cta-desc {
    color: rgba(255,255,255,0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section (Home) */
.contact-section {
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-lg);
    padding: 4rem 2rem;
    margin-bottom: 4rem;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-container {
        flex-direction: row;
        align-items: flex-start;
    }
}

.contact-form-wrapper {
    flex: 2;
    background: var(--color-white);
    padding: 2rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 576px) {
    .form-row {
        flex-direction: row;
    }
}

.form-input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #E0E0E0;
    border-radius: var(--border-radius-pill);
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-smooth);
    background-color: #FAFAFA;
}

textarea.form-input {
    border-radius: var(--border-radius-md);
    resize: vertical;
}

.form-input:focus {
    border-color: var(--color-accent);
    background-color: var(--color-white);
}

.full-width {
    margin-bottom: 1rem;
}

.submit-btn {
    width: 100%;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    font-size: 0.95rem;
}

.info-item strong {
    color: var(--color-primary);
    font-family: var(--font-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.info-item a {
    color: var(--color-text-dark);
}

.info-item a:hover {
    color: var(--color-accent);
}

/* Footer */
.footer {
    background-color: var(--color-white);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--color-secondary);
    margin-top: auto;
}

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

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-logo {
    max-height: 44px;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: var(--color-text-light);
    max-width: 300px;
}

.footer h4 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.footer-nav a {
    color: var(--color-text-light);
}

.footer-nav a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-icons a:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--color-secondary);
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Content Images (No Shadows) */
img[src*="IMAGE_PLACEHOLDER"] {
    box-shadow: none !important;
    filter: none !important;
}