:root,
.dark {
  --background: 38 28% 95%;
  --foreground: 210 10% 14%;
  --border: 34 14% 72%;
  --card: 40 30% 98%;
  --card-foreground: 210 10% 14%;
  --primary: 36 18% 46%;
  --primary-foreground: 40 35% 97%;
  --secondary: 30 8% 38%;
  --secondary-foreground: 40 35% 97%;
  --muted: 36 22% 88%;
  --muted-foreground: 30 8% 34%;
  --accent: 32 12% 42%;
  --accent-foreground: 40 35% 97%;
  --input: 34 14% 72%;
  --ring: 35 15% 50%;
  --radius: 0.35rem;
}

body {
  background-color: #f4efe7 !important;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.8), transparent 32rem),
    repeating-linear-gradient(115deg, rgba(30, 32, 34, 0.018) 0 1px, transparent 1px 7px);
}

.bg-white,
.bg-background,
.bg-card {
  background-color: #faf7f1 !important;
}

.bg-muted {
  background-color: #e6ded2 !important;
}

.bg-foreground {
  background-color: #202326 !important;
}

.bg-primary {
  background-color: #91816b !important;
}

.text-primary,
.text-primary-foreground {
  color: #a99880 !important;
}

.bg-primary.text-primary-foreground,
.bg-primary .text-primary-foreground,
header a[class*="bg-primary"] {
  color: #fffdf8 !important;
}

.border-border,
.border-primary\/20,
.border-primary\/30 {
  border-color: #b8aa97 !important;
}

header,
body [role="banner"] {
  background: rgba(250, 247, 241, 0.97) !important;
  border-bottom: 1px solid rgba(145, 129, 107, 0.45) !important;
  box-shadow: 0 10px 35px rgba(32, 35, 38, 0.07);
  backdrop-filter: blur(18px);
}

.brand-logo-integrated {
  border-radius: 50% !important;
  mix-blend-mode: multiply;
  filter: grayscale(1) contrast(1.16) brightness(0.98) !important;
}

h1,
h2,
h3,
h4,
.font-serif {
  text-transform: uppercase;
  letter-spacing: 0.015em !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.16);
}

main section:first-of-type {
  background:
    linear-gradient(90deg, rgba(24, 27, 30, 0.98), rgba(40, 41, 42, 0.94)),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 8px) !important;
  border-bottom: 3px solid #91816b;
}

.rounded-2xl,
.rounded-xl,
.rounded-lg {
  border-radius: 0.7rem !important;
}

.shadow-xl,
.shadow-lg,
.shadow-sm {
  box-shadow: 0 18px 45px rgba(32, 35, 38, 0.1) !important;
}

section {
  position: relative;
}

section[id="services"] img {
  border: 1px solid rgba(145, 129, 107, 0.38);
  box-shadow: 0 24px 55px rgba(32, 35, 38, 0.13);
}

img[src="/larry-photo-elegant.png"] {
  background: #f1eadf;
  border: 1px solid rgba(145, 129, 107, 0.4);
  box-shadow: 0 25px 60px rgba(32, 35, 38, 0.14);
  object-position: center top;
}

.border.border-border,
.border-border {
  border-color: rgba(145, 129, 107, 0.36) !important;
}

input,
select,
textarea {
  background-color: #fffdf9 !important;
  border-color: rgba(145, 129, 107, 0.5) !important;
}

input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(145, 129, 107, 0.17) !important;
}

