/*
 * Kentlen Executive Centre — public site styles
 * Used by the public pages only. The agent and portal areas still use styles.css.
 * No external resources: fonts are served from /fonts.
 */

/* ---------- Fonts (Plus Jakarta Sans, variable, SIL OFL 1.1) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/plus-jakarta-sans-latin-wght-normal.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: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --navy: #002080;        /* Kentlen navy, from the logo */
  --navy-deep: #0A1A4F;   /* headings, top bar, footer */
  --navy-line: #24346B;
  --amber: #F2B134;       /* primary call-to-action only */
  --amber-hover: #E09E1F;
  --mist: #EEF2FA;
  --tile: #E4EAF7;
  --stone: #F7F6F2;
  --ink: #1B2233;
  --body: #3F4859;
  --muted: #4F5868;
  --line: #E3E7EF;
  --field: #C4CCDC;
  --on-navy: #DCE3F3;
  --on-navy-muted: #C9D2EA;
  --on-navy-accent: #BFD0FF;
  --green: #2E6B3A;
  --radius: 14px;
  --radius-lg: 16px;
  --shadow: 0 24px 48px -24px rgba(10, 26, 79, 0.45);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }
h1, h2, h3 { color: var(--navy-deep); margin: 0; }
h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.06; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -0.015em; }
h3 { font-size: 21px; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.container { max-width: 1248px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--amber); color: var(--navy-deep); padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 100; }
.skip-link:focus { top: 12px; }

.eyebrow { margin: 0 0 14px; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.eyebrow.green { color: var(--green); }
.lead { font-size: 19px; color: var(--body); }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 28px; border-radius: 8px; border: 1px solid transparent;
  font: inherit; font-size: 17px; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--amber); color: var(--navy-deep); }
