/* Global resets & conventions (from the design hand-off) */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: #FFFFFF;
  color: #2B2328;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; }
img { display: block; }
input, textarea, select { font-family: 'Nunito', sans-serif; }
::selection { background: #FFC23D; color: #5E1824; }

@keyframes floaty  { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floaty2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@keyframes spinslow { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------------------
   Hover / focus states. The design specifies these as `style-hover` /
   `style-focus`; inline styles can't express pseudo-classes, so they live here.
   `!important` is needed where the rule overrides an inline base value.
   --------------------------------------------------------------------------- */
.lift2:hover { transform: translateY(-2px); }
.lift4:hover { transform: translateY(-4px); }
.lift5:hover { transform: translateY(-5px); }
.lift6:hover { transform: translateY(-6px); }

.nav-link:hover { background: #FBF1F2 !important; color: #8A2435 !important; }
.tb-lang:hover  { background: rgba(255,255,255,.14) !important; }

/* Home hero translucent CTA + footer/extra translucent panels */
.hover-white-24:hover { background: rgba(255,255,255,.24) !important; }
.hover-white-20:hover { background: rgba(255,255,255,.20) !important; }
.extra-card:hover { background: rgba(255,255,255,.13) !important; transform: translateY(-4px); }

.about-link:hover { gap: 14px !important; }

.foot-link:hover   { color: #fff !important; }
.foot-social:hover { background: #8A2435 !important; }

/* Themed outline buttons / breadcrumbs (sub-pages) */
.btn-out-blue:hover  { border-color: #2E7DD6 !important; }
.btn-out-coral:hover { border-color: #F15B4C !important; }
.crumb-blue:hover    { color: #2E7DD6 !important; }
.crumb-coral:hover   { color: #F15B4C !important; }
.crumb-maroon:hover  { color: #8A2435 !important; }
.map-btn:hover       { border-color: #8A2435 !important; }
.quote-btn:hover     { transform: translateY(-2px); border-color: #F15B4C !important; }

/* Form fields */
.field:focus { border-color: #8A2435 !important; }

/* ---------------------------------------------------------------------------
   Digital concierge (chat widget)
   --------------------------------------------------------------------------- */
#cdr-concierge { position: fixed; right: 22px; bottom: 22px; z-index: 90; font-family: 'Nunito', system-ui, sans-serif; }

.cdr-cc-toggle {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px 0 19px;
  border-radius: 999px;
  background: #8A2435; color: #fff; border: none; cursor: pointer;
  box-shadow: 0 14px 30px -10px rgba(138,36,53,.75);
  font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 16px;
  transition: transform .15s, box-shadow .15s;
}
.cdr-cc-toggle:hover { transform: translateY(-3px); box-shadow: 0 20px 38px -12px rgba(138,36,53,.85); }
.cdr-cc-toggle-icon { flex-shrink: 0; display: block; }
.cdr-cc-toggle-label { white-space: nowrap; }
/* Attention pulse ring (stops once the chat is opened). */
.cdr-cc-toggle::before {
  content: ""; position: absolute; inset: 0; border-radius: 999px; pointer-events: none;
  animation: cdr-pulse 2.2s ease-out infinite;
}
@keyframes cdr-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(138,36,53,.5); }
  70%  { box-shadow: 0 0 0 16px rgba(138,36,53,0); }
  100% { box-shadow: 0 0 0 0 rgba(138,36,53,0); }
}
.cdr-open .cdr-cc-toggle::before { animation: none; }

/* Pop-up greeting bubble above the launcher. */
.cdr-cc-pop {
  position: absolute; right: 0; bottom: 70px;
  width: 240px; background: #fff; color: #2B2328;
  border: 1px solid #F1E6E9; border-radius: 16px; border-bottom-right-radius: 5px;
  padding: 14px 32px 14px 16px;
  font-size: 14.5px; font-weight: 600; line-height: 1.4;
  box-shadow: 0 18px 40px -18px rgba(80,40,50,.5);
  cursor: pointer;
  animation: cdr-pop-in .25s ease-out;
}
.cdr-cc-pop:hover { border-color: #E5D2D7; }
.cdr-cc-pop-close {
  position: absolute; top: 6px; right: 9px;
  background: transparent; border: none; font-size: 18px; line-height: 1;
  color: #9A8B90; cursor: pointer; padding: 2px;
}
@keyframes cdr-pop-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.cdr-cc-panel {
  position: absolute; right: 0; bottom: 74px;
  width: 370px; max-width: calc(100vw - 44px); height: 520px; max-height: calc(100vh - 120px);
  background: #fff; border: 1px solid #F1E6E9; border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 70px -28px rgba(80,40,50,.5);
}
/* The `hidden` attribute must win over the display:flex above, or the panel
   can never be closed. The class+attribute selector outranks the rule above. */
.cdr-cc-panel[hidden] { display: none; }

.cdr-cc-head {
  background: linear-gradient(135deg,#8A2435,#6A1A28); color: #fff;
  padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0;
}
.cdr-cc-title { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 16.5px; display: flex; align-items: center; gap: 9px; }
.cdr-cc-dot { width: 9px; height: 9px; border-radius: 50%; background: #7FE0A8; display: inline-block; }
.cdr-cc-close { background: transparent; border: none; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; opacity: .85; padding: 0 4px; }
.cdr-cc-close:hover { opacity: 1; }

.cdr-cc-msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: #FFFDFB; }
.cdr-cc-msg { max-width: 84%; padding: 11px 14px; font-size: 14.5px; line-height: 1.5; font-weight: 500; border-radius: 16px; white-space: pre-wrap; word-wrap: break-word; }
.cdr-cc-msg.bot  { align-self: flex-start; background: #F4ECEF; color: #2B2328; border-bottom-left-radius: 5px; }
.cdr-cc-msg.user { align-self: flex-end; background: #8A2435; color: #fff; border-bottom-right-radius: 5px; }

.cdr-cc-typing { align-self: flex-start; display: flex; gap: 4px; padding: 13px 15px; background: #F4ECEF; border-radius: 16px; border-bottom-left-radius: 5px; }
.cdr-cc-typing span { width: 7px; height: 7px; border-radius: 50%; background: #B69AA1; display: inline-block; animation: cdr-bounce 1.2s infinite ease-in-out; }
.cdr-cc-typing span:nth-child(2) { animation-delay: .2s; }
.cdr-cc-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes cdr-bounce { 0%,80%,100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }

.cdr-cc-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #F1E6E9; background: #fff; flex-shrink: 0; }
.cdr-cc-input { flex: 1; border: 1.5px solid #EADFE3; border-radius: 999px; padding: 11px 16px; font-size: 14.5px; font-weight: 500; color: #2B2328; outline: none; }
.cdr-cc-input:focus { border-color: #8A2435; }
.cdr-cc-send { width: 44px; height: 44px; flex-shrink: 0; border: none; border-radius: 50%; background: #8A2435; color: #fff; font-size: 16px; cursor: pointer; transition: transform .15s; }
.cdr-cc-send:hover { transform: translateY(-2px); }
.cdr-cc-send:disabled { opacity: .5; cursor: default; transform: none; }

@media (max-width: 480px) {
  #cdr-concierge { right: 16px; bottom: 16px; }
  .cdr-cc-panel { width: calc(100vw - 32px); height: calc(100vh - 100px); }
}

/* ---------------------------------------------------------------------------
   Responsive layer. The design is desktop-only (no breakpoints), so the rules
   below are additive: desktop stays pixel-identical, and on smaller screens the
   fixed inline grids collapse and large headings scale down. Attribute selectors
   target the design's inline styles directly, so the verbatim markup is untouched.
   `!important` is required to win over inline declarations.
   --------------------------------------------------------------------------- */

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1px solid #F1E6E9;
  background: #fff;
  color: #8A2435;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

/* Tablet: 4→2 cols, 3-up rows → 2 cols, two-column splits stack */
@media (max-width: 900px) {
  [style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }
  [style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }
  [style*="grid-template-columns:1fr 1fr 1fr"]    { grid-template-columns: repeat(2,1fr) !important; }
  [style*="grid-template-columns:1.4fr 1fr 1fr 1fr"] { grid-template-columns: repeat(2,1fr) !important; }
  [style*="grid-template-columns:1fr 1fr"]:not([style*="1fr 1fr 1fr"]) { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1.1fr .9fr"]   { grid-template-columns: 1fr !important; }
  [style*="grid-template-columns:1.05fr .95fr"] { grid-template-columns: 1fr !important; }
}

/* Header collapses to a toggle + dropdown */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .hdr-logo { height: 46px !important; }
  .hdr-cta { font-size: 13px !important; padding: 9px 14px !important; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch !important;
    gap: 2px !important;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #F1E6E9;
    padding: 10px 28px 16px;
    box-shadow: 0 24px 36px -24px rgba(80,40,50,.35);
  }
  .main-nav.open { display: flex; }
  .main-nav .nav-link { font-size: 15px !important; padding: 12px 14px !important; }
}

/* Phone: single column everywhere, smaller display type and section padding */
@media (max-width: 620px) {
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(3,1fr)"],
  [style*="grid-template-columns:1fr 1fr 1fr"],
  [style*="grid-template-columns:1.4fr 1fr 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }

  [style*="font-size:60px"] { font-size: 38px !important; }
  [style*="font-size:52px"] { font-size: 34px !important; }
  [style*="font-size:50px"] { font-size: 33px !important; }
  [style*="font-size:42px"] { font-size: 30px !important; }
  [style*="font-size:40px"] { font-size: 29px !important; }

  [style*="padding:90px 28px"] { padding: 56px 28px !important; }
  [style*="padding:84px 28px"] { padding: 52px 28px !important; }
  [style*="padding:80px 28px"] { padding: 50px 28px !important; }

  /* Tighten oversized inner padding on the hero / CTA bands and the form card */
  [style*="padding:60px 56px"] { padding: 40px 24px !important; }
  [style*="padding:54px 50px"] { padding: 40px 24px !important; }
  [style*="padding:40px 38px"] { padding: 28px 22px !important; }
}

/* ---------------------------------------------------------------------------
   Robust mobile fallbacks — guarantee no horizontal overflow and that EVERY
   grid collapses to one column on phones, regardless of its column template.
   --------------------------------------------------------------------------- */
html, body { max-width: 100%; overflow-x: hidden; }
img, iframe, svg, video { max-width: 100%; }

@media (max-width: 700px) {
  /* Any grid container becomes a single column (catch-all). */
  [style*="display:grid"] { grid-template-columns: 1fr !important; }
  /* Don't force a tall hero on small screens. */
  [style*="min-height:540px"] { min-height: 0 !important; }
  /* Keep the chat launcher from crowding small screens. */
  .cdr-cc-toggle { height: 50px; font-size: 15px; padding: 0 18px 0 16px; }
}
