@import url("https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&family=Prata&display=swap");

/* --- Variables --- */
:root {
    --color-bg: #f5f9fc;
    --color-surface: #ffffff;
    --color-surface-alt: #ebf5fa;
    
    --color-text: #1d3a4d;
    --color-text-muted: #5a7485;
    --color-text-light: #8fa3b0;
    
    --color-primary: #0d6d8b; /* Main Brand Color */
    --color-primary-dark: #084a5f;
    --color-primary-light: #e0f2f7;
    
    --color-accent: #d99a2e; /* Warm accent for attention */
    
    --color-border: #dae6ed;
    --color-border-hover: #b8d0de;
    
    --shadow-sm: 0 2px 4px rgba(13, 109, 139, 0.04);
    --shadow-md: 0 8px 16px rgba(13, 109, 139, 0.08);
    --shadow-lg: 0 32px 64px rgba(13, 109, 139, 0.12);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --font-heading: "Prata", serif;
    --font-body: "Onest", sans-serif;
    
    --header-height: 80px;
    --container-width: 1160px;
    --gap-section: clamp(4rem, 8vw, 6rem);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
    color: var(--color-primary-dark);
}

h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    font-family: var(--font-body);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

.eyebrow {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--gap-section) 0;
}

.section-alt {
    background-color: var(--color-surface-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.section-dark {
    background-color: #12283a;
    color: #e0eef5;
}

.section-dark h2, 
.section-dark h3, 
.section-dark .eyebrow {
    color: #ffffff;
}

.section-dark p {
    color: #a4b9c7;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(13, 109, 139, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(13, 109, 139, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--color-border-hover);
    color: var(--color-primary);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    background-color: var(--color-primary-light);
}

.btn-call {
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
}

.btn-call:hover {
    background-color: #d1ebf4;
}

/* --- Header --- */
.site-header {
    padding: 1.2rem 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
}

.site-header.is-pinned {
    position: fixed;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo {
    width: 2.2rem;
    height: auto;
    object-fit: contain;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
}

.nav-link:hover {
    color: var(--color-primary);
}

/* --- Hero --- */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 5rem);
    padding-bottom: 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 80% 20%, rgba(13, 109, 139, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(217, 154, 46, 0.05) 0%, transparent 40%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-lead {
    font-size: 1.125rem;
    max-width: 50ch;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.features-list {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary-dark);
}

.check-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 50%;
    font-size: 0.75rem;
}

/* --- Hero Card (Status) --- */
.hero-card {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    position: relative;
}

.hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: #e6f6ec;
    color: #1a7f46;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.status-dot {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0;
    line-height: 1.1;
}

.schedule-info {
    margin-bottom: 1.5rem;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.95rem;
}

.schedule-row:last-child {
    border-bottom: none;
}

.schedule-row .time {
    font-weight: 600;
}

.schedule-row .time.closed {
    color: var(--color-text-light);
}

.location-info {
    margin-bottom: 1.5rem;
}

.location-info p {
    margin: 0;
    color: var(--color-text);
}

.location-info .sub-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 0.2rem;
}

.phone-large {
    display: block;
    text-align: center;
    background: var(--color-primary);
    color: #fff;
    padding: 0.8rem;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    transition: background 0.2s;
}

.phone-large:hover {
    background: var(--color-primary-dark);
}

