/* ==========================================================================
   FORMODRONES - DESIGN SYSTEM (LIGHT & DARK MODE)
   Inspired by Marco Antonio's Business Card
   ========================================================================== */

/* --- DARK THEME (DEFAULT) --- */
:root, [data-theme="dark"] {
    --bg-main: #0a0e17;
    --bg-card: rgba(17, 24, 39, 0.75);
    --bg-glass: rgba(17, 24, 39, 0.7);
    --bg-input: rgba(10, 14, 23, 0.8);
    
    --primary: #d97706;          /* Gold / Amber accent from card */
    --primary-hover: #f59e0b;
    --primary-glow: rgba(217, 119, 6, 0.35);
    
    --green-accent: #22c55e;     /* Agronomic Green */
    --green-glow: rgba(34, 197, 94, 0.3);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --border-color: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(217, 119, 6, 0.3);
    
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px rgba(217, 119, 6, 0.25);
    
    --navbar-bg: rgba(10, 14, 23, 0.85);
}

/* --- LIGHT THEME --- */
[data-theme="light"] {
    --bg-main: #f4f5f7;
    --bg-card: rgba(255, 255, 255, 0.9);
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-input: #ffffff;
    
    --primary: #b45309;          /* Deep Gold for light mode contrast */
    --primary-hover: #d97706;
    --primary-glow: rgba(180, 83, 9, 0.25);
    
    --green-accent: #15803d;
    --green-glow: rgba(21, 128, 61, 0.2);
    
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dim: #64748b;
    
    --border-color: rgba(0, 0, 0, 0.1);
    --border-glow: rgba(180, 83, 9, 0.25);
    
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
    --shadow-glow: 0 0 20px rgba(180, 83, 9, 0.15);
    
    --navbar-bg: rgba(244, 245, 247, 0.9);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

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

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

.section-padding {
    padding: 5.5rem 0;
}

.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-glass);
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(217, 119, 6, 0.08);
}

.btn-glow {
    box-shadow: var(--shadow-glow);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--navbar-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon-wrap {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(217, 119, 6, 0.15);
    border: 1px solid var(--primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.logo-icon {
    width: 1.4rem;
    height: 1.4rem;
}

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

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
}

.brand-sub {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
}

.highlight {
    color: var(--primary);
}

.highlight-gold {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
}

[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }

[data-theme="light"] .sun-icon { display: none; }
[data-theme="light"] .moon-icon { display: block; }

.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-main);
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 8rem;
    padding-bottom: 5rem;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(217, 119, 6, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.1rem;
    border-radius: 9999px;
    background: rgba(217, 119, 6, 0.12);
    border: 1px solid var(--primary);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.badge-gold {
    color: var(--primary);
    font-weight: 900;
}

.hero-text h1 {
    font-size: 3.25rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.25rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-contact-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-color);
}

.c-strip-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.c-strip-item i {
    color: var(--primary);
}

.hero-image-wrapper {
    position: relative;
}

.hero-img {
    width: 100%;
    border-radius: 1.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.hero-card-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    z-index: -1;
    border-radius: 2rem;
}

.hero-float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glow);
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: var(--shadow-glass);
}

.badge-1 { top: 8%; left: -8%; animation: float 4s ease-in-out infinite; }
.badge-2 { bottom: 8%; right: -5%; animation: float 5s ease-in-out infinite reverse; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem auto;
}

.section-subtitle {
    display: block;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

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

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* 4 Pillars Section (From Business Card) */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.pillar-card {
    padding: 2.25rem 1.75rem;
    text-align: center;
    transition: all 0.3s ease;
}

.pillar-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.pillar-icon-box {
    width: 4rem;
    height: 4rem;
    border-radius: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem auto;
}

.pillar-icon-box i { width: 2rem; height: 2rem; }

.pillar-icon-box.gold {
    background: rgba(217, 119, 6, 0.15);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.pillar-icon-box.green {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green-accent);
    border: 1px solid var(--green-accent);
}

.pillar-icon-box.blue {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid #3b82f6;
}

.pillar-icon-box.teal {
    background: rgba(20, 184, 166, 0.15);
    color: #14b8a6;
    border: 1px solid #14b8a6;
}

.pillar-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.02em;
}

.pillar-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.service-img-container {
    position: relative;
    height: 210px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img {
    transform: scale(1.06);
}

.service-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    color: var(--primary);
    padding: 0.3rem 0.88rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.service-body {
    padding: 2rem;
}

.service-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(217, 119, 6, 0.12);
    border: 1px solid var(--primary);
    border-radius: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.service-body h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
}

.service-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-main);
}

.service-features i {
    color: var(--green-accent);
    width: 1.1rem;
    height: 1.1rem;
}

/* Calculator Card */
.calculator-card {
    padding: 3.5rem;
}

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

.calc-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: center;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 0.85rem;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
}

.range-slider {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.checkbox-label input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--primary);
}

.calc-result-box {
    background: var(--bg-card);
    border: 1px solid var(--border-glow);
    border-radius: 1.5rem;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-glow);
}

.calc-badge {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.price-display {
    margin: 1.5rem 0;
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 3.5rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.currency {
    font-size: 1.8rem;
    color: var(--text-main);
}

.price-note {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

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

.fleet-card {
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.fleet-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.fleet-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(217, 119, 6, 0.12);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.fleet-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.fleet-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.fleet-spec {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--green-accent);
    font-weight: 600;
}

/* FAQ Accordion */
.accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1.25rem 1.75rem;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.accordion-header i { transition: transform 0.3s ease; }

.accordion-item.active .accordion-header i {
    transform: rotate(180deg);
    color: var(--primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 1.75rem;
    color: var(--text-muted);
}

.accordion-item.active .accordion-content {
    padding: 0 1.75rem 1.5rem 1.75rem;
    max-height: 200px;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
}

.info-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.info-icon-box {
    width: 2.8rem;
    height: 2.8rem;
    background: rgba(217, 119, 6, 0.12);
    border: 1px solid var(--primary);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

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

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

.contact-form-wrapper h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Footer */
.footer {
    padding: 3.5rem 0 2.5rem 0;
    border-top: 1px solid var(--border-color);
    background: var(--bg-card);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-owner {
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

.footer-copy {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.8rem;
    height: 3.8rem;
    background: #25d366;
    color: #ffffff;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-float i { width: 2rem; height: 2rem; }

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content, .calc-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero-text h1 { font-size: 2.6rem; }
    .badge-1 { left: 0; }
    .badge-2 { right: 0; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s ease;
    }
    .nav-links.active { right: 0; }
    .mobile-toggle { display: block; }
    .hero-buttons { flex-direction: column; }
    .calculator-card { padding: 2rem 1.5rem; }
}
