/* Royal Victoria Court, styled to the Tirion Homes Brand Identity Guidelines (v1.0, 2024)
   Primary typeface: Gibson. Substitute: Verdana.
   Palette: Teal #004A56, Navy #21394D, Mint #86DEC5, Grey #BAC0C5,
            Yellow #FFCA46, Blue #3E87F6, Pale blue #E3EAFD, Lime #F5FEAB */

:root {
  --teal: #004A56;
  --navy: #21394D;
  --mint: #86DEC5;
  --grey: #BAC0C5;
  --yellow: #FFCA46;
  --blue: #3E87F6;
  --pale: #E3EAFD;
  --lime: #F5FEAB;
  --ink: #1d2b38;
  --muted: #4d5d6b;
  --line: #d9dfe6;
  --bg-soft: #f4f7fb;
  --font: "Gibson", Verdana, Geneva, sans-serif;
  --wrap: 1180px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.2; color: var(--navy); margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--mint); color: var(--navy); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header { background: var(--navy); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 24px; }
.brand img { height: 70px; width: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav a { display: block; color: #fff; text-decoration: none; font-size: .9rem; padding: 10px 12px; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--mint); color: #fff; }
.nav a.nav-login { border: 1.5px solid var(--mint); border-radius: var(--radius); color: var(--mint); margin-left: 8px; }
.nav a.nav-login:hover { background: var(--mint); color: var(--navy); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 30px; height: 30px; }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); display: none; border-top: 1px solid rgba(255,255,255,.1); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 8px 24px 20px; }
  .nav a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a.nav-login { margin: 12px 0 0; text-align: center; padding: 12px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-family: var(--font); font-size: .95rem; font-weight: 600; text-decoration: none; padding: 14px 26px; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s; }
