/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    /* Colors */
    --primary-color: #0f172a;
    /* Deep Ocean Blue */
    --secondary-color: #1e293b;
    /* Darker Blue */
    --accent-color: #fbbf24;
    /* Amber Gold */
    --text-light: #f8fafc;
    --text-dark: #334155;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --card-bg: rgba(255, 255, 255, 0.95);

    /* Spacing */
    --container-padding: 2rem;
    --border-radius: 16px;

    /* Transitions */
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: #f1f5f9;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

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

.logo-container img {
    height: 90px;
    width: auto;
    border-radius: 8px;
    /* Optional, for cleaner look */
}

.agency-name {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-light);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6);
    animation: zoomEffect 20s infinite alternate;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
    }
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Programs Grid */
.programs {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    margin: 1rem auto 0;
    border-radius: 2px;
}

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

.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
}

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

.card-image-container {
    height: 200px;
    overflow: hidden;
}

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

.card:hover .card-image-container img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

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

.card-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #64748b;
}

.card-price {
    font-size: 1.25rem;
    color: var(--accent-color);
    font-weight: 700;
    margin-top: auto;
}

.card-details {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

.card-details ul {
    list-style-type: disc;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Contact / Agency Info */
.agency-footer {
    background: var(--primary-color);
    color: var(--text-light);
    padding: 4rem 0;
    text-align: center;
}

.contact-info {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
}

/* Responsiveness */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}

/* Print Friendly */
/* Print Friendly - Native Fallback */
@media print {

    /* Hide everything by default */
    body>* {
        display: none !important;
    }

    /* Unhide the modal container but treat it as the main page */
    body {
        background: white !important;
        height: auto !important;
        overflow: visible !important;
    }

    #pdf-modal {
        display: block !important;
        position: static !important;
        background: white !important;
        height: auto !important;
        width: 100% !important;
        overflow: visible !important;
    }

    /* Hide modal UI elements */
    .modal-content {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .close-modal,
    .pdf-controls,
    .modal-actions {
        display: none !important;
    }

    /* Target the specific content to print */
    .pdf-preview-container {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* Ensure text is black for printing */
    .pdf-preview-container * {
        color: black !important;
        visibility: visible !important;
    }

    /* Allow images to span full width if needed */
    .pdf-preview-container img {
        max-width: 100% !important;
        height: auto !important;
    }
}

/* Modal Base Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    padding-top: 50px;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 0 auto 50px auto;
    padding: 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 900px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

/* PDF Control Layout */
.pdf-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

@media (max-width: 600px) {
    .pdf-controls {
        grid-template-columns: 1fr;
    }
}

/* PDF Preview Area (This is what gets printed) */
.pdf-preview-container {
    background: white;
    padding: 40px;
    /* Generous padding for PDF look */
    border: 1px solid #ddd;
    margin-bottom: 30px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    /* Letter/A4ish ratio width */
    margin-left: auto;
    margin-right: auto;
}

.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 20px;
}

.pdf-agency-info {
    text-align: right;
}

.pdf-agency-info h3 {
    margin: 0 0 5px 0;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.pdf-agency-info p {
    margin: 0;
    font-size: 0.9em;
    color: #64748b;
}

.pdf-body {
    margin-top: 30px;
    line-height: 1.8;
    font-size: 1.1em;
}

.pdf-body ul {
    list-style-type: none;
    padding: 0;
    margin: 15px 0;
}

.pdf-body ul li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
}

.pdf-body ul li:before {
    content: "✓";
    color: var(--accent-color);
    font-weight: bold;
    margin-right: 10px;
}

.price-tag {
    font-size: 2rem;
    color: var(--primary-color);
    margin-top: 20px;
    text-align: right;
    background: #f1f5f9;
    padding: 10px 20px;
    border-radius: 8px;
    float: right;
    clear: both;
}

.pdf-footer {
    margin-top: 60px;
    text-align: center;
    font-size: 0.8em;
    color: #94a3b8;
    border-top: 1px solid #eee;
    padding-top: 20px;
    clear: both;
}

/* Actions */
.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn-primary,
.btn-whatsapp,
.btn-email {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.btn-whatsapp {
    background-color: #25D366;
}

.btn-email {
    background-color: #EA4335;
}

.btn-primary:hover,
.btn-whatsapp:hover,
.btn-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    opacity: 0.95;
}