.btn-primary:hover { background: var(--amber-hover); color: var(--navy-deep); }
.btn-secondary { background: #FFFFFF; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--mist); color: var(--navy-deep); }
.btn-navy { background: var(--navy); color: #FFFFFF; }
.btn-navy:hover { background: var(--navy-deep); color: #FFFFFF; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 16px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " \2192"; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy-deep); color: var(--on-navy); font-size: 14px; }
.topbar .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #FFFFFF; font-weight: 600; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #FFFFFF; }
.topbar-right { display: flex; flex-wrap: wrap; gap: 6px 24px; }

.site-header { position: sticky; top: 0; z-index: 50; background: #FFFFFF; border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; flex: none; }
.brand img { height: 52px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px 28px; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500; }
.site-nav a:hover { color: var(--navy); }
.site-nav a[aria-current="page"] { color: var(--navy); font-weight: 700; box-shadow: inset 0 -2px 0 var(--navy); padding-bottom: 2px; }
.site-nav .btn { color: var(--navy-deep); font-weight: 700; }
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; border-radius: 10px;
  border: 1px solid #D5DBE8; background: #FFFFFF; cursor: pointer; align-items: center; justify-content: center;
}
.nav-call { display: none; width: 44px; height: 44px; border-radius: 10px; background: var(--mist); align-items: center; justify-content: center; }
.header-actions { display: none; gap: 8px; }

/* ---------- Hero / page headers ---------- */
.hero { background: var(--mist); }
.hero .container { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 80px; padding-bottom: 88px; }
.hero-copy { flex: 1 1 480px; min-width: 0; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lead { font-size: 20px; max-width: 34em; margin-bottom: 32px; }
.hero-media { flex: 1 1 440px; min-width: 0; position: relative; padding-bottom: 56px; }
.hero-media .main { margin-left: auto; width: 88%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.hero-media .inset { position: absolute; left: 0; bottom: 0; width: 46%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; border: 6px solid #FFFFFF; box-shadow: var(--shadow); }
.checks { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; max-width: 520px; font-size: 15px; font-weight: 600; }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks svg { flex: none; }

.page-header { background: var(--mist); }
.page-header .container { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-top: 56px; padding-bottom: 64px; }
.page-header .copy { flex: 1 1 480px; min-width: 0; }
.page-header h1 { font-size: clamp(36px, 4.4vw, 52px); margin-bottom: 16px; }
.page-header .lead { max-width: 34em; margin-bottom: 28px; }
.page-header .lead:last-child { margin-bottom: 0; }
.page-header .media { flex: 1 1 440px; min-width: 0; }
.page-header .media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.crumbs { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.bg-stone { background: var(--stone); }
.bg-mist { background: var(--mist); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: 40px; }
.section-head > div { max-width: 640px; }
.section-head > p { max-width: 420px; margin: 0; color: var(--muted); }
.section-intro { margin: 8px 0 40px; color: var(--muted); max-width: 40em; }

.split { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.split > * { flex: 1 1 440px; min-width: 0; }
.split.reverse { flex-wrap: wrap-reverse; }
.split-media img { width: 100%; object-fit: cover; border-radius: var(--radius-lg); aspect-ratio: 5 / 4; }
.split-media.wide img { aspect-ratio: 16 / 10; }
.split h2 { margin-bottom: 16px; }
.split .body { color: var(--body); margin-bottom: 28px; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.card {
  display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #FFFFFF; color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s;
}
a.card:hover { box-shadow: 0 18px 36px -24px rgba(10, 26, 79, 0.5); transform: translateY(-2px); color: inherit; }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.card-body p { font-size: 15px; color: var(--muted); flex-grow: 1; margin: 0; }
.card-body .link-arrow { font-size: 15px; color: var(--navy); }

/* Icon feature list & tiles */
.icon-tile { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--tile); display: flex; align-items: center; justify-content: center; }
.feature-list { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list strong { display: block; color: var(--navy-deep); }
.feature-list span span { font-size: 15px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; gap: 16px; background: #FFFFFF; }
.tile h3 { font-size: 18px; margin-bottom: 4px; }
.tile p { margin: 0; font-size: 15px; color: var(--muted); }

.tick-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tick-list li { display: flex; gap: 10px; align-items: flex-start; }
.tick-list svg { flex: none; margin-top: 3px; }

/* Room / spec cards */
.spec-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: #FFFFFF; display: flex; flex-direction: column; gap: 14px; }
.spec-card .badge { align-self: flex-start; }
.badge { display: inline-block; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--tile); color: var(--navy); }
.badge.green { background: #E2F1E4; color: #1F5F2C; }

/* Navy bands */
.band-navy { background: var(--navy); color: #FFFFFF; }
.band-navy h2 { color: #FFFFFF; }
.band-navy p { color: var(--on-navy); }
.band-navy .eyebrow { color: var(--on-navy-accent); }
.band-navy .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 56px; padding-top: 72px; padding-bottom: 72px; }
.band-navy .band-copy { flex: 1 1 420px; min-width: 0; }
.band-navy .band-copy h2 { margin-bottom: 10px; }
.band-navy .band-copy p { font-size: 18px; margin: 0; }
.band-navy a:not(.btn) { color: #FFFFFF; }

.search-form { flex: 1 1 420px; min-width: 0; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin: 0; }
.search-form .field { flex: 1 1 200px; }
.band-navy .search-form label { color: var(--on-navy); }
.band-navy .search-form input { border-color: #FFFFFF; }

.price-panel { flex: 0 1 360px; min-width: 0; background: #FFFFFF; color: var(--ink); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 6px; }
.price-panel .amount { font-size: 52px; font-weight: 800; line-height: 1; color: var(--navy-deep); }
.price-panel .muted { font-size: 15px; }
.price-panel .btn { margin-top: 18px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--body); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 17px; font-weight: 400; color: var(--ink); background: #FFFFFF;
  padding: 12px 14px; min-height: 50px; border: 1px solid var(--field); border-radius: 8px; width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: 3px solid rgba(0, 32, 128, 0.25); outline-offset: 0; border-color: var(--navy); }
.field .req { color: #A3361F; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.form-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; gap: 18px; background: #FFFFFF; }
.form-card h2 { font-size: 26px; }
.chips { border: 0; margin: 0; padding: 0; }
.chips legend { font-size: 14px; font-weight: 600; color: var(--body); margin-bottom: 10px; padding: 0; }
.chips .chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 16px;
  border: 1px solid var(--field); border-radius: 999px; font-size: 15px; color: var(--body); cursor: pointer; background: #FFFFFF;
}
.chip input { accent-color: var(--navy); margin: 0; width: 16px; height: 16px; }
.chip:has(input:checked) { border-color: var(--navy); background: var(--mist); color: var(--navy); font-weight: 600; }
.form-status { font-weight: 600; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #A3361F; }

.search-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.search-card .search-form { flex: none; }

/* ---------- Contact ---------- */
.contact-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.contact-layout > form, .contact-layout > .form-card { flex: 1 1 520px; min-width: 0; }
.contact-layout > aside { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-card { background: var(--navy-deep); color: var(--on-navy); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 22px; }
.contact-card .label { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-navy-accent); margin-bottom: 4px; }
.contact-card a, .contact-card .value { color: #FFFFFF; }
.contact-card .big { font-size: 26px; font-weight: 800; text-decoration: none; }
.map-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; display: block; color: #FFFFFF; text-decoration: none; }
.map-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.map-card .overlay { position: absolute; inset: auto 0 0 0; padding: 20px; background: linear-gradient(to top, rgba(10, 26, 79, 0.92), rgba(10, 26, 79, 0)); display: flex; align-items: center; gap: 10px; font-weight: 700; }
.map-card:hover { color: #FFFFFF; }
.map-card:hover .overlay span { text-decoration: underline; }

.map-embed { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #FFFFFF; }
.map-embed iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; background: var(--tile); }
.map-link { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 20px; font-weight: 700; text-decoration: none; border-top: 1px solid var(--line); }
.map-link:hover span { text-decoration: underline; }

/* ---------- Availability results (written by renderavail.js / whsavail.js) ---------- */
.results-wrap { min-height: 160px; }
.loading { display: flex; align-items: center; gap: 14px; color: var(--muted); font-weight: 600; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--tile); border-top-color: var(--navy); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.office-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin: 8px 0 32px; }
.office-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.office-card h3 { font-size: 22px; }
.office-card .meta { margin: 0; color: var(--muted); font-size: 15px; }
.office-card .btn, .office-card .badge { align-self: flex-start; }
.office-card .btn { margin-top: 6px; }
.detail-card { background: #FFFFFF; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; max-width: 760px; }
.detail-card h2 { margin-bottom: 16px; font-size: 30px; }
.detail-card .btn { margin-top: 16px; }
.disclaimer { margin-top: 40px; font-size: 14px; color: var(--muted); max-width: 60em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); font-size: 15px; }
.site-footer .container { padding-top: 64px; padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--navy-line); }
.footer-grid h2 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: #FFFFFF; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.footer-grid a { color: var(--on-navy-muted); text-decoration: none; }
.footer-grid a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-grid a.strong { color: #FFFFFF; font-weight: 600; }
.footer-brand img { height: 48px; width: auto; margin-bottom: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; font-size: 13px; color: #A9B5D6; }
.footer-bottom a { color: var(--on-navy-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav-toggle, .nav-call { display: inline-flex; }
  .header-actions { display: flex; }
  .site-header .container { flex-wrap: wrap; }
  .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 12px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .site-nav a[aria-current="page"] { box-shadow: none; }
  .site-nav .btn { margin-top: 12px; border-bottom: 0; }
  .no-js .site-nav { display: flex; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .topbar .address, .topbar .hours { display: none; }
  .brand img { height: 42px; }
  .hero .container { padding-top: 36px; padding-bottom: 40px; gap: 32px; }
  .hero-copy .lead { font-size: 17px; }
  .hero .btn-row .btn, .page-header .btn-row .btn { flex: 1 1 100%; }
  .hero-media { padding-bottom: 0; }
  .hero-media .main { width: 100%; }
  .hero-media .inset { display: none; }
  .checks { margin-top: 28px; font-size: 14px; gap: 10px 12px; }
  .page-header .container { padding-top: 32px; padding-bottom: 40px; gap: 28px; }
  .section { padding: 56px 0; }
  .section-tight { padding: 48px 0; }
  .split { gap: 28px; }
  .lead { font-size: 17px; }
  .band-navy .container { padding-top: 44px; padding-bottom: 44px; }
  .search-form .btn { flex: 1 1 100%; }
  .form-card, .contact-card, .spec-card, .search-card, .detail-card { padding: 24px; }
  .price-panel { flex-basis: 100%; }
  .site-footer .container { padding-top: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation-duration: 0.01ms !important; }
}
@media print {
  .hidden-print, .topbar, .site-header, .band-navy, .site-footer { display: none !important; }
}

/* Anchored sections clear the sticky header */
[id] { scroll-margin-top: 110px; }
