/* Redcliff Commercial — concept site
   Palette: forest green + warm stone */

:root {
  --ink:      #1B1F1D;
  --ink-soft: #414843;
  --paper:    #F5F2EC;
  --stone:    #EDE8DE;
  --line:     #D8D2C6;
  --green:    #2F5D50;
  --green-dk: #244a40;
  --white:    #FCFBF8;

  --wrap: 1180px;
  --gap: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4rem, 9vw, 7.5rem);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.3rem; letter-spacing: 0; }

p { margin: 0 0 1rem; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.section { padding-block: var(--section-y); }
.section--stone { background: var(--stone); }
.section--dark { background: var(--green); color: var(--white); }

.sr-only, .skip-link {
  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:focus {
  position: fixed; top: 1rem; left: 1rem; width: auto; height: auto;
  clip: auto; z-index: 200; background: var(--ink); color: var(--white);
  padding: .6rem 1rem; border-radius: 3px;
}

/* ---------- eyebrow / section heads ---------- */
.eyebrow {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 1rem;
}
.eyebrow--light { color: #B9CFC7; }

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-head h2 { margin-bottom: .75rem; }
.section-note, .section--dark .section-head p { color: var(--ink-soft); }
.section--dark .section-note { color: #C7D6D0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .95rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--green); color: var(--white); }
.btn--primary:hover { background: var(--green-dk); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--ghost-light { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn--ghost-light:hover { background: var(--white); color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 76px;
}
.brand { display: flex; align-items: baseline; gap: .5rem; text-decoration: none; }
.brand img { width: 132px; height: auto; }
.brand-sub {
  font-size: .62rem; letter-spacing: .22em; font-weight: 600;
  color: var(--green); text-transform: uppercase;
}
@media (max-width: 480px) { .brand-sub { display: none; } }

.nav-menu {
  list-style: none; display: flex; align-items: center; gap: 2rem;
  margin: 0; padding: 0;
}
.nav-menu a {
  text-decoration: none; font-size: .9rem; font-weight: 500;
  color: var(--ink); letter-spacing: .01em;
}
.nav-menu a:not(.nav-cta):hover { color: var(--green); }
.nav-cta {
  border: 1px solid var(--green); color: var(--green);
  padding: .6rem 1.1rem; border-radius: 2px; font-weight: 600;
  transition: background-color .18s ease, color .18s ease;
}
.nav-cta:hover { background: var(--green); color: var(--white) !important; }

.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
    background: var(--white); border-radius: 3px; cursor: pointer;
    position: relative;
  }
  .nav-toggle-bar {
    position: absolute; top: 50%; left: 50%;
    width: 16px; height: 1.5px; margin: -0.75px 0 0 -8px;
    background: var(--ink); transition: background-color .2s ease;
  }
  .nav-toggle-bar::before, .nav-toggle-bar::after {
    content: ""; position: absolute; left: 0;
    width: 16px; height: 1.5px; background: var(--ink);
    transition: transform .2s ease;
  }
  .nav-toggle-bar::before { top: -5px; }
  .nav-toggle-bar::after  { top: 5px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after  { transform: translateY(-5px) rotate(-45deg); }

  .nav-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: .5rem clamp(1.25rem, 5vw, 2.5rem) 1.5rem;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { border-top: 1px solid var(--line); }
  .nav-menu a { display: block; padding: 1rem 0; font-size: 1rem; }
  .nav-cta { border: 0; padding: 1rem 0; }
  .nav-cta:hover { background: transparent; color: var(--green) !important; }
}

/* ---------- hero ---------- */
.hero { position: relative; color: var(--white); isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,28,25,.38) 0%, rgba(20,28,25,.66) 100%);
}
.hero-content {
  padding-block: clamp(6rem, 18vw, 11rem);
  max-width: 760px;
}
.hero-content h1 { margin: .5rem 0 1.5rem; }
.hero-lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #E6E9E5; max-width: 560px; margin-bottom: 2.25rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- stats ---------- */
.stats { background: var(--ink); color: var(--paper); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.stats-label {
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: #A9AEA9; margin: 0 0 1.75rem;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap);
}
.stat { display: flex; flex-direction: column; gap: .4rem; }
.stat-num {
  font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 500; line-height: 1; color: var(--white);
}
.stat-label { font-size: .82rem; letter-spacing: .04em; color: #A9AEA9; text-transform: uppercase; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; } }

/* ---------- about ---------- */
.about-grid {
  display: grid; grid-template-columns: 0.85fr 1fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
}
.about-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.about-body h2 { margin-bottom: 1.5rem; }
.about-points { list-style: none; margin: 1.75rem 0 0; padding: 0; }
.about-points li {
  padding: 1rem 0; border-top: 1px solid var(--line); font-size: .98rem;
}
.about-points li:last-child { border-bottom: 1px solid var(--line); }
.about-points strong { color: var(--green); }
@media (max-width: 820px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { order: 2; }
  .about-media img { max-height: 380px; }
}

/* ---------- services cards ---------- */
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line);
}
.card { background: var(--stone); padding: clamp(1.75rem, 3vw, 2.5rem); }
.section--stone .card { background: var(--paper); }
.card h3 { margin-bottom: .75rem; }
.card p { color: var(--ink-soft); font-size: .96rem; margin: 0; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- properties ---------- */
.property-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.5rem, 4vw, 2.75rem);
}
.property { background: var(--white); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.property-media { aspect-ratio: 16 / 10; overflow: hidden; }
.property-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.property:hover .property-media img { transform: scale(1.04); }
.property-body { padding: clamp(1.5rem, 3vw, 2rem); }
.property-tags { display: flex; gap: .5rem; margin-bottom: 1rem; }
.tag {
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .6rem; border-radius: 2px; background: var(--stone); color: var(--ink-soft);
}
.tag--status { background: var(--green); color: var(--white); }
.property h3 { margin-bottom: .4rem; }
.property-meta { font-size: .85rem; color: var(--green); font-weight: 500; margin-bottom: .75rem; }
.property-body p:last-child { color: var(--ink-soft); font-size: .95rem; margin: 0; }
@media (max-width: 700px) { .property-grid { grid-template-columns: 1fr; } }

/* ---------- sectors ---------- */
.sector-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.sector { margin: 0; position: relative; border-radius: 2px; overflow: hidden; }
.sector img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sector figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.5rem;
  background: linear-gradient(180deg, transparent, rgba(15,22,19,.9));
  color: var(--white);
}
.sector figcaption h3 { margin-bottom: .25rem; }
.sector figcaption p { font-size: .86rem; color: #D7E0DB; margin: 0; }
@media (max-width: 860px) { .sector-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .sector-grid { grid-template-columns: 1fr; } }

/* ---------- contact ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 6rem);
}
.contact-intro h2 { margin-bottom: 1.25rem; }
.offices {
  list-style: none; padding: 0; margin: 2rem 0 0;
  display: grid; gap: 1.5rem; font-size: .9rem; line-height: 1.6; color: var(--ink-soft);
}
.offices strong { color: var(--ink); letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; }
.offices a { color: var(--green); text-decoration: none; }

.contact-form { display: grid; gap: 1.1rem; align-content: start; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 2px;
  padding: .8rem .9rem; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green);
}
.field textarea { resize: vertical; }
.field.invalid input, .field.invalid textarea { border-color: #A23A2E; }
.contact-form .btn { justify-self: start; margin-top: .5rem; }
.form-status { font-size: .9rem; margin: 0; min-height: 1.2em; }
.form-status.ok { color: var(--green); }
.form-status.err { color: #A23A2E; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2rem; flex-wrap: wrap; padding-bottom: 2.5rem; border-bottom: 1px solid #333B36;
}
.footer-brand img { filter: brightness(0) invert(1); opacity: .92; margin-bottom: 1rem; }
.footer-brand p { font-size: .88rem; color: #A9AEA9; margin: 0; }
.footer-nav { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.footer-nav a { text-decoration: none; font-size: .88rem; color: var(--paper); }
.footer-nav a:hover { color: #B9CFC7; }
.footer-legal { margin-top: 2rem; font-size: .78rem; color: #8A8F8A; }
.footer-legal p { margin: 0 0 .5rem; }
.concept-note { color: #6f746f; font-style: italic; max-width: 720px; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
