/* TJA Property Services — site styles
   Edit the colors below to re-theme the whole site. */
:root {
  --green: #2e7d32;
  --green-dark: #23622a;
  --green-soft: #e3eee0;
  --sage: #86b283;          /* header bar */
  --navy: #1d2f4f;
  --navy-2: #253a5f;        /* cards on navy */
  --navy-line: rgba(255,255,255,.12);
  --bg: #f4f5f0;            /* page background (warm off-white) */
  --bg-alt: #e7eae2;        /* alternate light sections */
  --ink: #16202b;
  --muted: #55606b;
  --line: rgba(22,32,43,.12);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16,24,40,.06), 0 8px 24px rgba(16,24,40,.08);
  --wrap: 1200px;
  --font: "PT Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-weight: 400; line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.9rem); }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy .lede, .section--navy p { color: rgba(255,255,255,.78); }

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: #9fd09b; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px;
  font: 700 .98rem/1 var(--font); text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 6px 16px rgba(46,125,50,.28); }
.btn--primary:hover { background: var(--green-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); }
.section--navy .btn--ghost, .cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.35); }
.section--navy .btn--ghost:hover, .cta .btn--ghost:hover { border-color: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .btn-row { justify-content: center; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--sage) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; font-weight: 700; font-size: .98rem; color: var(--navy);
  padding: 8px 14px; border-radius: 999px; transition: background .2s;
}
.nav a:hover { background: rgba(255,255,255,.35); }
.nav a[aria-current="page"] { background: rgba(255,255,255,.55); }
.header-cta { display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 11px 20px; background: var(--navy); color: #fff; box-shadow: none; }
.header-cta .btn:hover { background: #12203a; }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: rgba(255,255,255,.45); cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; position: relative; transition: transform .25s, background .25s;
}
.menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
.menu-toggle span::before { top: -6px; }
.menu-toggle span::after { top: 6px; }
.nav-open .menu-toggle span { background: transparent; }
.nav-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero (home) */
.hero { padding: clamp(28px, 4vw, 56px) 0 clamp(64px, 8vw, 104px); }
.hero-card {
  display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
  background: #fff; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow);
}
.hero-copy { padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.hero-copy h1 { margin-bottom: 18px; }
.hero-media { position: relative; min-height: 460px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 32px; padding-top: 24px;
  border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted);
}
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { color: var(--green); flex: none; }

/* Page header (inner pages) */
.page-head { padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 8vw, 96px); text-align: center; }
.page-head .lede { margin: 0 auto; }

/* Services grid (home) */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.section-head h2 { max-width: 18ch; margin: 0; }
.grid-3 { columns: 3 300px; column-gap: 20px; }
.card {
  break-inside: avoid; margin-bottom: 20px;
  background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.28); }
