/* ==========================================================================
   Afshari Co – custom styles
   Loaded last in the page layout; overrides the 585-square template.
   ========================================================================== */

/* --- Font: Jost (self-hosted, SIL OFL – see fonts/jost/OFL.txt) ----------
   Variable font, one file covers weights 300–600.
   Weights used (from the homepage mockup):
     300 Light   – main menu, headings, buttons, footer
     400 Regular – body text
     500 Medium  – news titles, tile labels, sub-menu
   ------------------------------------------------------------------------- */

@font-face {
    font-family: 'Jost';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('../fonts/jost/jost-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Jost';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('../fonts/jost/jost-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Jost';
    font-style: italic;
    font-weight: 300 600;
    font-display: swap;
    src: url('../fonts/jost/jost-italic-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Jost';
    font-style: italic;
    font-weight: 300 600;
    font-display: swap;
    src: url('../fonts/jost/jost-italic-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
    --font-main: 'Jost', 'Futura', 'Trebuchet MS', Arial, sans-serif;
}

/* --- Font assignments (override the template's Roboto fonts) ------------- */

/* Body text – Regular */
body,
.mod_eventlist div.header a,
p.back a {
    font-family: var(--font-main);
    font-weight: 400;
}

/* Headings, main menu, buttons, footer – Light */
h1,
h2,
h3,
h5,
.ce_sliderStart h1,
.mainnavi .level_1 a,
.mainnavi .level_1 strong,
a.btn,
p.more a,
.footercontainer h2,
footer a,
footer .mod_navigation li a,
footer .mod_navigation li span {
    font-family: var(--font-main);
    font-weight: 300;
}

/* Small uppercase headings, news titles, sub-menu – Medium */
h4,
.mod_eventlist a,
.mod_newslist a,
#header .mainnavi ul.level_2 li li,
#header .mod_navigation ul.level_2 li span,
#header .mod_navigation ul.level_2 li .active,
.level_2 li .forward {
    font-family: var(--font-main);
    font-weight: 500;
}

/* Form fields and buttons don't always inherit the font */
input,
button,
select,
textarea {
    font-family: inherit;
}

/* --- Header colours ------------------------------------------------------ */

:root {
    --color-green: #81C341;   /* logo green – buttons, footer, highlights */
    --color-grey:  #62626C;   /* logo grey  – navbar background */
}

/* Logo bar: white (was navy #2c3e50 via styleIn.css) */
#header .topbartop {
    background-color: #fff;
}

/* Navbar: grey (was white via design.css .topbar / .home .topbar) */
#header .topbar {
    background-color: var(--color-grey);
}

/* Main menu, first level: white text.
   Hover and active/trail stay green (styleIn.css), sub-menus are unchanged. */
.mainnavi .level_1 > li > a,
.mainnavi .level_1 > li > strong,
.mainnavi .level_1 > li > span {
    color: #fff;
}

/* --- Header layout (homepage mockup) --------------------------------------
   Measured in the mockup, scaled to the 1296 px desktop container:
   logo bar: logo + 18 px above/below, navbar 85 px,
   menu: Jost Light, cap height ≈ 19 px (→ 27 px font), 51 px gaps,
   left-aligned with the logo; green "Contact us" block = right third,
   full bar height, text centred.
   ------------------------------------------------------------------------- */

/* Logo bar: 18 px above and below the logo.
   Only the outer bar – the logo article inside also has the class "topbartop". */
#header .bangb1 > .topbartop {
    padding: 18px 0;
}

#header .mod_article.topbartop {
    padding-top: 0;
    padding-bottom: 0;
}

/* Sticky header: the layout script adds .fixedTop to BOTH .bangb1 wrappers
   (logo bar and navbar) after 90 px of scrolling – both became fixed at
   top: 0, and the taller logo bar stuck out below the navbar.
   Only the navbar sticks; the logo bar stays in the page and scrolls away. */
#header .bangb1.fixedTop:has(> .topbartop) {
    position: static;
}

/* Logo and main menu in line with the section headlines and the footer
   logo: both header articles (logo bar: article-276, navbar: article-152)
   sit inside container › row and contain a second .container – its 12 px
   padding pushed logo and menu 12 px to the right (same fix as footer). */
