/* ============================================
   SORELLA365 — Brand Stylesheet
   Palette inspired by warm coastal Mediterranean
   ============================================ */

:root {
  --bg-cream:        #F5EFE6;
  --bg-cream-soft:   #FAF6EE;
  --ink:             #2C2620;
  --ink-soft:        #5A4F46;
  --accent:          #E08B6F;     /* coral / terracotta */
  --accent-dark:     #C9714F;
  --accent-soft:     #F4D5C7;
  --rule:            #E5DCCB;
  --shadow:          0 10px 30px rgba(44, 38, 32, 0.08);
  --serif:           "Cormorant Garamond", "Playfair Display", Georgia, serif;
  --sans:            "Inter", "Helvetica Neue", Arial, sans-serif;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg-cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== Header / Nav ===== */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  padding: 22px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(245, 239, 230, 0.92);
  backdrop-filter: blur(6px);
}

.logo {
  font-family: var(--serif);
  font-size: 36px;
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
}
.logo .three65 {
  font-style: normal;
  font-weight: 400;
  color: var(--accent);
  font-size: 30px;
  letter-spacing: 1px;
  position: relative;
}
.logo .logo-roof {
  width: 32px;
  height: 22px;
  color: var(--accent);
  margin: 0 4px -3px 2px;
  flex-shrink: 0;
}
/* Image-based logo (replaces text+SVG version) */
.logo img {
  height: 180px;
  width: auto;
  display: block;
}
.footer-logo .logo-roof {
  width: 28px;
  height: 20px;
  color: var(--accent);
  margin: 0 4px -2px 2px;
  vertical-align: middle;
}

.nav {
  display: flex;
  align-items: center;
  gap: 38px;
}
.nav a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.6px;
  color: var(--ink);
  text-transform: uppercase;
  padding: 6px 0;
  position: relative;
  transition: color 0.2s;
}
.nav a:hover { color: var(--accent-dark); }
.nav a.active {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 14px 26px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: var(--sans);
}
.btn:hover { background: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn-large { padding: 18px 34px; font-size: 13px; }

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 78vh;
  min-height: 560px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(245,239,230,0.55) 0%, rgba(245,239,230,0.15) 45%, transparent 65%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 80px;
  max-width: 720px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 72px;
  line-height: 1.05;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero .accent-line {
  width: 60px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 24px;
}
.hero p.lead {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 460px;
  margin-bottom: 36px;
  line-height: 1.55;
}

/* ===== Feature Strip ===== */
.feature-strip {
  background: var(--bg-cream-soft);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 56px 64px;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.feature {
  text-align: center;
  padding: 0 28px;
  border-right: 1px solid var(--rule);
}
.feature:last-child { border-right: none; }
.feature .icon {
  width: 44px; height: 44px;
  margin: 0 auto 16px;
  color: var(--accent);
}
.feature h3 {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.feature p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* ===== Generic page section ===== */
.page {
  padding: 110px 80px 90px;
  max-width: 1240px;
  margin: 0 auto;
}
.page-header { text-align: center; margin-bottom: 64px; }
.page-header .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.page-header h1 {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 18px;
}
.page-header p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 17px;
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
  margin-bottom: 90px;
}
.about-grid img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.about-grid h2 {
  font-family: var(--serif);
  font-size: 40px;
  line-height: 1.15;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 22px;
}
.about-grid h2 .accent { color: var(--accent); font-style: italic; }
.about-grid p { color: var(--ink-soft); margin-bottom: 18px; font-size: 16px; }

.sisters-card {
  background: var(--accent-soft);
  padding: 44px 48px;
  border-left: 4px solid var(--accent);
  margin-top: 32px;
  margin-bottom: 90px;
}
.sisters-card .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent-dark);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.sisters-card h3 {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--ink);
  font-weight: 500;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.philosophy-card {
  background: var(--bg-cream-soft);
  padding: 36px 32px;
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow);
}
.philosophy-card h4 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
  margin-bottom: 12px;
  font-weight: 500;
}
.philosophy-card p { color: var(--ink-soft); font-size: 15px; }

