* { box-sizing: border-box; }

:root {
  --ink: #17211d;
  --muted: #68736d;
  --green: #183b32;
  --green-2: #245447;
  --cream: #f5f1e8;
  --sand: #ded4bf;
  --paper: #fffdf8;
  --line: #d9ddd8;
  --white: #ffffff;
  --shadow: 0 20px 60px rgba(23, 33, 29, .10);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 850px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,253,248,.96);
  border-bottom: 1px solid rgba(23,33,29,.08);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 28px;
  font-weight: 700;
}

.brand-copy { display: grid; line-height: 1; letter-spacing: .14em; }
.brand-copy strong { font-size: 15px; }
.brand-copy small { margin-top: 6px; font-size: 9px; letter-spacing: .28em; color: var(--muted); }

.main-nav { display: flex; gap: 28px; font-size: 14px; font-weight: 600; }
.main-nav a:hover { color: var(--green-2); }

.btn {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 20px;
  font-weight: 700;
  cursor: pointer;
  transition: .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: white; }
.btn-primary:hover { background: var(--green-2); }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: white; background: rgba(255,255,255,.05); }
.btn-full { width: 100%; }

.hero {
  position: relative;
  min-height: 680px;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 30%, rgba(214,192,147,.30), transparent 25%),
    linear-gradient(120deg, #0f2e26 0%, #1c473b 46%, #355f52 100%);
}
.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -150px;
  width: 58%;
  height: 520px;
  border-radius: 50% 50% 0 0;
  background:
    linear-gradient(170deg, transparent 0 24%, rgba(255,255,255,.08) 24.3% 25%, transparent 25.2%),
    linear-gradient(10deg, transparent 0 50%, rgba(255,255,255,.07) 50.3% 51%, transparent 51.2%);
  transform: rotate(-7deg);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5,19,15,.32), transparent 70%);
}
.hero-content { position: relative; z-index: 2; padding: 90px 0; }
.eyebrow {
  margin: 0 0 12px;
  color: #a5854d;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 12px;
  font-weight: 800;
}
.hero .eyebrow { color: #e5c894; }
h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  margin-top: 0;
  line-height: 1.05;
}
h1 { margin-bottom: 22px; font-size: clamp(54px, 7vw, 88px); letter-spacing: -.025em; }
h2 { margin-bottom: 18px; font-size: clamp(40px, 5vw, 58px); letter-spacing: -.02em; }
h3 { margin-bottom: 10px; font-size: 30px; }
.hero-text { max-width: 680px; font-size: 19px; color: rgba(255,255,255,.84); }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.trust-bar { background: var(--cream); border-bottom: 1px solid #e1dacd; }
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.trust-grid > div { padding: 26px 30px; border-right: 1px solid #ddd5c6; }
.trust-grid > div:first-child { padding-left: 0; }
.trust-grid > div:last-child { border-right: 0; }
.trust-grid strong, .trust-grid span { display: block; }
.trust-grid strong { font-size: 14px; }
.trust-grid span { margin-top: 3px; font-size: 13px; color: var(--muted); }

.section { padding: 100px 0; }
.section-heading { max-width: 750px; margin-bottom: 42px; }
.section-heading > p:last-child, .split-copy > p, .contact-grid > div > p { color: var(--muted); font-size: 17px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  padding: 34px;
  min-height: 285px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  box-shadow: 0 8px 30px rgba(23,33,29,.04);
}
.card .icon { font-size: 34px; color: #a5854d; margin-bottom: 28px; }
.card p { color: var(--muted); }

.split-section { background: #f8f6f0; }
.split-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.location-panel {
  min-height: 470px;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(0deg, rgba(16,54,74,.38) 0 24%, transparent 24.5%),
    linear-gradient(148deg, transparent 0 52%, rgba(244,239,224,.65) 52.3% 62%, transparent 62.3%),
    radial-gradient(circle at 70% 20%, rgba(255,245,202,.9) 0 5%, transparent 5.3%),
    linear-gradient(#8fb4b0, #c8d6c8 58%, #718d72 58.5%, #4e6d58 100%);
  box-shadow: var(--shadow);
}
.location-panel::before {
  content: "";
  position: absolute;
  left: 12%;
  bottom: 23%;
  width: 72%;
  height: 12%;
  border-radius: 50%;
  background: rgba(250,250,244,.55);
  transform: skewX(-25deg);
}
.location-badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  padding: 10px 14px;
  border-radius: 6px;
  background: rgba(255,255,255,.9);
  font-size: 12px;
  letter-spacing: .15em;
  font-weight: 800;
}
.location-badge span { color: #a5854d; }
.text-link { color: var(--green); font-weight: 800; }

.about-section { text-align: center; background: var(--green); color: white; }
.about-section .eyebrow { color: #e5c894; }
.large-copy { font-size: 21px; color: rgba(255,255,255,.78); }

.portal-section { padding: 70px 0; }
.portal-card {
  background: var(--cream);
  border: 1px solid #dfd7c8;
  border-radius: 16px;
  padding: 46px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: center;
}
.portal-card h2 { font-size: 42px; margin-bottom: 10px; }
.portal-card p:last-child { margin-bottom: 0; color: var(--muted); }

.contact-section { background: #fff; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 75px; }
.contact-form { display: grid; gap: 18px; }
.contact-form label, .field-label { font-size: 13px; font-weight: 800; }
.contact-form input, .contact-form select, .contact-form textarea, .field-input {
  width: 100%;
  margin-top: 7px;
  border: 1px solid #cbd1cd;
  border-radius: 7px;
  background: white;
  padding: 13px 14px;
  color: var(--ink);
  outline: none;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus, .field-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(24,59,50,.10);
}

.site-footer { padding: 38px 0; background: #101d19; color: rgba(255,255,255,.72); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; align-items: center; }
.footer-grid p { margin: 0; font-size: 13px; }
.footer-grid p:last-child { text-align: right; }
.footer-brand .brand-copy strong { color: white; }
.footer-brand .brand-copy small { color: rgba(255,255,255,.55); }
.footer-brand .brand-mark { background: #d1b479; color: #17211d; }

/* Login */
.login-page { min-height: 100vh; background: linear-gradient(145deg, #f4f0e7 0%, #fffdf8 58%, #e9eee9 100%); }
.login-header { position: relative; }
.back-link { font-size: 14px; font-weight: 700; color: var(--green); }
.login-main {
  min-height: calc(100vh - 79px);
  display: grid;
  place-items: center;
  padding: 60px 20px;
}
.login-shell { width: min(920px, 100%); display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.login-intro h1 { color: var(--green); font-size: 62px; }
.login-intro > p:last-child { color: var(--muted); font-size: 17px; }
.login-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.role-switch { border: 0; padding: 0; margin: 0 0 25px; }
.role-switch legend { margin-bottom: 8px; font-size: 13px; font-weight: 800; }
.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  background: #edf0ed;
  border-radius: 8px;
}
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  min-height: 42px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-weight: 800;
  font-size: 14px;
  color: var(--muted);
}
.segmented input:checked + span { background: white; color: var(--green); box-shadow: 0 3px 10px rgba(23,33,29,.08); }
.field-label { display: block; margin-top: 18px; }
.field-help { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.password-wrap { position: relative; }
.password-wrap .field-input { padding-right: 70px; }
.show-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-41%);
  border: 0;
  background: transparent;
  color: var(--green);
  font-weight: 800;
  cursor: pointer;
}
.login-options {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 20px 0;
  font-size: 13px;
}
.login-options a { color: var(--green); font-weight: 800; }
.remember { display: inline-flex; align-items: center; gap: 8px; }
.login-status { min-height: 22px; margin: 12px 0 0; font-size: 13px; font-weight: 700; }
.login-status.error { color: #9b2f2f; }
.login-status.success { color: var(--green); }
.security-note {
  margin-top: 22px;
  padding: 16px;
  border-radius: 8px;
  background: #f6f3eb;
  border: 1px solid #e5ddcd;
  font-size: 12px;
  color: var(--muted);
}
.security-note strong { color: var(--ink); }
.security-note p { margin: 4px 0 0; }

@media (max-width: 860px) {
  .main-nav { display: none; }
  .hero { min-height: 610px; }
  .trust-grid, .cards, .split-grid, .contact-grid, .footer-grid, .login-shell { grid-template-columns: 1fr; }
  .trust-grid > div { padding: 20px 0; border-right: 0; border-bottom: 1px solid #ddd5c6; }
  .trust-grid > div:last-child { border-bottom: 0; }
  .split-grid, .contact-grid, .login-shell { gap: 38px; }
  .portal-card { align-items: flex-start; flex-direction: column; }
  .footer-grid p:last-child { text-align: left; }
  .login-intro { text-align: center; max-width: 560px; margin: auto; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, 1160px); }
  .section { padding: 72px 0; }
  .nav-wrap { min-height: 70px; }
  .site-header .btn-outline { padding: 0 14px; min-height: 40px; }
  h1 { font-size: 50px; }
  h2 { font-size: 40px; }
  .hero { min-height: 580px; }
  .hero-content { padding: 65px 0; }
  .card, .login-card { padding: 26px; }
  .location-panel { min-height: 340px; }
  .portal-card { padding: 30px; }
  .login-options { align-items: flex-start; flex-direction: column; gap: 10px; }
  .back-link { font-size: 12px; }
}