#header .topbartop .mod_article > .container,
#header .topbar .mod_article > .container {
    padding-left: 0;
    padding-right: 0;
}

/* Navbar: height comes from the menu links (see below), not from padding */
#header .topbar,
#header .fixedTop .topbar {
    padding: 0;
    position: relative;
}

@media (min-width: 980px) {

    /* Menu may use the width it needs (template: col-md-7) */
    #header .topbar .mainnavi {
        flex: 0 0 auto;
        width: auto;
        max-width: 66%;
    }

    /* Left-aligned, evenly spaced (template: float right) */
    #header .mainnavi ul.level_1 {
        float: none;
        display: flex;
        flex-wrap: nowrap;
        gap: clamp(20px, 3.5vw, 51px);
    }

    /* Links: max. 20 px (from ≈ 1180 px width), scaling down below;
       vertical padding makes the bar 85 px high */
    #header .mainnavi ul.level_1 > li > a,
    #header .mainnavi ul.level_1 > li > strong,
    #header .mainnavi ul.level_1 > li > span {
        /* flex row: text and the sub-menu chevron (::after, design.css)
           always side by side, vertically centred */
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        font-size: clamp(14px, 1.69vw, 20px);   /* was 16px–27px (1.875vw) */
        font-weight: 300;
        line-height: 1;
        padding: calc((85px - 1em) / 2) 0;
        white-space: nowrap;
    }

    /* Sub-menu chevron (design.css: inline, 15 px, margin-left 5 px):
       scales with the link text, no own line box */
    #header .mainnavi > ul.level_1 > li.submenu > a:nth-last-child(2)::after,
    #header .mainnavi > ul.level_1 > li.submenu > span:nth-last-child(2)::after,
    #header .mainnavi > ul.level_1 > li.submenu > strong:nth-last-child(2)::after {
        position: static;
        display: block;
        flex: 0 0 auto;
        margin-left: .3em;
        font-size: .7em;
        line-height: 1;
    }

    /* Align the first menu letter with the logo's "A":
       Jost's "L" has a left side bearing of 0.084 em (≈ 2.3 px at 27 px);
       the "A" in the logo SVG starts at x = 0. In em, so it scales with the font. */
    #header .mainnavi ul.level_1 > li:first-child > a,
    #header .mainnavi ul.level_1 > li:first-child > strong,
    #header .mainnavi ul.level_1 > li:first-child > span {
        margin-left: -0.084em;
    }

    /* Dropdown sub-menus: 16 px higher, overlapping the navbar by ~11 px
       (design.css: margin-top 5px, normal and sticky header) */
    #header .bangb1 .mainnavi ul.level_2,
    #header .bangb1.fixedTop .mainnavi ul.level_2 {
        margin-top: -11px;
    }

    /* Dropdown sub-menus: text, links and the square bullets solid white
       (resetbs.css: rgba(255,255,255,0.7)) */
    #header .mainnavi ul.level_2 li a,
    #header .mainnavi ul.level_2 li span,
    #header .mainnavi ul.level_2 li strong,
    #header .mainnavi ul.level_2 li .active,
    #header .mainnavi ul.level_2 li .forward,
    #header .mainnavi ul.level_2 li a::before,
    #header .mainnavi ul.level_2 li span::before,
    #header .mainnavi ul.level_2 li strong::before,
    #header .mainnavi ul.level_2 li .active::before,
    #header .mainnavi ul.level_2 li .forward::before {
        color: #FFFFFF;
    }

    /* Dropdown sub-menus: 18 px at 1440 px width (template: 12 px),
       2/3 of the main menu size, scaling down with it */
    #header .mainnavi ul.level_2 li a,
    #header .mainnavi ul.level_2 li span,
    #header .mainnavi ul.level_2 li strong,
    #header .mainnavi ul.level_2 li .active,
    #header .mainnavi ul.level_2 li .forward {
        font-size: clamp(14px, 1.25vw, 18px);
        line-height: 1.3;
    }

    /* "Contact us": green block over the right third of the navbar */
    #header .topbar a.btn-top {
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 33.333%;
        margin: 0;
        padding: 0 1rem;
        float: none;
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: var(--color-green);
        color: #fff;
        font-size: clamp(14px, 1.69vw, 20px);   /* was 16px–27px (1.875vw) */
        font-weight: 300;
        line-height: 1;
    }

    /* 980–1199 px: green block narrower (33.333 % → 28 %),
       leaves more room for the menu */
    @media (max-width: 1199.98px) {
        #header .topbar a.btn-top {
            width: 28%;
        }
    }

    #header .topbar a.btn-top:hover,
    #header .topbar a.btn-top:focus {
        background-color: #6FAE32;   /* slightly darker green */
        color: #fff;
    }
}