/* ===== Properties ===== */
.property-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}
.property-card {
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(44,38,32,0.12);
}
.property-card .photo {
  width: 100%;
  height: 360px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.property-card .badge {
  position: absolute;
  top: 18px; left: 18px;
  background: rgba(245, 239, 230, 0.95);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 8px 14px;
  text-transform: uppercase;
}
.property-card .body { padding: 32px 32px 36px; }
.property-card h3 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--ink);
}
.property-card .location {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.property-card .specs {
  display: flex;
  gap: 20px;
  font-size: 14px;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  margin-bottom: 20px;
}
.property-card .specs span strong { color: var(--ink); font-weight: 600; }
.property-card .desc { color: var(--ink-soft); font-size: 15px; margin-bottom: 22px; }

/* ===== Standard ===== */
.standard-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 50px;
}
.pillar {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: var(--bg-cream-soft);
  border-left: 3px solid var(--accent);
}
.pillar .num {
  font-family: var(--serif);
  font-size: 48px;
  color: var(--accent);
  line-height: 1;
  font-weight: 500;
}
.pillar h4 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 8px;
  font-weight: 500;
}
.pillar p { color: var(--ink-soft); font-size: 15px; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  margin-top: 30px;
}
.contact-info {
  background: var(--ink);
  color: var(--bg-cream);
  padding: 48px 40px;
}
.contact-info h3 {
  font-family: var(--serif);
  font-size: 28px;
  margin-bottom: 18px;
  color: #fff;
  font-weight: 500;
}
.contact-info p { color: rgba(245,239,230,0.8); margin-bottom: 28px; font-size: 15px; }
.contact-info .item { margin-bottom: 22px; }
.contact-info .item .lbl {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 6px;
}
.contact-info .item .val { font-size: 16px; color: #fff; }

.contact-form {
  background: var(--bg-cream-soft);
  padding: 48px 44px;
  box-shadow: var(--shadow);
}
.contact-form h3 {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--ink);
  margin-bottom: 24px;
  font-weight: 500;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  background: #fff;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-field textarea { min-height: 130px; resize: vertical; }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: rgba(245,239,230,0.7);
  padding: 56px 80px 28px;
  margin-top: 80px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  max-width: 1240px;
  margin: 0 auto 36px;
}
.footer-col h5 {
  color: #fff;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col a, .footer-col p { font-size: 14px; line-height: 2; color: rgba(245,239,230,0.7); }
.footer-col a:hover { color: var(--accent); }
.footer-logo {
  font-family: var(--serif);
  font-size: 32px;
  color: #fff;
  font-style: italic;
  margin-bottom: 12px;
}
.footer-logo .three65 { color: var(--accent); font-style: normal; font-size: 28px; }
.footer-bottom {
  border-top: 1px solid rgba(245,239,230,0.12);
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  max-width: 1240px;
  margin: 0 auto;
}

/* ===== Featured Properties (Home page) ===== */
.featured-home {
  padding: 110px 80px 90px;
  max-width: 1240px;
  margin: 0 auto;
}
.featured-home .section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 56px;
  gap: 32px;
}
.featured-home .section-head .text { max-width: 560px; }
.featured-home .section-head .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.featured-home .section-head h2 {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--ink);
}
.featured-home .section-head a.text-link {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-dark);
  text-transform: uppercase;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 4px;
  white-space: nowrap;
}
.featured-home .section-head a.text-link:hover { color: var(--accent); }

/* ===== Property Detail Page ===== */
.property-hero {
  height: 60vh;
  min-height: 480px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.property-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.55) 100%);
}
.property-hero .label {
  position: absolute;
  bottom: 36px; left: 80px;
  z-index: 2;
  color: #fff;
}
.property-hero .label .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent-soft);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.property-hero .label h1 {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 500;
  line-height: 1.05;
  text-shadow: 0 2px 18px rgba(0,0,0,0.4);
}
.property-hero .label .location {
  font-size: 14px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.95);
  text-transform: uppercase;
  margin-top: 8px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 64px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 80px 80px 60px;
}
.detail-main h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 16px;
}
.detail-main p { color: var(--ink-soft); margin-bottom: 18px; font-size: 16px; }
.detail-main h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 40px;
  margin-bottom: 16px;
}
.amenity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-top: 16px;
}
.amenity-grid li {
  list-style: none;
  font-size: 15px;
  color: var(--ink-soft);
  padding: 8px 0;
  border-bottom: 1px dashed var(--rule);
  display: flex;
  align-items: center;
  gap: 10px;
}
.amenity-grid li::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

.detail-aside {
  position: sticky;
  top: 110px;
  align-self: start;
  background: var(--bg-cream-soft);
  padding: 36px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
}
.detail-aside .specs-stack { margin-bottom: 28px; }
.detail-aside .spec-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
.detail-aside .spec-row:last-of-type { border-bottom: none; }
.detail-aside .spec-row .key {
  color: var(--ink-soft);
  letter-spacing: 1.5px;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
}
.detail-aside .spec-row .val { color: var(--ink); font-weight: 600; }
.detail-aside .price-from {
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--ink-soft);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.detail-aside .price {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 24px;
}
.detail-aside .price .unit { font-size: 14px; color: var(--ink-soft); font-family: var(--sans); margin-left: 6px; }

.gallery-strip {
  background: var(--bg-cream-soft);
  padding: 60px 80px;
}
.gallery-strip .gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1240px;
  margin: 0 auto;
}
.gallery-strip .gallery-tile {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--accent-soft);
}

/* ===== Form status states ===== */
#form-status.success { color: var(--accent-dark); }
#form-status.error   { color: #b94a3a; }

