/* Northfork Home Pros — homepage concept
   Warm cream, charcoal, wood, forest green. No blue. */

:root {
  --cream: #f4efe6;
  --cream-deep: #ebe3d4;
  --cream-paper: #f7f3ea;
  --white: #fcfaf5;
  --charcoal: #2a2622;
  --charcoal-soft: #3d3833;
  --ink: #2a2622;
  --muted: #6b635a;
  --line: #d8cfc0;
  --wood: #a67c52;
  --wood-light: #c4a574;
  --forest: #3e5647;
  --forest-soft: #5a7263;
  --forest-wash: #e4ebe4;
  --orange: #d96b2b;
  --orange-hover: #c45c20;
  --orange-deep: #b44e18;
  --shadow: 0 10px 28px rgba(42, 38, 34, 0.08);
  --shadow-lg: 0 22px 50px rgba(42, 38, 34, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Fraunces", Georgia, serif;
  --header-h: 78px;
  --max: 1140px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 48px);
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  background-image:
    url("images/paper-texture.jpg"),
    linear-gradient(180deg, #f3eee4 0%, var(--cream) 18%, #f6f1e8 60%, #efe8db 100%);
  background-size: 420px, auto;
  background-blend-mode: multiply, normal;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -40px;
  background: var(--charcoal);
  color: var(--cream);
  padding: 0.5rem 0.8rem;
  z-index: 80;
}
.skip-link:focus {
  top: 0.6rem;
}

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

.section {
  padding: 5rem 0;
}

@media (min-width: 800px) {
  .section {
    padding: 6.4rem 0;
  }
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 0.7rem;
}

.eyebrow.light {
  color: #c5d1c6;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--charcoal);
}

h1 {
  font-size: clamp(2.35rem, 5.6vw, 4.15rem);
  margin-bottom: 1.1rem;
}

h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  margin-bottom: 0.85rem;
}

h3 {
  font-size: 1.28rem;
  margin-bottom: 0.45rem;
}

.lede,
.section-lead {
  color: var(--muted);
  max-width: 40rem;
}

.lede {
  font-size: 1.14rem;
  color: #ece6da;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.4rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.78rem 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--orange);
  color: #fff8f2;
  box-shadow: 0 8px 20px rgba(217, 107, 43, 0.28);
}

.btn-primary:hover {
  background: var(--orange-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(244, 239, 230, 0.45);
}

.btn-secondary:hover {
  background: rgba(244, 239, 230, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid rgba(244, 239, 230, 0.35);
}

.btn-lg {
  padding: 0.95rem 1.5rem;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 0.62rem 1rem;
  font-size: 0.92rem;
}

.btn-block {
  width: 100%;
}

.text-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--forest);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline;
}

.text-link:hover {
  color: var(--orange-deep);
}

/* Sample disclaimer */
.sample-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.85rem;
  background: #24352c;
  color: #f3eee4;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.4;
  padding: 0.42rem 0.85rem;
}

.sf-back,
.sf-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.sf-back {
  background: #f4efe6;
  color: #24352c;
}
.sf-switch {
  background: transparent;
  color: #f4efe6;
  border: 1.5px solid #f4efe6;
}

.sf-back:hover,
.sf-back:focus-visible {
  background: #fff;
  color: #1b2821;
}

/* Header */
.site-chrome {
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header {
  background: rgba(247, 243, 234, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(42, 38, 34, 0.08);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(42, 38, 34, 0.06);
}

.header-inner {
  width: min(100% - 1.6rem, 1240px);
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--cream-deep);
  border-radius: 12px;
  border: 1px solid rgba(42, 38, 34, 0.06);
}

.brand-mark svg {
  width: 30px;
  height: 30px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-name {
  font-family: var(--display);
  font-size: 1.22rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 600;
}

.nav-desktop {
  display: none;
  gap: 1.15rem;
  margin-left: auto;
}

.nav-desktop a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--charcoal-soft);
}

.nav-desktop a:hover {
  color: var(--forest);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.header-phone {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--charcoal);
  white-space: nowrap;
}

.header-actions .btn-sm {
  display: inline-flex;
}

.btn-short {
  display: inline;
}

.btn-full {
  display: none;
}

.nav-toggle {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--charcoal);
}

