/* Canopy Estates — estate landscape management on Long Island.
   Cormorant Garamond for headings, Jost for body and UI. */

:root {
  --forest: #2b4f2b;
  --canopy: #1c331c;
  --canopy-deep: #12220f;
  --tan: #e5d5af;
  --parchment: #f5eedf;
  --parchment-alt: #fbf8f1;
  --brass: #a8894c;
  --heading: #1c331c;
  --body: #2e2d28;
  --muted: #6b685c;
  --on-dark: #f5eedf;
  --white: #ffffff;
  --container: 1240px;
  --header: 88px;
  --serif: "Cormorant Garamond", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", sans-serif;
  --rule: 3rem;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 168px;
}

body {
  margin: 0;
  background: var(--parchment);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--forest);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--canopy);
}

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
}

::selection {
  background: var(--tan);
  color: var(--canopy);
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--heading);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: pretty;
  margin: 0;
}

h1 {
  font-size: clamp(2.75rem, 6vw, 5.15rem);
}

h2 {
  font-size: clamp(2.05rem, 3.6vw, 3.25rem);
}

h3 {
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.08;
}

p {
  margin: 0;
}

p + p {
  margin-top: 1rem;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--white);
  color: var(--canopy);
  padding: 0.55rem 0.9rem;
  border-radius: 3px;
}

.skip:focus {
  top: 0.6rem;
}

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

.eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest);
}

.rule {
  width: var(--rule);
  height: 1px;
  margin: 1.15rem 0 1.2rem;
  background: var(--brass);
  border: 0;
}

.lead {
  max-width: 42rem;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--body);
}

.prose {
  max-width: 42rem;
}

.prose > * + * {
  margin-top: 1rem;
}

.prose ul,
.prose ol {
  margin: 0.4rem 0 0;
  padding-left: 1.15rem;
}

.prose li + li {
  margin-top: 0.45rem;
}

.prose h2,
.stack h2 {
  margin-top: 0.2rem;
}

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

.identity-line {
  max-width: 46rem;
  margin-top: 1.35rem;
  font-size: 1rem;
  line-height: 1.55;
}

.nowrap {
  white-space: nowrap;
}

/* Masthead */

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 238, 223, 0.96);
  border-bottom: 1px solid var(--tan);
  backdrop-filter: blur(10px);
}

.masthead-top {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 96px;
}

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

.mast-phone {
  color: var(--canopy);
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-cta {
  display: none;
}

.logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}

.logo img {
  height: 72px;
  width: auto;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  min-width: 48px;
  min-height: 48px;
  padding: 0 0.9rem;
  border: 1px solid var(--forest);
  border-radius: 3px;
  background: transparent;
  color: var(--canopy);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.site-nav {
  display: block;
  border-top: 1px solid var(--brass);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  min-height: 52px;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--canopy);
  text-decoration: none;
}

.site-nav a.btn,
.site-nav a.btn:hover {
  color: var(--on-dark);
}

.site-nav ul a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav ul a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 var(--brass);
}

.nav-portal {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.15rem;
  border: 1px solid var(--forest);
  border-radius: 3px;
  background: var(--forest);
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.btn:hover {
  background: var(--canopy);
  border-color: var(--canopy);
  color: var(--on-dark);
}

.btn-line {
  background: transparent;
  color: var(--canopy);
}

.btn-line:hover {
  background: var(--canopy);
  color: var(--on-dark);
}

.btn-on-dark {
  background: transparent;
  border-color: var(--on-dark);
  color: var(--on-dark);
}

.btn-on-dark:hover {
  background: var(--on-dark);
  color: var(--canopy);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.5rem;
}

/* Hero */

.hero {
  background: var(--canopy);
  color: var(--on-dark);
  padding: clamp(3.25rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6rem);
}

.hero h1 {
  max-width: 11ch;
  color: var(--on-dark);
}

.hero .eyebrow {
  color: var(--tan);
}

.hero .rule {
  background: var(--brass);
}

.hero-sub {
  max-width: 36rem;
  color: var(--on-dark);
  font-size: 1.125rem;
  line-height: 1.55;
}

.hero-programs {
  margin-top: clamp(2.5rem, 5vw, 3.75rem);
}

.hero-programs h2 {
  color: var(--on-dark);
}

.hero .program-index {
  margin-top: 1.75rem;
  border-top-color: rgba(245, 238, 223, 0.28);
}

.hero .program-index li {
  border-bottom-color: rgba(245, 238, 223, 0.28);
}

.hero .program-index .num {
  color: var(--tan);
}

.hero .program-index h3,
.hero .program-index p,
.hero .program-index a {
  color: var(--on-dark);
}

.hero .program-index a:hover {
  color: var(--tan);
}

.facts {
  background: var(--canopy-deep);
  color: var(--on-dark);
  padding: 1.35rem 0;
}

.facts-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1.1fr;
  gap: 1.25rem;
}