.btn-mint { background: var(--mint); color: var(--navy); }
.btn-mint:hover { background: #fff; color: var(--navy); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--navy); color: #fff; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-outline-dark { border-color: var(--teal); color: var(--teal); }
.btn-outline-dark:hover { background: var(--teal); color: #fff; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Hero (brand diagonal "building block" shapes) ---------- */
.hero { position: relative; background: var(--teal); color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 520px; }
.hero-copy { position: relative; z-index: 2; padding: 72px 48px 72px 0; display: flex; flex-direction: column; justify-content: center; }
.hero-copy h1 { color: #fff; }
.hero-copy .lead { font-size: 1.15rem; max-width: 34ch; color: #e9f4f2; }
.hero-eyebrow { color: var(--mint); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; font-weight: 600; }
.hero-media { position: relative; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--teal); clip-path: polygon(0 0, 22% 0, 0 100%); }
.hero::after { content: ""; position: absolute; left: 0; bottom: 0; width: 46%; height: 100%; background: var(--navy); opacity: .35; clip-path: polygon(0 100%, 100% 100%, 0 30%); pointer-events: none; }
.hero .wrap { position: relative; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 48px 0 40px; }
  .hero-media { min-height: 260px; margin: 0 -24px; }
  .hero-media::before { clip-path: polygon(0 0, 100% 0, 0 18%); }
  .hero::after { width: 100%; height: 60%; top: 0; clip-path: polygon(0 0, 70% 0, 0 100%); }
}

/* Inner page banner */
.page-banner { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.page-banner .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-banner .wrap { position: relative; z-index: 2; padding-top: 72px; padding-bottom: 72px; }
.page-banner h1 { color: #fff; margin: 0; }
.page-banner p { color: var(--mint); margin: 10px 0 0; font-size: 1.05rem; }
.page-banner::before { content: ""; position: absolute; right: 0; top: 0; width: 38%; height: 100%; background: var(--teal); clip-path: polygon(45% 0, 100% 0, 100% 100%, 0 100%); z-index: 1; opacity: .92; }
.page-banner::after { content: ""; position: absolute; right: 0; bottom: 0; width: 16%; height: 60%; background: var(--mint); clip-path: polygon(100% 0, 100% 100%, 0 100%); z-index: 1; }
.crumbs { font-size: .85rem; margin-bottom: 10px; }
.crumbs a { color: #cfe0e8; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-pale { background: var(--pale); }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-teal { background: var(--teal); color: #fff; }
.section-teal h2, .section-teal h3 { color: #fff; }
.eyebrow { display: inline-block; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--teal); margin-bottom: 10px; }
.section-navy .eyebrow, .section-teal .eyebrow { color: var(--mint); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two-col.top { align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.prose { max-width: 760px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* Image with brand corner block */
.framed { position: relative; }
.framed img { border-radius: var(--radius); position: relative; z-index: 1; }
.framed::before { content: ""; position: absolute; width: 38%; height: 50%; right: -16px; bottom: -16px; background: var(--mint); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.framed.alt::before { left: -16px; right: auto; top: -16px; bottom: auto; background: var(--teal); clip-path: polygon(0 0, 100% 0, 0 100%); }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: rgba(255,255,255,.12); }
.stat { background: var(--navy); padding: 32px 24px; }
.stat strong { display: block; font-size: 2.6rem; font-weight: 500; color: var(--mint); line-height: 1; margin-bottom: 8px; }
.stat span { font-size: .92rem; color: #dce6ee; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* Feature tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr; } }
.tile { background: var(--teal); color: #fff; padding: 28px; border-radius: var(--radius); position: relative; overflow: hidden; }
.tile::after { content: ""; position: absolute; right: 0; bottom: 0; width: 64px; height: 64px; background: var(--mint); opacity: .9; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.tile h3 { color: #fff; margin-bottom: 8px; }
.tile p { margin: 0; color: #dff1ee; font-size: .95rem; }
.tile .ico { width: 40px; height: 40px; margin-bottom: 14px; color: var(--mint); }

/* Neighbourhood gallery */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
.gallery img { width: 100%; height: 240px; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } .gallery img { height: 200px; } }

/* Property cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(33,57,77,.08); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 1px 0 var(--line), 0 12px 32px rgba(33,57,77,.16); color: inherit; }
.card img { width: 100%; height: 210px; object-fit: cover; }
.card-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; border-top: 4px solid var(--mint); }
.card-body .tag { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.card-body h3 { margin: 6px 0 10px; font-size: 1.3rem; }
.card-body p { color: var(--muted); font-size: .93rem; flex: 1; }
.card-body .more { font-weight: 600; color: var(--teal); font-size: .92rem; }

/* Property detail */
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .spec { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.ticks li { position: relative; padding-left: 28px; font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 16px; height: 16px; background: var(--mint); clip-path: polygon(0 0, 100% 0, 100% 100%); }
@media (max-width: 520px) { .ticks { grid-template-columns: 1fr; } }
figure { margin: 0; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.plan { background: #fff; border: 1px solid var(--line); padding: 12px; border-radius: var(--radius); }
.note { background: var(--pale); border-left: 4px solid var(--teal); padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; }
.note p:last-child { margin: 0; }

/* FAQ */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-weight: 600; color: var(--navy); font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -10px; border-right: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq .answer { padding: 0 0 22px; color: var(--ink); }
.faq .answer ul { margin: .4em 0 1em; padding-left: 1.2em; }

/* News */
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 960px) { .news-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .news-list { grid-template-columns: 1fr; } }
.news-card img { height: 220px; object-fit: cover; width: 100%; }
.news-card time { font-size: .82rem; color: var(--teal); font-weight: 600; letter-spacing: .04em; }
.article { max-width: 780px; }
.article .meta { color: var(--teal); font-weight: 600; font-size: .9rem; margin-bottom: 24px; }
.article img.lead-img { width: 100%; border-radius: var(--radius); margin-bottom: 28px; }
.article blockquote { margin: 1.4em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--mint); color: var(--navy); }

/* CTA band */
.cta-band { background: var(--teal); color: #fff; position: relative; overflow: hidden; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 56px; padding-bottom: 56px; position: relative; z-index: 1; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: #dff1ee; }
.cta-band::before { content: ""; position: absolute; right: 0; top: 0; width: 260px; height: 100%; background: var(--navy); clip-path: polygon(40% 0, 100% 0, 100% 100%, 0 100%); }
.cta-band::after { content: ""; position: absolute; right: 0; bottom: 0; width: 120px; height: 120px; background: var(--mint); clip-path: polygon(100% 0, 100% 100%, 0 100%); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ico { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: var(--mint); color: var(--navy); display: grid; place-items: center; }
.info-list .ico svg { width: 20px; height: 20px; }
.info-list strong { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); font-weight: 600; }
.info-list a, .info-list span { color: #fff; text-decoration: none; }
.contact-panel { background: var(--navy); color: #fff; padding: 32px; border-radius: var(--radius); position: relative; overflow: hidden; }
.contact-panel::after { content: ""; position: absolute; right: 0; bottom: 0; width: 90px; height: 90px; background: var(--teal); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.contact-panel h2 { color: #fff; font-size: 1.4rem; }

/* Forms */
.form { display: grid; gap: 18px; }
.form fieldset { border: 0; padding: 28px; margin: 0; background: var(--bg-soft); border-radius: var(--radius); border-top: 4px solid var(--teal); }
.form legend { font-weight: 600; color: #fff; background: var(--teal); padding: 6px 14px; border-radius: var(--radius); font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form .grid .full { grid-column: 1 / -1; }
@media (max-width: 680px) { .form .grid { grid-template-columns: 1fr; } }
.field label, .field .label { display: block; font-size: .88rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field .req { color: #b3261e; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date], .field input[type=number], .field select, .field textarea {
  width: 100%; font-family: var(--font); font-size: .95rem; padding: 12px 14px; border: 1.5px solid #c5ced8; border-radius: var(--radius); background: #fff; color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(0,74,86,.15); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.checks label { font-weight: 400; font-size: .93rem; display: flex; gap: 8px; align-items: center; color: var(--ink); }
.checks input { width: 18px; height: 18px; accent-color: var(--teal); }
.hint { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.declaration { font-size: .9rem; background: #fff; border: 1px solid var(--line); padding: 18px 20px; border-radius: var(--radius); }
.declaration p:last-child { margin: 0; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .93rem; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--teal); flex: 0 0 auto; }
.hidden { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #cfdbe5; font-size: .92rem; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 0; top: 0; width: 180px; height: 180px; background: var(--teal); clip-path: polygon(0 0, 100% 0, 0 100%); }
.footer-main { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding: 64px 0 40px; position: relative; }
@media (max-width: 860px) { .footer-main { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--mint); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-logos { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 18px; }
.footer-logos .tirion { height: 62px; width: auto; }
.footer-logos .prs { background: #fff; padding: 8px 10px; border-radius: var(--radius); height: 48px; width: auto; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; position: relative; }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--mint); color: var(--navy); border: 0; cursor: pointer; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.2); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; }
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Cookie consent ---------- */
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: #fff; cursor: pointer; text-align: left; }
.link-btn:hover { color: var(--mint); }
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 760px; margin: 0 auto; background: #fff; color: var(--ink); border-top: 5px solid var(--teal); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(33,57,77,.3); padding: 22px 24px; }
.cookie-banner h2 { font-size: 1.1rem; margin: 0 0 8px; }
.cookie-banner p { font-size: .9rem; margin: 0 0 16px; color: var(--muted); }
.cookie-banner .btn-row { gap: 10px; }
.cookie-banner .btn { padding: 11px 20px; font-size: .9rem; }
@media (max-width: 520px) { .cookie-banner .btn { flex: 1 1 100%; text-align: center; } }
