/* ============================================================
   Small Business — Sitecake template
   Fluid 3 → 2 → 1 column layout. Breakpoints: 900px, 600px.
   ============================================================ */

/* --- reset / base --- */

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

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
    color: #5A5959;
    font-size: 100%;
    /* Safety net: user-editable content (long words, pasted URLs) can never
       force the page to scroll sideways. */
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: 0.3s;
    color: #5A5959;
}

a:focus {
    outline: none;
}

/* Responsive-image baseline for every viewport: images added or replaced from
   a phone come in up to 1920px wide and must stay inside their container. */
img {
    max-width: 100%;
    height: auto;
}



/* --- typography (fluid) --- */

h1,
h2,
h3,
h4,
h5,
h6,
p,
li {
    font-size: 1rem;
    line-height: 1.7;
    margin: 10px 0;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: bold;
    /* long words / URLs wrap instead of overflowing */
    overflow-wrap: break-word;
}

p,
li {
    overflow-wrap: break-word;
}

h1 {
    font-size: clamp(2rem, 8vw, 3rem);
    letter-spacing: -0.05em;
    line-height: 1.05;
}

h2 {
    font-size: clamp(1.6rem, 6vw, 2.25rem);
    letter-spacing: -0.04em;
}

h3 {
    font-size: clamp(1.2rem, 4.5vw, 1.5rem);
    letter-spacing: -0.04em;
}

h4 {
    font-size: 1.25rem;
}



/* --- layout ---
   Sections stay full-width so coloured bands (#call-to-action, #about-us,
   footer) bleed edge to edge; the inner grid is capped and centred. Tracks are
   minmax(0, Npx) so they shrink fluidly and never blow the grid out. */

header,
section,
main {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 300px));
    grid-gap: 30px;
    justify-content: center;
    padding-left: 20px;
    padding-right: 20px;
}



/* --- top menu --- */

header>* {
    padding: 20px 0 0;
}

header ul {
    grid-column: span 2;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

header ul li {
    padding-right: 20px;
    font-weight: bold;
}

header p {
    text-align: right;
    font-weight: bold;
}



/* --- main --- */

main {
    align-items: center;
    padding-top: 45px;
    padding-bottom: 75px;
}

main .main-text {}

main .main-image {
    grid-column: span 2;
}

.social {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.social img {
    margin-right: 5px;
}



/* --- call-to-action --- */

section#call-to-action {
    display: block;
    background-color: #7AB44D;
    text-align: center;
    padding: 15px 20px;
}

section#call-to-action * {
    color: white;
}

section#call-to-action strong {
    white-space: nowrap;
}



/* --- services --- */

section#services {
    padding-top: 75px;
    padding-bottom: 75px;
}

section#services>*:first-child {
    grid-column: 1 / -1;
}



/* --- about-us --- */

section#about-us {
    grid-template-columns: repeat(2, minmax(0, 445px));
    background-color: #5A5959;
    color: white;
    padding-top: 75px;
    padding-bottom: 75px;
}

section#about-us>*:first-child {
    grid-column: 1 / -1;
}

section#about-us>*>* {
    margin-top: 0;
}



/* --- contact --- */

section#contact {
    padding-top: 75px;
    padding-bottom: 75px;
}

section#contact>*:first-child {
    grid-column: 1 / -1;
}



/* --- footer --- */

footer {
    display: block;
    background-color: #5A5959;
}

.sc-map {
    width: 100% !important;
}



/* --- reduced motion --- */

@media screen and (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}



/* ============================================================
   Tablet / small laptop — up to 900px: 3-column grids drop to 2
   ============================================================ */

@media screen and (max-width: 900px) {

    header,
    section,
    main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-gap: 24px;
    }

    header ul {
        grid-column: 1 / -1;
    }

    main .main-image {
        grid-column: 1 / -1;
    }

    section#services>*:first-child,
    section#about-us>*:first-child,
    section#contact>*:first-child {
        grid-column: 1 / -1;
    }
}



/* ============================================================
   Mobile — up to 600px: single column
   ============================================================ */

@media screen and (max-width: 600px) {

    h2,
    h3,
    h4 {
        line-height: 1.3;
    }

    p,
    li {
        line-height: 1.6;
        margin: 5px 0;
    }

    header,
    section,
    main {
        display: flex;
        flex-direction: column;
        grid-gap: 0;
        padding: 20px;
    }

    header>* {
        padding: 0;
    }

    header ul {
        gap: 4px 0;
    }

    header ul li {
        padding-right: 15px;
    }

    header p {
        text-align: left;
    }

    main {
        padding: 20px;
    }

    main>div:first-child {
        margin-bottom: 20px;
    }

    section#call-to-action {
        padding: 20px;
        text-align: left;
    }

    /* was `nowrap` — the long phone-number string forced sideways scroll */
    section#call-to-action strong {
        white-space: normal;
    }

    section#services {
        padding: 20px 20px 40px;
    }

    section#services>* {
        margin-bottom: 10px;
    }

    section#about-us {
        padding: 20px 20px 40px;
    }

    section#contact {
        padding: 20px;
    }

    section#contact>* {
        margin-bottom: 10px;
    }
}



/* --- Sitecake classes --- */

.sc-content h1.green,
.sc-content h2.green,
.sc-content h3.green,
.sc-content h4.green {
    color: #7AB44D;
}

.sc-content img.rounded {
    border-radius: 6px;
}
