/* =========================================================
   Everyone’s Title Company – Phase 1 site styles
   BRAND SETTINGS: colors below come from the "Everyone’s Brand &
   Color Sheet" (November 2026). To change the look, change only
   the values in this :root block.
   Logo colors for reference: Olive Green #7C9260, Slate Blue #5888B0.
   Green is too light for small text on white, so text and buttons
   use the darker shades (Green 130%, Blue 130%) and neutral gray.
   ========================================================= */
:root {
  --brand: #5F7739;        /* Green 130%: headings, buttons, footer */
  --brand-soft: #4A4A4A;   /* neutral gray: body text */
  --accent: #3F6FA5;       /* Blue 130%: links and highlights */
  --accent-light: #DCE8F3; /* light blue tint */
  --surface: #F2F5EE;      /* very light green tint for section backgrounds */
  --line: #D5DCCB;         /* soft green-gray borders */
  --white: #FFFFFF;
  --font-heading: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 8px;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 18px; line-height: 1.6; color: var(--brand-soft); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--brand); line-height: 1.15; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: var(--white); padding: 12px 16px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 24px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--brand); font-weight: 600; text-decoration: none; }
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-top: 16px; padding-bottom: 16px; }
.logo img { height: 96px; width: auto; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--brand); font-weight: 600; text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav a[aria-current="page"] { border-bottom: 3px solid var(--accent); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 6px; font-weight: 700; font-size: 1.05rem; text-decoration: none; border: 2px solid var(--brand); }
.btn-primary { background: var(--brand); color: var(--white); }
.btn-primary:hover { background: #4C5F2E; }
.btn-outline { background: var(--white); color: var(--brand); }
.btn-outline:hover { background: var(--surface); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 8px; }

/* Sections */
section { padding: 72px 0; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead { font-size: 1.25rem; max-width: 46rem; }
.hero { padding: 72px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
/* Photo hero: put the photo at assets/hero.jpg. The layers below are: dark overlay, photo, fallback gradient. */
.hero-photo { color: #FFFFFF; padding: 0; min-height: 540px; display: flex; align-items: center;
  background-color: #3C4A24;
  background-image: linear-gradient(90deg, rgba(24, 32, 16, 0.66) 0%, rgba(24, 32, 16, 0.50) 45%, rgba(24, 32, 16, 0.18) 100%), url("assets/hero.jpg"), linear-gradient(160deg, #3C4A24 0%, #3F6FA5 100%);
  background-size: cover; background-position: center 22%; }
.hero-content { padding-top: 96px; padding-bottom: 96px; }
.hero-photo h1 { color: #FFFFFF; max-width: 18ch; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35); }
.hero-photo .lead { font-size: clamp(1.3rem, 2.4vw, 1.5rem); color: #FFFFFF; max-width: 60rem; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35); }
.hero-photo .btn-primary { background: #FFFFFF; color: var(--brand); border-color: #FFFFFF; }
.hero-photo .btn-primary:hover { background: #EEF2E8; }
.hero-photo .btn-outline { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.hero-photo .btn-outline:hover { background: rgba(255, 255, 255, 0.15); }
.photo { min-height: 340px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; background: #E5E7EB; border: 1px dashed #6B7280; border-radius: var(--radius); color: var(--brand-soft); font-size: 1rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 32px; }
.fact { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.fact strong { display: block; font-size: 1.1rem; color: var(--brand); margin-bottom: 4px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 32px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { margin-bottom: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-top: 32px; }
.details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.details dt { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #4B5563; margin-top: 18px; }
.details dt:first-child { margin-top: 0; }
.details dd { margin: 2px 0 0; font-size: 1.25rem; font-weight: 600; color: var(--brand); }
.details a { color: var(--brand); }
.notice { border: 2px solid var(--brand); border-radius: var(--radius); padding: 24px; background: var(--white); }
.notice h3 { margin-bottom: 8px; }

/* Licensing table */
.table-wrap { overflow-x: auto; margin-top: 24px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--white); }
th, td { text-align: left; padding: 14px 16px; border: 1px solid var(--line); }
th { background: var(--brand); color: var(--white); font-weight: 700; }
tbody tr:nth-child(even) { background: var(--surface); }

/* Footer */
.site-footer { background: var(--brand); color: #FFFFFF; padding: 40px 0; font-size: 0.95rem; }
.site-footer a { color: #FFFFFF; }
.site-footer p { margin: 0 0 8px; }

/* Team section (ready for later; not used in Phase 1) */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; margin-top: 32px; }
.person { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.person .headshot { width: 120px; height: 120px; border-radius: 50%; background: #E5E7EB; border: 1px dashed #6B7280; margin-bottom: 16px; }
.person img.headshot { object-fit: cover; border: 0; }
.person h3 { margin-bottom: 2px; }
.person .role { color: #4B5563; margin-bottom: 8px; }

@media (max-width: 820px) {
  body { font-size: 17px; }
  section { padding: 52px 0; }
  .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { min-height: 440px; background-image: linear-gradient(rgba(24, 32, 16, 0.55), rgba(24, 32, 16, 0.55)), url("assets/hero.jpg"), linear-gradient(160deg, #3C4A24 0%, #3F6FA5 100%); background-position: center 15%; }
  .hero-content { padding-top: 64px; padding-bottom: 64px; }
  .photo { min-height: 220px; }
  .topbar .wrap { justify-content: flex-start; }
}

/* Privacy Notice page */
.policy { max-width: 52rem; }
.policy h2 { font-size: 1.35rem; margin: 2.2rem 0 0.6rem; color: var(--brand); }
.policy ul, .policy ol { margin: 0 0 1em; padding-left: 1.4rem; }
.policy li { margin-bottom: 0.6em; }
.policy-date { color: #4B5563; margin-bottom: 0; }
.policy-contact { font-style: normal; margin: 0 0 1em; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* Licensing table: fit all four columns on phones without sideways scrolling */
@media (max-width: 640px) {
  table { min-width: 0; }
  th, td { padding: 8px 5px; font-size: 0.74rem; }
  td:nth-child(3), td:nth-child(4) { white-space: nowrap; }
}