/* --- Mobile overlay menu: sub-menu entries 25 % larger --------------------
   fullnav.css: 16 px → 20 px. resetbs.css sets the active and "forward"
   entries to 12 px – they inherit the 20 px as well. */
.overlay-menu .level_2 > li {
    font-size: 20px;
}

/* All overlay entries (both levels): bottom margin 20 px
   (fullnav.css: 40 px). The overlay is only used below 980 px. */
@media (max-width: 979.98px) {
    .overlay-menu li {
        margin-bottom: 20px;
    }
}

#header .overlay-menu .mod_navigation ul.level_2 li a,
#header .overlay-menu .mod_navigation ul.level_2 li span,
#header .overlay-menu .mod_navigation ul.level_2 li strong,
#header .overlay-menu .mod_navigation ul.level_2 li .active,
#header .overlay-menu .mod_navigation ul.level_2 li .forward {
    font-size: inherit;
}

/* --- Icons: FontAwesome 4 codes → Bootstrap Icons ------------------------
   The template sets font-family "bootstrap-icons" but still uses FontAwesome 4
   code points (e.g. \f0c8), which don't exist in Bootstrap Icons, so nothing
   is drawn. FontAwesome itself is not loaded (no @font-face).
   ------------------------------------------------------------------------- */

/* Sub-menu bullets: filled square (FA "\f0c8" = bi-square-fill "\f582").
   Desktop dropdown only – hidden in the mobile overlay menu (see below). */
#header .mainnavi ul.level_2 li a:before,
#header .mod_navigation ul.level_2 li .active:before,
.level_2 li .forward:before {
    font-family: bootstrap-icons;
    content: "\F582";
    display: inline-block;
    font-size: .6em;
    font-style: normal;
    vertical-align: .15em;
    padding-right: 8px;
}

/* Mobile overlay menu: no ::before elements on the entries (both levels).
   !important because the template's .active/.forward bullets (design.css)
   use more specific selectors. To show them again: delete this rule. */
.overlay-menu .mod_navigation li > a::before,
.overlay-menu .mod_navigation li > strong::before,
.overlay-menu .mod_navigation li > span::before,
.overlay-menu .mod_navigation li::before {
    content: none !important;
    display: none !important;
}

/* p.info a:before (calendar, design.css) has no icon font in the template */
p.info a:before {
    font-family: bootstrap-icons;
    font-style: normal;
}

/* Newsletter overlay button: envelope (FA "\f0e0" = bi-envelope "\f32f") */
div.overlay-textinput .submit:before {
    font-family: bootstrap-icons;
    content: "\F32F";
}

/* Footer "Get in touch": phone and e-mail (FontAwesome classes in the text) */
#footer .fa-phone:before,
#footer .fa-envelope-o:before {
    font-family: bootstrap-icons;
    font-style: normal;
    display: inline-block;
    margin-right: .5em;
}

/* Icons are absolutely positioned (design.css: left 19px) – without a
   positioned parent they ended up at the left edge of the viewport.
   Paragraph = reference; icons sit in its 25 px left margin, flush with
   the "Get in touch" headline. */
#footer .footeraddress p {
    position: relative;
}

#footer .footeraddress em {
    left: -25px;
    margin-top: 0;   /* design.css: 5px */
}

#footer .fa-phone:before {
    content: "\F5C1";   /* bi-telephone */
}

#footer .fa-envelope-o:before {
    content: "\F32F";   /* bi-envelope */
}

