:root {
    --cream: #f7f1e7;
    --paper: #fffaf2;
    --sage: #dce3d7;
    --green: #354b40;
    --green-dark: #24372d;
    --gold: #96713e;
    --text: #303b33;
    --muted: #61685f;
    --border: #d7d1c4;
    --serif: Georgia, "Times New Roman", serif;
    --sans: "Segoe UI", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.65;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
select {
    font: inherit;
}

button,
a,
select {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 5px;
}

::selection {
    background: var(--sage);
    color: var(--green-dark);
}

/* Acesso por teclado */

.skip-link {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    padding: 0.75rem 1.25rem;
    background: var(--green);
    color: white;
    transform: translateY(-200%);
}

.skip-link:focus {
    transform: translateY(0);
}

/* Cabeçalho */

.site-header {
    max-width: 1240px;
    margin: auto;
    padding: 1.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: inline-flex;
    flex-direction: column;
    width: fit-content;
    color: var(--green);
    font-family: var(--serif);
    font-size: 2.25rem;
    line-height: 1.2;
    letter-spacing: 0.12em;
}

.logo span {
    margin-top: 0.5rem;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
}

.site-header nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.75rem;
}

.site-header nav a {
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 180ms ease;
}

.site-header nav a:hover {
    color: var(--gold);
}

.site-header nav .nav-booking {
    padding: 0.65rem 1.25rem;
    border: 1px solid var(--green);
    border-radius: 3px;
}

.site-header nav .nav-booking:hover {
    background: var(--green);
    color: var(--paper);
}

/* Primeira secção */

.hero {
    max-width: 1240px;
    margin: auto;
    padding: 5.5rem 2rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    gap: 5rem;
}

.eyebrow {
    margin-bottom: 1.25rem;
    color: var(--gold);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.16em;
}

.hero h1 {
    margin-bottom: 1.75rem;
    color: var(--green);
    font-family: var(--serif);
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.hero h1 em {
    color: var(--gold);
    font-weight: 400;
}

.hero-description {
    max-width: 390px;
    margin-bottom: 2rem;
    color: var(--muted);
    font-size: 1.0625rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    max-width: 100%;
    padding: 0.85rem 1.65rem;
    border: 1px solid transparent;
    border-radius: 3px;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 180ms ease,
        transform 180ms ease;
}

.button-primary {
    background: var(--green);
    color: var(--paper);
}

.button-primary:hover:not(:disabled) {
    background: var(--green-dark);
    transform: translateY(-2px);
}

.button:disabled {
    background: #dfe1d8;
    color: #5b6258;
    border-color: #c7ccbf;
    cursor: not-allowed;
}

/* Cartão vintage */

.hero-note {
    position: relative;
    padding: 3rem 2.5rem;
    background: var(--sage);
    border: 1px solid #b7c3af;
    border-radius: 140px 140px 5px 5px;
}

.hero-note::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid #a4b29b;
    border-radius: 130px 130px 2px 2px;
    pointer-events: none;
}

.note-number {
    display: block;
    margin: 1rem 0 1.5rem;
    color: var(--green);
    text-align: center;
    font-size: 0.8125rem;
    letter-spacing: 0.15em;
}

.hero-note h2 {
    margin-bottom: 1.75rem;
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
}

.hero-note ol {
    margin: 0 0 1.75rem;
    padding-left: 1.5rem;
}

.hero-note li {
    padding: 0.65rem 0 0.65rem 0.25rem;
    border-bottom: 1px solid #b7c3af;
}

.hero-note li::marker {
    color: var(--green);
    font-family: var(--serif);
    font-weight: 700;
}

.hero-note > p {
    margin-bottom: 0;
    color: var(--green);
    font-size: 0.875rem;
    text-align: center;
}

/* Secções */

.section {
    max-width: 1240px;
    margin: auto;
    padding: 4rem 2rem;
}

.section-heading {
    margin-bottom: 2.5rem;
}

.section-heading .eyebrow {
    margin-bottom: 0.75rem;
}

.section h2 {
    margin-bottom: 1rem;
    color: var(--green);
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.section-heading > p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

/* Equipa */

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.team-card {
    padding: 2.5rem 1.5rem;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 5px;
    text-align: center;
    transition:
        border-color 180ms ease,
        transform 180ms ease;
}

.team-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
}

.team-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    margin: 0 auto 1.5rem;
    background: var(--sage);
    color: var(--green);
    border: 1px solid #b7c3af;
    border-radius: 50%;
    font-family: var(--serif);
    font-size: 2.75rem;
}

.team-card h3 {
    margin-bottom: 0.4rem;
    color: var(--green);
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.25;
}

.team-card p {
    margin-bottom: 1.5rem;
    color: var(--muted);
    font-size: 0.875rem;
}

