/* ============================================================
   The Property Standard — Stylesheet
   ============================================================ */

/* 1. TOKENS
   ------------------------------------------------------------ */
:root {
  --bg:           #F5F2ED;
  --bg-alt:       #FDFCF9;
  --text:         #2F2F2F;
  --grey-the:     #8E8E8E;
  --grey-sub:     #6F6F6F;
  --divider:      #7F7F7F;
  --border:       #D8D2C8;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

  --nav-h:  72px;
  --max-w:  1160px;
  --px:     clamp(1.25rem, 5vw, 3rem);
  --ease:   cubic-bezier(0.2, 0, 0.1, 1);
}

/* 2. RESET
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; }

/* 3. TYPOGRAPHY
   ------------------------------------------------------------ */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--text);
}

h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.375rem); font-weight: 400; }
p  { color: var(--grey-sub); }
strong { color: var(--text); font-weight: 500; }

/* 4. LAYOUT
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--px);
}

.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.section--alt { background: var(--bg-alt); }

/* Decorative short rule */
.rule {
  width: 38px;
  height: 1px;
  background: var(--divider);
  margin-block: 1.625rem;
}

.rule--center { margin-inline: auto; }

/* 5. NAVIGATION
   ------------------------------------------------------------ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease),
              box-shadow  0.3s var(--ease);
}

.site-nav.is-scrolled {
  border-color: var(--border);
  box-shadow: 0 1px 20px rgba(47, 47, 47, 0.07);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-logo {
  flex-shrink: 0;
  margin-right: auto;
  line-height: 1;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  font-style: normal;
}

.nav-logo-the {
  font-style: italic;
  color: var(--grey-the);
  font-size: 0.8em;
  margin-right: 0.15em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey-sub);
  transition: color 0.2s;
  padding-block: 4px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }

/* hide mobile CTA item on desktop */
.nav-links .nav-cta-item { display: none; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding-inline: 1.5rem;
  border: 1px solid var(--text);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover { background: var(--text); color: var(--bg); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  padding: 2px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 6. HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  background-color: #3C3830;
  background-image: url('../assets/hero/hero-main.png');
  background-size: cover;
  background-position: center 38%;
  color: #F5F2ED;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28, 24, 20, 0.10) 0%,
    rgba(28, 24, 20, 0.32) 55%,
    rgba(28, 24, 20, 0.62) 100%
  );
  z-index: 1;
}

.hero-center {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-h);
  padding-inline: var(--px);
}

.hero-the {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(0.875rem, 1.8vw, 1.25rem);
  color: rgba(245, 242, 237, 0.7);
  display: block;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
}

.hero-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 8.5vw, 6.25rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: #F5F2ED;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 242, 237, 0.72);
  margin-top: 0;
}

.hero-divider {
  width: 38px;
  height: 1px;
  background: rgba(245, 242, 237, 0.3);
  margin: 1.125rem auto 1rem;
}

.hero-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 2;
  padding: 2.25rem var(--px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.hero-rule {
  width: 32px;
  height: 1px;
  background: rgba(245, 242, 237, 0.4);
  margin-bottom: 0.875rem;
}

.hero-rule {
  width: 32px;
  height: 1px;
  background: rgba(245, 242, 237, 0.4);
  margin-bottom: 0.875rem;
}

.hero-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(0.8125rem, 1.4vw, 0.9375rem);
  line-height: 1.75;
  color: rgba(245, 242, 237, 0.7);
  letter-spacing: 0.02em;
}

.hero-monogram {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  color: rgba(245, 242, 237, 0.28);
  line-height: 1;
  letter-spacing: -0.04em;
  user-select: none;
}

/* 7. INTRO
   ------------------------------------------------------------ */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: center;
}

.intro-text h2 {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
}

.intro-text p {
  margin-top: 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.8;
  max-width: 46ch;
}

.intro-close {
  margin-top: 2.25rem !important;
}

