/* ============================================
   Restaurante Castelo / Zerpaca.net
   Warm Portuguese Restaurant Design
   ============================================ */

:root {
    --wine: #6b2d3c;
    --wine-dark: #4a1e2a;
    --terracotta: #c45c26;
    --terracotta-light: #e07a3d;
    --cream: #faf6f1;
    --cream-dark: #f0e8dc;
    --gold: #c9a84c;
    --text: #2c2420;
    --text-muted: #6b5e56;
    --white: #ffffff;
    --shadow: 0 8px 32px rgba(74, 30, 42, 0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', system-ui, sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.25;
    color: var(--wine-dark);
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: var(--transition);
}
.btn-primary {
    background: var(--wine);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--wine-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107, 45, 60, 0.3);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--wine);
    color: var(--wine);
}
.btn-outline:hover {
    background: var(--wine);
    color: white;
}
.btn-gold {
    background: var(--gold);
    color: var(--wine-dark);
}
.btn-gold:hover {
    background: #b8973f;
    transform: translateY(-2px);
}
.btn-light {
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.5);
    color: white;
}
.btn-light:hover {
    background: white;
    color: var(--wine);
}

/* Header */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    background: rgba(250, 246, 241, 0.92);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}
header.scrolled {
    box-shadow: 0 2px 20px rgba(74, 30, 42, 0.08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--wine-dark);
}
.logo i { color: var(--terracotta); font-size: 1.3rem; }
.logo span { color: var(--terracotta); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}
.nav-links a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
}
.nav-links a:hover,
.nav-links a.active { color: var(--wine); }
.nav-links .btn { padding: 10px 22px; font-size: 0.9rem; }

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--wine);
    cursor: pointer;
}

/* Page Hero */
.page-hero {
    padding: 150px 0 70px;
    background: linear-gradient(135deg, var(--wine-dark), var(--wine));
    color: white;
    text-align: center;
}
.page-hero h1 {
    color: white;
    font-size: clamp(2.2rem, 4vw, 3rem);
    margin-bottom: 10px;
}
.page-hero p {
    opacity: 0.85;
    font-size: 1.1rem;
}
.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 0.88rem;
    opacity: 0.7;
}
.breadcrumb a:hover { color: var(--gold); }

/* Sections */
section { padding: 90px 0; }

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 52px;
}
.section-header .tag {
    display: inline-block;
    color: var(--terracotta);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-header h2 {
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    margin-bottom: 14px;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* Home Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(74,30,42,0.82), rgba(107,45,60,0.7)),
                url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=1600') center/cover no-repeat;
    color: white;
    padding-top: 80px;
    position: relative;
}
.hero-content { max-width: 620px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.88rem;
    margin-bottom: 24px;
}
.hero h1 {
    color: white;
    font-size: clamp(2.6rem, 5.5vw, 4rem);
    margin-bottom: 18px;
}
.hero h1 span { color: var(--gold); }
.hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 36px;
    max-width: 480px;
}
.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.hero-info {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-info .item i {
    color: var(--gold);
    margin-right: 8px;
}
.hero-info .item span {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}
.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(74, 30, 42, 0.12);
}
.feature-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--wine), var(--terracotta));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 20px;
}
.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}
.about-image img {
    width: 100%;
    height: 440px;
    object-fit: cover;
}
.about-image .year-badge {
    position: absolute;
    bottom: 20px; left: 20px;
    background: var(--wine);
    color: white;
    padding: 16px 22px;
    border-radius: 10px;
    text-align: center;
}
.about-image .year-badge strong {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
}
.about-image .year-badge span {
    font-size: 0.8rem;
    opacity: 0.85;
}
.about-content h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}
.about-content p {
    color: var(--text-muted);
    margin-bottom: 14px;
}
.about-list {
    margin-top: 20px;
}
.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-weight: 500;
}
.about-list i {
    color: var(--terracotta);
    width: 24px;
}