.facts p {
  margin: 0;
}

.facts span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--tan);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.program-index {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--tan);
}

.program-index li {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.5rem 1.25rem;
  padding: 1.55rem 0;
  border-bottom: 1px solid var(--tan);
}

.program-index .num {
  font-family: var(--serif);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--forest);
}

.program-index h3 {
  margin-bottom: 0.45rem;
}

.program-index a {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 500;
}

.holiday {
  background: var(--canopy);
  color: var(--on-dark);
  padding: clamp(4.25rem, 8vw, 7.25rem) 0;
}

.holiday h2,
.holiday p {
  color: var(--on-dark);
}

.holiday .eyebrow {
  color: var(--tan);
}

.holiday a:not(.btn) {
  color: var(--on-dark);
}

.holiday-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.holiday-figure {
  margin: 0;
}

.holiday-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.holiday-figure figcaption {
  margin-top: 0.7rem;
  color: var(--tan);
  font-size: 0.9375rem;
}

.span-line {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0.4rem 0 1.4rem;
}

.span-place {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
  color: var(--heading);
}

.span-rule {
  flex: 1;
  height: 1px;
  background: var(--brass);
}

.regions > div {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 1rem 1.5rem;
  padding: 1.15rem 0;
  border-top: 1px solid var(--tan);
}

.regions > div:last-child {
  border-bottom: 1px solid var(--tan);
}

.regions h3 {
  margin: 0;
}

.regions p {
  margin: 0;
}

.product-table {
  width: 100%;
  margin-top: 1.75rem;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--tan);
}

.product-table th,
.product-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--tan);
  font-weight: 400;
}

.product-table th {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
}

.product-table caption {
  caption-side: bottom;
  padding-top: 0.75rem;
  text-align: left;
  color: var(--muted);
  font-size: 0.9375rem;
}

.page-head {
  background: var(--canopy);
  color: var(--on-dark);
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 2.5rem;
}

.page-head h1,
.page-head .lead,
.page-head .identity-line,
.page-head .identity-line a {
  color: var(--on-dark);
}

.page-head .eyebrow,
.page-head .crumbs,
.page-head .crumbs a {
  color: var(--tan);
}

.page-head .crumbs li:not(:last-child)::after {
  color: var(--tan);
}

/* Sections */

.section {
  padding: clamp(4.25rem, 8vw, 7.25rem) 0;
}

.section-alt {
  background: var(--parchment-alt);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.stack > * + * {
  margin-top: 2.75rem;
}

.stack h2 + .rule {
  margin-top: 1rem;
}

.measure {
  max-width: 42rem;
}

.measure > * + * {
  margin-top: 1rem;
}

/* Cards */

.card-grid,
.region-grid {
  display: grid;
  gap: 1.15rem;
}

.card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.region-grid {
  grid-template-columns: 1fr 1fr;
}

.card {
  background: var(--white);
  border: 1px solid var(--tan);
  border-radius: 4px;
  padding: 1.6rem 1.45rem 1.45rem;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p + p {
  margin-top: 0.75rem;
}

.card .more {
  display: inline-block;
  margin-top: 1.15rem;
  font-weight: 500;
}

.card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
}

.card li + li {
  margin-top: 0.35rem;
}

/* Holiday */

.holiday-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.holiday-figure {
  margin: 0;
}

.holiday-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.holiday-figure figcaption {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.holiday .holiday-figure figcaption {
  color: var(--tan);
}

/* FAQ */

.faq-list {
  max-width: 46rem;
  margin-top: 0.5rem;
}

.faq-item {
  padding: 1.45rem 0;
  border-top: 1px solid var(--tan);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--tan);
}

.faq-item h3 {
  margin-bottom: 0.65rem;
}

/* Comparison */

.compare-wrap {
  margin-top: 0.5rem;
  overflow-x: auto;
}

.compare-scroll {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.compare {
  width: 100%;
  min-width: 52rem;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--tan);
}

.compare th,
.compare td {
  padding: 0.95rem 0.9rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--tan);
  font-weight: 400;
}

.compare thead th {
  background: var(--canopy);
  color: var(--on-dark);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.35;
}

.compare tbody th {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--heading);
  line-height: 1.15;
  width: 16%;
}

.compare caption {
  caption-side: bottom;
  padding-top: 0.85rem;
  text-align: left;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* CTA band */

.cta-band {
  background: var(--canopy);
  color: var(--on-dark);
}

.cta-band h2,
.cta-band .eyebrow {
  color: var(--on-dark);
}

.cta-band .eyebrow {
  color: var(--tan);
}

.cta-band a:not(.btn) {
  color: var(--on-dark);
}

.cta-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  align-items: end;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Contact */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
}

