/* Global styles */
:root {
    --primary-color: #c62828;       /* deep red inspired by Chilean wine and peppers */
    --secondary-color: #fafafa;     /* light background */
    --dark-color: #222;             /* dark text color */
    --accent-color: #ffc107;        /* warm accent color */
    --max-width: 1200px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    background-color: var(--secondary-color);
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.5rem 1rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    margin-right: 0.5rem;
}

.logo span {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem;
    transition: color 0.3s;
}

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

/* Hero section */
.hero {
    height: 80vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #fff;
    text-align: center;
}

.hero-overlay {
    background: rgba(0,0,0,0.55);
    padding: 2rem;
    border-radius: 8px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.btn {
    background: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: inline-block;
}

.btn:hover {
    background: #a21515;
}

/* Sections */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1rem;
}

section.content {
    background: #fff;
}

section.content.alt {
    background: #fdf4f5;
}

.section-container h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-container p {
    margin-bottom: 1rem;
}

.section-container ul li, .section-container ol li {
    margin-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.quick-links {
    margin-top: 1rem;
    font-style: italic;
}

/* Layout for images and text */
.section-container .section-container,
.section-container .text-block {
    width: 50%;
}

.content .section-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.content .section-container.reverse {
    flex-direction: row-reverse;
}

.image-block img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Trust section */
.trust {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 3rem 1rem;
}

.trust a {
    color: #fff;
    text-decoration: underline;
}

/* Listing sections (cards) */
section.listing {
    background: #fff;
    position: relative;
    color: var(--dark-color);
}

section.listing.alt {
    color: #fff;
}

section.listing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -3;
}

section.listing .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: -2;
}

section.listing.alt .overlay {
    display: block;
}

section.listing h2 {
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.cards.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(2px);
    padding: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

section.listing.alt .card {
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

section.listing.alt .card h3 {
    color: var(--accent-color);
}

.card p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Tables */
.table-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

thead th {
    background: var(--primary-color);
    color: #fff;
    padding: 0.75rem;
    text-align: left;
    font-size: 0.9rem;
}

tbody td {
    padding: 0.75rem;
    border-bottom: 1px solid #ddd;
    font-size: 0.85rem;
}

tbody tr:nth-child(even) {
    background: #f5f5f5;
}

/* Contact form */
.contact {
    background: #fff;
}

.contact h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 1rem auto 0;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.9rem;
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: #fff;
    padding: 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .content .section-container {
        flex-direction: column;
    }
    .nav-links {
        display: none;
    }
    header {
        text-align: center;
    }
    .logo {
        justify-content: center;
    }
}