/* 
   La Jolla A-Tech - Premium Styles
   Colors: Navy (#0a192f), Gold (#c5a059), White (#ffffff), Light Gray (#f4f4f4)
   Fonts: 'Playfair Display' (Headers), 'Inter' (Body)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --primary-color: #0d253f;
    /* Deep Navy */
    --secondary-color: #c5a059;
    /* Gold */
    --secondary-hover: #b08d4b;
    --text-dark: #1a1a1a;
    --text-light: #f4f4f4;
    --bg-light: #f9f9f9;
    --bg-white: #ffffff;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
    --border-radius: 8px;
    --container-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--border-radius);
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--secondary-color);
    color: var(--bg-white);
    font-weight: 600;
    border-radius: 4px;
    /* Slightly sharper for premium feel */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    border: 2px solid var(--secondary-color);
}

.btn:hover {
    background-color: transparent;
    color: var(--secondary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* Premium CTA Button for Header */
.btn-cta {
    background: linear-gradient(135deg, #c5a059 0%, #b08d4b 100%);
    color: white !important;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.5);
    background: linear-gradient(135deg, #d4af68 0%, #c5a059 100%);
    color: white !important;
}

.btn-cta::before {
    content: "📞 ";
    margin-right: 5px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Header & Nav */
header {
    background-color: var(--bg-white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links>li {
    position: relative;
    padding: 10px 0;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Dropdown */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-white);
    min-width: 220px;
    box-shadow: var(--shadow);
    border-top: 3px solid var(--secondary-color);
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: var(--transition);
    border-radius: 0 0 4px 4px;
}

.nav-links li:hover .dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.dropdown li {
    border-bottom: 1px solid #eee;
}

.dropdown li:last-child {
    border-bottom: none;
}

.dropdown a {
    display: block;
    padding: 12px 20px;
    font-size: 0.9rem;
}

.dropdown a:hover {
    background-color: var(--bg-light);
    color: var(--secondary-color);
    padding-left: 25px;
    /* Slide effect */
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(13, 37, 63, 0.8), rgba(13, 37, 63, 0.8));
    /* Image will be set inline in HTML or via specific class */
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Services / Brands Grid */
.service-card,
.brand-card {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid #eee;
    text-align: center;
}

.service-card:hover,
.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.service-card h3,
.brand-card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* Testimonials */
.testimonial-card {
    background: var(--bg-white);
    padding: 30px;
    border-left: 4px solid var(--secondary-color);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.stars {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
}

/* Table */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: white;
    box-shadow: var(--shadow);
}

th,
td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: var(--primary-color);
    color: white;
    font-family: 'Playfair Display', serif;
}

tr:hover {
    background-color: var(--bg-light);
}

/* FAQ */
.faq-item {
    background: white;
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 20px;
}

.faq-item h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #ccc;
}

.footer-col a:hover {
    color: white;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 992px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Simplification for generated site: basic responsive check */
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(13, 37, 63, 0.9);
    backdrop-filter: blur(5px);
    overflow: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 32px;
    font-weight: 300;
    color: #999;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    color: var(--secondary-color);
    transform: rotate(90deg);
}

.modal-content h2 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.modal-content>p {
    margin-bottom: 25px;
    color: #666;
}

/* Form Styles */
.lead-form,
form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    background-color: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Form Messages */
.form-message {
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: 20px;
}

.language-switcher a {
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-color);
    border: 2px solid transparent;
    border-radius: 4px;
    transition: var(--transition);
    text-transform: uppercase;
}

.language-switcher a:hover {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.language-switcher a.active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.language-switcher .separator {
    color: #ccc;
    font-weight: 300;
}

/* Button Loading State */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Improved CTA Button Icon */
.btn-cta::before {
    content: "✉️ ";
    margin-right: 6px;
}

/* Form in CTA Section Styling */
.cta-section form {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    color: black;
}

.cta-section form input,
.cta-section form select,
.cta-section form textarea {
    width: 100%;
    margin-bottom: 15px;
}

.cta-section form button {
    width: 100%;
}

/* =========================================
   Mobile Menu & Sticky CTA
   ========================================= */

/* Burger Menu Icon */
.burger-menu {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-icon {
    width: 30px;
    height: 20px;
    position: relative;
    transform: rotate(0deg);
    transition: .5s ease-in-out;
}

.burger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.burger-icon span:nth-child(1) {
    top: 0px;
}

.burger-icon span:nth-child(2) {
    top: 9px;
}

.burger-icon span:nth-child(3) {
    top: 18px;
}

/* Burger Animation State */
.burger-menu.active .burger-icon span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.burger-menu.active .burger-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.burger-menu.active .burger-icon span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    /* Partial width for modern feel */
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 100px 40px;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-nav-links {
    list-style: none;
}

.mobile-nav-links li {
    margin-bottom: 25px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

/* Stagger animation for links */
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(1) {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(2) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(3) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(4) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(5) {
    transition-delay: 0.5s;
    opacity: 1;
    transform: translateX(0);
}

.mobile-nav-links a {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.mobile-nav-links a:hover {
    color: var(--secondary-color);
}

/* Mobile Submenus */
.mobile-submenu {
    list-style: none;
    padding-left: 20px;
    margin-top: 10px;
    display: none;
    /* Hidden by default */
}

.mobile-submenu.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.mobile-submenu li {
    margin-bottom: 12px;
    opacity: 1;
    /* Reset opacity for children */
    transform: none;
}

.mobile-submenu a {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
}

/* Sticky Mobile CTA */
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    display: none;
    /* Hidden on desktop */
    z-index: 9999;
    padding: 15px 20px;
    gap: 15px;
}

.mobile-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    text-align: center;
}

.mobile-btn-call {
    background: var(--bg-light);
    color: var(--primary-color);
    border: 1px solid #ddd;
}

.mobile-btn-book {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(197, 160, 89, 0.3);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .nav-links {
        display: none;
        /* Hide Desktop Nav */
    }

    .burger-menu {
        display: block;
        /* Show Burger */
    }

    .mobile-sticky-cta {
        display: flex;
        /* Show Sticky CTA */
        justify-content: space-between;
    }

    /* Add padding to body so content isn't hidden behind sticky CTA */
    body {
        padding-bottom: 80px;
    }

    .cta-section {
        padding-bottom: 40px;
        /* Adjust footer overlap */
    }
}