/* ===== AcmeCorp — Professional Corporate Styles ===== */

:root {
    --navy:      #0b1f3a;
    --navy-2:    #102a4c;
    --accent:    #2563eb;
    --accent-2:  #38bdf8;
    --ink:       #0f172a;
    --muted:     #5b6b82;
    --line:      #e2e8f0;
    --bg:        #ffffff;
    --bg-alt:    #f5f8fc;
    --bg-dark:   #0b1f3a;
    --white:     #ffffff;
    --radius:    16px;
    --radius-sm: 10px;
    --shadow:    0 10px 40px -12px rgba(11, 31, 58, 0.18);
    --shadow-sm: 0 4px 16px -6px rgba(11, 31, 58, 0.12);
    --maxw:      1200px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    background: var(--accent);
    color: var(--white);
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px -8px rgba(37,99,235,0.5); }
.btn-sm { padding: 9px 20px; font-size: 0.875rem; }
.btn-ghost { background: transparent; color: var(--white); border: 1.5px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.btn-block { width: 100%; }

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.navbar.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo {
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--navy);
}
.logo-mark { color: var(--accent); }
.logo-accent { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a:not(.btn) {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s;
}
.nav-links a:not(.btn):hover { color: var(--navy); }

/* Dropdown caret */
.caret {
    font-size: 0.7rem;
    transition: transform 0.3s;
    display: inline-block;
}

/* ===== Nav Dropdown (desktop hover) ===== */
.nav-dropdown {
    position: relative;
}
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    padding: 8px;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
    z-index: 50;
}
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px; height: 12px;
    background: var(--bg);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown:hover .caret {
    transform: rotate(180deg);
}
.dropdown-menu a {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem !important;
    font-weight: 500;
    color: var(--muted) !important;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.dropdown-menu a:hover {
    background: var(--bg-alt);
    color: var(--navy) !important;
}
.dd-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 140px 0 80px;
    background:
        linear-gradient(135deg, rgba(11,31,58,0.88) 0%, rgba(16,42,76,0.82) 100%),
        url('hero-bg.png')
        center / cover no-repeat;
    overflow: hidden;
    color: var(--white);
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: center;
    position: relative;
    z-index: 1;
}
.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    background: rgba(37,99,235,0.08);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
}
.eyebrow.light { color: var(--accent-2); background: rgba(56,189,248,0.15); }
.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    line-height: 1.1;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}
.grad {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.lead {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    max-width: 560px;
    margin-bottom: 32px;
}
.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.hero-stats {
    display: flex;
    gap: 48px;
    border-top: 1px solid var(--line);
    padding-top: 28px;
}
.hero-stats {
    border-top-color: rgba(255,255,255,0.15);
}
.hero-stats strong {
    display: block;
    font-size: 1.6rem;
    color: var(--white);
}
.hero-stats span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
}

/* Hero visual */
.hero-visual { position: relative; }
.glass {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.6);
    box-shadow: var(--shadow);
}
.hero-card {
    border-radius: var(--radius);
    padding: 28px;
}
.card-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 20px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.green { background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,0.15); }
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 160px;
    margin-bottom: 24px;
}
.bar {
    flex: 1;
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    border-radius: 6px 6px 0 0;
    opacity: 0.85;
    transition: opacity 0.3s;
}
.bar:hover { opacity: 1; }
.card-foot {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}
.card-foot small { display: block; color: var(--muted); font-size: 0.8rem; }
.card-foot strong { color: var(--navy); }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-cta { background: var(--bg-dark); color: var(--white); }
.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}
.section-head h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--navy);
    margin-bottom: 16px;
}
.section-head .sub, .section-cta .sub { color: var(--muted); font-size: 1.1rem; }
.section-cta .sub.light, .section-cta h2 { color: var(--white); }
.section-cta .sub { color: rgba(255,255,255,0.7); }

/* ===== Grid & Cards ===== */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: rgba(37,99,235,0.3);
}
.service .icon {
    font-size: 2rem;
    margin-bottom: 16px;
    width: 56px; height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border-radius: var(--radius-sm);
}
.service h3 {
    font-size: 1.2rem;
    color: var(--navy);
    margin-bottom: 10px;
}
.service p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.2s;
}

