/* ============================================
   PDMTI - Base Stylesheet
   Theme: Dark Navy Blue + Orange
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
    /* Primary Colors */
    --primary-blue: #0a1628;
    --primary-blue-light: #112240;
    --primary-blue-medium: #1a2d50;
    --primary-navy: #0d1b2a;

    /* Accent Colors */
    --accent-orange: #e8830c;
    --accent-orange-hover: #f59e2e;
    --accent-orange-light: rgba(232, 131, 12, 0.15);

    /* Neutral Colors */
    --white: #ffffff;
    --off-white: #f0f2f5;
    --gray-100: #e8eaed;
    --gray-200: #d1d5db;
    --gray-300: #9ca3af;
    --gray-400: #6b7280;
    --gray-500: #4b5563;
    --dark-text: #1f2937;
    --light-text: #c5cdd9;
    --muted-text: #8892a4;

    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;

    /* Spacing */
    --container-max: 1200px;
    --container-padding: 0 20px;
    --section-padding: 80px 0;

    /* Borders & Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-full: 50px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.3);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Navbar */
    --navbar-height: 72px;
}

/* --- Reset --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
    background: transparent;
}

input,
textarea,
select {
    font-family: inherit;
    outline: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* --- Container --- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--container-padding);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--accent-orange);
    color: var(--white);
    border-color: var(--accent-orange);
}

.btn-primary:hover {
    background: var(--accent-orange-hover);
    border-color: var(--accent-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 131, 12, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.btn-outline-dark {
    background: transparent;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-outline-dark:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1rem;
}

/* --- Badge --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-dark {
    background: rgba(10, 22, 40, 0.85);
    color: var(--white);
}

/* --- Section Defaults --- */
.section {
    padding: var(--section-padding);
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--gray-400);
    max-width: 600px;
    line-height: 1.7;
}

.section-title span {
    color: var(--accent-orange);
}

/* --- Utility --- */
.text-center {
    text-align: center;
}

.text-orange {
    color: var(--accent-orange);
}

.text-white {
    color: var(--white);
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-1 {
    gap: 8px;
}

.gap-2 {
    gap: 16px;
}

.gap-3 {
    gap: 24px;
}

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* ===== REUSABLE LEAD FORM (form.php) ===== */
.hero-form-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.hero-form-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 6px;
}

.hero-form-subtitle {
    font-size: 0.88rem;
    color: var(--gray-400);
    text-align: center;
    margin-bottom: 24px;
}

.hero-lead-form .form-group {
    margin-bottom: 14px;
}

.hero-lead-form .form-row {
    display: flex;
    gap: 10px;
}

.hero-lead-form .form-row .form-group {
    flex: 1;
}

.hero-lead-form input[type="text"],
.hero-lead-form input[type="email"],
.hero-lead-form input[type="tel"],
.hero-lead-form select,
.hero-lead-form .captcha-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.9rem;
    font-family: var(--font-primary);
    color: var(--dark-text);
    background: var(--off-white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.hero-lead-form input:focus,
.hero-lead-form select:focus,
.hero-lead-form .captcha-input:focus {
    border-color: var(--accent-orange);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(232, 131, 12, 0.1);
}

.hero-lead-form input::placeholder {
    color: var(--gray-300);
}

.hero-lead-form select {
    cursor: pointer;
    color: var(--gray-400);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.hero-lead-form select option {
    color: var(--dark-text);
}

.hero-lead-form .captcha-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-lead-form .captcha-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-blue);
    white-space: nowrap;
    min-width: 70px;
}

.hero-lead-form .captcha-section .captcha-input {
    flex: 1;
}

.hero-form-submit {
    width: 100%;
    padding: 15px 24px;
    margin-top: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--white);
    background: linear-gradient(135deg, var(--accent-orange), #f5a623);
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all var(--transition-base);
    letter-spacing: 0.3px;
}

.hero-form-submit:hover {
    background: linear-gradient(135deg, #d4760a, var(--accent-orange));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 131, 12, 0.35);
}

.hero-form-submit:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero-lead-form .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* --- Responsive Breakpoint helpers --- */
@media (max-width: 1024px) {
    :root {
        --section-padding: 60px 0;
    }

    .section-title {
        font-size: 1.9rem;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 48px 0;
        --container-padding: 0 16px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 40px 0;
    }

    .section-title {
        font-size: 1.4rem;
    }
}


/* --- Modal Styles --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    padding: 10px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    margin: 20px;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    background: white;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #333;
    cursor: pointer;
    z-index: 10;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f1f1f1;
    color: #000;
    transform: rotate(90deg);
}

.modal-body .hero-form-card {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin: 0;
}