/* Sammy Sells Real Estate — sammysellsphilly.com
   Brand green #00573D from the logo source. Cormorant Garamond for display,
   Jost for body, echoing the wordmark's spaced caps. Light theme only, on purpose. */

:root {
  --green: #00573D;
  --green-deep: #003D2B;
  --green-tint: #EDF4F0;
  --ink: #1C2420;
  --muted: #5C6A63;
  --paper: #FBFAF6;
  --card: #FFFFFF;
  --line: #E3E7E2;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Century Gothic", "Avenir Next", Verdana, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: .06em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: .04em; }
h3 { font-size: 1.35rem; letter-spacing: .03em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.kicker {
  font-family: var(--sans); font-size: .78rem; font-weight: 500;
  letter-spacing: .32em; text-transform: uppercase; color: var(--green);
  margin-bottom: 14px;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 250, 246, .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; padding: 14px 24px; max-width: 1240px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; border-radius: 4px; }
.brand-name { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; letter-spacing: .18em; color: var(--ink); }
.brand-name small { display: block; font-family: var(--sans); font-size: .58rem; letter-spacing: .42em; color: var(--green); font-weight: 500; }
.nav-links { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-links a { font-size: .92rem; font-weight: 400; letter-spacing: .06em; color: var(--ink); }
.nav-links a.active { color: var(--green); font-weight: 500; }
.nav-links a:hover { color: var(--green); text-decoration: none; }
.nav-cta {
  background: var(--green); color: #fff !important; padding: 10px 20px;
  border-radius: 3px; font-weight: 500 !important;
}
.nav-cta:hover { background: var(--green-deep); text-decoration: none; }
.nav-toggle { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 15px 32px; border-radius: 3px;
  font-family: var(--sans); font-size: .95rem; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; transition: background .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn-solid { background: var(--green); color: #fff; }
.btn-solid:hover { background: var(--green-deep); }
.btn-line { border: 1px solid var(--green); color: var(--green); }
.btn-line:hover { background: var(--green); color: #fff; }
.btn-white { background: #fff; color: var(--green); }
.btn-white:hover { background: var(--green-tint); }
.btn-white-line { border: 1px solid rgba(255,255,255,.7); color: #fff; }
.btn-white-line:hover { background: rgba(255,255,255,.12); }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 80px; text-align: center; background:
  radial-gradient(1200px 500px at 50% -10%, var(--green-tint) 0%, var(--paper) 60%); }
.hero .mark { width: 128px; margin: 0 auto 30px; }
.hero h1 { text-transform: uppercase; }
.hero .sub {
  font-size: .95rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--muted); margin: 18px 0 10px;
}
.hero .lead { margin: 18px auto 36px; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Stat band ---------- */
.stats { background: var(--green); color: #fff; padding: 56px 0 46px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 600; line-height: 1.1; }
.stat span { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; opacity: .85; }
.stats .note { text-align: center; font-size: .74rem; opacity: .6; margin-top: 28px; letter-spacing: .04em; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.tint { background: var(--green-tint); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 34px 30px; }
.card h3 { margin-bottom: 12px; color: var(--green-deep); }
.card p { color: var(--muted); font-size: .98rem; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.quote { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 4px; padding: 32px; }
.quote p { font-family: var(--serif); font-size: 1.22rem; line-height: 1.5; color: var(--ink); margin-bottom: 18px; }
.quote footer { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.quote footer b { color: var(--green); font-weight: 500; }

/* ---------- Neighborhoods ---------- */
.hoods { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 22px; }
.hood { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 28px; scroll-margin-top: 96px; }
.hood h3 { color: var(--green-deep); margin-bottom: 8px; }
.hood p { font-size: .94rem; color: var(--muted); }
.hood-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 14px; }
.hood-tile {
  display: block; background: var(--card); border: 1px solid var(--line); border-radius: 4px;
  padding: 20px 22px; font-family: var(--serif); font-size: 1.15rem; font-weight: 600;
  letter-spacing: .05em; color: var(--ink);
}
.hood-tile:hover { border-color: var(--green); color: var(--green); text-decoration: none; }

/* ---------- Split (about teaser) ---------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; }
.split .photo { border-radius: 4px; overflow: hidden; border: 1px solid var(--line); }
.split .photo img { width: 100%; height: auto; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 72px 1fr; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 2rem; color: var(--green); font-weight: 600; line-height: 1;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .98rem; max-width: 68ch; }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; }
table.record { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 4px; }
table.record th, table.record td { padding: 12px 18px; text-align: left; font-size: .95rem; }
table.record th { background: var(--green); color: #fff; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; font-size: .78rem; }
table.record tr:nth-child(even) td { background: var(--green-tint); }
table.record td b { font-family: var(--serif); font-size: 1.05rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green); color: #fff; text-align: center; padding: 80px 24px; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { opacity: .85; max-width: 56ch; margin: 0 auto 32px; }
.cta-band .hero-ctas { margin-top: 8px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 76px 0 56px; background:
  radial-gradient(900px 380px at 50% -10%, var(--green-tint) 0%, var(--paper) 60%); text-align: center; }
.page-hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); text-transform: uppercase; }
.page-hero .lead { margin: 18px auto 0; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; }
.contact-list { display: grid; gap: 20px; }
.contact-item { border: 1px solid var(--line); background: var(--card); border-radius: 4px; padding: 22px 26px; }
.contact-item .label { font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--green); margin-bottom: 4px; }
.contact-item a.big, .contact-item span.big { font-family: var(--serif); font-size: clamp(1.15rem, 5.5vw, 1.4rem); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.map-frame { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.map-frame iframe { display: block; width: 100%; height: 100%; min-height: 420px; border: 0; }

/* ---------- Footer ---------- */
.footer { background: var(--green-deep); color: rgba(255,255,255,.85); padding: 56px 0 40px; }
.footer .wrap { display: grid; gap: 10px; text-align: center; }
.footer .f-logo { width: 76px; margin: 0 auto 14px; opacity: .95; }
/* 49 Pa. Code 35.305(c): brokerage name and phone in type of EQUAL size to the
   agent's name and phone. Both lines share .f-names — same size, same weight. */
.f-names { font-size: 1.02rem; line-height: 1.7; color: #fff; letter-spacing: .04em; }
.f-addr, .f-legal { font-size: .84rem; opacity: .75; }
.f-legal { max-width: 76ch; margin: 6px auto 0; }
.f-social { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 14px; }
.f-social a { color: #fff; opacity: .85; font-size: .86rem; letter-spacing: .14em; text-transform: uppercase; }
.f-eho { font-size: .8rem; opacity: .7; margin-top: 10px; }
.footer hr { border: 0; border-top: 1px solid rgba(255,255,255,.15); margin: 22px auto; width: 100%; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: block; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 3px; padding: 11px 16px; font-size: .9rem; color: var(--ink); font-family: var(--sans); }
  .nav-links.open { display: grid; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 24px 18px; gap: 0; max-height: calc(100vh - 76px); overflow-y: auto; }
  .nav-links.open a { display: block; padding: 10px 0; }
  .nav-links.open .nav-cta { padding: 12px 20px; margin-top: 8px; text-align: center; }
  .split .photo { max-width: 440px; margin: 0 auto; }
}

/* Small phones */
@media (max-width: 380px) {
  table.record th, table.record td { padding: 10px 10px; font-size: .88rem; }
  table.record th { font-size: .72rem; letter-spacing: .06em; }
}
@media (max-width: 360px) {
  .step { grid-template-columns: 44px 1fr; gap: 14px; }
  .step::before { font-size: 1.5rem; }
}

/* Landscape phones */
@media (max-height: 500px) {
  .hero { padding: 48px 0; }
  .hero .mark { width: 72px; margin-bottom: 18px; }
}