/* ===== About ===== */
.about-inner {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
    align-items: center;
}
.about-visual { position: relative; }
.about-img {
    height: 120px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 100%);
    box-shadow: var(--shadow);
}
.about-badge {
    position: absolute;
    top: 24px; left: -20px;
    background: var(--bg);
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    color: var(--accent);
    box-shadow: var(--shadow);
    z-index: 1;
}
.about-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    color: var(--navy);
    margin-bottom: 20px;
}
.about-content p { color: var(--muted); margin-bottom: 24px; }
.check-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 14px;
    color: var(--ink);
}
.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    width: 22px; height: 22px;
    background: rgba(37,99,235,0.1);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

/* ===== Testimonials ===== */
.quote blockquote {
    font-size: 1.05rem;
    color: var(--ink);
    margin: 16px 0 24px;
    line-height: 1.6;
    font-style: italic;
}
.stars { color: #f59e0b; font-size: 1rem; letter-spacing: 2px; }
.quote figcaption {
    display: flex;
    align-items: center;
    gap: 14px;
}
.avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}
.quote figcaption strong { display: block; color: var(--navy); }
.quote figcaption span { color: var(--muted); font-size: 0.85rem; }

/* ===== CTA / Contact ===== */
.cta-inner {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 64px;
    align-items: center;
}
.cta-points {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
    color: rgba(255,255,255,0.85);
}
.cta-points div { font-size: 0.95rem; }
.contact-form {
    border-radius: var(--radius);
    padding: 36px;
}
.contact-form h3 {
    color: var(--navy);
    margin-bottom: 24px;
    font-size: 1.3rem;
}
.field { margin-bottom: 18px; }
.field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}
.field input, .field textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--bg);
    transition: border-color 0.2s;
    resize: vertical;
}
.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.form-note {
    margin-top: 12px;
    font-size: 0.85rem;
    color: #22c55e;
    text-align: center;
    min-height: 1.2em;
}

/* ===== Form Status Banner (PHP redirect) ===== */
.form-banner {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 16px;
    animation: fadeIn 0.3s ease;
}
.form-banner.success {
    background: rgba(34,197,94,0.12);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,0.3);
}
.form-banner.error {
    background: rgba(239,68,68,0.12);
    color: #ef4444;
    border: 1px solid rgba(239,68,68,0.3);
}
@keyframes fadeIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

/* ===== Footer ===== */
.footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 64px 0 0; }
.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 48px;
    padding-bottom: 48px;
}
.footer-brand .logo { color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 0.95rem; }
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.footer-cols h4 {
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 16px;
}
.footer-cols a {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 10px;
    transition: color 0.2s;
}
.footer-cols a:hover { color: var(--white); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}
.social { display: flex; gap: 24px; }
.social a:hover { color: var(--white); }

/* ===== Reveal animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .hero-inner, .about-inner, .cta-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
    .nav-links {
        position: fixed;
        top: 72px; left: 0; right: 0;
        flex-direction: column;
        background: var(--bg);
        padding: 24px;
        gap: 18px;
        box-shadow: var(--shadow);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        align-items: stretch;
    }
    .nav-links.open { transform: translateY(0); }
    .nav-links .btn { width: 100%; }
    .nav-toggle { display: flex; }

    /* Mobile dropdown: expand inline instead of floating */
    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        padding: 0 0 8px 16px;
        min-width: 0;
        background: transparent;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    .dropdown-menu::before { display: none; }
    .nav-dropdown.open .dropdown-menu { max-height: 400px; }
    .dropdown-menu a {
        padding: 10px 12px;
        border-radius: 8px;
        background: var(--bg-alt);
        margin-bottom: 4px;
    }
    .dropdown-toggle { cursor: pointer; }

    .hero { padding: 120px 0 60px; }
    .hero-stats { flex-wrap: wrap; gap: 24px; }
    .section { padding: 70px 0; }
    .grid-3 { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom .container { flex-direction: column; gap: 12px; }
}
