@charset "utf-8";
/* ==========================================================================
   Home page hero (added 25 Nov 2026)
   A large photo of the Bee mural (Brixham) with the brand line, the H1, the
   "Mural artist in Ashburton, Devon" line and a "Get a free quote" button
   laid over the bottom of it. Only the home page loads this file.
   The shared top banner is hidden on the home page, because the hero replaces it.
   The hero photos in images/banners/Bee-Mural-Hero are colour-graded copies of the Bee
   mural photo (a small lift in colour and light, greens eased back a little); the
   originals in the Bee mural folder are untouched.
   The text is always white / peach on a dark fade, so it reads the same in
   dark and light mode. No inline styles are used (the server's
   Content-Security-Policy only allows styles from the site's own files).
   To go back to the thin banner: delete the <div class="home-hero"> block in
   index.html, put back the <h1> and brand line in #MainHeading, and remove
   the link to this file.
   ========================================================================== */
body:has(.home-hero) #banner {
    display: none
}
.home-hero {
    position: relative;
    clear: both;
    float: left;
    width: 100%;
    height: min(56vw, calc(100vh - 110px));
    min-height: 360px;
    max-height: 780px;
    overflow: hidden;
    border-radius: 9px;
    /* a 5px gap of plain page background above and below the picture */
    margin: 5px 0;
    background-color: #2f4a2a
}
.home-hero picture,
.home-hero img {
    display: block;
    width: 100%;
    height: 100%
}
.home-hero picture {
    /* the site's general rule gives every picture a grey #ddd background */
    background: transparent
}
.home-hero img {
    /* the site's general img rule adds 5px of padding top and bottom, which let the grey show
       as a light line above the picture and a grey line below it; the rounded corners are
       now done by the hero box itself */
    padding: 0;
    border-radius: 0;
    object-fit: cover;
    /* sit the crop low so the washed-out sky at the top of the photo is cut off;
       on very wide screens the crop is gentler so the top of the plaque and sunflower stay in */
    object-position: 50% 100%
}
@media only screen and (min-width: 1500px) {
    .home-hero img {
        object-position: 50% 80%
    }
}
@media only screen and (min-width: 1800px) {
    .home-hero {
        max-height: 900px
    }
    .home-hero img {
        object-position: 50% 55%
    }
}
/* dark fade up from the bottom so the text always has something to sit on */
.home-hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, .7) 0%, rgba(0, 0, 0, .44) 24%, rgba(0, 0, 0, .13) 46%, rgba(0, 0, 0, 0) 64%)
}
.home-hero .home-hero-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 0 5% clamp(22px, 3.6vw, 52px);
    text-align: center
}
.home-hero .home-hero-text::before {
    /* soft dark glow just behind the words, so they stay readable over bright daisies
       without darkening the rest of the picture */
    content: "";
    position: absolute;
    z-index: -1;
    top: -22%;
    right: 8%;
    bottom: 0;
    left: 8%;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 58%, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .42) 42%, rgba(0, 0, 0, 0) 74%)
}
.home-hero .home-hero-brand {
    font-family: Gruppo, "Poppins ExtraLight", sans-serif;
    font-size: clamp(1.25rem, 2.7vw, 2.1rem);
    font-weight: 700;
    letter-spacing: .04em;
    color: #ffe3c6;
    -webkit-text-stroke: .4px #ffe3c6;
    padding: 0 0 .15em;
    text-shadow: 0 0 10px rgba(0, 0, 0, .95), 0 1px 3px rgba(0, 0, 0, .9)
}
.home-hero h1.home-heading {
    margin: 0;
    padding: 0 0 .3em;
    font-size: clamp(1.9rem, 3.9vw, 3.4rem);
    line-height: 1.12;
    text-wrap: balance;
    color: #fff;
    -webkit-text-stroke: .5px #fff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, .75), 0 1px 3px rgba(0, 0, 0, .85)
}
.home-hero .home-hero-nowrap {
    white-space: nowrap
}
.home-hero .home-hero-sub {
    margin: 0 0 clamp(14px, 2vw, 24px);
    padding: 0;
    font-family: "Poppins ExtraLight", Arial, sans-serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 12px rgba(0, 0, 0, .95), 0 1px 3px rgba(0, 0, 0, .9)
}
.home-hero a.home-hero-btn,
.home-hero a.home-hero-btn:visited {
    display: inline-block;
    min-height: 48px;
    padding: .8em 2em;
    border-radius: 12px;
    background-color: #ffcc99;
    color: #1d1915;
    font-family: "Poppins ExtraLight", Arial, sans-serif;
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .45)
}
.home-hero a.home-hero-btn:hover,
.home-hero a.home-hero-btn:focus {
    background-color: #ffb268;
    color: #1d1915
}
.home-hero a.home-hero-btn:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px
}
/* tablet and desktop: clear the fixed 42px menu bar (the banner used to do this) */
@media only screen and (min-width: 768px) {
    .home-hero {
        margin-top: 47px
    }
}
@media only screen and (min-width: 768px) and (max-height: 600px) and (pointer: coarse) {
    .home-hero {
        margin-top: 0;
        border-radius: 0 0 9px 9px
    }
}
/* phones: a portrait crop of the bee end of the wall (its own image files, with the sky
   cropped off), tall and narrow. A dark fade at the very top keeps the burger menu icon visible. */
