/* Grande Property Care: shared styles. Page layout lives in inline styles written by src/build/build.js;
   this file adds fonts, base styles, hover/interactive states and the tablet/phone adaptations. */

/* Fonts (self-hosted, latin + latin-ext) */
@font-face{font-family:'Hanken Grotesk';font-style:normal;font-weight:400 600;font-display:swap;src:url(/fonts/cefff61b-229c-4215-8fcf-5ab9304f48ae.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:'Hanken Grotesk';font-style:normal;font-weight:400 600;font-display:swap;src:url(/fonts/e7584bfa-311f-4ffc-9b03-9861173a08f1.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:'Instrument Serif';font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/239efc18-634e-4193-a4d0-0a43462a5b50.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:'Instrument Serif';font-style:italic;font-weight:400;font-display:swap;src:url(/fonts/51278cfd-f779-4f1d-905f-3a9b35cdbc2f.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:'Instrument Serif';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/02e99295-987e-4a70-9336-0fd2d8eaa497.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:'Instrument Serif';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/592a96ac-5c71-4969-b926-c87d3007c2c4.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}

/* Base */
/* The site is light-only: stop phones in dark mode from recolouring text and form fields */
:root{color-scheme:only light}
html{-webkit-text-size-adjust:100%;scroll-padding-top:80px}
body{margin:0;background:#f6f5f1;color:#0e3650;font-family:'Hanken Grotesk',Helvetica,sans-serif;-webkit-font-smoothing:antialiased}
*{box-sizing:border-box}
a{color:#0e3650;text-decoration:none}
input,textarea,select,button{font-family:inherit}
[hidden]{display:none !important}
.gpc-skip{position:absolute;left:-9999px;top:8px;z-index:100;background:#0e3650;color:#f6f5f1;padding:10px 16px;border-radius:999px}
.gpc-skip:focus{left:16px}
:focus-visible{outline:2px solid #fdc53a;outline-offset:2px}

/* Hover states (inline styles set the resting look) */
.hv-gold:hover{background:#fdc53a !important;color:#0e3650 !important}
.hv-navy:hover{background:#0e3650 !important;color:#fdc53a !important}
.hv-light:hover{background:#f6f5f1 !important;color:#0e3650 !important}
.hv-gold-b:hover{background:#fdc53a !important;border-color:#fdc53a !important;color:#0e3650 !important}
.hv-text:hover{color:#b8860b !important}
.hv-ink:hover{color:#0e3650 !important}
.gpc-nav a:hover{color:#b8860b !important}
.gpc-nav a{transition:border-color .2s}
.gpc-nav a.is-current{border-bottom-color:#fdc53a !important}

/* Service tabs and house filter chips */
.gpc-tab,.gpc-chip{background:transparent;color:#0e3650}
.gpc-tab[aria-selected="true"],.gpc-chip[aria-pressed="true"]{background:#0e3650;color:#f6f5f1}

/* Animations: soft and short, and only for people who haven't asked their device to reduce motion.
   Content is never hidden without JavaScript (the .gpc-anim class is added by site.js), so search engines see everything. */
@media (prefers-reduced-motion: no-preference){
  /* Page changes: cross-fade between pages (Chrome, Edge, Safari 18+; other browsers just change page) */
  @view-transition{navigation:auto}
  ::view-transition-old(root){animation:gpcFadeOut .25s ease both}
  ::view-transition-new(root){animation:gpcFadeIn .35s ease both}

  /* Opening: hero photo settles, title and text rise in */
  .gpc-anim .gpc-hero > img{animation:gpcSettle 1.8s cubic-bezier(.2,.7,.2,1) both}
  .gpc-anim .gpc-hero-copy > *,
  .gpc-anim main > section:first-child:not(.gpc-hero) > *,
  .gpc-anim main > article > header > *{animation:gpcUp .9s cubic-bezier(.2,.7,.2,1) both}
  .gpc-anim .gpc-hero-copy > :nth-child(2),.gpc-anim main > section:first-child > :nth-child(2),.gpc-anim main > article > header > :nth-child(2){animation-delay:.1s}
  .gpc-anim .gpc-hero-copy > :nth-child(3),.gpc-anim main > section:first-child > :nth-child(3),.gpc-anim main > article > header > :nth-child(3){animation-delay:.2s}
  .gpc-anim main > article > header > :nth-child(n+4){animation-delay:.3s}

  /* Scrolling: blocks rise in as they enter the screen */
  .gpc-reveal{opacity:0;transform:translateY(26px);transition:opacity .8s cubic-bezier(.2,.7,.2,1),transform .8s cubic-bezier(.2,.7,.2,1);transition-delay:var(--d,0s)}
  .gpc-reveal.is-in{opacity:1;transform:none}

  /* Switching service tab, filtering houses */
  .gpc-anim .gpc-svc-panel:not([hidden]),.gpc-anim .gpc-house.is-shown{animation:gpcIn .45s ease both}

  /* Hover: photos zoom slightly, buttons lift */
  a.hv-text img,.gpc-house img{transition:transform .9s cubic-bezier(.2,.7,.2,1)}
  a.hv-text:hover img,.gpc-house:hover img{transform:scale(1.045)}
  .hv-gold,.hv-navy,.hv-light,.hv-gold-b{transition:background-color .2s,color .2s,border-color .2s,transform .2s}
  .hv-gold:hover,.hv-navy:hover,.hv-light:hover,.hv-gold-b:hover{transform:translateY(-1px)}
}
@keyframes gpcUp{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
@keyframes gpcIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes gpcSettle{from{transform:scale(1.08)}to{transform:scale(1)}}
@keyframes gpcFadeIn{from{opacity:0}to{opacity:1}}
@keyframes gpcFadeOut{from{opacity:1}to{opacity:0}}

/* Mobile menu: open/closed */
.gpc-burger .i-close{display:none}
.gpc-header.is-open .gpc-burger .i-open{display:none}
.gpc-header.is-open .gpc-burger .i-close{display:block}

/* Contact form fields */
.gpc-field{width:100%;padding:14px 16px;border:1px solid #c2ccd3;background:#fff;color:#0e3650;-webkit-text-fill-color:#0e3650;border-radius:2px;font-size:16px;line-height:1.4;appearance:none;-webkit-appearance:none}
select.gpc-field{padding-right:40px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230e3650' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center}
.gpc-field::placeholder{color:#7a8894;-webkit-text-fill-color:#7a8894}
.gpc-field:focus{outline:2px solid #fdc53a;outline-offset:1px;border-color:#0e3650}
.gpc-field:-webkit-autofill{-webkit-box-shadow:0 0 0 40px #fff inset}
.gpc-form input[type=checkbox]{accent-color:#0e3650;width:18px;height:18px;flex-shrink:0}
.gpc-burger,.gpc-wa-icon{display:none}
.gpc-drawer{display:none}

/* Homes map (Leaflet + OpenStreetMap tiles, recoloured to the site palette) */
/* isolation keeps Leaflet's internal z-indexes (400–1000) inside the map, below the sticky header and menu */
.gpc-map-wrap{position:relative;z-index:0;isolation:isolate;border-radius:4px;overflow:hidden;background:#dfe5e9;box-shadow:0 1px 0 #cbd4da}
.gpc-map{height:clamp(420px,56vw,620px);background:#dfe5e9;font-family:'Hanken Grotesk',Helvetica,sans-serif}
.gpc-map .leaflet-tile-pane{filter:grayscale(1) sepia(.25) hue-rotate(165deg) saturate(.55) brightness(1.06) contrast(.92)}
.gpc-map .leaflet-control-attribution{background:rgba(246,245,241,.85);color:#5a6974;font-size:10px}
.gpc-map .leaflet-control-attribution a{color:#3b4d5a}
.gpc-map .leaflet-bar{border:0;box-shadow:0 2px 10px rgba(6,28,44,.18)}
.gpc-map .leaflet-bar a{color:#0e3650;width:36px;height:36px;line-height:36px;font-size:20px}
.gpc-pin{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:50%;background:#0e3650;color:#fdc53a;border:3px solid #fdc53a;box-shadow:0 3px 10px rgba(6,28,44,.35);font:600 12px/1 'Hanken Grotesk',sans-serif;transition:transform .15s}
.gpc-pin:hover,.gpc-pin.is-open{transform:scale(1.15);background:#fdc53a;color:#0e3650;border-color:#0e3650}
.gpc-map .leaflet-popup-content-wrapper{border-radius:4px;background:#0e3650;color:#f6f5f1;box-shadow:0 8px 24px rgba(6,28,44,.3)}
.gpc-map .leaflet-popup-tip{background:#0e3650}
.gpc-map .leaflet-popup-content{margin:12px 16px;line-height:1.3}
.gpc-map .leaflet-popup-content strong{display:block;font-family:'Instrument Serif',serif;font-weight:400;font-size:22px}
.gpc-map .leaflet-popup-content span{font-size:13px;color:#c6d2da}
.gpc-map a.leaflet-popup-close-button{color:#c6d2da}

/* Journal article body (rendered from journal/posts.js) */
.gpc-prose{font-size:18px;line-height:1.75;color:#3b4d5a}
.gpc-prose > *:first-child{margin-top:0}
.gpc-prose p{margin:0 0 22px;text-wrap:pretty}
.gpc-prose h2{font-family:'Instrument Serif',serif;font-weight:400;font-size:clamp(28px,3vw,36px);line-height:1.1;color:#0e3650;margin:48px 0 16px;text-wrap:balance}
.gpc-prose h3{font-size:20px;font-weight:600;color:#0e3650;margin:32px 0 10px}
.gpc-prose ul,.gpc-prose ol{margin:0 0 24px;padding-left:22px}
.gpc-prose li{margin:0 0 10px;padding-left:4px}
.gpc-prose li::marker{color:#b8860b}
.gpc-prose strong{color:#0e3650;font-weight:600}
.gpc-prose a{color:#0e3650;text-decoration:underline;text-decoration-color:#fdc53a;text-decoration-thickness:2px;text-underline-offset:3px}
.gpc-prose a:hover{text-decoration-color:#0e3650}
.gpc-prose blockquote{margin:32px 0;padding:0 0 0 20px;border-left:3px solid #fdc53a;font-family:'Instrument Serif',serif;font-style:italic;font-size:26px;line-height:1.3;color:#0e3650}
.gpc-prose figure{margin:36px 0}
.gpc-prose img{display:block;max-width:100%;max-height:640px;margin:0 auto;border-radius:4px}
.gpc-prose figcaption{font-size:14px;color:#5a6974;text-align:center;margin-top:10px}

@media (max-width: 900px){
  .gpc-header-inner{flex-wrap:nowrap !important;padding:10px 20px !important}
  .gpc-logo{height:38px !important}
  .gpc-nav,.gpc-actions{display:none !important}
  .gpc-burger{display:flex !important}
  .gpc-header.is-open .gpc-drawer{display:flex}
}

@media (max-width: 600px){
  /* Hero */
  .gpc-hero{min-height:min(92svh,720px) !important}
  .gpc-hero-copy{padding-bottom:32px !important}
  .gpc-hero-sub{font-size:17px !important}
  .gpc-cta-row{width:100%}
  .gpc-cta-row a{flex:1 1 100%;text-align:center;white-space:normal !important}

  /* Key figures: two per row */
  .gpc-stats{grid-template-columns:1fr 1fr !important;gap:24px 16px !important;padding-top:28px !important;padding-bottom:28px !important}
  .gpc-stats span:first-child{font-size:34px !important}
  .gpc-stats span:last-child{font-size:13px !important}
  .gpc-stats > div:last-child:nth-child(odd){grid-column:1 / -1}

  /* Services: horizontal scrolling tabs, stacked rows */
  .gpc-tabs{flex-wrap:nowrap !important;overflow-x:auto;margin:0 -20px 24px !important;padding:0 20px 4px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .gpc-tabs::-webkit-scrollbar{display:none}
  .gpc-tabs button{flex:0 0 auto;padding:10px 16px !important;font-size:14px !important}
  .gpc-svc-panel{margin:0 -20px;border-radius:0 !important;padding:20px !important}
  .gpc-svc-panel h3{font-size:32px !important}
  .gpc-svc-row{grid-template-columns:1fr !important;gap:2px !important;padding:12px 0 !important}

  /* Quote band */
  .gpc-quote{padding-top:80px !important;padding-bottom:80px !important}

  /* Map: shorter, full width on phones */
  .gpc-map-wrap{margin:0 -20px;border-radius:0}
  .gpc-map{height:440px}

  /* Journal article: slightly smaller body text */
  .gpc-prose{font-size:17px;line-height:1.7}

  /* Contact form: one column, full-width button */
  .gpc-form{grid-template-columns:1fr !important}
  .gpc-submit{justify-self:stretch !important;padding:18px 28px !important}

  /* Floating WhatsApp: round icon button */
  .gpc-wa{padding:0 !important;width:56px;height:56px;justify-content:center;right:16px !important;bottom:16px !important;background:#25d366 !important;color:#fff !important}
  .gpc-wa-label,.gpc-wa-dot{display:none !important}
  .gpc-wa-icon{display:block}

  /* Leave room so the floating button never covers footer links */
  .gpc-footer-inner{padding-bottom:96px !important}
}