.team-link {
    display: inline-block;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gold);
    color: var(--green);
    font-size: 0.9375rem;
    font-weight: 600;
}

.team-link:hover {
    color: var(--gold);
}

/* Serviços */

.services-section {
    border-top: 1px solid var(--border);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.empty-state {
    grid-column: 1 / -1;
    margin-bottom: 0;
    padding: 2rem;
    background: var(--paper);
    color: var(--muted);
    border: 1px dashed #b9b2a3;
    border-radius: 5px;
}

/* Marcações */

.booking-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 4rem;
    border-top: 1px solid var(--border);
}

.booking-intro > p:not(.eyebrow) {
    max-width: 420px;
    color: var(--muted);
}

.booking-intro .approval-note {
    margin-top: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid var(--gold);
    color: var(--green);
    font-size: 0.9375rem;
}

.booking-panel {
    padding: 2rem;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: 5px;
}

.booking-panel label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--green);
    font-size: 0.9375rem;
    font-weight: 600;
}

.booking-panel select {
    width: 100%;
    min-height: 48px;
    padding: 0.75rem;
    background: var(--cream);
    color: var(--text);
    border: 1px solid #aaa99a;
    border-radius: 3px;
    font-size: 1rem;
    cursor: pointer;
}

.booking-message {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: #edf0e8;
    border-left: 3px solid #8c9e83;
}

.booking-message h3 {
    margin-bottom: 0.5rem;
    color: var(--green);
    font-size: 1rem;
    line-height: 1.4;
}

.booking-message p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.9375rem;
}

.booking-panel .button {
    width: 100%;
}

/* Rodapé */

.site-footer {
    max-width: 1240px;
    margin: 2rem auto 0;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    border-top: 1px solid var(--border);
}

.site-footer .logo {
    font-size: 1.75rem;
}

.site-footer p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.875rem;
}

/* Tablet */

@media (max-width: 900px) {
    .hero {
        gap: 2.5rem;
        padding-top: 3.5rem;
        padding-bottom: 3.5rem;
    }

    .hero-note {
        padding: 2.5rem 1.75rem;
    }

    .booking-section {
        gap: 2rem;
    }

    .team-grid {
        gap: 1rem;
    }
}

/* Telemóvel e ecrãs estreitos */

@media (max-width: 700px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .site-header nav {
        width: 100%;
        gap: 1rem;
    }

    .site-header nav a {
        font-size: 0.875rem;
    }

    .site-header nav .nav-booking {
        padding: 0.5rem 0.8rem;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 3rem 1.5rem;
    }

    .hero-description {
        max-width: none;
    }

    .hero-note {
        width: 100%;
        max-width: 420px;
        margin: auto;
        padding: 3rem 2rem;
    }

    .section {
        padding: 3rem 1.5rem;
    }

    .team-grid,
    .services-grid,
    .booking-section {
        grid-template-columns: 1fr;
    }

    .team-card {
        padding: 2rem 1.5rem;
    }

    .booking-section {
        gap: 1.5rem;
    }

    .booking-panel {
        padding: 1.5rem;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }
}

/* Reduz movimentos quando solicitado no dispositivo */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }
}
/* Calendário e pedidos */
[hidden] { display: none !important; }
.booking-panel input:not([type="checkbox"]), .booking-panel textarea {
    width:100%; min-height:48px; padding:.75rem; font:inherit;
    border:1px solid #aaa99a; border-radius:3px; background:var(--cream); color:var(--text);
}
.booking-panel textarea { resize:vertical; }
.booking-panel input:focus-visible, .booking-panel textarea:focus-visible {
    outline:3px solid var(--gold); outline-offset:3px;
}
.booking-panel form > label { margin-top:1rem; }
.booking-panel form > .button { margin-top:1rem; }
.booking-help { color:var(--muted); font-size:.875rem; margin:.75rem 0 1rem; }
.slots-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.65rem; }
.slot-button { background:var(--paper); color:var(--green); border:1px solid var(--border); border-radius:3px; padding:.85rem; font:inherit; text-align:left; cursor:pointer; }
.slot-button span { display:block; font-size:.875rem; }
.slot-button[aria-pressed="true"] { background:var(--green); color:var(--paper); }
.slot-button:disabled { cursor:wait; opacity:.65; }
#pedido-form { border-top:1px solid var(--border); margin-top:1.5rem; padding-top:1.5rem; }
.booking-panel .booking-check { display:flex; align-items:flex-start; gap:.75rem; font-weight:400; }
.booking-check input { flex-shrink:0; width:20px; height:20px; margin-top:.25rem; accent-color:var(--green); }
[data-tipo="erro"] { color:#962c2c; }
[data-tipo="sucesso"] { color:var(--green); }
#pedido-resumo, #sucesso-detalhes { overflow-wrap:anywhere; }
@media(max-width:380px) { .slots-grid { grid-template-columns:1fr; } }