.nav-mobile {
  display: grid;
  gap: 0.35rem;
  padding: 0.4rem 1.2rem 1.2rem;
  border-top: 1px solid var(--line);
  background: var(--cream-paper);
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile a,
.nav-mobile button {
  text-align: left;
}

.nav-mobile a {
  padding: 0.55rem 0;
  font-weight: 500;
}

@media (min-width: 980px) {
  .nav-desktop {
    display: flex;
  }
  .header-phone {
    display: inline-flex;
  }
  .btn-short {
    display: none;
  }

  .btn-full {
    display: inline;
  }
  .header-actions {
    margin-left: 0;
  }
  .nav-toggle,
  .nav-mobile {
    display: none !important;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  color: var(--cream);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 50%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(42, 38, 34, 0.18) 0%, rgba(42, 38, 34, 0.28) 38%, rgba(32, 27, 22, 0.78) 100%),
    linear-gradient(90deg, rgba(32, 27, 22, 0.45) 0%, rgba(32, 27, 22, 0.08) 62%);
}

.hero-copy {
  position: relative;
  padding: 5.5rem 0 3.4rem;
  max-width: 760px;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  width: min(100% - 2rem, 720px);
}

.hero .eyebrow {
  color: #d7c4a4;
}

.hero h1 {
  color: #f7f1e6;
  text-shadow: 0 2px 24px rgba(20, 16, 12, 0.28);
}

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

.hero-note {
  color: #cfc4b3;
  font-size: 0.92rem;
}

.hero-note.light {
  color: #c5b9a8;
}

/* Trust */
.trust-bar {
  background: var(--charcoal);
  color: #e8e0d2;
  padding: 0.95rem 0;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.55rem 1rem;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.trust-row span {
  color: var(--wood-light);
  opacity: 0.7;
}

/* Services — light broken grid */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.svc-card {
  background: var(--white);
  border: 1px solid rgba(42, 38, 34, 0.07);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.3rem;
  box-shadow: var(--shadow);
}

.svc-repairs {
  padding: 0;
  overflow: hidden;
  display: grid;
}

.svc-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.svc-body {
  padding: 1.25rem 1.25rem 1.4rem;
}

.svc-kicker {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-deep);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.svc-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--forest-wash);
  color: var(--forest);
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
}

.svc-icon svg {
  width: 22px;
  height: 22px;
}

.svc-card p {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

.svc-emergency {
  background: linear-gradient(180deg, #f8f1e6 0%, #f3e6d4 100%);
  border-color: rgba(217, 107, 43, 0.18);
}

.svc-emergency .svc-icon {
  background: rgba(217, 107, 43, 0.12);
  color: var(--orange-deep);
}

@media (min-width: 820px) {
  .services-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 1.05rem;
    align-items: stretch;
  }
  .svc-repairs {
    grid-column: 1 / 8;
    grid-row: 1 / 3;
    grid-template-rows: 1.05fr 0.95fr;
  }
  .svc-photo img {
    height: 100%;
    min-height: 230px;
  }
  .svc-remodel {
    grid-column: 8 / 13;
  }
  .svc-exterior {
    grid-column: 8 / 13;
  }
  .svc-handy {
    grid-column: 1 / 7;
  }
  .svc-emergency {
    grid-column: 7 / 13;
  }
}

@media (min-width: 1080px) {
  .svc-repairs {
    grid-column: 1 / 7;
    grid-template-columns: 1.05fr 0.95fr;
    grid-template-rows: 1fr;
  }
  .svc-photo img {
    min-height: 100%;
  }
  .svc-remodel {
    grid-column: 7 / 13;
  }
  .svc-exterior {
    grid-column: 7 / 10;
  }
  .svc-handy {
    grid-column: 10 / 13;
  }
  .svc-emergency {
    grid-column: 1 / 13;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem 1.4rem;
  }
  .svc-emergency .svc-icon {
    margin: 0;
  }
  .svc-emergency-copy p {
    margin: 0;
  }
}

/* Projects */
.work {
  background:
    linear-gradient(180deg, transparent 0%, rgba(228, 235, 228, 0.35) 18%, rgba(228, 235, 228, 0.28) 80%, transparent 100%);
}

.projects-grid {
  display: grid;
  gap: 1.4rem;
}

.project {
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(42, 38, 34, 0.06);
  box-shadow: var(--shadow);
}

.project-photo {
  overflow: hidden;
}

.project-photo img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.project:hover .project-photo img {
  transform: scale(1.035);
}

.project-meta {
  padding: 1.15rem 1.2rem 1.3rem;
}

.project-place {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.project-meta p:last-child {
  color: var(--muted);
}

.work-foot {
  margin-top: 1.8rem;
  color: var(--muted);
}

@media (min-width: 800px) {
  .projects-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 1.35rem 1.25rem;
  }
  .project-photo img {
    height: 280px;
  }
  .project-offset {
    margin-top: 2.4rem;
  }
}

/* Why */
.why-grid {
  display: grid;
  gap: 1rem;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.4rem;
  border: 1px solid rgba(42, 38, 34, 0.07);
  box-shadow: var(--shadow);
}

.why-num {
  display: block;
  font-family: var(--display);
  color: var(--wood);
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.why-card p {
  color: var(--muted);
}

@media (min-width: 800px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 799px) and (min-width: 560px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Area */
.area {
  padding-top: 2rem;
}

.area-layout {
  display: grid;
  gap: 2.2rem;
}

.city-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 1rem;
  margin: 1.4rem 0 1rem;
}

.city-list li {
  position: relative;
  padding-left: 0.9rem;
  font-weight: 500;
}

.city-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--forest);
}

