/* Mount Developments - main stylesheet */

/* Colours, fonts and widths live here. Change these to restyle the site. */
:root {
    /* Palette taken from the logo */
    --navy: #0a2343;
    --blue: #1b6ff6;
    --blue-dark: #1457c9;

    --bg: #ffffff;
    --bg-shaded: #eef3fb;
    --text: #26354d;
    --heading: var(--navy);
    --accent: var(--blue);
    --accent-dark: var(--blue-dark);
    --on-accent: #ffffff;
    --border: #d5deec;
    --footer-bg: var(--navy);
    --footer-text: #c3d0e6;

    /* Lato is loaded from Google Fonts in each page's <head> */
    --body-font: "Lato", "Helvetica Neue", Arial, sans-serif;
    --heading-font: "Lato", "Helvetica Neue", Arial, sans-serif;

    --content: 1100px;
    --radius: 3px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-padding-top: 5rem;
}

body {
    margin: 0;
    font: 400 1rem/1.7 var(--body-font);
    color: var(--text);
    background: var(--bg);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--blue-dark);
}

p {
    margin: 0;
}

ul {
    margin: 0;
    padding-left: 1.25rem;
}

li + li {
    margin-top: 0.4rem;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: #fff;
}

/* Header and navigation */
.site-header {
    position: relative;
    z-index: 20;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 2.5rem;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
}

.site-brand img {
    width: auto;
    height: 120px;
}

.site-brand span {
    color: var(--navy);
    font: 700 2rem/1.1 var(--heading-font);
}

.site-nav {
    margin-left: auto;
}

.site-nav ul {
    display: flex;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav li + li {
    margin-top: 0;
}

.site-nav a {
    display: block;
    padding: 0.6rem 1rem;
    border-bottom: 3px solid transparent;
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--blue);
}

.site-nav a[aria-current="page"] {
    border-bottom-color: var(--blue);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--heading);
    transition: transform 0.2s, opacity 0.2s;
}

.menu-toggle span {
    position: relative;
    margin: 0 auto;
}

.menu-toggle span::before,
.menu-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-toggle span::before {
    top: -7px;
}

.menu-toggle span::after {
    top: 7px;
}

.menu-open .menu-toggle span {
    background: transparent;
}

.menu-open .menu-toggle span::before {
    transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span::after {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1100px) {
    .site-brand img {
        height: 90px;
    }

    .site-brand span {
        font-size: 1.5rem;
    }
}

@media (max-width: 860px) {
    .site-header__inner {
        padding: 0.75rem 1.25rem;
    }

    .site-brand img {
        height: 72px;
    }

    .site-brand span {
        font-size: 1.25rem;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

    .site-nav {
        display: none;
        margin-left: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
    }

    .menu-open .site-nav {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 1.5rem 1rem;
    }

    .site-nav a {
        padding: 0.75rem 0;
        border-bottom: 0;
    }
}

@media (max-width: 480px) {
    .site-brand span {
        display: none;
    }
}

/* Page sections */
.strip {
    position: relative;
    padding: 4.5rem 0;
    background: var(--bg);
}

.strip--shaded {
    background: var(--bg-shaded);
}

.strip--accent {
    background: var(--navy);
    color: var(--on-accent);
}

.strip--accent h1,
.strip--accent h2,
.strip--accent h3,
.strip--accent a:not(.btn) {
    color: inherit;
}

.strip--hero {
    padding: 7rem 0;
}

.wrap {
    max-width: var(--content);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.strip--narrow .wrap {
    max-width: 760px;
}

.wrap > * + * {
    margin-top: 1.25rem;
}

.wrap > .columns + .columns {
    margin-top: 3.5rem;
}

/* Hero with a photo down the right-hand side */
.strip--split {
    overflow: hidden;
}

.strip--split .wrap {
    width: 55%;
    max-width: none;
    margin: 0;
    padding-left: max(1.5rem, calc((100vw - var(--content)) / 2 + 1.5rem));
    padding-right: 3rem;
}

.strip__image {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 760px) {
    .strip {
        padding: 3rem 0;
    }

    .strip--hero {
        padding: 4rem 0;
    }

    .strip--split {
        padding-top: 0;
    }

    .strip--split .wrap {
        width: 100%;
        padding: 2.5rem 1.5rem 0;
    }

    .strip__image {
        position: static;
        width: 100%;
        height: 240px;
    }
}

/* Headings */
h1,
h2,
h3,
h4 {
    margin: 0;
    color: var(--heading);
    font-family: var(--heading-font);
    line-height: 1.25;
}

.display {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.15;
}

.display strong {
    font-weight: 700;
}

.headline {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
}

.heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.subheading {
    font-size: 1.3rem;
}

.center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.6rem;
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--on-accent);
    font: 700 1rem/1.2 var(--body-font);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.btn--small {
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
}

.btn--outline {
    background: transparent;
    color: var(--accent);
}

.btn--outline:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
}

.strip--accent .btn {
    border-color: #fff;
    background: #fff;
    color: var(--navy);
}

.strip--accent .btn:hover {
    background: transparent;
    color: #fff;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.actions.center {
    justify-content: center;
}

/* Columns and photos */
.columns {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
}

.column {
    flex: 1 1 0;
    min-width: 0;
}

.column > * + * {
    margin-top: 1rem;
}

.columns--wide-left > .column:first-child {
    flex: 3;
}

.columns--wide-left > .column:last-child {
    flex: 2;
}

.columns:has(> .column > .photo:only-child) {
    align-items: center;
}

.photo {
    width: 100%;
    aspect-ratio: 10 / 7;
    object-fit: cover;
    border-radius: var(--radius);
}

@media (max-width: 760px) {
    .columns {
        flex-direction: column;
        align-items: stretch;
        gap: 2.5rem;
    }
}

/* Questions and answers */
.faq {
    border-top: 1px solid var(--border);
}

.faq__item {
    border-bottom: 1px solid var(--border);
}

.faq__item summary {
    position: relative;
    padding: 1rem 2rem 1rem 0;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

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

.faq__item summary::after {
    content: "+";
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
}

.faq__item[open] summary::after {
    content: "\2212";
}

.faq__item p {
    padding-bottom: 1.2rem;
}

/* Contact form */
.contact-form .field {
    margin-bottom: 1.1rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    font: inherit;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.contact-form textarea {
    min-height: 9em;
    resize: vertical;
}

/* Footer */
.site-footer {
    padding: 1.75rem 1.5rem;
    background: var(--footer-bg);
    color: var(--footer-text);
    font-size: 0.9rem;
    text-align: center;
}

.site-footer p + p {
    margin-top: 0.35rem;
}

.site-footer a {
    color: #fff;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.75rem;
    margin-bottom: 1rem;
    font-weight: 700;
}