/* --- Section Header --- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.section-desc {
    font-size: 1.1rem;
}

/* --- Benefits --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background: var(--color-surface);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: transform 0.2s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.benefit-card h3 {
    color: var(--color-primary);
}

/* --- Services & Prices --- */
.price-groups {
    display: grid;
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.price-group {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.group-title {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    padding: 1rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin: 0;
}

.price-list {
    padding: 0 1.5rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

.price-item:last-child {
    border-bottom: none;
}

.price-name {
    font-weight: 500;
    padding-right: 1rem;
}

.price-note {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.price-val {
    font-weight: 700;
    white-space: nowrap;
    color: var(--color-primary-dark);
    font-size: 1.1rem;
}

.price-footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* --- Prep --- */
.section-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.prep-tips {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.tip-box {
    background: #fff8eb; /* Warm tint */
    border: 1px solid #f0e6d2;
    padding: 1rem;
    border-radius: var(--radius-sm);
}

.tip-box strong {
    display: block;
    color: #b38029;
    margin-bottom: 0.3rem;
}

.tip-box p {
    margin: 0;
    font-size: 0.9rem;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

details {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.2s;
}

details[open] {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary-light);
}

summary {
    padding: 1.2rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 3rem;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 300;
}

details[open] summary::after {
    content: "−";
}

.details-content-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease-out;
    overflow: hidden;
}

details[open] .details-content-wrapper {
    grid-template-rows: 1fr;
}

.details-body {
    padding: 0 1.2rem 1.2rem;
    border-top: 1px solid var(--color-border-hover);
    margin-top: -0.5rem;
    padding-top: 1rem;
    min-height: 0;
}

.details-body ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.details-body li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
    color: var(--color-text-muted);
}

.warning {
    color: #c94040;
    font-size: 0.9rem;
    font-weight: 500;
    background: #fff0f0;
    padding: 0.8rem;
    border-radius: var(--radius-sm);
}

/* --- Contacts --- */
.contacts-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contacts-content {
    padding: 3rem;
    background: #12283a; /* Dark background for info */
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    color: var(--color-primary-light);
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #ffffff;
    font-size: 1.1rem;
    margin: 0;
}

.contact-item .dimmed {
    color: #8daabf;
    font-size: 0.95rem;
    margin-top: 0.3rem;
}

.phone-link {
    color: #ffffff;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.phone-link:hover {
    border-color: #fff;
}

.schedule-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: #dbe7f0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.map-container {
    min-height: 400px;
    background: #10273a;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.map-switch {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 0.25rem;
    width: min(220px, 100%);
}

.map-switch-btn {
    border: 0;
    background: transparent;
    color: #c3d7e5;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.map-switch-btn:hover {
    color: #ffffff;
}

.map-switch-btn.is-active {
    background: #ffffff;
    color: var(--color-primary-dark);
}

.map-view {
    position: relative;
    flex: 1;
    min-height: 330px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #d9e4eb;
}

.map-panel {
    width: 100%;
    height: 100%;
}

.map-panel img,
.map-panel iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.map-panel img {
    object-fit: cover;
}

/* --- Footer --- */
.site-footer {
    background: #0b1a26;
    color: #5a7485;
    padding: 2rem 0;
    font-size: 0.9rem;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-to-top {
    color: #fff;
    opacity: 0.6;
}

.back-to-top:hover {
    opacity: 1;
}

/* --- Burger Menu --- */
.burger-btn {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 110;
    width: 44px;
    height: 44px;
    position: relative;
    color: var(--color-primary-dark);
}

.burger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: currentColor;
    margin: 5px auto;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-btn.is-open .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-btn.is-open .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-btn.is-open .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.no-scroll {
    overflow: hidden;
}

/* --- Responsive --- */
@media (max-width: 900px) {
    .header-inner {
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap; /* Prevent wrapping on mobile */
    }

    .burger-btn {
        display: block;
        order: 3; /* Ensure burger is last */
    }

    .btn-call {
        order: 2;
        margin-left: auto; /* Push to right, next to burger */
        margin-right: 0.5rem;
        width: 40px;
        height: 40px;
        padding: 0;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-call span {
        display: none; /* Hide phone text on mobile */
    }

    .brand {
        order: 1;
        z-index: 110; /* Keep above overlay if needed */
    }

    /* Mobile Nav Overlay */
    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--color-bg);
        z-index: 100;
        padding: calc(var(--header-height) + 2rem) 2rem 2rem;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .main-nav.is-active {
        transform: translateX(0);
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        width: 100%;
        overflow-y: auto;
    }

    .nav-link {
        font-size: 1.5rem;
        font-family: var(--font-heading);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .section-grid {
        grid-template-columns: 1fr;
    }
    
    .contacts-wrapper {
        grid-template-columns: 1fr;
    }
    
    .contacts-content {
        padding: 2rem;
    }
    
    .map-container {
        min-height: auto;
        padding: 0.85rem;
    }

    .map-view {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 60px;
        --gap-section: 3rem;
    }

    /* Cleaned up responsive styles */
    .hero {
        padding-top: calc(var(--header-height) + 3rem);
        text-align: center;
    }
    
    .hero-actions, .features-list {
        justify-content: center;
    }
    
    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .price-item {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .price-val {
        align-self: flex-start;
        font-size: 1.2rem;
    }
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -999px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 1rem;
    z-index: 1000;
}

.skip-link:focus {
    top: 0;
}