/* ===== Brand blurb (About page) — desktop base ===== */
.brand-blurb-grid {
  margin-top: 90px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.brand-blurb-grid .blurb-card {
  padding: 40px 44px;
  background: var(--bg-cream-soft);
  border-left: 4px solid var(--accent);
}
.brand-blurb-grid .blurb-card p {
  font-size: 17px;
  color: var(--ink-soft);
  line-height: 1.75;
}
.brand-blurb-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

/* ===== Responsive — Tablet ===== */
@media (max-width: 960px) {
  .site-header {
    padding: 16px 22px;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
  }
  .logo img { height: 90px; }
  .nav {
    gap: 22px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .nav a { font-size: 12px; letter-spacing: 1.4px; }
  .hero-inner { padding: 0 28px; }
  .hero h1 { font-size: 44px; }
  .feature-strip { grid-template-columns: repeat(2, 1fr); padding: 36px 20px; gap: 32px 0; }
  .feature { border-right: none; }
  .feature:nth-child(odd) { border-right: 1px solid var(--rule); }
  .page { padding: 70px 24px 60px; }
  .about-grid, .property-grid, .philosophy-grid, .standard-pillars, .contact-grid,
  .brand-blurb-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .brand-blurb-grid { margin-top: 50px; }
  .brand-blurb-grid .blurb-card { padding: 32px 28px; }
  .about-grid img, .about-grid .about-photo { height: 320px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .page-header h1 { font-size: 38px; }

  .featured-home { padding: 70px 24px 60px; }
  .featured-home .section-head { flex-direction: column; align-items: start; gap: 16px; }
  .featured-home .section-head h2 { font-size: 32px; }
  .property-hero { min-height: 380px; height: 55vh; }
  .property-hero .label { left: 24px; right: 24px; bottom: 24px; }
  .property-hero .label h1 { font-size: 40px; }
  .detail-layout { grid-template-columns: 1fr; padding: 50px 24px; gap: 40px; }
  .detail-aside { position: static; }
  .gallery-strip { padding: 40px 24px; }
  .gallery-strip .gallery-grid { grid-template-columns: 1fr 1fr; }
}

/* ===== Responsive — Phone ===== */
@media (max-width: 640px) {
  body .site-header {
    position: relative;
    flex-direction: column;
    align-items: center;
    padding: 18px 22px 16px;
    gap: 14px;
    background: rgba(245, 239, 230, 0.92);
  }
  body .site-header .logo img {
    height: 110px;
    margin-bottom: 0;
  }
  .nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 20px;
  }
  /* Override prior rule that hid links on phones */
  .nav a {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 1.2px;
    padding: 4px 0;
  }
  .nav .btn {
    padding: 10px 18px;
    font-size: 11px;
    letter-spacing: 1.4px;
  }

  /* Home page hero — override inline page styles via specificity */
  body .hero {
    min-height: 420px;
    height: auto;
    padding: 50px 0 56px;
  }
  .hero-inner { padding: 0 22px; max-width: 100%; }
  .hero h1 { font-size: 34px; }
  .hero p.lead {
    font-size: 14px;
    max-width: 100%;
    text-align: center;
  }
  /* Center the Explore Properties button on phones */
  .hero-inner .btn {
    display: block;
    width: max-content;
    margin-left: auto;
    margin-right: auto;
  }

  .feature-strip { grid-template-columns: 1fr; gap: 24px; padding: 32px 22px; }
  .feature { border-right: none !important; padding: 0 0 22px; }
  .feature:nth-child(odd) { border-right: none; }
  .feature:not(:last-child) { border-bottom: 1px solid var(--rule); }

  .page { padding: 48px 18px 36px; }
  .page-header { margin-bottom: 36px; }
  .page-header h1 { font-size: 28px; }
  .page-header p { font-size: 15px; }

  .featured-home { padding: 48px 18px 40px; }
  .featured-home .section-head h2 { font-size: 24px; }
  .property-card .photo { height: 240px; }
  .property-card .body { padding: 22px 20px 26px; }
  .property-card h3 { font-size: 22px; }
  .property-card .location { font-size: 11px; letter-spacing: 1.5px; margin-bottom: 14px; }
  .property-card .specs { gap: 14px; font-size: 13px; padding: 12px 0; }

  /* Property detail hero */
  body .property-hero { min-height: 320px; height: 52vh; }
  .property-hero .label { left: 18px; right: 18px; bottom: 18px; }
  .property-hero .label h1 { font-size: 30px; }
  .property-hero .label .location { font-size: 11px; letter-spacing: 1.5px; }

  .detail-layout { padding: 36px 18px; }
  .detail-main h2 { font-size: 24px; }
  .detail-main h3 { font-size: 22px; margin-top: 28px; }
  .amenity-grid { grid-template-columns: 1fr; }

  .contact-info, .contact-form { padding: 32px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .gallery-strip { padding: 28px 14px; }
  .gallery-strip .gallery-grid { grid-template-columns: 1fr; gap: 10px; }

  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .site-footer { padding: 36px 22px 20px; margin-top: 50px; }

  /* About page brand blurb on phone */
  .brand-blurb-grid { margin-top: 40px; gap: 24px; }
  .brand-blurb-grid .blurb-card { padding: 28px 22px; }
  .brand-blurb-grid .blurb-card p { font-size: 15px; }
  .sisters-card { padding: 28px 22px; margin-bottom: 50px; }
  .standard-pillars { grid-template-columns: 1fr; }
  .pillar { padding: 24px 22px; gap: 18px; }
  .pillar .num { font-size: 38px; }
  .pillar h4 { font-size: 18px; }
}
