/* Client symbol with a live wordmark using the site’s Newsreader heading font. */
.horizontal-brand{--logo-unit:1px;display:inline-flex;align-items:center;gap:calc(12 * var(--logo-unit));width:calc(268 * var(--logo-unit));flex-shrink:0}
.horizontal-brand .logo-emblem,.horizontal-brand .logo-lettering{position:relative;display:block;overflow:hidden;flex-shrink:0;padding:0;margin:0;border:0;border-radius:0;line-height:1}
.horizontal-brand .logo-emblem{width:calc(78 * var(--logo-unit));height:calc(78 * var(--logo-unit))}
.horizontal-brand .logo-lettering{width:calc(178 * var(--logo-unit));height:calc(53 * var(--logo-unit))}
.horizontal-brand .logo-emblem img,.horizontal-brand .logo-lettering img{position:absolute;display:block;max-width:none;object-fit:fill;margin:0;border-radius:0}
.horizontal-brand .logo-emblem img{width:calc(125.4 * var(--logo-unit));height:calc(125.4 * var(--logo-unit));left:calc(-23.8 * var(--logo-unit));top:calc(-6 * var(--logo-unit))}
.horizontal-brand .logo-lettering img{width:calc(200 * var(--logo-unit));height:calc(200 * var(--logo-unit));left:calc(-10.9 * var(--logo-unit));top:calc(-137 * var(--logo-unit))}
.site-header .header-inner{min-height:106px;padding-top:14px;padding-bottom:14px}.site-header #main-nav{gap:18px}
.footer-main .horizontal-brand{--logo-unit:.86px}
.admin-logo.horizontal-brand{--logo-unit:.71px}
.auth-brand.horizontal-brand{--logo-unit:1px}
.closing .closing-brand{position:absolute;right:-5px;top:5px;--logo-unit:1.4px;opacity:.12;filter:brightness(0) invert(1);pointer-events:none}
@media(max-width:650px){.site-header .horizontal-brand{--logo-unit:.627px}.site-header .header-inner{min-height:88px;padding:12px 15px}.closing .closing-brand{right:-35px;top:65px;--logo-unit:1px}}
@media(max-width:440px){.auth-brand.horizontal-brand{--logo-unit:.69px}.auth-header{gap:15px}.auth-header .admin-text-link{max-width:110px}}
@media(max-width:360px){.site-header .horizontal-brand{--logo-unit:.55px}.site-header .header-inner{padding:12px}}
.closing .wrap>.closing-brand{position:absolute;z-index:0}.closing .closing-brand img{opacity:1;filter:none}

