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

:root {
    --turquoise: #189a9a;
    --turquoise-dark: #147878;
    --dix-blue: #96AEAB;
    --wimborne: #F3F2E8;
    --off-black: #454749;
    --cream: #FAF8F3;
}

html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; font-weight: 400; color: var(--off-black); overflow-x: hidden; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-slide { transition: none !important; }
}

/* Skip link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--turquoise);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: 600;
    z-index: 9999;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { top: 0; }

/* Focus visible */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--turquoise);
    outline-offset: 2px;
}

/* ── TOP BAR ── */
.topbar {
    background: var(--turquoise); color: white;
    text-align: center; padding: 0.5rem 1rem;
    font-size: 0.85rem; font-weight: 400;
    position: fixed; top: 0; width: 100%; z-index: 1001;
    display: flex; align-items: center; justify-content: center;
    gap: 0.8rem; flex-wrap: wrap;
}
.topbar a { color: white; text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 0.3rem; }
.topbar a:hover { text-decoration: underline; }
.topbar .pipe { opacity: 0.6; }
.topbar .mobile-hide { display: inline-flex; }
.lang-switch { display: inline-flex; gap: 0.3rem; align-items: center; }
.lang-switch a { padding: 0.1rem 0.4rem; border-radius: 4px; }
.lang-switch a.active { background: rgba(255,255,255,0.25); }

/* ── NAV ── */
nav {
    position: fixed; top: 36px; width: 100%;
    background: white; box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    z-index: 1000; padding: 0.8rem 2rem;
}
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 150px; object-fit: contain; }
@media (max-width: 768px) { .logo img { height: 70px; } }
nav ul { display: flex; list-style: none; gap: 2rem; }
nav a { text-decoration: none; color: var(--off-black); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.5px; transition: color 0.3s; }
nav a:hover { color: var(--turquoise); }
.mobile-btn { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--turquoise); }

