/* --------------------------------------------------
   RESET + BASE
-------------------------------------------------- */
main {
    max-width: 900px;
    margin: 0 auto;
    padding: 1rem;
    text-align: center;
}

.services-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.services-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.service-row {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.service-img {
    width: 180px;
    height: auto;
    flex-shrink: 0;
    border-radius: 8px;
}

.service-text h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.service-text p {
    margin: 0;
}

/* Mobile-first responsive */
@media (max-width: 600px) {
    .service-row {
        flex-direction: column;
        text-align: center;
    }

    .service-img {
        width: 70%;
        margin: 0 auto;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f7f7f7;
    color: #222;
    line-height: 1.6;
}

a {
    color: #0057ff;
    text-decoration: none;
}

    a:hover,
    a:focus {
        text-decoration: underline;
    }

:focus {
    outline: 3px solid #0057ff;
    outline-offset: 3px;
}

/* --------------------------------------------------
   LAYOUT HELPERS
-------------------------------------------------- */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}
/* --------------------------------------------------

    .form-group,
fieldset.form-group {
  display: block;
  width: 100%;
  margin-bottom: 1.25rem; /* spacing between rows */
}

.form-group label,
.form-group legend {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    display: block;
}

/* Header container always vertical */
.site-header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Mobile nav hidden */
#main-nav {
    display: none;
    width: 100%;
    margin-top: 1rem;
}

    #main-nav.open {
        display: block;
    }

    /* Mobile menu vertical */
    #main-nav ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

/* Desktop: horizontal menu below logo */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    #main-nav {
        display: block;
        margin-top: 1rem;
    }

        #main-nav ul {
            flex-direction: row;
            justify-content: center;
            gap: 2rem;
        }
}

@media (max-width: 600px) {
    .service-row {
        flex-direction: column;
        text-align: center;
    }

    .service-img {
        width: 180px;
        max-width: 100%;
        height: auto;
    }

}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */

.site-footer {
    background: #000;
    color: #fff;
    padding: 1.25rem 0;
    margin-top: 2rem;
    text-align: center;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.footer-order-btn {
    display: inline-block;
    padding: 0.35rem 1rem;
    font-size: 0.95rem;
    background-color: #0057ff;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

    .footer-order-btn:hover,
    .footer-order-btn:focus {
        background-color: #003fcc;
    }

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .footer-links a {
        color: #fff;
    }

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.75;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer-links {
        flex-direction: row;
        gap: 1.5rem;
    }
}

/* --------------------------------------------------
   FORMS
-------------------------------------------------- */

form {
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
select,
textarea {
    width: 100%;
    padding: 0.65rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    background: #fff;
}

textarea {
    resize: vertical;
}

/* --------------------------------------------------
   BUTTONS
-------------------------------------------------- */

.btn-primary,
button[type="submit"] {
    display: inline-block;
    padding: 0.75rem 1.25rem;
    background-color: #0057ff;
    color: #fff;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .btn-primary:hover,
    .btn-primary:focus,
    button[type="submit"]:hover,
    button[type="submit"]:focus {
        background-color: #003fcc;
    }

/* --------------------------------------------------
   SECTIONS + HEADINGS
-------------------------------------------------- */

h1.page-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

section {
    margin-bottom: 2rem;
}

hr {
    margin: 2rem 0;
    border: none;
    border-top: 1px solid #ddd;
}