/* --- Homepage tiles (article-256: Portfolio / Concierge Crossings / Community)
   Mockup: three edge-to-edge tiles (16:10), image at full strength,
   grey gradient from the bottom (~90 % → transparent at ~1/3 height),
   white label centred near the bottom edge.
   Template: image at 30 % opacity over a coloured tile, text centred. -------- */

.homebanner .darkpic,
.homebanner .redpic,
.homebanner .bluepic {
    background: none;
}

.homebanner .blockInner {
    position: relative;
    overflow: hidden;
}

.homebanner figure.image_container {
    margin: 0;
    opacity: 1;
}

.homebanner figure.image_container img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

/* Gradient overlay */
.homebanner .blockInner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(98, 98, 108, .9) 0%,
        rgba(98, 98, 108, .6) 14%,
        rgba(98, 98, 108, 0) 36%
    );
    pointer-events: none;
    z-index: 1;
}

/* Label at the bottom */
.homebanner .textInner.ce_text {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: none;
    padding: 0 1rem 4.5%;
    z-index: 2;
}

.homebanner .bannertext h2 {
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: clamp(18px, 1.5vw, 29px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: .02em;
}

/* --- Homepage text blocks (article-211, class "icon"):
   the icon paragraphs (<p><em class="fa bi bi-display">) stay in the content
   but are hidden – the mockup shows headline + text only. ------------------ */

.mod_article.icon p:has(> em.bi),
.mod_article.icon em.bi-display {
    display: none;
}

/* Mobile menu button (hamburger, shown below 980 px): white icon on the
   grey navbar – also when the header is fixed (fullnav.css: #292928) */
@media (max-width: 979.98px) {
    .button-menu .bi-list::before {
        color: #fff;
    }
}

/* Mobile navbar (below 980 px, article-152): the "Contact us" paragraph
   (p.col.text-end) without bottom margin, full row height, button centred
   vertically (a.btn has margin-top: 7px in design.css). */
@media (max-width: 979.98px) {
    #article-152 p.col.text-end {
        margin-bottom: 0;
        align-self: stretch;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    #article-152 p.col.text-end a.btn-top {
        margin-top: 0;
        margin-bottom: 0;
        position: relative;
        z-index: 998;   /* on top – but below the open overlay menu (999) */
    }
}

@media screen and (max-width: 780px) {
    /* fullnav.css: padding 48px 18px, z-index 99 */
    .fixedTop .button-menu {
        padding: 32px 18px;
        z-index: 998;   /* on top – but below the open overlay menu (999) */
    }
}

/* Mobile: no left indent for the text blocks (design.css: .features 70 px) */
@media (max-width: 767.98px) {
    .features {
        padding-left: 0;
    }
}

/* Spacing: keep the texts above the laptop in the background (4play.jpg,
   class bg-4). The laptop rises to 34 % of the image height from the bottom
   and sits under the left text column; with background-size: cover that is
   ≈ 14 % of the viewport width on wide screens, hence 16vw + 40 px,
   minimum 300 px (template .p1: 80 px top and bottom). */
.mod_article.icon.p1 {
    padding-top: 120px;
    padding-bottom: max(300px, calc(16vw + 40px));
}

/* Text blocks closer together vertically:
   template .m2 = 40 px above + 40 px below each block (80 px between rows) */
.mod_article.icon .ce_text.m2 {
    margin-top: 0;
    margin-bottom: 0;
}

.mod_article.icon .row {
    row-gap: 48px;
}

/* --- Homepage "Updates" section (article-245, news list) -----------------
   Mockup: headline left, Jost Light, dark navy; three columns:
   image (≈ 1.64 : 1) → title (Medium) → teaser (Regular, ~4 lines);
   no "read more". Measured & scaled to the 1296 px container.
   ------------------------------------------------------------------------- */

:root {
    --color-navy: #0B1F35;    /* headlines + text in the mockup */
}

#article-245 {
    margin-top: 0;
    margin-bottom: 0;
    padding: 100px 0 60px;
    text-align: left;
}

/* Section headlines "Updates" and "Newsletter": same size, colour and
   x position. Both sit in container › row as direct children, so the
   Bootstrap column padding (12 px) is kept horizontally – the text starts
   at the container's content edge in both sections.
   "Updates" has Bootstrap .text-center (!important) → overridden. */
