/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--brand-700);
    text-decoration: none;
    font-weight: 600;
    background: #fff;
    transition: transform .06s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.button:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

.button-primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.button-primary:hover {
    background: var(--brand-600);
}

/* Topbar */
.topbar {
    background: var(--topbar-bg);
    color: #fff;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.topbar-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    min-height: 72px;
}

.topbar-label {
    font-weight: 700;
}

.topbar .button {
    border-color: rgba(255, 255, 255, .25);
    color: #fff;
    background: transparent;
    min-height: 44px; /* touch target */
    min-width: 44px;
}
.topbar .button .icon { width: 18px; height: 18px; fill: currentColor; display: none; }
.topbar .button .label { display: inline; }

.topbar .button:hover {
    background: rgba(255, 255, 255, .08);
}

.topbar .button-primary {
    background: #12a150;
    border-color: #12a150;
}

.topbar .button-primary:hover {
    background: #0f8c45;
}

@media (min-width: 768px) {
    .topbar-grid {
        grid-template-columns: 0.8fr auto;
    }

    .topbar-actions{
        a{
            flex: 1;
        }
    }
}

.topbar-actions{
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;

   
  
}

/* Mobile fixes for topbar */

@media ( max-width: 385px) {
    .topbar-label { font-size: .70rem !important; }
    .topbar .button { padding: 5px 6px !important; font-size: .85rem; }
    .topbar-actions { justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
    .topbar-actions a[href^="tel:"] { display: inline-flex; }
    .topbar .button .icon { display: inline-block; }
    .topbar .button .label { display: none; }
    .topbar-grid { display: flex; gap: 16px; justify-content: space-between; min-height: 0;}
    .site-header { top: 120px; }
    .hero-cta{
        flex-direction: column;
        gap: 16px;
    }
    .topbar .button .icon { width: 16px; height: 16px; }
}

@media (max-width: 480px) {
    .topbar-label { font-size: .85rem; }
    .topbar .button { font-size: .85rem; }
    .topbar-actions { justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
    .topbar-actions a[href^="tel:"] { display: inline-flex; }
    .topbar .button .icon { display: inline-block; }
    .topbar .button .label { display: none; }
    .topbar-grid { display: flex; gap: 16px; justify-content: space-between; min-height: 0;}
    .site-header { top: 120px; }
    .hero-cta{
        flex-direction: column;
        gap: 16px;
    }
    .topbar .button .icon { width: 16px; height: 16px; }
}

@media (max-width: 785px) {
  .topbar .button .icon { display: inline-block; }
  .topbar .button .label { display: none; }
  .topbar .button { padding: 10px 12px; }
}

/* Keep label+buttons on a single row between 481px and 785px */
@media (min-width: 481px) and (max-width: 785px) {
  .topbar-grid { grid-template-columns: 1fr auto; min-height: 72px; }
  .topbar-actions { flex-wrap: nowrap; gap: 8px; }
  .topbar .button { white-space: nowrap; }
}

/* Header/Nav */
.site-header {
    position: fixed;
    width: 100%;
    top: 70px;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(150%) blur(6px);
    border-bottom: 1px solid var(--border);
}

.site-header.scrolled {
    box-shadow: 0 6px 24px rgba(17, 24, 39, .10);
    background: rgba(255, 255, 255, 0.98);
}

.header-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
}

.brand img {
    display: block;
    height: auto;
    width: 90px;
}

.menu-toggle {
    appearance: none;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    cursor: pointer;
}

.menu-icon {
    width: 18px;
    height: 2px;
    background: var(--text);
    position: relative;
}

.menu-icon::before,
.menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--text);
}

.menu-icon::before {
    top: -6px;
}

.menu-icon::after {
    top: 6px;
}

.menu-label {
    font-weight: 600;
}

.site-nav {
    display: none;
}

.site-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 8px;
    position: relative;
}

.site-nav a:hover {
    background: var(--bg-alt);
}

.site-nav a.active {
    background: #e7effb;
    color: var(--brand-700);
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 5px;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .18s ease;
    border-radius: 999px;
}

.site-nav a:hover::after,
.site-nav a.active::after {
    transform: scaleX(1);
}

.nav-cta {
    margin-left: 12px;
}

@media (min-width: 900px) {
    .menu-toggle {
        display: none;
    }

    .site-nav {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 16px;
    }
}

.site-nav.open {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
}

@media (min-width: 900px) {
    .site-nav.open {
        position: static;
        border: 0;
        padding: 0;
    }
}

/* Chips */
.chips {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.chips li {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--brand-700);
    font-weight: 600;
    text-align: center;
}

/* Cards */
.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow);
    transition: transform .12s ease, box-shadow .2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(17, 24, 39, .12);
}

.card-cta {
    display: inline-block;
    margin-top: 8px;
    color: var(--brand);
    text-decoration: none;
    font-weight: 600;
}

.card-cta:hover {
    text-decoration: underline;
}

@media (min-width: 700px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .cards { grid-template-columns: repeat(3, 1fr); }
}

.cards-footer { margin-top: 32px; display: grid; place-items: center; }

/* Form */
.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.contact-form {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow);
    transition: box-shadow .2s ease;
}

.contact-form:focus-within {
    box-shadow: 0 12px 34px rgba(17, 24, 39, .10);
}

.form-field {
    display: grid;
    gap: 6px;
    margin-bottom: 12px;
}

label {
    font-weight: 600;
}

input,
textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font: inherit;
}

input:focus,
textarea:focus {
    outline: 3px solid var(--focus);
    border-color: transparent;
}

.form-feedback {
    margin-top: 8px;
    font-weight: 600;
}

/* Floating buttons */
.fab {
    position: fixed;
    right: 10px;
    bottom: 10px;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    background: #22c55e;
    color: #fff;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, .06);
    font-weight: 800;
}

.fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(34, 197, 94, .35);
}

.fab:focus-visible {
    outline: 3px solid var(--focus);
}

.fab-whatsapp {
    background: #25D366;
}

.fab svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    display: block;
}

/* To top */
.to-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 999px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.to-top:focus-visible {
    outline: 3px solid var(--focus);
}

/* Footer */
.site-footer { background: #1a2333; color: #e6edf7; padding: 36px 0 18px; margin-top: 48px; border-top: 1px solid rgba(255,255,255,.06); }
.site-footer a { color: #e6edf7; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
.footer-brand { display: flex;
        flex-direction: column;
        gap: 8px;
        height: 100%;
        justify-content: space-between; }
.footer-brand img { display: block; background: rgba(255,255,255,.98); border: 1px solid rgba(0,0,0,.06); border-radius: 12px; padding: 6px 10px; box-shadow: 0 10px 26px rgba(0,0,0,.2); height: auto; width: 130px; }
.footer-brand p { margin: 0; color: #c7d2e4; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-social .social { width: 40px; height: 40px; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 10px; }
.footer-social .social:hover { background: rgba(56, 48, 48, 0.18); }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }
.footer-col h3 { margin: 6px 0 10px; font-size: 0.95rem; color: #ffffff; letter-spacing: .3px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: #c7d2e4; }
@media (min-width: 900px){ .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; align-items: start; } }
.footer-social-col { display: grid; align-content: start; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.10); margin-top: 18px; padding-top: 12px; display: flex; gap: 12px; align-items: center; justify-content: center; color: #9fb0ca; }