.intro-close strong {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.intro-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.img-lifestyle {
  width: 100%;
  height: 100%;
  background-color: #C4BAA8;
  background-image: url('../assets/backyard.webp');
  background-size: cover;
  background-position: center;
}

/* 8. SERVICES
   ------------------------------------------------------------ */
.services-header {
  text-align: center;
  max-width: 480px;
  margin-inline: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 0 clamp(2.5rem, 5vw, 4.5rem);
  margin-top: clamp(3rem, 5vw, 4.5rem);
  max-width: 820px;
  margin-inline: auto;
}

.services-col-divider {
  background: var(--border);
  margin-block: 4px;
}

.services-col-label {
  font-family: var(--font-body);
  font-size: 0.5625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey-the);
  margin-bottom: 1.75rem;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.services-list li {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.9rem;
  color: var(--grey-sub);
}

.services-list li svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--grey-the);
}

.services-foot {
  text-align: center;
  margin-top: clamp(2.5rem, 5vw, 4rem);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.0625rem;
  color: var(--grey-sub);
  letter-spacing: 0.01em;
}

/* 9. PLANS
   ------------------------------------------------------------ */
.plans-header {
  max-width: 340px;
}

.plans-header h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 2.75rem;
  border: 1px solid var(--border);
}

.plan-card {
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.25rem, 2.5vw, 2rem);
  text-align: center;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: var(--bg-alt);
  transition: background 0.25s;
}

.plan-card:last-child { border-right: none; }

.plan-card--mid { background: var(--bg); }

.plan-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey-the);
}

.plan-icon svg { width: 100%; height: 100%; }

.plan-name {
  font-family: var(--font-body);
  font-size: 0.5625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
}

.plan-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--grey-sub);
}

.plans-custom {
  margin-top: 2.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.plans-note {
  margin-top: 0.625rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--grey-sub);
  line-height: 1.65;
}

/* 10. PHILOSOPHY
   ------------------------------------------------------------ */
.philosophy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 580px;
}

.philosophy-text {
  background: var(--bg);
  padding: clamp(3.5rem, 7vw, 6.5rem) var(--px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
  margin-left: auto;
  width: 100%;
}

.philosophy-image {
  background-color: #8A7D6B;
  background-image: url('../assets/home-bottom.webp');
  background-size: cover;
  background-position: center;
  order: 1;
}

.philosophy-text { order: 0; }

.quote-mark {
  font-family: var(--font-display);
  font-size: 5.5rem;
  line-height: 0.5;
  color: var(--border);
  margin-bottom: 1.75rem;
  display: block;
  user-select: none;
}

.philosophy-text blockquote {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.01em;
}

.philosophy-text p {
  margin-top: 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.75;
}

.philosophy-text p strong {
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
}

/* 11. FOOTER
   ------------------------------------------------------------ */
.footer-main {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-brand { display: flex; flex-direction: column; }

.footer-monogram {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 3.75rem;
  line-height: 1;
  color: var(--grey-the);
  letter-spacing: -0.05em;
  margin-bottom: 1.125rem;
}

.footer-the {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 0.875rem;
  color: var(--grey-the);
  letter-spacing: 0.02em;
  display: block;
}

.footer-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.875rem;
  line-height: 1.1;
  color: var(--text);
  display: block;
}

.footer-ppo {
  font-size: 0.5rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--grey-the);
  margin-top: 0.5rem;
  display: block;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 0.5rem;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.875rem;
  color: var(--grey-sub);
}

.footer-contact-item svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: var(--grey-the);
}

.footer-contact-item a {
  color: var(--grey-sub);
  transition: color 0.2s;
}

.footer-contact-item a:hover { color: var(--text); }

.footer-bar {
  background: var(--text);
  padding-block: 1.25rem;
}

.footer-bar .container {
  display: flex;
  justify-content: center;
}

.footer-bar p {
  font-size: 0.5rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(245, 242, 237, 0.45);
  font-family: var(--font-body);
}

/* 12. PAGE HEADER (About, Contact)
   ------------------------------------------------------------ */
.page-header {
  padding-top: calc(var(--nav-h) + clamp(3.5rem, 7vw, 5.5rem));
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.page-header .label-eyebrow {
  font-family: var(--font-body);
  font-size: 0.5625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey-the);
  margin-bottom: 1.125rem;
  display: block;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
}

