/* =========================================================
   Providence Real Estate Group — stylesheet
   Palette drawn from the company logo:
   warm terracotta/amber + teal, on a soft warm cream base.
   ========================================================= */

:root {
  --color-cream:      #FBF3E9;
  --color-cream-deep: #F3E7D6;
  --color-ink:        #2A2320;
  --color-ink-soft:   #5A4F47;
  --color-orange:     #DD7A3C;
  --color-orange-deep:#C7622A;
  --color-orange-text:#A8501F; /* darker, AA-safe on cream for small/bold text */
  --color-amber:      #F0A868;
  --color-teal:        #2E93A6;
  --color-teal-deep:   #1F6B7A;
  --color-white:       #FFFFFF;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1160px;
  --radius: 14px;
  --shadow-soft: 0 12px 32px rgba(42, 35, 32, 0.12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-ink);
  color: var(--color-white);
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
  top: 0;
}

:focus-visible {
  outline: 3px solid var(--color-teal);
  outline-offset: 3px;
}

/* ---------- Typography helpers ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 0.5em;
  color: var(--color-ink);
}

h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 600;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.4em;
}

.lede {
  font-size: 1.1rem;
  color: var(--color-ink-soft);
  max-width: 46ch;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--color-orange-text);
  margin: 0 0 0.9em;
}

.eyebrow-light { color: var(--color-amber); }
.eyebrow-center { text-align: center; }
.center { text-align: center; margin-left: auto; margin-right: auto; max-width: 32ch; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--color-orange), var(--color-orange-deep));
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(199, 98, 42, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(199, 98, 42, 0.45); }

.btn-ghost {
  background: rgba(255,255,255,0.14);
  color: var(--color-white);
  border-color: rgba(255,255,255,0.55);
  backdrop-filter: blur(2px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); }

.btn-outline {
  background: transparent;
  color: var(--color-teal-deep);
  border-color: var(--color-teal);
}
.btn-outline:hover { background: rgba(46, 147, 166, 0.1); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 243, 233, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-cream-deep);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  height: 56px;
  width: auto;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  background: linear-gradient(120deg, var(--color-orange-deep), var(--color-amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--color-orange-deep); /* fallback if background-clip: text isn't supported */
  -webkit-text-fill-color: transparent;
}

@media (max-width: 520px) {
  .brand-name { display: none; }
}

.header-contact {
  text-align: right;
  font-size: 0.95rem;
}

.header-contact-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-soft);
  margin-bottom: 2px;
}

.header-contact .js-phone-link {
  font-weight: 700;
  color: var(--color-orange-text);
  text-decoration: none;
}

@media (max-width: 560px) {
  .header-contact-label { display: none; }
  .brand-logo { height: 44px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--color-white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(200deg, rgba(221, 122, 60, 0.55) 0%, rgba(31, 107, 122, 0.55) 55%, rgba(20, 30, 33, 0.75) 100%);
  mix-blend-mode: multiply;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,15,12,0.85) 0%, rgba(20,15,12,0.15) 55%, rgba(20,15,12,0.05) 100%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  margin-bottom: 0.3em;
  color: var(--color-white);
  text-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

.hero-tagline {
  font-size: 1.2rem;
  max-width: 40ch;
  margin: 0 0 1.8em;
  color: rgba(255,255,255,0.92);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Sections (shared) ---------- */

.section {
  padding: 96px 0;
}

.section h2 { margin-bottom: 0.5em; }

/* ---------- Believe section ---------- */

.believe-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.believe-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/5;
  object-fit: cover;
}

.believe-points {
  display: grid;
  gap: 20px;
  margin-top: 32px;
}

.point {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  align-items: start;
  padding-top: 16px;
  border-top: 1px solid var(--color-cream-deep);
}

.point-mark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--color-teal-deep);
}

.point p {
  margin: 0;
  color: var(--color-ink-soft);
}

/* ---------- Sell section ---------- */

.sell {
  background: var(--color-cream-deep);
}

.sell-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.sell-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 4/5;
  object-fit: cover;
}

.sell-copy p { color: var(--color-ink-soft); }
.sell-copy .lede { color: var(--color-ink); }

.sell-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ---------- Property types ---------- */

.types-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.type-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.type-card img {
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.type-card:hover img { transform: scale(1.06); }

.type-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 16px;
  background: linear-gradient(to top, rgba(20,15,12,0.85), transparent);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .types-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Contact ---------- */

.contact {
  background: linear-gradient(135deg, var(--color-teal-deep), var(--color-ink) 85%);
  color: var(--color-white);
}

.contact h2 { color: var(--color-white); }
.contact .lede { color: rgba(255,255,255,0.82); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
}

.contact-details {
  display: grid;
  gap: 28px;
  align-content: start;
}

.contact-block {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.contact-block h3 { color: var(--color-amber); margin-bottom: 0.3em; }
.contact-block p { margin: 0; color: rgba(255,255,255,0.9); }

.contact-links .js-phone-link,
.contact-links .js-email-link {
  color: var(--color-white);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--color-amber);
  text-underline-offset: 3px;
}

.contact-placeholder { color: rgba(255,255,255,0.55); font-weight: 400; text-decoration: none; }

@media (max-width: 800px) {
  .believe-grid, .sell-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .believe-media { order: -1; }
  .section { padding: 64px 0; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-ink);
  color: rgba(255,255,255,0.7);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-logo {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1) opacity(0.85);
}

.footer-copy {
  margin: 0;
  font-size: 0.88rem;
}

/* ---------- Contact modal (desktop click popup) ---------- */

body.modal-open {
  overflow: hidden;
}

.contact-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(24, 18, 15, 0.55);
  backdrop-filter: blur(3px);
}

.contact-modal-overlay[hidden] {
  display: none;
}

.contact-modal {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--color-cream);
  border-radius: 18px;
  padding: 44px 36px 38px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  animation: modal-pop 0.16s ease-out;
}

@keyframes modal-pop {
  from { transform: scale(0.94); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

.contact-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--color-cream-deep);
  color: var(--color-ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.contact-modal-close:hover {
  background: var(--color-orange);
  color: var(--color-white);
}

.contact-modal-label {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-orange-text);
}

.contact-modal-value {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--color-ink);
  word-break: break-word;
}

/* ---------- Reduced motion ---------- */

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