.contact-facts {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.contact-facts li + li {
  margin-top: 0.85rem;
}

.contact-facts a {
  font-weight: 500;
  font-size: 1.25rem;
  text-decoration: none;
}

.contact-facts a:hover {
  text-decoration: underline;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--tan);
  border-radius: 4px;
  padding: clamp(1.25rem, 2vw, 1.75rem);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.95rem 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field-span {
  grid-column: 1 / -1;
}

.field label,
.checks legend {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--heading);
}

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

input,
textarea {
  width: 100%;
  border: 1px solid var(--tan);
  border-radius: 3px;
  background: var(--white);
  color: var(--body);
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.75rem 0.8rem;
  min-height: 48px;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

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

input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: var(--canopy);
}

.checks {
  margin: 0.35rem 0 0;
  padding: 0;
  border: 0;
}

.checks legend {
  margin-bottom: 0.55rem;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-height: 44px;
  padding: 0.35rem 0;
}

.check input {
  width: 1.1rem;
  height: 1.1rem;
  min-height: 0;
  margin-top: 0.2rem;
  accent-color: var(--forest);
}

.form-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.form-status {
  margin: 0.9rem 0 0;
  min-height: 1.5rem;
}

.form-status.is-alert {
  color: var(--canopy);
  font-weight: 500;
}

.form-card .btn {
  margin-top: 1rem;
}

/* Page head */

.page-head {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 2.6rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  list-style: none;
  margin: 0 0 1.35rem;
  padding: 0;
  font-size: 0.875rem;
}

.crumbs a {
  color: var(--forest);
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

.crumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.45rem;
  color: var(--muted);
}

.page-head h1 {
  max-width: 16em;
}

.page-head + .section {
  padding-top: clamp(2rem, 4vw, 3.25rem);
}

/* Two column text */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 2rem;
}

.link-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.link-list li + li {
  margin-top: 0.4rem;
}

.plain-list {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  max-width: 40rem;
}

.plain-list li + li {
  margin-top: 0.4rem;
}

.columns-2 {
  columns: 2;
  max-width: 40rem;
}

.columns-2 li {
  break-inside: avoid;
}

/* Footer */

.site-footer {
  background: var(--canopy-deep);
  color: var(--on-dark);
  padding: 3.5rem 0 1.75rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 2rem 1.5rem;
}

.footer-mark {
  display: inline-block;
  background: var(--parchment);
  border-radius: 4px;
  padding: 0.35rem 0.45rem 0.15rem;
  line-height: 0;
}

.footer-mark img {
  height: 72px;
  width: auto;
}

.footer-name {
  margin-top: 1rem;
  font-family: var(--serif);
  font-size: 1.85rem;
  color: var(--on-dark);
  line-height: 1;
}

.footer-tag {
  margin-top: 0.45rem;
  color: var(--tan);
}

.footer-title {
  margin: 0 0 0.8rem;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tan);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 0.4rem;
}

.site-footer a {
  color: var(--on-dark);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-base {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--brass);
  color: var(--tan);
  font-size: 0.9375rem;
}

.footer-base p + p {
  margin-top: 0.75rem;
}

.footer-meta {
  margin-top: 1rem;
  font-size: 0.875rem;
}

/* Sources */

.sources {
  margin-top: 1rem;
  padding-left: 1.15rem;
}

.sources li + li {
  margin-top: 0.4rem;
}

/* 390 and small tablets */

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mast-cta {
    display: none;
  }

  .nav-cta {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100svh - 96px);
    overflow: auto;
    background: var(--parchment);
    border-top: 0;
    border-bottom: 1px solid var(--tan);
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-row {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding-bottom: 1rem;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav ul a,
  .nav-portal,
  .site-nav .btn {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.35rem 0;
  }

  .site-nav .btn {
    justify-content: center;
    margin-top: 0.5rem;
  }
}

@media (max-width: 800px) {
  .card-grid,
  .region-grid,
  .holiday-grid,
  .contact-grid,
  .cta-inner,
  .split,
  .footer-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    justify-content: flex-start;
  }

  .columns-2 {
    columns: 1;
  }

  .logo img {
    height: 52px;
  }

  .facts-row,
  .holiday-layout,
  .regions > div {
    grid-template-columns: 1fr;
  }

  .span-line {
    flex-direction: column;
    align-items: flex-start;
  }

  .span-rule {
    width: 3rem;
    flex: none;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(var(--container), calc(100% - 2rem));
  }

  .logo img {
    height: 48px;
  }

  .hero h1 {
    max-width: 12ch;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .site-header,
  .nav-toggle,
  .cta-band,
  .btn {
    position: static;
  }

  .site-header {
    height: auto;
    background: white;
  }

  .hero {
    min-height: 0;
    color: black;
  }

  .hero-scrim,
  .nav-toggle {
    display: none;
  }

  .site-footer {
    background: white;
    color: black;
  }

  .site-footer a,
  .footer-base,
  .footer-tag,
  .footer-title {
    color: black;
  }
}