#article-245 h1.content-headline,
.newsletter-home h2.content-headline {
    text-align: left !important;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: calc(var(--bs-gutter-x) * .5);
    padding-right: calc(var(--bs-gutter-x) * .5);
    color: var(--color-navy);
    font-family: var(--font-main);
    font-size: clamp(22px, 1.85vw, 27px);
    font-weight: 300;
    line-height: 1.2;
    letter-spacing: 0;
}

#article-245 h1.content-headline {
    margin: 0 0 48px;
}

.newsletter-home h2.content-headline {
    margin: 0;
}

/* News columns: wider gutter (mockup ≈ 48 px) and the first image's left
   edge in line with the "Updates" headline. The list is a nested .row;
   its margins are set so that column content starts at the container's
   content edge: outer half-gutter (12 px) − inner half-gutter (24 px). */
#article-245 .mod_newslist {
    --bs-gutter-x: 3rem;
    margin-left: calc(.75rem - 1.5rem);
    margin-right: calc(.75rem - 1.5rem);
    padding-left: 0;
    padding-right: 0;
}

#article-245 .newsitem {
    padding-bottom: 0;
    text-align: left;
}

/* Image first, then title (markup: title before image) */
#article-245 .newsitem .news {
    display: flex;
    flex-direction: column;
}

#article-245 .newsitem .news figure {
    order: -1;
    margin: 0 0 38px !important;
}

#article-245 .newsitem .news figure img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 326 / 198;
    object-fit: cover;
}

/* --- News images in news lists (homepage "Updates", /news, …) ------------
   Hover: image grows by 6 % inside its frame – the figure clips it.
   Limited to #main, so footer news lists are not affected. */
#main .mod_newslist figure.image_container {
    overflow: hidden;
}

#main .mod_newslist figure.image_container img {
    display: block;
    transition: transform .4s ease;
}

#main .mod_newslist figure.image_container:hover img,
#main .mod_newslist figure.image_container a:focus-visible img {
    transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
    #main .mod_newslist figure.image_container img {
        transition: none;
    }
}

/* News page (/news, article-6): teaser without fixed height
   (resetbs.css: .mod_newslist .teaser { height: 109px }) */
#article-6 .mod_newslist .teaser {
    height: auto;
}

/* "More" links in news lists: no top margin (design.css: 20 px) –
   all pages except the homepage (body.home, where they are hidden) */
body:not(.home) .newstxt p.more {
    margin-top: 0;
}

/* Title */
#article-245 .newsitem h2 {
    margin: 0 0 4px;
    font-size: clamp(16px, 1.3vw, 19px);
    line-height: 1.25;
}

#article-245 .newsitem h2 a {
    color: var(--color-navy);
    font-family: var(--font-main);
    font-size: inherit;
    font-weight: 500;
    text-transform: none;
}

#article-245 .newsitem h2 a:hover,
#article-245 .newsitem h2 a:focus {
    color: var(--color-green);
}

/* Teaser: no fixed height (template: 40 / 109 px), max. 4 lines */
#article-245 .newstxt .teaser {
    height: auto;
    margin: 0;
    color: var(--color-navy);
    /* same as the text blocks in article-211: base size from body
       (design.css: 15 px, Bootstrap line-height 1.5) */
    font-size: inherit;
    line-height: inherit;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    overflow: hidden;
}

#article-245 .newstxt .teaser p {
    margin: 0;
}

/* "Read more" links: kept in the markup, visually hidden and taken out of
   the layout (still reachable for screen readers).
   To show them again: delete this rule. */
#article-245 .newstxt p.more {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* --- Footer colours ------------------------------------------------------ */

/* Background: green (was navy #2c3e50 via styleIn.css) */
#footer .footercontainer,
#footer .footercontainer .container {
    background-color: var(--color-green);
}

/* Text white, as in the mockup (template used 50–60 % transparent white) */
#footer,
#footer p,
#footer a,
#footer .copyright p,
#footer .copyright a {
    color: #fff;
}