/* Menu */
.menu-section { background: var(--white); }
.menu-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}
.menu-tab {
    padding: 10px 22px;
    border-radius: 50px;
    border: 1.5px solid var(--cream-dark);
    background: var(--cream);
    font-weight: 500;
    font-size: 0.92rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-muted);
}
.menu-tab.active,
.menu-tab:hover {
    background: var(--wine);
    border-color: var(--wine);
    color: white;
}
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.menu-item {
    background: var(--cream);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    gap: 16px;
    transition: var(--transition);
    border: 1px solid transparent;
}
.menu-item:hover {
    border-color: var(--terracotta);
    box-shadow: var(--shadow);
}
.menu-item-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--wine), var(--terracotta));
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.menu-item-body { flex: 1; }
.menu-item-body h3 {
    font-size: 1.2rem;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}
.menu-item-body .price {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--terracotta);
    white-space: nowrap;
}
.menu-item-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    height: 240px;
    position: relative;
}
.gallery-item.tall { grid-row: span 2; height: auto; min-height: 496px; }
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.08); }

/* Testimonials */
.testimonials {
    background: linear-gradient(135deg, var(--wine-dark), var(--wine));
    color: white;
}
.testimonials .section-header .tag { color: var(--gold); }
.testimonials .section-header h2 { color: white; }
.testimonials .section-header p { color: rgba(255,255,255,0.8); }

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.testimonial-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    padding: 28px;
}
.testimonial-card .stars {
    color: var(--gold);
    margin-bottom: 12px;
    font-size: 0.9rem;
}
.testimonial-card p {
    font-style: italic;
    opacity: 0.92;
    margin-bottom: 20px;
    line-height: 1.8;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}
.testimonial-author .av {
    width: 44px; height: 44px;
    background: var(--gold);
    color: var(--wine-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.testimonial-author h4 {
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
}
.testimonial-author span {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Reservation / Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 48px;
}
.contact-info h3 {
    font-size: 1.6rem;
    margin-bottom: 14px;
}
.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 28px;
}
.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 22px;
}
.contact-item .icon {
    width: 48px; height: 48px;
    background: rgba(196, 92, 38, 0.12);
    color: var(--terracotta);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}
.contact-item h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.contact-item p, .contact-item a {
    color: var(--text-muted);
    font-size: 0.92rem;
}
.contact-item a:hover { color: var(--wine); }

.reserve-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.reserve-form h3 {
    font-size: 1.5rem;
    margin-bottom: 24px;
    text-align: center;
}
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--cream-dark);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--cream);
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--terracotta);
    background: white;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Hours box */
.hours-box {
    background: var(--cream-dark);
    border-radius: var(--radius);
    padding: 24px;
    margin-top: 28px;
}
.hours-box h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    margin-bottom: 12px;
}
.hours-box p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 4px;
}

/* CTA */
.cta-banner {
    background: linear-gradient(135deg, var(--wine-dark), var(--wine));
    color: white;
    text-align: center;
    padding: 72px 0;
}
.cta-banner h2 {
    color: white;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 12px;
}
.cta-banner p {
    opacity: 0.85;
    margin-bottom: 28px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background: #2a181c;
    color: rgba(255,255,255,0.75);
    padding: 64px 0 28px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 40px;
}
.footer-brand .logo { color: white; margin-bottom: 14px; }
.footer-brand p {
    font-size: 0.92rem;
    line-height: 1.8;
    margin-bottom: 18px;
}
.social-links { display: flex; gap: 10px; }
.social-links a {
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.social-links a:hover { background: var(--terracotta); color: white; }
.footer-col h4 {
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
}

/* WA Float */
.wa-float {
    position: fixed;
    bottom: 28px; right: 28px;
    width: 56px; height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}
.wa-float:hover { transform: scale(1.1); }

/* Responsive */
@media (max-width: 992px) {
    .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: 1fr 1fr; }
    .gallery-item.tall { grid-row: span 1; min-height: 240px; height: 240px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px; left: 0; width: 100%;
        background: var(--cream);
        flex-direction: column;
        padding: 28px;
        gap: 18px;
        box-shadow: var(--shadow);
        transform: translateY(-130%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .mobile-toggle { display: block; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .gallery-grid { grid-template-columns: 1fr; }
}
