/* =========================
   GLOBAL STYLES
========================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background-color: #f4f7fa;
    color: #333;
}

/* =========================
   HEADER
========================= */
header {
    background-color: #1f3b5c;
    color: #ffffff;
    padding: 30px 15px;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.3em;
}

.subtitle {
    margin-top: 8px;
    font-size: 1.1em;
    color: #d9e3ee;
}

/* =========================
   NAVIGATION
========================= */
nav {
    background-color: #2c517a;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 14px 22px;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
}

nav a:hover,
nav a.active {
    background-color: #1f3b5c;
}

/* =========================
   MAIN CONTENT
========================= */
main {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

section {
    margin-bottom: 40px;
}

h2, h3 {
    color: #1f3b5c;
}

/* =========================
   SERVICES GRID
========================= */
.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* SERVICE CARD */
.service-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 25px;
    border-top: 5px solid #2c517a;
    box-shadow: 0 6px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.service-card h3 {
    margin-top: 0;
    font-size: 1.4em;
}

.service-card p {
    font-size: 1em;
    margin-bottom: 12px;
}

/* PRICE TAG */
.price {
    margin-top: 15px;
    font-size: 1.1em;
    font-weight: bold;
    color: #2c517a;
}

/* =========================
   CONTACT FORM
========================= */
.contact-form {
    max-width: 600px;
}

.contact-form label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    margin-top: 20px;
    padding: 12px;
    background-color: #2c517a;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    cursor: pointer;
}

.contact-form button:hover {
    background-color: #1f3b5c;
}

/* =========================
   FOOTER
========================= */
footer {
    background-color: #1f3b5c;
    color: #ffffff;
    text-align: center;
    padding: 15px;
    margin-top: 60px;
}

/* =========================
   MOBILE ADJUSTMENTS
========================= */
@media (max-width: 700px) {
    header h1 {
        font-size: 1.9em;
    }

    nav a {
        padding: 12px 16px;
    }
}

/* =========================
   GALLERY STYLES
========================= */
.gallery-pair {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 20px;
}

.gallery-box {
    flex: 1 1 300px;
    text-align: center;
}

.gallery-box h4 {
    margin-bottom: 10px;
    color: #2c517a;
    font-size: 1.1em;
}

/* Limit gallery images */
.gallery-box img {
    max-width: 90%;       /* keeps image from being too big */
    width: 100%;          /* fills container up to max-width */
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    margin: 0 auto;        /* center the image */
    display: block;
}

.gallery-box img:hover {
    transform: scale(1.05);
}

/* =========================
   RESPONSIVE GALLERY
========================= */
@media (max-width: 768px) {
    .gallery-pair {
        flex-direction: column;
        gap: 15px;
    }
}

/* =========================
   VIDEO SECTION
========================= */
.video-section {
    margin-top: 40px;
    text-align: center;
}

.video-section h3 {
    color: #2c517a;
    margin-bottom: 10px;
}

.video-section p {
    margin-bottom: 20px;
    font-size: 1em;
}

/* Responsive video container with size limits */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 90%;        /* limit video width like gallery images */
    margin: 0 auto;        /* center the video */
}

.video-container video,
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}