/* CondoWing marketing site. Light theme only. Colours and fonts: see CLAUDE.md. */

:root {
  --green: #1F7A5C;
  --green-deep: #14463A;
  --ink: #12332B;
  --muted: #4F6B62;
  --green-mid: #3FA37F;
  --green-light: #7CC8A9;
  --bg: #F6F9F7;
  --surface: #FFFFFF;
  --border: #DCE5E0;
  --error: #B3402E;
  /* The supplied dark logo has this background built in, so the footer matches it. */
  --footer-bg: #0F2A23;
  --footer-text: #F2F7F4;
  --footer-muted: #A9C2B8;

  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Outfit", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --wrap: 1120px;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.25rem, 5.5vw, 3.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.625rem, 3.6vw, 2.25rem); max-width: 22em; }
h3 { font-size: 1.1875rem; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { color: var(--green-deep); }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--surface);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border: 2px solid var(--green);
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* Buttons */
.button {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  padding: 0.8rem 1.4rem;
  border-radius: 10px;
  border: 2px solid var(--green);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover, .button-primary:active {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}
.button-outline { background: var(--surface); color: var(--green); }
.button-outline:hover, .button-outline:active {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}
.button[disabled] { opacity: 0.65; cursor: progress; }

.text-link { font-weight: 600; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.logo-link { display: block; flex: none; border-radius: 6px; }
.logo-link img { height: 46px; width: auto; }
.header-login { padding: 0.55rem 1.1rem; }

.site-nav { order: 3; width: 100%; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 1.25rem; }
.site-nav a {
  display: block;
  padding: 0.55rem 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}
.site-nav a:hover { color: var(--green); text-decoration: underline; }

@media (min-width: 880px) {
  .site-header { position: sticky; top: 0; z-index: 10; }
  .logo-link img { height: 54px; }
  .site-nav { order: 0; width: auto; margin-left: auto; }
  .site-nav ul { gap: 0 1.75rem; }
  .site-nav a { font-size: 1rem; }
  section[id] { scroll-margin-top: 84px; }
}

/* Sections */
.section { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.section-surface {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.eyebrow {
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}
.section-intro {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 38em;
  margin-top: 1rem;
}

/* Opening */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 9vw, 6.5rem); }
.hero-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 4rem; }
}
.lead { font-size: clamp(1.125rem, 2vw, 1.25rem); max-width: 34em; margin-top: 1.25rem; }
.lead-note { color: var(--muted); max-width: 34em; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: 1.75rem 0 1.25rem;
}
.fine { color: var(--muted); font-size: 0.9375rem; margin: 0; }

/* Cards */
.cards { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
@media (min-width: 640px) { .cards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 800px) { .cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0; color: var(--muted); }

/* Steps */
.steps {
  counter-reset: step;
  display: grid;
  gap: 2rem 3rem;
  margin: 2.5rem 0 3.5rem;
}
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.5rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.2rem;
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-deep);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.125rem;
}
.steps h3 { margin-bottom: 0.4rem; }
.steps p { margin: 0; color: var(--muted); max-width: 30em; }

/* Example figures */
.example {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.section-surface .example { background: var(--bg); }
.example-wide { max-width: 760px; }
.example-tag {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--green-light);
  border-radius: 999px;
  background: #EAF5F0;
  color: var(--green-deep);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.example-title { font-size: 1.1875rem; line-height: 1.3; margin-bottom: 1rem; }
.example figcaption { color: var(--muted); font-size: 0.875rem; margin-top: 1rem; }

.pairs { margin: 0 0 1rem; }
.pairs div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
}
.pairs dt { color: var(--muted); }
.pairs dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }

.figures {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}
.figures caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.figures th, .figures td {
  padding: 0.6rem 0;
  border-top: 1px solid var(--border);
  text-align: left;
  font-weight: 500;
  vertical-align: top;
}
.figures thead th {
  border-top: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}
.figures .num { text-align: right; padding-left: 1rem; white-space: nowrap; }
.figures tbody td:last-child { font-weight: 700; }
.figures tfoot th, .figures tfoot td {
  border-top: 2px solid var(--ink);
  font-weight: 700;
  font-size: 1.0625rem;
}

.chart { width: 100%; font-family: var(--font-body); }

.get-grid { display: grid; gap: 1.5rem; align-items: start; }
.get-grid .cards { margin-top: 2.5rem; }
@media (min-width: 1000px) {
  .get-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.25rem; }
  .get-grid .example { margin-top: 2.5rem; }
}

/* Get in touch */
.contact-grid { display: grid; gap: 2.5rem; align-items: start; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; }
}
.email { font-weight: 700; font-size: 1.125rem; overflow-wrap: anywhere; }

.form-panel {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2rem);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.optional { color: var(--muted); font-weight: 500; }
.field input, .field textarea {
  display: block;
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid #9DB3AA;
  border-radius: 8px;
  padding: 0.7rem 0.8rem;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field .input-short { max-width: 8rem; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}
.hp { display: none; }

.form-status {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  border: 1px solid var(--error);
  border-left-width: 4px;
  border-radius: 8px;
  background: #FBEEEB;
  color: var(--error);
  font-weight: 600;
}
.form-status a { color: inherit; }
.form-success {
  padding: 1rem 0.25rem;
  border-left: 4px solid var(--green);
  padding-left: 1.25rem;
}
.form-success h3 { margin-bottom: 0.5rem; }
.form-success p { margin: 0; color: var(--muted); }
[hidden] { display: none !important; }

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 3rem 0 2rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
}
.footer-logo { width: 260px; margin-left: -11px; }
.footer-tagline { margin: 0.25rem 0 0; color: var(--footer-muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; }
.footer-links a { color: var(--footer-text); font-weight: 600; }
.footer-links a:hover { color: var(--green-light); }
.site-footer :focus-visible { outline-color: var(--green-light); }
.copyright {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid #2A4A40;
  color: var(--footer-muted);
  font-size: 0.875rem;
}

/* Thank-you page */
.plain-page { padding: clamp(3rem, 10vw, 7rem) 0; }
.plain-page h1 { font-size: clamp(1.875rem, 4.5vw, 2.75rem); margin-bottom: 1rem; }