button,
a[class*="bg-primary"] {
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

footer {
  background: #202326 !important;
  border-top: 3px solid #91816b;
}

[data-spiic-credit] {
  color: #d9cfbf !important;
  font-weight: 600;
  letter-spacing: 0.025em;
}

@media (max-width: 640px) {
  h1 {
    font-size: 2.75rem !important;
  }
}

/* Complete editorial redesign: preserve content, replace template feel. */
:root,
.dark {
  --background: 42 38% 96%;
  --foreground: 210 8% 13%;
  --card: 42 45% 98%;
  --card-foreground: 210 8% 13%;
  --muted: 38 24% 91%;
  --muted-foreground: 28 8% 34%;
  --border: 34 18% 76%;
  --primary: 35 19% 44%;
  --secondary: 210 7% 27%;
  --radius: 0.2rem;
}

body {
  background: #f7f3eb !important;
  color: #222426 !important;
}

header {
  background: rgba(247, 243, 235, 0.96) !important;
  min-height: 5rem;
  color: #222426 !important;
}

header.bg-foreground {
  background: rgba(247, 243, 235, 0.96) !important;
}

header a,
header button,
header nav a,
body [role="banner"] a,
body [role="banner"] button,
body [role="banner"] nav a {
  color: #222426 !important;
}

header a[class*="bg-primary"] {
  color: #fffdf8 !important;
}

body [role="banner"] a[class*="bg-primary"] {
  color: #fffdf8 !important;
}

header > div {
  max-width: 88rem !important;
}

header nav a {
  font-size: 0.82rem;
  font-weight: 700 !important;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

main section {
  padding-top: 7.5rem !important;
  padding-bottom: 7.5rem !important;
}

main section:first-of-type {
  min-height: 47rem;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 86% 28%, rgba(152, 136, 114, 0.23), transparent 25rem),
    linear-gradient(112deg, #191c1e 0%, #272a2c 67%, #383632 100%) !important;
  border-bottom: 0;
}

main section:first-of-type h1 {
  max-width: 58rem;
  font-size: clamp(3.5rem, 6.6vw, 6.8rem) !important;
  line-height: 0.88 !important;
  letter-spacing: -0.035em !important;
}

main section:first-of-type p {
  max-width: 44rem;
}

h2 {
  font-size: clamp(2.5rem, 4.4vw, 4.6rem) !important;
  line-height: 0.94 !important;
}

.bg-muted,
.bg-white,
.bg-background,
.bg-card {
  background: transparent !important;
}

main section:nth-of-type(even):not(:first-of-type) {
  background: #ebe4d8 !important;
}

main section:nth-of-type(odd):not(:first-of-type) {
  background: #f7f3eb !important;
}

main section .bg-white,
main section .bg-card {
  background: rgba(255, 253, 248, 0.78) !important;
}

.rounded-xl,
.rounded-2xl,
.rounded-lg {
  border-radius: 0.2rem !important;
}

.shadow-sm,
.shadow-lg,
.shadow-xl {
  box-shadow: 0 24px 60px rgba(28, 30, 31, 0.08) !important;
}

main section:not(:first-of-type) .border {
  border-color: rgba(132, 116, 94, 0.35) !important;
}

section[id="services"] img {
  border: 0 !important;
  box-shadow: none !important;
  filter: sepia(0.12) saturate(0.78) contrast(1.03);
}

section[id="services"] .bg-primary {
  background: #292c2e !important;
  border-left: 3px solid #9b896f;
}

.larry-editorial-section {
  overflow: hidden;
  background:
    linear-gradient(90deg, #e8dfd2 0%, #f7f3eb 48%, #f7f3eb 100%) !important;
  padding-top: 4rem !important;
  padding-bottom: 0 !important;
}

.larry-editorial-section > div > div {
  align-items: end !important;
  gap: clamp(2rem, 6vw, 8rem) !important;
}

.larry-editorial-portrait {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  overflow: visible !important;
  background: transparent !important;
}

.larry-editorial-portrait img,
img[src="/larry-photo-elegant.png"],
img[src="/larry-arms-crossed.png"] {
  width: min(43rem, 52vw) !important;
  max-height: 52rem;
  object-fit: contain !important;
  object-position: center bottom !important;
  margin: 0 auto -1px;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 9%, black 91%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 9%, black 91%, transparent 100%);
}

.larry-editorial-section h2 {
  max-width: 34rem;
}

.larry-editorial-section p {
  font-size: 1.12rem;
  line-height: 1.85;
}

footer {
  background: #181b1d !important;
  border-top: 0;
}

/* Readability pass: explicit contrast for every surface. */
main section:not(:first-of-type),
main section:not(:first-of-type) h1,
main section:not(:first-of-type) h2,
main section:not(:first-of-type) h3,
main section:not(:first-of-type) h4,
main section:not(:first-of-type) label {
  color: #222426 !important;
}

main section:not(:first-of-type) p,
main section:not(:first-of-type) li,
main section:not(:first-of-type) span:not(.text-white) {
  color: #474440 !important;
}

main section:first-of-type,
main section:first-of-type h1,
main section:first-of-type h2,
main section:first-of-type h3,
main section:first-of-type p,
main section:first-of-type li,
main section:first-of-type span {
  color: #f8f5ef !important;
}

main section:not(:first-of-type) .bg-foreground,
main section:not(:first-of-type) .bg-foreground h1,
main section:not(:first-of-type) .bg-foreground h2,
main section:not(:first-of-type) .bg-foreground h3,
main section:not(:first-of-type) .bg-foreground h4,
main section:not(:first-of-type) .bg-foreground p,
main section:not(:first-of-type) .bg-foreground li,
main section:not(:first-of-type) .bg-foreground span {
  color: #f8f5ef !important;
}

main section:not(:first-of-type) .bg-primary,
main section:not(:first-of-type) .bg-primary h3,
main section:not(:first-of-type) .bg-primary p,
main section:not(:first-of-type) .bg-primary span {
  color: #fffdf8 !important;
}

main section:not(:first-of-type) a[class*="bg-primary"],
main section:not(:first-of-type) button[class*="bg-primary"] {
  color: #fffdf8 !important;
}

footer,
footer h3,
footer h4,
footer p,
footer li,
footer span,
footer a {
  color: #e9e3da !important;
}

footer a:hover {
  color: #ffffff !important;
}

@media (max-width: 768px) {
  main section {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }

  main section:first-of-type {
    min-height: auto;
  }

  .larry-editorial-section {
    padding-bottom: 4rem !important;
  }

  .larry-editorial-portrait img,
  img[src="/larry-photo-elegant.png"],
  img[src="/larry-arms-crossed.png"] {
    width: min(100%, 32rem) !important;
    max-height: 38rem;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 88%, transparent 100%);
  }
}

/* Header must remain readable above the dark hero. */
header.fixed.bg-white {
  background: rgba(247, 243, 235, 0.98) !important;
  color: #222426 !important;
  border-bottom-color: rgba(145, 129, 107, 0.4) !important;
}

header.fixed.bg-white nav a,
header.fixed.bg-white button {
  color: #222426 !important;
}

header.fixed.bg-white a[class*="bg-primary"] {
  color: #fffdf8 !important;
}

.annual-home-plan {
  padding: 0 !important;
  background: #202325 !important;
  color: #f8f5ef !important;
}

.annual-plan-shell {
  max-width: 88rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.annual-plan-intro,
.annual-plan-details {
  padding: clamp(3.5rem, 7vw, 7rem);
}

.annual-plan-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, #181b1d, #292b2d);
}

.annual-plan-kicker {
  color: #b9a68a !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.annual-home-plan h2 {
  color: #fffdf8 !important;
  max-width: 35rem;
}

.annual-plan-lead {
  color: #d8d3cb !important;
  max-width: 34rem;
  margin-top: 1.5rem;
  font-size: 1.08rem;
  line-height: 1.8;
}

.annual-plan-price {
  margin-top: 2.4rem;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.annual-plan-price strong {
  color: #fffdf8;
  font-family: var(--app-font-serif);
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 1;
}

.annual-plan-price span {
  color: #b9a68a !important;
  font-weight: 700;
}

.annual-plan-cta {
  width: fit-content;
  margin-top: 2rem;
  padding: 1rem 1.4rem;
  background: #9b896f;
  color: #fffdf8 !important;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.annual-plan-details {
  background: #f0e8dc;
  color: #252729;
}

.annual-plan-seasons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid #b9aa95;
}

.annual-plan-seasons span {
  padding: 0.9rem 0.5rem;
  color: #292b2d !important;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-right: 1px solid #b9aa95;
}

.annual-plan-seasons span:last-child { border-right: 0; }

.annual-plan-seasons.annual-plan-offer {
  display: block;
  padding: 1.35rem 1.5rem;
  text-align: center;
  background: #292a2b;
  color: #fffdf8;
  border: 1px solid #75634d;
}

.annual-plan-seasons.annual-plan-offer strong {
  display: block;
  color: #ffffff;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
}

.annual-plan-seasons.annual-plan-offer p {
  margin: 0.65rem auto 0;
  max-width: 44rem;
  color: #eee9e1;
  font-size: 1rem;
  line-height: 1.6;
}

.annual-plan-highlight {
  margin-top: 2rem;
  padding: 1.5rem;
  border-left: 5px solid #9b896f;
  background: #fffaf2;
}

.annual-plan-highlight strong {
  display: block;
  color: #222426;
  font-family: var(--app-font-serif);
  font-size: 2rem;
  text-transform: uppercase;
}

.annual-plan-highlight p,
.annual-plan-benefits li,
.annual-plan-note {
  color: #45413d !important;
}

.annual-plan-benefits {
  margin-top: 1.7rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.5rem;
}

.annual-plan-benefits li {
  position: relative;
  padding-left: 1.4rem;
  line-height: 1.55;
}

.annual-plan-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #8b7659;
  font-weight: 900;
}