.page-header .page-lead {
  margin-top: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  max-width: 54ch;
}

/* 13. ABOUT PAGE
   ------------------------------------------------------------ */
.about-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: start;
}

.about-story-text h3 {
  margin-bottom: 1.5rem;
}

.about-story-text p {
  margin-top: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.85;
  max-width: 52ch;
}

.about-story-text p:first-of-type { margin-top: 0; }

.about-story-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.img-about {
  width: 100%;
  height: 100%;
  background-color: #B8AFA0;
  background-image: url('../assets/garage.webp');
  background-size: cover;
  background-position: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  margin-top: 2.75rem;
}

.value-card {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-right: 1px solid var(--border);
}

.value-card:last-child { border-right: none; }

.value-name {
  font-family: var(--font-body);
  font-size: 0.5625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 1rem;
  display: block;
}

.value-desc {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--grey-sub);
}

.about-cta-section {
  text-align: center;
  max-width: 520px;
  margin-inline: auto;
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

.about-cta-section h2 { margin-bottom: 1.25rem; }
.about-cta-section p  { margin-bottom: 2.25rem; font-size: 1rem; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding-inline: 2.25rem;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--text);
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
}

.btn-primary:hover { background: transparent; color: var(--text); }

/* 14. CONTACT PAGE
   ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(3rem, 7vw, 6.5rem);
  align-items: start;
}

.contact-form-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
  margin-bottom: 2.25rem;
  color: var(--text);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.5625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--grey-sub);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--grey-sub);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.65;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--border);
}

.form-submit {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding-inline: 2.25rem;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-top: 0.75rem;
}

.form-submit:hover { background: transparent; color: var(--text); }

.contact-aside-monogram {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 3.25rem;
  line-height: 1;
  color: var(--grey-the);
  letter-spacing: -0.05em;
  margin-bottom: 1rem;
}

.contact-aside-brand {
  display: block;
  margin-bottom: 2.25rem;
}

.contact-aside-the {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 0.875rem;
  color: var(--grey-the);
  display: block;
  letter-spacing: 0.02em;
}

.contact-aside-name {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
  color: var(--text);
  display: block;
}

.contact-aside-ppo {
  font-size: 0.5rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--grey-the);
  display: block;
  margin-top: 0.375rem;
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  border-top: 1px solid var(--border);
  padding-top: 1.75rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.contact-detail-item svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: var(--grey-the);
  margin-top: 2px;
}

.contact-detail-item span,
.contact-detail-item a {
  font-size: 0.875rem;
  color: var(--grey-sub);
  line-height: 1.5;
  transition: color 0.2s;
}

.contact-detail-item a:hover { color: var(--text); }

/* 15. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 960px) {
  .intro-grid          { grid-template-columns: 1fr; }
  .intro-image         { max-width: 520px; }
  .about-story-grid    { grid-template-columns: 1fr; }
  .about-story-image   { max-width: 520px; }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem 0;
    max-width: 400px;
    margin-inline: auto;
  }

  .services-col-divider { display: none; }

  .philosophy {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .philosophy-image {
    aspect-ratio: 16 / 9;
    order: 0;
  }

  .philosophy-text {
    max-width: 100%;
    margin-left: 0;
    order: 1;
  }

  .footer-main { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 0 1.25rem;
    border-bottom: 1px solid var(--border);
    gap: 0;
    box-shadow: 0 4px 20px rgba(47, 47, 47, 0.06);
  }

  .nav-links.is-open { display: flex; }

  .nav-links a {
    padding: 0.875rem var(--px);
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
  }

  .nav-links .nav-cta-item {
    display: block;
    padding: 0.625rem var(--px) 0;
  }

  .nav-links .nav-cta-item a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 42px;
    border: 1px solid var(--text);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    padding: 0;
    color: var(--text);
    text-transform: uppercase;
  }

  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .plan-card:last-child { border-bottom: none; }

  .values-grid { grid-template-columns: 1fr; }

  .value-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .value-card:last-child { border-bottom: none; }
}

@media (max-width: 480px) {
  .hero-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.75rem var(--px);
  }

  .hero-monogram { display: none; }
}
