/* Peebles Driving School — static clone stylesheet */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px; line-height: 1.65; color: #212121; background: #fff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #37474f; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* header */
.site-header {
    background: #37474f url("../images/hero.jpg") center/cover no-repeat;
    position: relative; padding: 18px 0 26px; color: #fff;
}
.site-header::before { content: ""; position: absolute; inset: 0; background: rgba(20,29,33,0.62); }
.site-header .wrap { position: relative; z-index: 1; }
.brand { display: block; margin-bottom: 12px; }
.brand img { height: 62px; width: auto; }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 0.95rem; }
.site-nav a { color: #fff; text-decoration: none; opacity: 0.92; border-bottom: 2px solid transparent; padding-bottom: 1px; }
.site-nav a:hover { opacity: 1; }
.site-nav a.active { font-weight: 700; border-bottom-color: #fff; opacity: 1; }

main.wrap { padding-top: 34px; padding-bottom: 54px; }

h1, h2, h3, h4 { color: #37474f; font-weight: 700; line-height: 1.25; }
h2 { font-size: 1.7rem; margin: 0 0 0.7rem; }
h3 { font-size: 1.18rem; margin: 1.6rem 0 0.4rem; }
h4 { font-size: 1.02rem; margin: 0.6rem 0 0.2rem; }
p { margin: 0.5rem 0 0.9rem; }
.lead { font-size: 1.12rem; }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 2rem 0 0; }
.quotes blockquote {
    margin: 0; padding: 18px 20px; background: #f5f7f8; border-left: 4px solid #37474f;
    border-radius: 0 6px 6px 0; font-style: italic; color: #37474f;
}
.quotes cite { display: block; margin-top: 0.7rem; font-style: normal; font-weight: 600; font-size: 0.9rem; color: #546e7a; }

/* instructors */
.member { display: flex; gap: 22px; align-items: flex-start; padding: 22px 0; border-bottom: 1px solid #eceff1; }
.member img { flex: 0 0 220px; width: 220px; border-radius: 8px; }
.member-body { flex: 1 1 auto; min-width: 0; }
.member-body h3 { margin-top: 0; }

/* prices */
.prices { list-style: none; padding: 0; margin: 0.6rem 0 1rem; max-width: 460px; }
.prices li { display: flex; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #eceff1; background: #fafbfc; }
.prices .amount { font-weight: 700; color: #37474f; }
.note { color: #607d8b; font-size: 0.95rem; }

ul.links { padding-left: 1.3rem; }
ul.links li { margin: 0.35rem 0; }

/* figures */
.figure { max-width: 320px; margin: 1.2rem auto; }
.cover { max-width: 340px; margin: 1.2rem auto; border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,0.18); }
.button {
    display: inline-block; background: #37474f; color: #fff; text-decoration: none;
    padding: 11px 20px; border-radius: 5px; font-weight: 700;
}
.button:hover { background: #263238; }

/* reviews */
.reviews { margin-top: 2.2rem; }
.review { border-top: 1px solid #eceff1; padding-top: 1rem; margin-bottom: 1.4rem; }
.stars { color: #f5a623; font-weight: 700; margin: 0; }
.reviewer { color: #78909c; font-size: 0.88rem; margin: 0.2rem 0 0.5rem; }

/* hours table */
table.hours { border-collapse: collapse; margin-top: 0.6rem; }
table.hours th, table.hours td { text-align: left; padding: 7px 16px 7px 0; border-bottom: 1px solid #eceff1; }
table.hours th { color: #37474f; width: 70px; }

.legal-head { font-weight: 700; color: #37474f; }

/* footer */
.site-footer { background: #37474f; color: #cfd8dc; margin-top: 40px; padding: 26px 0; font-size: 0.92rem; }
.site-footer a { color: #fff; }
.site-footer p { margin: 0.3rem 0; }
.site-footer .tagline { color: #fff; font-weight: 700; font-size: 1.05rem; }

@media (max-width: 620px) {
    .brand img { height: 48px; }
    .member { flex-direction: column; }
    .member img { flex: 0 0 auto; width: 170px; }
    h2 { font-size: 1.4rem; }
}
