:root {
  --linen: #fbf6eb;
  --limestone: #e9ddca;
  --olive-dark: #20392e;
  --terracotta: #a6593d;
}
.masthead { border-bottom-color: #d8c8af; }
:is(.home-page,.secondary-masthead) .header .brand { font-weight: 600; }
.home-page .hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr);
  margin-block: clamp(.8rem, 2.5vw, 2rem) clamp(2rem, 6vw, 5rem);
  padding: clamp(1.5rem, 5vw, 5rem);
  border-radius: clamp(.9rem, 2vw, 1.6rem);
  background: linear-gradient(135deg, #284637, #192e25);
  color: var(--linen);
  box-shadow: 0 1.2rem 2.8rem #26382924;
}
.home-page .hero::before {
  inset: auto auto 0 0;
  width: min(29rem, 58%);
  filter: brightness(0) invert(1);
  opacity: .13;
}
.home-page .hero h1 { max-width: 14ch; color: inherit; font-size: clamp(2.2rem, 4.7vw, 4.3rem); }
.home-page .hero .eyebrow { color: #f0c2a0; }
.home-page .hero .lead { color: #f0e9d9; max-width: 39ch; }
.home-page .hero .launch-note { color: var(--olive-dark); background: var(--limestone); }
.home-page .hero .hero-story { color: var(--linen); text-underline-offset: .24em; }
.home-page .hero .button.light { background: var(--linen); color: var(--olive-dark); border-color: var(--linen); }
.home-page .hero a:focus-visible { outline-color: #f5c5a5; }
.home-page .hero-window-photo {
  width: 100%;
  padding: .42rem;
  border: 1px solid #a69070;
  border-radius: .9rem;
}
.home-page .hero-window-photo img { border: 0; border-radius: .55rem; aspect-ratio: 5 / 5.6; }
.home-page .story-heading,
.home-page .services .section-intro,
.villa-gallery > h2 {
  padding-top: clamp(.75rem, 2vw, 1.35rem);
  border-top: 1px solid #b8997b;
}
.home-page .story-body { border-color: #ddc9ad; box-shadow: 0 .7rem 1.8rem #493c2410; }
.home-page .package {
  border: 1px solid #dbcbb4;
  border-top: 3px solid var(--terracotta);
  background: linear-gradient(150deg, #fffdf6, #f8f0e3);
  box-shadow: 0 .9rem 2.2rem #493c2410;
}
.home-page .package.premium {
  border-color: #829276;
  border-top-color: var(--olive-dark);
  background: linear-gradient(150deg, #edf0e6, #dfe7d7);
}
.home-page .package > .button { border-radius: .55rem; }
.home-page .visit {
  border-block: 1px solid #dbd1bd;
  background: linear-gradient(115deg, #eee3d3, #ebeee2);
}
.home-page .visit-steps > li {
  padding: clamp(.9rem, 2vw, 1.4rem);
  border: 1px solid #dbcbb4;
  border-top: 3px solid var(--terracotta);
  border-radius: .75rem;
  background: var(--linen);
}
.home-page .contact-form { border: 1px solid #dfccb1; box-shadow: 0 1rem 2.2rem #17261b28; }
.alerts-page .alert-cards > article { border-top: 3px solid var(--terracotta); background: var(--linen); }
.villa-hero img { box-shadow: 0 .8rem 2.2rem #493c2421; }
@media (max-width: 760px) {
  .home-page .hero { grid-template-columns: minmax(0,1fr); gap: 1.25rem; }
  .home-page .hero h1 { max-width: 17ch; }
  .home-page .hero-window-photo { max-width: 34rem; }
  .home-page .hero-window-photo img { aspect-ratio: 5 / 4; object-position: center 50%; }
}

.home-page .hero .launch-note {
  display: flex;
  align-items: center;
  gap: .5rem;
  width: fit-content;
}
.launch-note .tuscan-symbol {
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  background: transparent;
  color: inherit;
}

/* Fine linework and warm tones inspired by terracotta and carved stone. */
.tuscan-symbol {
  border: 1px solid #bc95716b;
  background: radial-gradient(circle at 30% 25%, #fff8e8, #e9d5ba);
  color: #81452e;
  stroke-width: 1.55;
}
.package.premium .tuscan-symbol {
  border-color: #ddbb85;
  background: radial-gradient(circle at 30% 25%, #3b5945, #21392e);
  color: #fff1d4;
}
.launch-note .tuscan-symbol { border: 0; background: transparent; color: inherit; }
.home-page .hero::before { width: min(42rem, 69%); opacity: .21; }
.home-page .hero::before { background-image: url("cypress-watermark.svg?v=3"); }
.villa-hero::before, .owner-resources::before { content: none; }

.home-page .section-photo-story {
  padding: .45rem;
  border: 1px solid #c7aa88;
  border-radius: .85rem;
  background: #f5ecdb;
}
.home-page .section-photo-story img { border-radius: .5rem; }
.home-page .owner-resources {
  border-top: 1px solid #b8997b;
  padding-top: clamp(1.5rem, 4vw, 3rem);
}
.home-page .visit-report {
  border-inline-start: 3px solid var(--terracotta);
  background: #f9f2e4;
}
@media (max-width: 760px) {
  .home-page .hero::before { width: 86%; opacity: .14; }
}

.tuscan-symbol .symbol-engraving {
  stroke: #a56340;
  stroke-width: 1;
  opacity: .75;
}
.package.premium .tuscan-symbol .symbol-engraving { stroke: #e9bd81; }
.launch-note .symbol-engraving { display: none; }

@media (min-width: 820px) and (max-width: 1080px) {
  :is(.home-page,.secondary-masthead) .header { flex-wrap: wrap; gap: .4rem 1rem; }
  :is(.home-page,.secondary-masthead) .header .desktop-nav {
    display: flex;
    flex: 0 0 100%;
    flex-wrap: wrap;
    order: 1;
    justify-content: flex-start;
    gap: .15rem 1.25rem;
    padding-top: .35rem;
    border-top: 1px solid var(--line);
  }
  :is(.home-page,.secondary-masthead) .desktop-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  :is(.home-page,.secondary-masthead) .mobile-menu { display: none; }
  :is(.home-page,.secondary-masthead) .header-contact { display: inline-flex; }
}

/* Anchor open menus to the header so a wrapped row of controls cannot
   push the panel beyond the edge of a phone screen. */
@media (max-width: 819px) {
  :is(.home-page,.secondary-masthead) .header { position: relative; }
  :is(.home-page,.secondary-masthead) .mobile-menu { position: static; }
  :is(.home-page,.secondary-masthead) .mobile-menu nav {
    inset: 100% 0 auto auto;
    width: min(20rem, 100%);
    max-height: calc(100vh - 100% - 1rem);
    max-height: calc(100dvh - 100% - 1rem - env(safe-area-inset-bottom));
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
    overscroll-behavior: contain;
  }
}
@media (max-width: 540px) {
  :is(.home-page,.secondary-masthead) .mobile-menu nav { width: 100%; }
}