.card-body { padding: 28px 28px 26px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .98rem; margin: 0; }
.card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--top { align-items: start; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { flex: none; margin-top: 3px; color: var(--green); }
.photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.photo:hover img { transform: scale(1.03); }
.photo--wide { aspect-ratio: 16/8; margin-top: clamp(40px, 6vw, 64px); }
.photo--tall { aspect-ratio: 4/5; }
.photo--square { aspect-ratio: 1/1; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.duo .photo { aspect-ratio: 3/4; }
.duo .photo:nth-child(2) { margin-top: 48px; }

.pill-panel { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin-top: 24px; }
.pill-panel h3 { font-size: 1.35rem; margin-bottom: 6px; }
.pill-panel p { margin: 0; color: var(--muted); }

/* Service rows (services page) */
.svc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.svc + .svc { margin-top: clamp(64px, 9vw, 112px); }
.svc:nth-child(even) .svc-media { order: -1; }
.svc-media { display: grid; gap: 16px; }
.svc-media.two { grid-template-columns: 1fr 1fr; }
.svc-media .photo { aspect-ratio: 4/3; }
.svc-media.two .photo { aspect-ratio: 3/4; }
.tag {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: var(--green-soft); color: var(--green-dark); padding: 6px 12px; border-radius: 999px; margin-bottom: 16px;
}
.section--navy .tag { background: rgba(159,208,155,.16); color: #b9e0b5; }
.svc p { color: var(--muted); max-width: 52ch; }
.section--navy .svc p { color: rgba(255,255,255,.78); }

/* Process (design page) */
.steps { display: grid; gap: 24px; }
.step {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch;
  background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: 24px; overflow: hidden;
}
.step-copy { padding: clamp(28px, 4.5vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.step-num {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: #fff; font-weight: 700; margin-bottom: 20px;
}
.step-media { min-height: 320px; position: relative; }
.step-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.step:nth-child(even) .step-media { order: -1; }

/* CTA band */
.cta {
  position: relative; border-radius: 28px; overflow: hidden; color: #fff;
  padding: clamp(48px, 7vw, 88px) clamp(28px, 6vw, 80px);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
  background: var(--navy);
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background: var(--cta-img, none) center/cover no-repeat;
  opacity: .55;
}
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, var(--navy) 35%, rgba(29,47,79,.4)); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { margin-bottom: 10px; }
.cta p { color: rgba(255,255,255,.8); margin: 0; font-size: 1.1rem; }
.cta .btn-row { justify-content: flex-end; margin-top: 0; }

/* Contact */
.contact-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile {
  background: var(--navy-2); border: 1px solid var(--navy-line); border-radius: var(--radius);
  padding: 32px; text-decoration: none; display: block; transition: transform .25s, border-color .25s;
}
a.tile:hover { transform: translateY(-3px); border-color: rgba(255,255,255,.3); }
.tile .ico {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(159,208,155,.16); color: #b9e0b5; margin-bottom: 22px;
}
.tile h3 { margin-bottom: 6px; font-size: 1.5rem; }
.tile p { margin: 0; font-size: .98rem; }
.info-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: center; }
.info-list a { text-decoration: none; }
.info-list a:hover { text-decoration: underline; }
.info-list svg { color: var(--green); flex: none; }

.form { background: #fff; border-radius: 24px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 700; font-size: .92rem; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fafbf8;
  padding: 12px 14px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(46,125,50,.14);
}
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips label { font-weight: 400; cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block; padding: 9px 15px; border: 1.5px solid var(--line); border-radius: 999px; font-size: .95rem;
  transition: background .2s, border-color .2s, color .2s;
}
.chips input:checked + span { background: var(--green); border-color: var(--green); color: #fff; }
.chips input:focus-visible + span { box-shadow: 0 0 0 4px rgba(46,125,50,.2); }
.form .btn { margin-top: 22px; width: 100%; justify-content: center; padding: 16px; font-size: 1.05rem; }
.form-note { font-size: .88rem; color: var(--muted); margin: 12px 0 0; text-align: center; }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.75); padding: 64px 0 36px; }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid var(--navy-line); }
.footer-brand img { height: 64px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .92; }
.footer-brand p { max-width: 32ch; margin: 0; }
.footer-cols { display: flex; gap: clamp(32px, 6vw, 80px); flex-wrap: wrap; }
.footer-cols h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 14px; letter-spacing: 0; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-cols a { text-decoration: none; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { padding-top: 24px; font-size: .9rem; }

/* Mobile call bar */
.call-bar { display: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-card, .split, .svc, .step, .cta { grid-template-columns: 1fr; }
  .hero-media { min-height: 340px; order: -1; }
  .svc:nth-child(even) .svc-media, .step:nth-child(even) .step-media { order: 0; }
  .step-media { min-height: 260px; order: -1 !important; }
  .cta .btn-row { justify-content: flex-start; }
  .contact-tiles { grid-template-columns: 1fr; }
  .photo--wide { aspect-ratio: 4/3; }
}
@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .nav {
    position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--sage); padding: 12px 16px 20px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    display: none;
  }
  .nav-open .nav { display: flex; }
  .nav a { padding: 14px 16px; font-size: 1.05rem; }
  .call-bar {
    display: flex; gap: 10px; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
    padding: 8px; background: var(--navy); border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.25);
  }
  .call-bar a { flex: 1; justify-content: center; padding: 13px 10px; }
  .call-bar .btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); }
  body { padding-bottom: 84px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .duo .photo:nth-child(2) { margin-top: 24px; }
  .card-body { padding: 24px; }
  .hero-card { border-radius: 22px; }
  .cta { border-radius: 22px; }
}