.area-note {
  color: var(--muted);
}

.area-note a {
  color: var(--forest);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.area-map {
  background: var(--white);
  border-radius: 22px;
  padding: 1.1rem 1rem 0.7rem;
  border: 1px solid rgba(42, 38, 34, 0.07);
  box-shadow: var(--shadow);
}

.area-map figcaption {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 600;
  margin-bottom: 0.4rem;
  padding-left: 0.4rem;
}

.map-land {
  fill: #dfe6dc;
  stroke: #3e5647;
  stroke-width: 2;
}

.map-river {
  fill: none;
  stroke: #b9a078;
  stroke-width: 5;
  stroke-linecap: round;
  opacity: 0.65;
}

.map-river-label {
  fill: #8a7a62;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font);
}

.map-pin circle {
  fill: #f4efe6;
  stroke: #3e5647;
  stroke-width: 1.6;
}

.map-pin .map-dot {
  fill: #d96b2b;
  stroke: none;
}

.map-pin text {
  fill: #2a2622;
  font-size: 12px;
  font-family: var(--font);
  font-weight: 600;
}

@media (min-width: 900px) {
  .area-layout {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 3rem;
  }
  .city-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Process */
.process-grid {
  list-style: none;
  display: grid;
  gap: 1rem;
  counter-reset: none;
}

.process-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1.45rem;
  border: 1px solid rgba(42, 38, 34, 0.07);
  box-shadow: var(--shadow);
}

.process-step {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--display);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.process-card p {
  color: var(--muted);
}

@media (min-width: 800px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
    position: relative;
  }
  .process-grid::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--wood-light) 0 10px, transparent 10px 18px);
    opacity: 0.7;
    z-index: 0;
  }
  .process-card {
    position: relative;
    z-index: 1;
  }
}

/* Final CTA */
.final-cta {
  background:
    linear-gradient(180deg, rgba(42, 38, 34, 0.18), rgba(42, 38, 34, 0.42)),
    url("images/toolbox.jpg") center/cover;
  color: var(--cream);
  padding: 5.4rem 0;
}

.final-cta-inner {
  max-width: 40rem;
}

.final-cta h2 {
  color: #f7f1e6;
}

.final-cta p {
  color: #e4d8c6;
}

/* Footer */
.site-footer {
  background: #231f1c;
  color: #d8d0c4;
  padding: 3.2rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(244, 239, 230, 0.08);
}

.footer-brand p {
  margin-top: 0.8rem;
  max-width: 28rem;
  color: #b7aea2;
}

.site-footer h3 {
  color: #f4efe6;
  font-size: 1rem;
  margin-bottom: 0.55rem;
}

.site-footer a:hover {
  color: #f0c19a;
}

.license {
  margin-top: 0.7rem;
  color: #b7aea2;
  font-size: 0.92rem;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem;
  padding-top: 1.15rem;
  font-size: 1.02rem;
  font-weight: 500;
  color: #e4d8c6;
}

.footer-base .concept-credit {
  font-size: 1.02rem;
  color: #efe4c8;
}

.concept-credit a {
  color: #d7c4a4;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

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

/* Modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(32, 27, 22, 0.55);
}

.modal-panel {
  position: relative;
  width: min(100% - 1.4rem, 560px);
  margin: 5vh auto;
  max-height: 90vh;
  overflow: auto;
  background: var(--cream-paper);
  border-radius: 20px;
  padding: 1.5rem 1.3rem 1.4rem;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.modal-intro {
  margin-bottom: 1.1rem;
  padding-right: 1.6rem;
}

.modal-intro p {
  color: var(--muted);
}

#estimate-form {
  display: grid;
  gap: 0.8rem;
}

.field-row {
  display: grid;
  gap: 0.8rem;
}

@media (min-width: 600px) {
  .field-row {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.7rem 0.75rem;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--forest);
  outline-offset: 1px;
}

.form-fine {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-fine a {
  color: var(--forest);
  font-weight: 600;
}

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

.modal-success h2 {
  margin: 0.4rem 0 0.6rem;
}

.modal-success p {
  color: var(--muted);
  margin-bottom: 1.1rem;
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

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