/* commacknyhomes.com - mobile-first styles */

:root {
  --navy: #12304a;
  --navy-deep: #0b2236;
  --ink: #1d2b36;
  --muted: #52616b;
  --paper: #ffffff;
  --sand: #f6f2ec;
  --line: #e3ddd4;
  --copper: #a8501a;
  --copper-dark: #8a3f12;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 48, 74, 0.10);
  --max: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

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

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding: 0.8rem 0;
}

.brand { text-decoration: none; display: block; }
.brand strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.18rem;
  color: var(--navy);
}
.brand span {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  border-color: var(--copper);
  color: var(--navy);
}

.header-call .btn { padding: 0.65rem 1.1rem; font-size: 0.88rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { background: var(--copper-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-outline { border-color: #fff; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--navy); }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(168, 80, 26, 0.22), transparent 55%),
    var(--navy);
  color: #fff;
  padding: 3rem 0 3.5rem;
}

.hero h1 {
  color: #fff;
  font-size: clamp(1.95rem, 4.6vw, 3rem);
  max-width: 20ch;
  margin-bottom: 0.45em;
}

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f0c8a8;
  margin-bottom: 0.9rem;
}

.hero .lede {
  color: #dbe6ee;
  font-size: 1.07rem;
  max-width: 50ch;
}

.hero-grid { display: grid; gap: 2rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1.25rem;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: #c9d8e3;
}
.hero-note li::before {
  content: "\2713";
  color: #f0c8a8;
  font-weight: 700;
  margin-right: 0.4rem;
}

.hero-page { padding: 2.75rem 0 3rem; }
.hero-page h1 { max-width: 24ch; }
.hero-page .lede { margin-bottom: 0; }

/* Photo band under the hero */
.photo-band {
  margin: 0;
  padding: 0;
  background: var(--paper);
}
.photo-band img {
  display: block;
  width: 100%;
  height: clamp(200px, 30vw, 380px);
  object-fit: cover;
  object-position: center 55%;
}

/* Lead card / form */
.lead-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.lead-card h2 { font-size: 1.4rem; margin-bottom: 0.2rem; }
.lead-card > p { font-size: 0.92rem; color: var(--muted); margin-bottom: 1rem; }

.field { margin-bottom: 0.85rem; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid #cfc7bc;
  border-radius: 10px;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: #fff;
}
.field textarea { min-height: 92px; resize: vertical; }
.field input:focus,
.field textarea:focus {
  outline: 3px solid rgba(168, 80, 26, 0.25);
  border-color: var(--copper);
}

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

.lead-card .btn { width: 100%; margin-top: 0.25rem; }
.fineprint {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 0.75rem 0 0;
}

/* Sections */
section { padding: 3.25rem 0; }
.section-tight { padding: 2.25rem 0; }
.band { background: var(--sand); }

.section-head { max-width: 62ch; margin-bottom: 1.75rem; }
.section-head h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
.section-head p { color: var(--muted); }

.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}
.card h3 { font-size: 1.12rem; margin-bottom: 0.45rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.card a { font-weight: 600; }

/* FAQ */
.faq { max-width: 840px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.05rem 0;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--copper);
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0; padding: 0 0 1.1rem; color: var(--muted); max-width: 72ch; }

/* Steps */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.1rem 1.2rem 1.1rem 3.7rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.05rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.steps h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Callout */
.callout {
  background: var(--sand);
  border-left: 4px solid var(--copper);
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
}
.callout p:last-child { margin-bottom: 0; }

/* Comparison table */
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare caption {
  caption-side: bottom;
  padding-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: left;
}
.compare th,
.compare td {
  padding: 0.8rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  background: var(--sand);
  color: var(--navy);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.compare tbody th {
  font-weight: 600;
  color: var(--navy);
  width: 26%;
}
.compare tr:last-child th,
.compare tr:last-child td { border-bottom: 0; }

/* CTA band */
.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 3rem 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbe6ee; max-width: 56ch; margin: 0 auto 1.5rem; }
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #c7d4dd;
  font-size: 0.9rem;
  padding: 2.5rem 0 6rem;
}
.footer-grid { display: grid; gap: 1.75rem; }
.site-footer h2,
.site-footer h3 {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.7rem;
}
.site-footer a { color: #e8eef2; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer-id { line-height: 1.7; margin-bottom: 0.9rem; }
.footer-id strong { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 2rem;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.78rem;
  color: #9fb3c0;
}
.eho { color: #e8eef2; font-weight: 600; }

/* Mobile call bar */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.06);
}
.callbar .btn { padding: 0.7rem 1rem; font-size: 0.88rem; }

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mt-0 { margin-top: 0; }

/* Larger screens */
@media (min-width: 701px) {
  .callbar { display: none; }
  .site-footer { padding-bottom: 2.5rem; }
}

@media (min-width: 880px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    gap: 3rem;
  }
}

@media (min-width: 780px) {
  .footer-grid { grid-template-columns: 1.25fr 1fr 1fr; }
}

@media (max-width: 600px) {
  .header-call { display: none; }
  .field input,
  .field textarea { font-size: 16px; } /* prevents iOS zoom */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

