:root {
    /* Single accent color */
    --accent: #c62828; /* red */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}


/* ======================== NAV BAR ================================ */

.navbar {
    background-color: var(--accent);
    padding: 0.75rem 1rem;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: bold;
    text-decoration: none;
}

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

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.nav-links a:hover {
    border-bottom-color: #ffffff;
}

/* ======================== NAV BAR END ================================ */

body {
    background-color: #ffffff;
    color: #222;
    line-height: 1.6;
}

/* header {

} */

header h1 {
    font-size: 2.5rem;
    background-color: var(--accent);
    color: #ffffff;
    text-align: center;
    padding-top: 1rem;
}

body > header p {
    background-color: var(--accent);
    color: #ffffff;
    font-size: 1.1rem;
    padding: 1.5rem 1rem;
    margin: 0 auto 0.5rem;
    text-align: center;
}

main > header p {
    color: var(--accent);
    margin-left: 1rem;
    margin-bottom: 1rem;
}

main {
    max-width: 800px;
    margin: 3rem auto;
    padding: 0 1rem;
}

article {
    display: block;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

section {
    border: 2px solid var(--accent);
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 2rem;
}

p > strong {
    font-size: 1.1rem;
}

section > h3 {
    padding: 0.5rem 1rem;
    color: #ffffff;
}

section:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

section img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.content {
    padding: 1rem;
}

header h2 {
    font-size: 1.4rem;
    text-align: left;
    background-color: #ffffff;
    color: var(--accent);
}

section h3 {
    background-color: var(--accent);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    text-align: left;
}

section p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

section a {
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    background-color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
    background-color: var(--accent);
    color: #ffffff;
}


/*  ====================== FLEX STYLING ====================== */

/* Generic flex row */
.row {
    display: flex;
    flex-direction: row;
    align-items: center;      /* vertically align items */
    gap: 1.5rem;              /* space between image & content */
    margin: 2rem 0;
}

/* Image column */
.row-img {
    flex: 0 0 300px;          /* fixed width image column */
}

.row-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Content column */
.row-content {
    flex: 1;                  /* take remaining space */
}

/* Optional: stack on small screens */
@media (max-width: 768px) {
    .row {
        flex-direction: column;
        align-items: flex-start;
    }

    .row-img {
        flex: 0 0 auto;
        width: 100%;
    }
}

/* ======================== CONTACT FORM ================================ */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.contact-form label {
    font-weight: bold;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form button {
    margin-top: 0.5rem;
    padding: 0.8rem;
    background-color: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.contact-form button:hover {
    background-color: #a61e1e;
    transform: translateY(-2px);
}