.annual-plan-note {
  margin-top: 1.8rem;
  padding-top: 1.2rem;
  border-top: 1px solid #c8b9a5;
  font-size: 0.82rem;
  line-height: 1.65;
}

@media (max-width: 850px) {
  .annual-plan-shell { grid-template-columns: 1fr; }
  .annual-plan-benefits { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .annual-plan-seasons { grid-template-columns: 1fr 1fr; }
  .annual-plan-seasons span:nth-child(2) { border-right: 0; }
  .annual-plan-seasons span:nth-child(-n+2) { border-bottom: 1px solid #b9aa95; }
}

/* Final contrast rules: placed last so generic section rules cannot override them. */
.annual-home-plan .annual-plan-intro,
.annual-home-plan .annual-plan-intro h2,
.annual-home-plan .annual-plan-intro strong {
  color: #fffdf8 !important;
}

.annual-home-plan .annual-plan-intro .annual-plan-kicker,
.annual-home-plan .annual-plan-intro .annual-plan-price span {
  color: #d6c2a4 !important;
}

.annual-home-plan .annual-plan-intro .annual-plan-lead {
  color: #eee9e1 !important;
}

.annual-home-plan .annual-plan-details,
.annual-home-plan .annual-plan-details h2,
.annual-home-plan .annual-plan-details strong,
.annual-home-plan .annual-plan-details span {
  color: #232527 !important;
}

.annual-home-plan .annual-plan-details p,
.annual-home-plan .annual-plan-details li {
  color: #3b3936 !important;
}

.annual-plan-cta,
main a[class*="bg-primary"],
main button[class*="bg-primary"] {
  background-color: #75634d !important;
  color: #ffffff !important;
}

main section:not(:first-of-type) .text-muted-foreground {
  color: #514c46 !important;
}

main section:not(:first-of-type) .text-foreground\/80,
main section:not(:first-of-type) .text-foreground\/70 {
  color: #3f3c38 !important;
}

input::placeholder,
textarea::placeholder {
  color: #68625b !important;
  opacity: 1 !important;
}

/* Emergency offer: explicit contrast over the dark promotional background. */
.annual-home-plan .annual-plan-details .annual-plan-offer,
.annual-home-plan .annual-plan-details .annual-plan-offer strong {
  color: #ffffff !important;
}

.annual-home-plan .annual-plan-details .annual-plan-offer p {
  color: #f1ece4 !important;
}

.annual-home-plan .annual-plan-details .annual-plan-highlight {
  background: #fffaf2 !important;
}

.annual-home-plan .annual-plan-details .annual-plan-highlight strong {
  color: #1f2123 !important;
}

.annual-home-plan .annual-plan-details .annual-plan-highlight p {
  color: #3b3936 !important;
}

@media (min-width: 769px) and (max-width: 1100px) {
  header > div { padding-left: 1.25rem !important; padding-right: 1.25rem !important; }
  header nav { gap: 1rem !important; }
  header nav a { font-size: 0.72rem !important; letter-spacing: 0.04em; }
  main section { padding-top: 5.5rem !important; padding-bottom: 5.5rem !important; }
  main section:first-of-type h1 { font-size: clamp(3.4rem, 7vw, 5.4rem) !important; }
  h2 { font-size: clamp(2.3rem, 5vw, 3.7rem) !important; }
  .annual-plan-intro, .annual-plan-details { padding: 3.5rem 2.5rem; }
  .annual-plan-benefits { grid-template-columns: 1fr; }
  .annual-plan-price strong { font-size: 3.4rem; }
}

@media (max-width: 768px) {
  body { overflow-x: hidden; }
  header { min-height: 4.5rem; }
  main { padding-bottom: 5rem !important; }
  main section { padding: 4.5rem 1rem !important; }
  main section:first-of-type { padding-top: 7rem !important; }
  main section:first-of-type h1 {
    font-size: clamp(2.65rem, 13vw, 4.2rem) !important;
    line-height: 0.94 !important;
    overflow-wrap: anywhere;
  }
  h2 {
    font-size: clamp(2.15rem, 10vw, 3.3rem) !important;
    overflow-wrap: anywhere;
  }
  h3 { overflow-wrap: anywhere; }
  p, li, label, input, select, textarea { font-size: 1rem !important; }
  a, button { min-height: 44px; }
  main section:first-of-type a { width: 100%; justify-content: center; text-align: center; }
  .annual-home-plan { padding: 0 !important; }
  .annual-plan-intro, .annual-plan-details { padding: 3.5rem 1.35rem; }
  .annual-plan-price { align-items: flex-start; flex-direction: column; gap: 0.35rem; }
  .annual-plan-price strong { font-size: clamp(2.7rem, 15vw, 4rem); }
  .annual-plan-cta { width: 100%; text-align: center; }
  .annual-plan-highlight strong { font-size: 1.65rem; line-height: 1.05; }
  .annual-plan-benefits { grid-template-columns: 1fr; }
  footer { padding-left: 1rem !important; padding-right: 1rem !important; }
}

@media (max-width: 390px) {
  main section:first-of-type h1 { font-size: 2.55rem !important; }
  h2 { font-size: 2.1rem !important; }
  .annual-plan-seasons { grid-template-columns: 1fr 1fr; }
  .annual-plan-seasons span { font-size: 0.7rem !important; padding: 0.8rem 0.35rem; }
  .annual-plan-intro, .annual-plan-details { padding-left: 1rem; padding-right: 1rem; }
}

/* Hero refresh: lighter lead-and-warm-brown palette with a Manhattan skyline. */
main section:first-of-type {
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 24%, rgba(226, 207, 181, 0.34), transparent 30rem),
    linear-gradient(118deg, #55585a 0%, #69645f 48%, #8b755f 100%) !important;
}

main section:first-of-type > div:first-child {
  display: none !important;
}

main section:first-of-type::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(48%, 25rem);
  pointer-events: none;
  opacity: 0.3;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 420' preserveAspectRatio='none'%3E%3Cpath fill='%23f7efe4' d='M0 420V335h38v-64h32v64h30V245h42v90h26V290h39v45h24V205h58v130h24v-82h38v82h29v-124h55v124h27V268h42v67h30V178h36v-29h12v-68h10V34h8V0h8v34h8v47h10v68h12v29h36v157h28V236h46v99h25V270h42v65h28V226h36v-58h12v-76h10V49h8V15h8v34h8v43h10v76h12v58h36v109h30V251h45v84h24V286h38v49h29V196h53v139h26V238h42v97h25V274h39v61h30V216h58v119h24V263h43v72h31V240h49v95h25V284h35v51h40v85Z'/%3E%3Cpath fill='%23fffaf2' fill-opacity='.55' d='M0 420V373h110v-30h87v30h94v-52h99v52h83v-29h116v29h98v-45h106v45h97v-35h112v35h84v-28h105v28h89v-42h104v42h116v47Z'/%3E%3C/svg%3E");
}

main section:first-of-type > *:not(:first-child) {
  position: relative;
  z-index: 1;
}

main section:first-of-type,
main section:first-of-type h1,
main section:first-of-type h2,
main section:first-of-type h3,
main section:first-of-type p,
main section:first-of-type li,
main section:first-of-type span {
  color: #fffdf8 !important;
  text-shadow: 0 2px 12px rgba(27, 25, 23, 0.38);
}

@media (max-width: 768px) {
  main section:first-of-type {
    background:
      radial-gradient(circle at 84% 18%, rgba(226, 207, 181, 0.3), transparent 18rem),
      linear-gradient(145deg, #55585a 0%, #6e6760 55%, #88725d 100%) !important;
  }

  main section:first-of-type::before {
    height: 34%;
    opacity: 0.23;
    background-size: auto 100%;
    background-position: 58% bottom;
  }
}