@media only screen and (max-width: 767px) {
    .home-hero {
        height: min(150vw, 82vh, 640px);
        min-height: 460px;
        /* runs right up to the top of the screen, so no gap and no rounded top corners */
        margin-top: 0;
        border-radius: 0 0 9px 9px
    }
    .home-hero img {
        object-position: 50% 50%
    }
    .home-hero::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        height: 70px;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient(to bottom, rgba(0, 0, 0, .38), rgba(0, 0, 0, 0))
    }
}

/* tablet / desktop / landscape: the words and button sit in a rounded box with a thin pale outline,
   like the site's other boxes, but filled with a see-through dark layer so the mural shows through.
   (Short landscape phones, i.e. touch screens under 600px tall, keep the soft fade from the rules above.)
   To go back to the soft ellipse of dimming, delete this block and ask for it again. */
@media only screen and (min-width: 768px) and (not ((max-height: 600px) and (pointer: coarse))) {
    .home-hero::after {
        background: none
    }
    .home-hero .home-hero-text {
        left: 50%;
        right: auto;
        bottom: clamp(18px, 3vw, 44px);
        transform: translateX(-50%);
        box-sizing: border-box;
        width: max-content;
        max-width: calc(100% - 48px);
        padding: clamp(16px, 2vw, 30px) clamp(24px, 4vw, 64px);
        border: 1px solid rgba(255, 255, 255, .32);
        border-radius: 28px;
        background: rgba(0, 0, 0, .4)
    }
    .home-hero .home-hero-text::before {
        display: none
    }
}
/* short browser windows (e.g. a small preview pane): a tighter box so it doesn't swallow the picture */
@media only screen and (min-width: 768px) and (max-height: 700px) and (not ((max-height: 600px) and (pointer: coarse))) {
    .home-hero .home-hero-text {
        bottom: 12px;
        padding: 10px clamp(20px, 3vw, 40px) 14px
    }
    .home-hero .home-hero-brand {
        font-size: 1.05rem
    }
    .home-hero h1.home-heading {
        font-size: clamp(1.4rem, 3.2vw, 2.2rem)
    }
    .home-hero .home-hero-sub {
        font-size: .95rem
    }
    .home-hero a.home-hero-btn {
        min-height: 40px
    }
}

/* tablet / desktop: let the top menu and its drop-downs sit in front of the picture and its text box.
   (On phones the menu already has this same z-index.) */
body:has(.home-hero) #Menu {
    z-index: 100
}
