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

body {
    background-color: #f3efed;
    color: #013751;
    font-family: Arial, sans-serif;
}

main {
    min-height: 100vh;
}

/* Header */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 18px 40px;
    border-bottom: 1px solid #d8d6d3;
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: #f3efed;
}

header img {
    display: block;
    width: 70px;
    height: auto;
}

/* Navigation */
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

nav button,
nav a {
    background: none;
    border: none;
    border-bottom: 1px solid transparent;
    color: inherit;
    font-family: inherit;
    font-size: 16px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 10px 0 3px;
    transition: border-bottom-color 0.3s ease;
}

nav button:hover,
nav a:hover {
    border-bottom-color: black;
}

nav {
    align-items: center;
}

nav .booking-button {
    background-color: #013751;
    color: #f3efed;
    border: 1px solid #013751;
    padding: 12px 22px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

nav .booking-button:hover {
    background-color: #07516b;
    border-color: #013751;
}

a.booking-button {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

/* Page headings */
h1 {
    font-family: Didot, "Bodoni MT", Georgia, serif;
    font-size: clamp(40px, 5vw, 68px);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.1;
    padding: 45px 20px;
    text-align: center;
}

/* About text */
.about-text {
    max-width: 850px;
    margin: 0 auto 24px;
    padding: 0 20px;
    font-size: 18px;
    line-height: 1.8;
}

/* Staff cards */
.people {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    padding: 20px 20px 60px;
}

.person-card {
    display: flex;
    flex-direction: column;
    width: 400px;
    max-width: 100%;
    border: 1px solid #d8d6d3;
    background-color: white;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.person-card img {
    display: block;
    width: 100%;
    height: auto;
}

.person-image {
    overflow: hidden;
}

.person-image img {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.person-card:hover .person-image img {
    transform: scale(1.05);
}

.person-details {
    position: relative;
    margin-top: -25px;
    width: 100%;
    padding: 24px 12px;
    background-color: white;
    text-align: center;
}

.person-name {
    display: inline-block;
    font-size: 26px;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.3s ease;
}

.person-occupation {
    display: block;
    margin-top: 6px;
    font-size: 15px;
    color: #555;
}

/* Individual profiles */
.profile {
    display: grid;
    grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
    gap: 32px;
    align-items: start;
    gap: 56px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.profile-photo {
    display: block;
    width: 100%;
    height: auto;
}

.profile-info {
    min-width: 0;
}

.profile-info h1 {
    font-size: clamp(28px, 3.5vw, 42px);
    text-align: left;
    padding: 0;
    margin-bottom: 12px;
}

.profile-role {
    font-size: 18px;
    color: #555;
    margin-bottom: 16px;
}

.profile-info a {
    color: inherit;
    font-size: 16px;
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}

.profile-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #d8d6d3;
}

.profile-info h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 14px;
}

.profile-services {
    list-style: disc;
    padding-left: 20px;
    margin: 0;
}

.profile-services li {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 8px;
}

.profile-bio {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    margin-top: 12px;
}

/* Price list */
.price-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.price-section {
    margin-bottom: 40px;
}

.price-list h2 {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 16px;
}

.price-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 24px;
    padding: 20px 0;
    border-bottom: 1px solid #d8d6d3;
}

.price-row h3 {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;
}

.price-row p {
    margin-top: 6px;
    font-size: 15px;
    color: #555;
}

.price {
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.price-note {
    margin-top: 14px;
    max-width: 65ch;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

.cancellation {
    padding: 24px;
    background-color: white;
    border: 1px solid #d8d6d3;
}

.cancellation h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.cancellation p {
    font-size: 16px;
    line-height: 1.7;
}

/* Advice page */
.advice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 48px 32px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.advice-card img {
    display: block;
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.advice-content {
    position: relative;
    width: calc(100% - 48px);
    margin: -110px auto 0;
    padding: 32px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 12px 32px rgba(1, 55, 81, 0.06);
}

.advice-content h2 {
    font-family: Didot, "Bodoni MT", Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 18px;
}

.advice-content p {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
}

/* Center the third card when it is alone on the last row */
.advice-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc((100% - 32px) / 2);
    justify-self: center;
}

.advice-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.advice-more {
    display: inline-block;
    margin-top: 20px;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.3s ease;
}

.advice-link:hover .advice-more,
.advice-link:focus-visible .advice-more {
    border-bottom-color: currentColor;
}

.advice-link:focus-visible {
    outline: 2px solid #013751;
    outline-offset: 5px;
}

.advice-image {
    overflow: hidden;
}

.advice-image img {
    transition: transform 0.4s ease;
}

.advice-content {
    transition: transform 0.4s ease;
}

.advice-link:hover .advice-image img,
.advice-link:focus-visible .advice-image img {
    transform: scale(1.05);
}

.advice-link:hover .advice-content,
.advice-link:focus-visible .advice-content {
    transform: scale(1.02);
}

/* Service information pages */
.service-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* Wide, centered title */
.service-page h1 {
    max-width: 1000px;
    margin: 0 auto 36px;
    padding: 0;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
    text-align: center;
}

/* Narrower text column */
.service-page > p {
    max-width: 700px;
    margin: 0 auto 24px;
    font-size: 18px;
    line-height: 1.8;
    color: #444;
}

.service-page .service-intro {
    font-size: 18px;
    color: #444;
}

/* Notice */
.service-notice {
    max-width: 700px;
    margin: 32px auto;
    padding: 24px;
    background-color: white;
    border-left: 3px solid #013751;
}

.service-notice p {
    margin: 0;
    font-size: 17px;
    line-height: 1.8;
    color: #013751;
}

/* Back link */
.service-page .service-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    padding: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.5;
    text-decoration: none;
    border: none;
}

.service-back span[aria-hidden="true"] {
    font-size: 20px;
    line-height: 1;
}

.service-page .service-back:hover {
    color: #013751;
    text-decoration: none;
}

.service-back:hover .service-back-text {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Homepage layout */
.home-hero,
.home-services,
.home-team {
    max-width: 1120px;
    margin: 0 auto;
    padding: 64px 24px;
}

/* Introduction */
.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
}

.home-hero h1 {
    padding: 0;
    margin-bottom: 24px;
    font-size: clamp(38px, 4.5vw, 60px);
    line-height: 1.12;
    text-align: left;
}

.home-hero-text > p {
    max-width: 44ch;
    font-size: 19px;
    line-height: 1.8;
    color: #444;
}

.home-hero-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.home-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 28px;
}

/* Homepage links */
.home-primary {
    display: inline-block;
    padding: 13px 22px;
    background-color: #013751;
    color: #f3efed;
    border-radius: 3px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.home-primary:hover {
    background-color: #07516b;
}

.home-secondary {
    display: inline-block;
    padding-bottom: 3px;
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

/* Service cards */
.home-services {
    border-top: 1px solid #d8d6d3;
}

.home-services h2,
.home-team h2 {
    font-family: Didot, "Bodoni MT", Georgia, serif;
    font-size: clamp(30px, 3vw, 40px);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 28px;
}

.home-service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.home-service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    background-color: white;
    border: 1px solid #d8d6d3;
    color: inherit;
    text-decoration: none;
}

.home-service-card h3 {
    font-family: Didot, "Bodoni MT", Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 16px;
}

.home-service-card p {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 24px;
}

.home-card-link {
    margin-top: auto;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.3s ease;
}

.home-service-card:hover .home-card-link,
.home-service-card:focus-visible .home-card-link {
    border-bottom-color: currentColor;
}

/* Team introduction */
.home-team {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    align-items: start;
    gap: 48px;
    border-top: 1px solid #d8d6d3;
    padding-bottom: 80px;
}

.home-team-intro p {
    font-size: 17px;
    line-height: 1.8;
    color: #444;
    margin-bottom: 24px;
}

.home-team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.home-person {
    color: inherit;
    text-decoration: none;
}

.home-person-image {
    overflow: hidden;
    margin-bottom: 16px;
}

.home-person img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.home-person:hover img,
.home-person:focus-visible img {
    transform: scale(1.05);
}

.home-person h3 {
    display: inline;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: border-bottom-color 0.3s ease;
}

.home-person:hover h3,
.home-person:focus-visible h3 {
    border-bottom-color: currentColor;
}

.home-person p {
    margin-top: 10px;
    font-size: 15px;
    color: #555;
}

/* Keyboard navigation */
.home-primary:focus-visible,
.home-secondary:focus-visible,
.home-service-card:focus-visible,
.home-person:focus-visible {
    outline: 2px solid #013751;
    outline-offset: 5px;
}



/* Footer */
footer {
    padding: 30px;
    border-top: 1px solid #d8d6d3;
    text-align: center;
}

/* Smaller screens */
@media (max-width: 700px) {
    .profile {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 20px;
    }
}

@media (max-width: 600px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
    }

    nav {
        gap: 16px;
    }

    h1 {
        padding: 30px 20px;
    }
}

@media (max-width: 600px) {
    .price-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .price-list h2 {
        font-size: 20px;
    }

    .cancellation {
        padding: 20px;
    }
}

@media (max-width: 700px) {
    .advice-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 0 20px 60px;
    }

    .advice-card:last-child:nth-child(odd) {
        grid-column: auto;
        width: 100%;
    }

    .advice-card img {
        height: 280px;
    }

    .advice-content {
        width: calc(100% - 32px);
        margin-top: -70px;
        padding: 24px;
    }

    .advice-content h2 {
        font-size: 26px;
    }
}

@media (max-width: 600px) {
    .service-page {
        padding: 28px 20px 60px;
    }

    .service-page .service-intro {
        font-size: 18px;
    }

    .service-notice {
        padding: 20px;
    }
}

/* Hidden on computers */
.mobile-actions {
    display: none;
}

/* Phone header only */
@media (max-width: 600px) {
    header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 16px;
    }

    header img {
        width: 56px;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-actions {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .mobile-actions .booking-button {
        background-color: #013751;
        color: #f3efed;
        border: 1px solid #013751;
        border-radius: 3px;
        padding: 10px 12px;
        font: inherit;
        font-size: 14px;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .mobile-menu summary {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        cursor: pointer;
        list-style: none;
    }

    .mobile-menu summary::-webkit-details-marker {
        display: none;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: #013751;
    }

    .mobile-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 12px 20px;
        background-color: #f3efed;
        border-bottom: 1px solid #d8d6d3;
        box-shadow: 0 8px 16px rgba(1, 55, 81, 0.06);
    }

    .mobile-nav a {
        display: block;
        padding: 14px 0;
        font-size: 16px;
    }
}

@media (max-width: 800px) {
    .home-hero,
    .home-team {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .home-hero-image {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 600px) {
    .home-hero,
    .home-services,
    .home-team {
        padding: 36px 20px;
    }

    .home-service-grid {
        grid-template-columns: 1fr;
    }

    .home-service-card {
        padding: 24px;
    }

    .home-team-grid {
        gap: 16px;
    }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .home-primary,
    .home-card-link,
    .home-person img,
    .home-person h3 {
        transition: none;
    }

    .home-person:hover img,
    .home-person:focus-visible img {
        transform: none;
    }
}