/*
Theme Name: Circle Realty
Description: Relocation landing page theme for Circle Realty and Investments Corp.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: circle-realty
*/

:root {
  --teal: #1b3a38;
  --teal-dark: #132a28;
  --ink: #16201f;
  --muted: #4a5b59;
  --line: #d5dedc;
  --field-line: #8fa09d;
  --page: #eef2f1;
  --white: #ffffff;
  --focus: #0b6fa4;
  --error-bg: #fdecea;
  --error-ink: #7a1c14;
  --radius: 14px;
}

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

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

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

a { color: var(--teal); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 16px;
  clip: auto;
  background: var(--white);
  color: var(--teal);
  font-weight: 600;
  z-index: 100;
}

/* Layout */

.card {
  max-width: 780px;
  margin: 0 auto;
  padding: 14px 16px 20px;
  background: var(--white);
  border: 1px solid var(--line);
}

@media (min-width: 820px) {
  .card {
    margin-top: 24px;
    padding: 18px 26px 28px;
    border-radius: var(--radius);
  }
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
}

.wordmark {
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--teal);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover { text-decoration: underline; }

.header-phone svg { width: 18px; height: 18px; fill: currentColor; flex: none; }

/* Hero */

.hero {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--white);
}

.hero img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.hero-copy {
  padding: 20px 18px 22px;
  text-align: center;
}

.hero h1 {
  text-wrap: balance;
  margin: 0 0 8px;
  font-size: clamp(1.375rem, 5.6vw, 1.75rem);
  line-height: 1.2;
  font-weight: 600;
}

.hero p {
  text-wrap: balance;
  max-width: 34em;
  margin: 0 auto;
  font-size: 1rem;
}

/* Areas */

.areas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.areas figure { margin: 0; }

.areas img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.areas figcaption {
  margin-top: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

@media (min-width: 480px) {
  .areas { gap: 12px; }
  .areas figcaption { font-size: 0.9375rem; }
}

/* Form */

.guide {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 12px;
}

.guide h2 {
  margin: 0 0 14px;
  font-size: 1.1875rem;
  line-height: 1.3;
  text-align: center;
}

.lead-form { display: grid; gap: 10px; }

.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form select {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--field-line);
  border-radius: 8px;
  background-color: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.lead-form input::placeholder { color: #5b6b69; opacity: 1; }

.lead-form select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231b3a38' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.lead-form select:has(option[value=""]:checked) { color: #5b6b69; }

.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  margin: 4px 0 2px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.consent input {
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--teal);
}

.consent a { color: var(--teal); white-space: nowrap; }

.btn {
  min-height: 50px;
  padding: 12px 18px;
  border: 0;
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover { background: var(--teal-dark); }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.9375rem;
}

.notice-error {
  background: var(--error-bg);
  color: var(--error-ink);
  border: 1px solid #e3a49d;
}

.notice a { color: inherit; font-weight: 600; }

.thanks { text-align: center; padding: 6px 0 4px; }

.thanks p { margin: 0 0 12px; font-size: 1.0625rem; }

.thanks .btn {
  display: inline-block;
  padding-top: 13px;
  text-decoration: none;
}

.trust {
  text-wrap: balance;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}

/* Broker */

.broker {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.broker img {
  width: 104px;
  flex: none;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border-radius: 12px;
}

.broker h2 { margin: 0; font-size: 1.125rem; line-height: 1.3; }

.broker-role { margin: 0 0 6px; color: var(--muted); font-size: 0.9375rem; }

.broker p:last-child { margin: 0; font-size: 0.9375rem; }

@media (min-width: 480px) {
  .broker img { width: 132px; }
}

/* Footer */

.site-footer {
  max-width: 780px;
  margin: 0 auto;
  padding: 20px 16px 32px;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: center;
}

.site-footer p { margin: 0 0 4px; }

.site-footer a { color: var(--teal); }

.site-footer .legal { margin-top: 10px; font-size: 0.8125rem; }

/* Generic pages */

.entry { padding: 8px 0 0; }

.entry h1 { margin: 0 0 12px; font-size: 1.5rem; line-height: 1.25; }

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