.horizontal-brand .logo-lettering{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:calc(5 * var(--logo-unit));height:auto;min-height:calc(53 * var(--logo-unit));overflow:visible;letter-spacing:normal;color:#064c3f}
.horizontal-brand .logo-lettering strong{display:block;font-family:Newsreader,Georgia,serif;font-size:calc(45 * var(--logo-unit));font-weight:600;line-height:.95;letter-spacing:calc(-1.5 * var(--logo-unit));white-space:nowrap}
.horizontal-brand .logo-lettering small{display:block;font-family:'Source Sans 3',sans-serif;font-size:calc(22 * var(--logo-unit));font-weight:700;line-height:1;letter-spacing:calc(7.5 * var(--logo-unit));padding:0 0 0 calc(7.5 * var(--logo-unit));margin:0;color:#007078;text-align:center}
/* ==== KOHMERA POLISH round 1: Made the site header sticky and brought it inside the height budget, and lined the hero, services and closing headings up with the rest of the page. ==== */
/* ---------- Polish pass ---------- */

/* The header stays on screen while scrolling, on its own solid white bar,
   and now fits the height budget (90px on a computer, 80px on a phone). */
.site-header{position:sticky;top:0}
.site-header .header-inner{min-height:90px;padding-top:6px;padding-bottom:6px}
@media(max-width:650px){
  .site-header .header-inner{min-height:80px;padding-top:12px;padding-bottom:12px}
}

/* The hero and the closing panel sit 18px in from the page edge, but their
   inner .wrap was still taking the full page gutter on top of that, pushing
   their headings 18px right of every other section. Take the outer inset off
   the inner wrap so every heading starts on the same line. */
@media(max-width:1100px){
  .hero .wrap,.closing .wrap{width:calc(100% - 28px)}
}
@media(max-width:650px){
  .hero .wrap{width:calc(100% - 44px)}
}
@media(max-width:540px){
  .hero .wrap,.closing .wrap{width:calc(100% - 18px)}
}

/* At tablet width the strip becomes two columns, but every card kept its 25px
   left padding, so "Buy" and "Sell" (the left column) sat inset from the page.
   The stylesheet already does this below 540px; carry the same rule up. */
@media(max-width:850px){
  .services-strip article:nth-child(odd){padding-left:0!important}
}

/* ==== KOHMERA FIX 2026-09-21: the words in the header bar all sit on one line ==== */
.site-header #main-nav > a:not(.button){display:inline-flex;align-items:center;min-height:50px;line-height:1.4}
.site-header .currency-picker summary{line-height:1.4}
.kf-chev{display:block;flex:none}

/* ==== KOHMERA HEADER 2026-09-22: the sticky bar needs an edge, or text looks cut in half behind it ====
   The edge is the fault Andrew reported and is all that ships. Compacting the header on scroll was tried in the same
   pass and shrank the logo IMG without the wordmark beside it, leaving a cropped fragment; a broken logo on a paying
   customer's site is far worse than a header that does not shrink, so it was dropped rather than rushed. */
.site-header{border-bottom:1px solid var(--line)}
.site-header.at-top{border-bottom-color:transparent}
.site-header.is-scrolled{border-bottom-color:transparent;box-shadow:0 2px 16px rgba(6,76,63,.11)}
@media (prefers-reduced-motion: no-preference){
  .site-header{transition:border-color .2s ease,box-shadow .2s ease}
}


/* ==== KOHMERA FOOTER + HEADER 2026-09-22 (corrected) ==== */

/* The footer is a band you can see, so the page ends instead of stopping. */
footer{background:var(--ivory);border-top:1px solid var(--line)}

/* The 85px under the last line only ever existed so the floating chat button could not cover the copyright row.
   The button now gets out of the way when the footer is on screen, so the clearance is not needed and the empty
   strip goes with it. Andrew, 2026-09-22: "It still doesnt sit at the bottom of the site." */
.footer-small{padding-bottom:26px}
.whatsapp-float{transition:opacity .2s ease,transform .2s ease}
.whatsapp-float.is-away{opacity:0;transform:translateY(12px);pointer-events:none}

/* The header keeps its edge and nothing else changes size. The menu text used to shrink on scroll while the logo
   stayed put, which looks like a bug rather than a design (Andrew: "if we do this, we need the complete
   implementation, or we remove it"). Completing it needs the header's markup built for two sizes, which is a build
   decision and is written into prompts/build-system.md, not something to bodge into a live customer's stylesheet. */
.site-header .header-inner{min-height:96px}


/* ==== KOHMERA LAYOUT 2026-09-22: the closing panel keeps to the same frame as the hero ====
   Andrew, 2026-09-22: "that box is touching the footer (not proper padding) and it's also wider than the image at the
   very top in the hero". Both were true, and they were one fault: the page has two inset cards, the hero photo and the
   teal closing panel, and only the hero was ever given the page's frame.

   1. WIDTH. A late edit in site.css capped the hero at max-width:1600px with a 36px gutter. The closing panel kept
      margin:0 18px with no cap, so from about 1640px up it carried on growing while the hero stopped: 1884px against
      1600px on a 1920px screen, 2524px against 1600px at 2560px. Below 1640px the two matched, which is why the
      design inspector never saw it - it only ever measures 390, 768 and 1440.
   2. BOTTOM GUTTER. Its margin was 20px top, 18px sides, 0 bottom, so the rounded bottom corners died straight into
      the ivory footer band. An inset card needs its gutter on all four sides or it reads as a mistake.
   3. LEFT EDGE. Both cards hold their text in an inner .wrap, but that wrap was still taking the whole page gutter on
      top of the card's own 18px inset, and .hero .wrap was also allowed to open to 1340px where every other section
      stops at 1280px. Between them the hero and closing headings sat 18px right of every other heading from 1101px
      up, and 30px LEFT of them above 1500px. The site's own rule is that every section starts on the same left edge.
      Taking the card's 36px inset back off the inner wrap (96 - 36 = 60) and capping it at the same 1280px as the
      page .wrap makes the two line up exactly at every width, with no 100vw in it, because 100vw counts the
      scrollbar on Windows and would sit half a scrollbar off on a real machine. The matching rules below 1101px
      were already written in the polish pass above and are left alone. */
.closing{max-width:1600px;margin-left:auto;margin-right:auto;width:calc(100% - 36px);margin-bottom:20px}
@media(max-width:650px){.closing{width:calc(100% - 20px);margin-bottom:12px}}
@media(min-width:1101px){.hero .wrap,.closing .wrap{max-width:1280px;width:calc(100% - 60px)}}


/* ==== KOHMERA CLOSING PANEL 2026-09-22 (round 2) ====
   Andrew, looking at the deployed fix: "There is not enough padding between the teal box and the footer... the black
   text overtop the teal background doesnt look right either... the faded nutmeg realty logo in the teal card should be
   better-centered vertically." All three measured true.

   1. SPACE UNDER IT. The card had 20px of page under it and 91px of visible page over it. In the stylesheet that
      looked balanced, because the margin is 20px top and bottom; on the screen it is not, because the section above
      carries its own bottom padding. So the card sat in a generous pocket of white on top and met the ivory footer
      band through a 20px crack. Roughly two thirds of the air above it reads as a deliberate gap rather than a
      mistake, without leaving a void the eye reads as the page still loading.
   2. THE WORDS. They were #003027, a near-black green, on the #00a6b5 panel. That was never a design decision: white
      on that teal measures 2.95 to 1, under the 4.5 the checker asks for, so an earlier legibility pass darkened the
      TEXT rather than the PANEL, and the panel has read as black-on-bright ever since. site.css still carries the
      original intent one line above it, .closing{color:white}. Taking the teal one step deeper gets the white back
      AND passes: white on #007a86 measures about 5.1 to 1. It is the same teal, not a new colour.
   3. THE WATERMARK. It was pinned with top:5px, which put it 50px from the top of the panel and 95px from the bottom,
      45px high of centre. Centring it on the panel instead of measuring from the top keeps it centred whatever the
      panel's height, on every page that carries it. */
.closing{margin-bottom:clamp(40px,4.5vw,72px);background:#007a86}
.closing,.closing h2,.closing p{color:#fff}
.closing .closing-brand{top:50%;transform:translateY(-50%)}
/* On a phone the panel is too narrow to keep the watermark clear of the words, so the body line sits over it. That was
   harmless while the text was near-black; with white text it is not, because the watermark is white at 12% and lightens
   the panel underneath exactly where the words are (white on the blend measures 4.1 to 1, under the 4.5 threshold).
   The mark stays, faintly, only where it overlaps. On a computer the words sit left and the mark sits right, they never
   touch, and it keeps its full strength. */
@media(max-width:650px){.closing .closing-brand{opacity:.05}}

/* ==== KOHMERA CATEGORIES 2026-09-22 ====
   Five category tiles in a two-column grid below 850px is 2 + 2 + 1, so Venues sat alone on the last row looking like
   something had failed to load. It now spans the row as a feature card, which the wedding-venue photograph suits far
   better wide than it did cropped into a narrow tile. Above 850px the grid is five across and nothing changes.
   The img's own `sizes` said 45vw on a phone, which is right for a half-width tile and wrong for a full-width one: the
   browser would have fetched the 380px file and shown it at up to 786px, blurred. That is a markup attribute, not CSS,
   so it is corrected in index.html to 95vw and the 800px file is fetched instead. */
@media(max-width:850px){.categories>.category:last-child{grid-column:1/-1}}


/* ==== KOHMERA HEADER REBUILD 2026-09-22 ====
   Three faults the inspector reported, all in the header, all from one cause: the logo was the full 180px lockup blown
   up to 125px and clipped back to a 78px window by its parent.

   1. THE MARK IS ITS OWN FILE NOW. images/nutmeg-emblem.png is the supplied logo cropped once, in a file, to exactly
      the mark the CSS was already showing on screen: the house, the fruit and the leaf. The NUTMEG REALTY lettering
      beside it is still set live in Newsreader, as it always was. Nothing is redrawn, recoloured or restyled.
      The old technique put a 125px-tall <img> box inside a 78px window inside a 97px bar, so the image element hung
      31px BELOW the header. Nobody could see it, because the parent clips it, but it is a box poking out of the bar
      and it is why "header logo spills out of the header" fired at every width from 768px up. The image now fills its
      own box and the box is the emblem.
   2. IT IS SHARP. 125px drawn from a 180px file is 1.44x, under the 1.5x a sharp screen needs, so the mark was soft.
      The new file is 115px of real pixels and the emblem is drawn at 74px, which is 1.55x.
   3. THE BAR FITS ITS BUDGET. The line that used to end this file set min-height:96px with NO media query, so it also
      beat the 80px phone rule written above it and the bar was 97px tall on a 360px phone against an 84px budget.

   Every size still comes from the one --logo-unit the lockup already drives everything from, which is what the build
   prompt asks for: 78 x .95 = 74px. The phone steps are REPEATED below, because this block sits under the ones written
   earlier in the file and a media query adds no specificity, so a later plain rule beats an earlier media rule at every
   width. Leaving them out put a 74px emblem on a 390px phone, a 99px bar and 29px of sideways scroll, caught in the
   first measurement after this rebuild. The smallest step goes UP, not down: at .55 the emblem came out 43px and a
   squarish mark needs 44px to stay readable. */
.horizontal-brand .logo-emblem img{position:static;width:100%;height:100%;left:auto;top:auto;object-fit:contain}
.site-header .horizontal-brand{--logo-unit:.95px}
@media(max-width:650px){.site-header .horizontal-brand{--logo-unit:.627px}}
@media(max-width:360px){.site-header .horizontal-brand{--logo-unit:.58px}}
@media(max-width:650px){.site-header .header-inner{min-height:80px}}