/* ── HERO ── */
.hero { margin-top: 186px; width: 100%; height: 500px; position: relative; overflow: hidden; background: #ddd; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-arrows { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; z-index: 2; }
.hero-arrow { background: rgba(255,255,255,0.8); border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: background 0.3s; }
.hero-arrow:hover { background: white; }
.hero-pause {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    background: transparent;
    color: transparent;
}
.hero-pause:focus {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    margin: 0;
    overflow: visible;
    clip: auto;
    background: rgba(255,255,255,0.9);
    border: 2px solid var(--turquoise);
    border-radius: 50%;
    color: var(--off-black);
    cursor: pointer;
    font-size: 1rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-dots { position: absolute; bottom: 1.2rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; z-index: 2; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.6); border: none; cursor: pointer; transition: background 0.3s, transform 0.3s; }
.hero-dot.active { background: white; transform: scale(1.3); }

/* ── WELCOME ── */
.welcome { background: white; text-align: center; padding: 3.5rem 2rem; border-bottom: 1px solid #eee; }
.welcome h1 { font-size: 2rem; font-weight: 700; color: var(--off-black); margin-bottom: 0.5rem; }
.welcome p { font-size: 1.1rem; font-weight: 400; color: #595959; }

/* ── INFO CARDS ── */
.info-cards { background: var(--wimborne); padding: 4rem 2rem; }
.info-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.info-card { background: white; border-radius: 16px; padding: 2rem 1.5rem; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,0.06); transition: transform 0.3s, box-shadow 0.3s; }
.info-card:hover { transform: translateY(-5px); box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.info-card-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.info-card h3 { color: var(--turquoise); font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.info-card p { font-size: 0.95rem; color: #595959; font-weight: 400; line-height: 1.6; margin-bottom: 1rem; }
.info-card a { color: var(--turquoise-dark); font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.info-card a:hover { text-decoration: underline; }

/* ── SECTIONS ── */
section { padding: 5rem 2rem; }
.container { max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 2.2rem; font-weight: 700; color: var(--turquoise); text-align: center; margin-bottom: 0.5rem; }
.section-sub { text-align: center; color: #595959; font-weight: 400; margin-bottom: 3rem; font-size: 1rem; }

/* ── SOBRE ── */
.sobre { background: var(--cream); }
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.sobre-text p { margin-bottom: 1rem; line-height: 1.8; color: #404040; font-size: 1rem; }
.sobre-text .highlight { font-size: 1.3rem; font-weight: 700; color: var(--turquoise-dark); margin-bottom: 1.5rem; }
.sobre-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sobre-card { background: white; padding: 1.5rem; border-radius: 15px; border-left: 4px solid var(--turquoise); box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.sobre-card h4 { color: var(--turquoise-dark); margin-bottom: 0.4rem; font-size: 1rem; }
.sobre-card p { font-size: 0.9rem; color: #595959; font-weight: 400; }

/* ── SERVIÇOS ── */
.servicos { background: white; }
.servicos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.servico-card { background: linear-gradient(135deg, rgba(24,154,154,0.05), var(--cream)); border-radius: 20px; padding: 2rem; border-top: 4px solid var(--off-black); transition: transform 0.3s, box-shadow 0.3s; }
.servico-card:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(24,154,154,0.15); }
.servico-card h3 { color: var(--off-black); font-size: 1.15rem; margin-bottom: 0.8rem; }
.servico-card p { font-size: 0.95rem; color: #404040; line-height: 1.7; font-weight: 400; }
.servico-card ul { margin-top: 0.8rem; padding-left: 1rem; }
.servico-card ul li { font-size: 0.9rem; color: #595959; font-weight: 400; margin-bottom: 0.3rem; }
.featured-badge { display: inline-block; background: var(--turquoise); color: white; padding: 0.2rem 0.7rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; margin-bottom: 0.5rem; }

/* ── EQUIPA ── */
.equipa { background: white; }
.equipa-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.equipa-member { text-align: center; background: var(--cream); padding: 2rem 1.5rem; border-radius: 20px; }
.equipa-photo { width: 130px; height: 130px; border-radius: 50%; background: var(--dix-blue); margin: 0 auto 1.2rem; display: flex; align-items: center; justify-content: center; font-size: 3rem; overflow: hidden; }
.equipa-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; image-rendering: -webkit-optimize-contrast; }
.equipa-member h3 { color: var(--turquoise-dark); font-size: 1rem; margin-bottom: 0.3rem; }
.equipa-member .role { font-size: 0.85rem; color: #595959; font-weight: 400; }

/* ── GALERIA ── */
.galeria { background: var(--wimborne); }
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 1rem;
}
.galeria-item { border-radius: 15px; overflow: hidden; background: var(--dix-blue); display: flex; align-items: center; justify-content: center; font-size: 3rem; transition: transform 0.3s; }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; }
.galeria-item:hover { transform: scale(1.02); }
.galeria-item.large { grid-column: span 2; }
.galeria-item.tall { grid-row: span 2; }

/* ── CONTACTO ── */
.contacto { background: white; }
.contacto-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contacto-info { display: flex; flex-direction: column; gap: 1.2rem; }
.contacto-item { display: flex; align-items: flex-start; gap: 1rem; background: var(--cream); padding: 1.2rem 1.5rem; border-radius: 15px; }
.contacto-item i { font-size: 1.5rem; min-width: 30px; }
.contacto-item strong { display: block; margin-bottom: 0.2rem; color: var(--off-black); }
.contacto-item a { color: var(--turquoise-dark); text-decoration: none; font-weight: 400; }
.contacto-item a:hover { text-decoration: underline; }
.contacto-item p { font-weight: 400; font-size: 0.95rem; color: #404040; }
.social-icons { display: flex; gap: 1rem; margin-top: 0.3rem; }
.social-icons a { color: var(--turquoise-dark); transition: opacity 0.3s; }
.social-icons a:hover { opacity: 0.7; }
.contacto-form { background: var(--cream); padding: 2rem; border-radius: 20px; }
.contacto-form h3 { color: var(--turquoise); margin-bottom: 1.5rem; font-size: 1.2rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-size: 0.9rem; font-weight: 600; }
.form-group input, .form-group textarea { width: 100%; padding: 0.8rem 1rem; border: 2px solid #e0e0e0; border-radius: 10px; font-family: 'Poppins', sans-serif; font-size: 0.9rem; transition: border-color 0.3s; background: white; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--turquoise); }
.form-group textarea { resize: vertical; min-height: 110px; }
.submit-btn { background: var(--turquoise); color: white; padding: 0.9rem 2rem; border: none; border-radius: 50px; font-family: 'Poppins', sans-serif; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.3s, transform 0.3s; width: 100%; }
.submit-btn:hover { background: var(--turquoise-dark); transform: translateY(-2px); }

/* ── FOOTER ── */
footer { background: var(--off-black); color: white; text-align: center; padding: 2rem; }
footer p { font-weight: 400; font-size: 0.95rem; margin-bottom: 1rem; }
.footer-social { display: flex; justify-content: center; gap: 1.5rem; }
.footer-social a { color: white; transition: color 0.3s; }
.footer-social a:hover { color: var(--turquoise); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .sobre-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contacto-grid { grid-template-columns: 1fr; }
    .galeria-grid { grid-template-columns: 1fr 1fr; }
    .galeria-item.large { grid-column: span 2; }
    .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .mobile-btn { display: block; }
    nav ul { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: white; flex-direction: column; padding: 1rem 2rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1); gap: 1rem; }
    nav ul.active { display: flex; }
    .hero { height: 300px; margin-top: 130px; }
    .logo img { height: 70px; }
    .section-title { font-size: 1.8rem; }
    .galeria-grid { grid-template-columns: 1fr; }
    .galeria-item.large { grid-column: span 1; }
    .sobre-cards { grid-template-columns: 1fr; }
    .welcome h1 { font-size: 1.5rem; }
    .topbar {
        font-size: 0.7rem;
        gap: 0.3rem;
        padding: 0.4rem 0.3rem;
        flex-wrap: nowrap;
        white-space: nowrap;
        justify-content: center;
    }
    .topbar .mobile-hide { display: none; }
    .topbar a { gap: 0.2rem; }
    .topbar svg { width: 12px; height: 12px; }
}
@media (max-width: 380px) {
    .topbar { font-size: 0.65rem; gap: 0.25rem; }
    .topbar svg { width: 11px; height: 11px; }
}