/* Elements the template colours green would disappear on green:
   icons white, hover/active states grey */
#footer .fa,
#footer .footercontainer .fa,
#footer p.footerIcons a:after,
#footer .submit {
    color: #fff;
}

#footer a:hover,
#footer a:focus,
#footer .mod_navigation li a:hover,
#footer .mod_navigation li span:hover,
#footer .mod_navigation li a.active,
#footer .mod_navigation li span.active,
#footer .mod_navigation li a.trail,
#footer .mod_navigation li span.trail,
#footer .footercontainer .mod_eventlist a:hover,
#footer p.footerIcons a:hover:after {
    color: var(--color-grey);
}

/* Social icons: left-aligned under "Get social", more space between them.
   The template centres them and hides .footerIcons up to 1200 px width
   (meant for the header icons) – in the footer they stay visible. */
#footer p.footerIcons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 28px;
    text-align: left;
}

#footer p.footerIcons a,
#footer p.footerIcons a:after {
    margin: 0;
    padding: 0;
}

/* Social icons: the template has YouTube, Twitter, Facebook, Pinterest,
   Instagram – Google added here (Bootstrap Icons "bi-google") */
.footer-gg:after {
    content: "\F3F0";
}

/* Footer columns in line with the section headlines above ("Updates",
   "Newsletter"): the footer article sits inside container › row and has a
   second .container inside – its 12 px padding pushed everything 12 px
   to the right. Without it, the logo starts at the container's content edge. */
#footer .mod_article.footer > .container {
    padding-left: 0;
    padding-right: 0;
}

/* Mobile: space above the three text columns (Company, Get social,
   Get in touch) when they stack */
@media (max-width: 767.98px) {
    #footer .content-text {
        margin-top: 1rem;
    }
}

/* Line above the copyright: white instead of (invisible) green */
#footer .copyright {
    border-top-color: rgba(255, 255, 255, .3);
}

/* --- Back-to-top button: grey (was green via styleIn.css) ----------------- */

.scrolltop a {
    background-color: var(--color-grey);
}

/* --- Newsletter section: cool light grey (was #dfdcd8 via styleIn.css) ---- */

.newsletter-home {
    background-color: #EFEDF2;
}

/* --- Uppercase, as in the homepage mockup -------------------------------- */
/* Already uppercase in the template: main menu, buttons (a.btn, incl.
   "Contact us"), "more" links, slider headline. News titles stay as typed. */

/* Section headlines ("Latest News" → UPDATES, "Newsletter") */
h1.content-headline,
h2.content-headline,

/* Tiles below the slider (mockup: PORTFOLIO / CONCIERGE CROSSINGS / COMMUNITY) */
.homebanner h2,

/* Four text blocks (mockup: STEP BY STEP ADDED VALUE …) */
.mod_article.icon h3,

/* Newsletter button (mockup: SIGN UP) */
.newsletter-home .submit,

/* Footer headlines (template sets text-transform: none) and footer menu */
.footercontainer h2,
#footer .rte ul a,

/* Mobile overlay menu, first level – same as the desktop menu */
.overlay-menu ul.level_1 > li > a,
.overlay-menu ul.level_1 > li > span,
.overlay-menu ul.level_1 > li > strong {
    text-transform: uppercase;
}

/* --- Logo sizes ---------------------------------------------------------- */

/* Header (article __topbar-top__, element class "logo")
   The height is fixed; the width follows the logo ("Afshari Company"),
   so the Bootstrap column (col-lg-4 …) is allowed to grow with it. */
.topbartop .logo {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
}

.logo img {
    display: block;
    width: auto;
    height: auto;
    max-height: 70px;   /* mockup ≈ 78 px – slightly smaller, as requested */
    max-width: 100%;
}

/* Footer (article __footer__) */
#footer .content-image img {
    display: block;
    width: 220px;
    max-width: 100%;
    height: auto;
}

/* Mobile */
@media (max-width: 767.98px) {
    .logo img {
        max-height: 48px;
    }

    /* template adds margin: 10px 0 !important below 768 px */
    .topbartop .logo {
        margin: 0 !important;
    }

    #footer .content-image img {
        width: 180px;
    }
}
