:root {
    --brand-teal: #0c4a5a;
    --brand-teal-soft: #0f6a7f;
    --brand-gold: #9a6123;
    --brand-gold-soft: #b47a39;
    --brand-surface: #f4f7f8;
    --brand-ink: #15323b;
}

html {
    scroll-behavior: smooth;
}

body.site-body {
    font-family: "Segoe UI", "Trebuchet MS", sans-serif;
    color: var(--brand-ink);
    background: radial-gradient(circle at top right, #ffffff, #f7fbfc 45%, #eef4f6 100%);
}

/* Tailwind v2 is loaded locally; these utility fallbacks keep v3-style classes working. */
.text-slate-100 { color: #f1f5f9; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-slate-900 { color: #0f172a; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; }
.border-slate-200 { border-color: #e2e8f0; }

.menu-link {
    position: relative;
    color: #1e293b;
    transition: color .25s ease;
}

.menu-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--brand-gold);
    transition: width .25s ease;
}

.menu-link:hover,
.menu-link.active {
    color: var(--brand-teal);
}

.menu-link:hover::after,
.menu-link.active::after {
    width: 100%;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.58rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-soft));
    color: #fff;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 8px 18px rgba(180, 122, 57, .2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(180, 122, 57, .28);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.58rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-soft));
    color: #fff;
    font-weight: 600;
    font-size: 0.86rem;
    letter-spacing: 0.01em;
    line-height: 1.2;
    transition: transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 8px 18px rgba(15, 106, 127, .18);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 106, 127, .26);
}

.btn-card {
    min-width: 124px;
    text-align: center;
}

.faq-item {
    border: 1px solid #dbe4ea;
    border-radius: 14px;
    background: #fff;
    padding: 0.95rem 1rem;
}

.faq-item summary {
    cursor: pointer;
    color: #0f172a;
    font-weight: 700;
}

.faq-item p {
    margin-top: 0.7rem;
    color: #334155;
    line-height: 1.65;
}

.form-field {
    display: grid;
    gap: 0.45rem;
}

.form-field span {
    color: #0f172a;
    font-size: 0.88rem;
    font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #fff;
    color: #1e293b;
    padding: 0.82rem 0.95rem;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--brand-teal-soft);
    box-shadow: 0 0 0 4px rgba(15, 106, 127, .12);
}

.form-alert {
    border-radius: 14px;
    padding: 0.85rem 1rem;
    font-size: 0.92rem;
    line-height: 1.5;
}

.form-alert-error {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

.modal-shell {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 80;
}

.modal-shell.is-visible {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .58);
    backdrop-filter: blur(5px);
}

.modal-panel {
    position: relative;
    z-index: 1;
    width: min(100%, 640px);
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 24px;
    background: #f8fafc;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .3);
    padding: 1.1rem;
}

.modal-close {
    position: absolute;
    top: 0.8rem;
    right: 0.9rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 1.4rem;
    line-height: 1;
}

body.modal-open {
    overflow: hidden;
}

.mobile-link {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 0.7rem 0.85rem;
}

/** Sidenav Overlay Styles **/
.sidenav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 70;
    transition: opacity 0.3s ease;
}

.sidenav-backdrop.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}

.sidenav-backdrop.visible {
    opacity: 1;
}

.sidenav-menu {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 80%;
    max-width: 320px;
    background: #fff;
    box-shadow: 2px 0 24px rgba(15, 23, 42, 0.3);
    z-index: 80;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.sidenav-menu.open {
    transform: translateX(0);
}

.sidenav-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.sidenav-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    transition: background 0.2s ease;
    cursor: pointer;
    border: none;
}

.sidenav-close:hover {
    background: #e2e8f0;
}

.sidenav-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
}

.sidenav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s ease, color 0.2s ease;
    text-decoration: none;
}

.sidenav-link:hover {
    background: #f1f5f9;
    color: var(--brand-teal);
}

.sidenav-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    stroke-width: 2;
}

.sidenav-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 0.5rem 0;
    margin-top: auto;
}

.sidenav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
    text-decoration: none;
    display: flex;
}

.sidenav-cta-primary {
    background: linear-gradient(135deg, var(--brand-gold), var(--brand-gold-soft));
    color: #fff;
    box-shadow: 0 4px 12px rgba(180, 122, 57, 0.2);
}

.sidenav-cta-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(180, 122, 57, 0.28);
}

.sidenav-cta-secondary {
    background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-soft));
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 106, 127, 0.18);
}

.sidenav-cta-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 106, 127, 0.26);
}

.sidenav-cta-icon {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
}

.mobile-contact-icon {
    width: 1.3rem;
    height: 1.3rem;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    body.sidenav-open {
        overflow: hidden;
    }
}

.hero {
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(12, 74, 90, .9), rgba(12, 74, 90, .62), rgba(154, 97, 35, .5));
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.gradient-chip {
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
}

.glass-card {
    border: 1px solid rgba(12, 74, 90, .12);
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(12px);
    box-shadow: 0 16px 44px rgba(13, 60, 74, .1);
}

.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}

.section-title {
    color: var(--brand-teal);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.card-hover {
    transition: transform .22s ease, box-shadow .22s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 30px rgba(8, 40, 49, .12);
}

.footer-card {
    background: linear-gradient(140deg, #0a3744, #0c4a5a 45%, #143846);
}

.footer-link {
    color: #dbeafe;
}

.footer-link:hover {
    color: #fff;
    text-decoration: underline;
}

.floating-contact {
    position: fixed;
    right: 1rem;
    bottom: 5rem;
    z-index: 60;
    flex-direction: column;
    gap: 0.6rem;
}

.float-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border-radius: 999px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.65rem 0.9rem;
    box-shadow: 0 14px 28px rgba(2, 6, 23, .2);
}

.whatsapp-btn {
    background: linear-gradient(140deg, #16a34a, #15803d);
}

.call-btn {
    background: linear-gradient(140deg, var(--brand-gold), #7c4b1f);
}

.mobile-contact-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 60;
    display: none;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 -10px 24px rgba(15, 23, 42, .18);
}

.mobile-contact-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    color: #fff;
    text-align: left;
    font-weight: 700;
    letter-spacing: 0.01em;
    font-size: 0.8rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.mobile-contact-link.whatsapp,
.mobile-contact-link.whatsapp:visited,
.mobile-contact-link.whatsapp:hover {
    background: #16a34a;
    color: #fff;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.mobile-contact-link.whatsapp:active {
    filter: brightness(0.95);
}

.mobile-contact-link.call,
.mobile-contact-link.call:visited,
.mobile-contact-link.call:hover {
    background: var(--brand-gold);
    color: #fff;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.mobile-contact-link.call:active {
    filter: brightness(0.95);
}

.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .55s ease, transform .55s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .parallax {
        background-attachment: scroll;
    }

    .mobile-contact-nav {
        display: grid;
    }
}

@media (min-width: 769px) {
    .floating-contact {
        bottom: 5.5rem;
    }
}
