:root {
  --terracotta: #B96F52;
  --terracotta-dark: #954F36;
  --terracotta-light: #F3E5E0;
  --limestone: #E5D7C3;
  --limestone-light: #FBF8F3;
  --limestone-dark: #CBB99F;
  --olive: #68745C;
  --olive-dark: #4B5541;
  --olive-light: #E8EBE5;
  --deep-blue: #294A59;
  --deep-blue-dark: #1B333E;
  --deep-blue-light: #E5ECF0;
  --charcoal: #1A1A1A;
  --slate: #4A4A4A;
  --white: #FFFFFF;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --shadow-sm: 0 2px 8px rgba(41, 74, 89, 0.06);
  --shadow-md: 0 8px 24px rgba(41, 74, 89, 0.09);
  --shadow-lg: 0 16px 36px rgba(41, 74, 89, 0.12);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--limestone-light);
  color: var(--charcoal);
}

body {
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* ==========================================================================
   SLIM NON-STICKY HEADER (Max 56px)
   ========================================================================== */
.site-header {
  position: relative; /* Strictly non-sticky */
  width: 100%;
  height: 56px;
  background: var(--white);
  border-bottom: 1px solid var(--limestone);
  z-index: 100;
}

.header-container {
  max-width: 1320px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--deep-blue);
}

.brand-logo svg {
  width: 26px;
  height: 26px;
  color: var(--terracotta);
}

.brand-logo span span {
  color: var(--terracotta);
  font-weight: 400;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0.01em;
  position: relative;
  padding: 4px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--terracotta);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--terracotta);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 16px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--deep-blue);
  border: 1px solid var(--deep-blue);
  border-radius: 2px;
  transition: var(--transition);
}

.btn-header-cta:hover {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--white);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--deep-blue);
}

/* Mobile Nav Drawer */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  width: 100%;
  height: calc(100vh - 56px);
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(4px);
  z-index: 99;
}

.mobile-nav-drawer {
  position: fixed;
  top: 56px;
  right: -100%;
  width: 300px;
  height: calc(100vh - 56px);
  background: var(--white);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  border-left: 1px solid var(--limestone);
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-drawer .nav-link {
  font-size: 1.1rem;
  padding: 10px 0;
  border-bottom: 1px solid var(--limestone-light);
}

/* ==========================================================================
   BUTTONS & TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  color: var(--deep-blue);
  font-weight: 600;
  line-height: 1.25;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--terracotta);
  color: var(--white);
  border: 1px solid var(--terracotta);
}

.btn-primary:hover {
  background: var(--terracotta-dark);
  border-color: var(--terracotta-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--deep-blue);
  border: 1px solid var(--deep-blue);
}

.btn-secondary:hover {
  background: var(--deep-blue);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--white);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--deep-blue);
}

/* ==========================================================================
   NOVEL CARD ARCHITECTURE: FRAMED CANVAS CARD
   ========================================================================== */
.framed-canvas-card {
  position: relative;
  background: transparent;
  padding: 12px 12px 0 0;
  margin-bottom: 24px;
}

.framed-canvas-card::before {
  content: '';
  position: absolute;
  top: 12px;
  right: 0;
  bottom: 0;
  left: 12px;
  background: var(--limestone);
  border: 1px solid var(--limestone-dark);
  border-radius: 3px;
  z-index: 1;
  transition: var(--transition);
}

.framed-canvas-card:hover::before {
  background: var(--terracotta-light);
  border-color: var(--terracotta);
}

.card-inner {
  position: relative;
  background: var(--white);
  border: 1px solid rgba(41, 74, 89, 0.12);
  border-radius: 2px;
  z-index: 2;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.framed-canvas-card:hover .card-inner {
  transform: translate(-4px, -4px);
  box-shadow: var(--shadow-md);
}

.card-media {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.framed-canvas-card:hover .card-media img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(4px);
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--deep-blue);
  border: 1px solid rgba(41, 74, 89, 0.15);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-region {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--olive);
  font-weight: 700;
  margin-bottom: 6px;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 10px;
  color: var(--deep-blue);
}

.card-description {
  font-size: 0.92rem;
  color: var(--slate);
  margin-bottom: 20px;
  line-height: 1.55;
  flex-grow: 1;
}

.card-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 0;
  margin-bottom: 18px;
  border-top: 1px solid var(--limestone-light);
  border-bottom: 1px solid var(--limestone-light);
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--slate);
  letter-spacing: 0.05em;
}

.meta-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--deep-blue);
}

.card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.card-link-btn {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--terracotta);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.card-link-btn:hover {
  color: var(--terracotta-dark);
  gap: 10px;
}

/* ==========================================================================
   LAYOUT CONTAINERS & EDITORIAL GRIDS
   ========================================================================== */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-spacing {
  padding: 80px 0;
}

.section-spacing-sm {
  padding: 48px 0;
}

.section-header {
  margin-bottom: 48px;
}

.section-header.text-center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.3rem;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--slate);
  line-height: 1.6;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ==========================================================================
   HERO EDITORIAL SECTION
   ========================================================================== */
.hero-editorial {
  position: relative;
  background: var(--deep-blue-dark);
  color: var(--white);
  padding: 100px 0 120px;
  overflow: hidden;
}

.hero-editorial::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(27, 51, 62, 0.92) 0%, rgba(41, 74, 89, 0.75) 100%);
  z-index: 1;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(0.85);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

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

.hero-title {
  font-size: 3.6rem;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--limestone-light);
  margin-bottom: 36px;
  line-height: 1.65;
  font-weight: 300;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats-bar {
  position: relative;
  z-index: 2;
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid rgba(229, 215, 195, 0.25);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item h3 {
  font-size: 2rem;
  color: var(--limestone);
  font-family: var(--font-serif);
  margin-bottom: 4px;
}

.stat-item p {
  font-size: 0.8rem;
  color: var(--limestone-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ==========================================================================
   INDOOR / OUTDOOR INTERACTIVE SWITCHER
   ========================================================================== */
.interactive-spatial-showcase {
  background: var(--white);
  border: 1px solid var(--limestone);
  border-radius: 4px;
  padding: 40px;
  box-shadow: var(--shadow-sm);
}

.spatial-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.spatial-btn {
  padding: 10px 24px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--limestone);
  background: var(--limestone-light);
  color: var(--deep-blue);
  cursor: pointer;
  border-radius: 2px;
  transition: var(--transition);
}

.spatial-btn.active,
.spatial-btn:hover {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}

.spatial-panel {
  display: none;
  animation: fadeIn 0.4s ease-in-out forwards;
}

.spatial-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   MATERIALS EDITORIAL STRIP
   ========================================================================== */
.material-card {
  background: var(--white);
  border: 1px solid var(--limestone);
  padding: 24px;
  text-align: center;
  transition: var(--transition);
}

.material-card:hover {
  border-color: var(--terracotta);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.material-swatch {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 16px;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--limestone);
}

.swatch-travertine { background: #D9CBB7; }
.swatch-terracotta { background: #B96F52; }
.swatch-olivewood { background: #7C674E; }
.swatch-limestone { background: #E5D7C3; }
.swatch-lime-plaster { background: #F4EFE6; }

/* ==========================================================================
   RESIDENCE DOSSIER MODAL
   ========================================================================== */
.dossier-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.dossier-modal-overlay.open {
  display: flex;
}

.dossier-modal-container {
  background: var(--white);
  border-radius: 4px;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--limestone);
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.dossier-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--limestone-light);
  border: 1px solid var(--limestone);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--deep-blue);
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.dossier-modal-close:hover {
  background: var(--terracotta);
  color: var(--white);
  border-color: var(--terracotta);
}

.dossier-modal-header {
  padding: 32px 32px 20px;
  border-bottom: 1px solid var(--limestone);
  background: var(--limestone-light);
}

.dossier-modal-body {
  padding: 32px;
}

.dossier-modal-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 2px;
  margin-bottom: 24px;
  border: 1px solid var(--limestone);
}

/* ==========================================================================
   FOOTER COMPONENT
   ========================================================================== */
.site-footer {
  background: var(--deep-blue-dark);
  color: var(--limestone-light);
  padding: 70px 0 30px;
  border-top: 3px solid var(--terracotta);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand h4 {
  color: var(--white);
  font-size: 1.4rem;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--limestone);
  line-height: 1.6;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--terracotta);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--limestone);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact-info p {
  font-size: 0.88rem;
  color: var(--limestone);
  margin-bottom: 10px;
  line-height: 1.5;
}

.footer-contact-info a {
  color: var(--terracotta-light);
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid rgba(229, 215, 195, 0.15);
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--limestone-dark);
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-inline-links {
  display: flex;
  gap: 20px;
}

.legal-inline-links a {
  color: var(--limestone);
}

.legal-inline-links a:hover {
  color: var(--white);
}

/* ==========================================================================
   COOKIE CONSENT MODAL / BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 580px;
  background: var(--white);
  border: 1px solid var(--terracotta);
  border-left: 6px solid var(--terracotta);
  box-shadow: var(--shadow-lg);
  padding: 22px 24px;
  z-index: 9999;
  border-radius: 3px;
  display: none;
}

.cookie-banner.show {
  display: block;
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-header {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--deep-blue);
  margin-bottom: 8px;
}

.cookie-desc {
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 16px;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
}

.cookie-btn-accept {
  background: var(--terracotta);
  color: var(--white);
  border: 1px solid var(--terracotta);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--slate);
  border: 1px solid var(--limestone-dark);
}

.cookie-btn-settings {
  background: transparent;
  color: var(--deep-blue);
  border: none;
  text-decoration: underline;
  padding: 8px 10px;
}

/* ==========================================================================
   ARTICLE / CONTENT PAGE STYLES
   ========================================================================== */
.article-header {
  padding: 60px 0 40px;
  background: var(--limestone-light);
  border-bottom: 1px solid var(--limestone);
}

.article-content {
  padding: 60px 0;
  max-width: 840px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--charcoal);
}

.article-content h2 {
  font-size: 1.8rem;
  margin: 40px 0 16px;
  color: var(--deep-blue);
  scroll-margin-top: 24px;
}

.article-content h3 {
  font-size: 1.4rem;
  margin: 30px 0 12px;
  color: var(--terracotta-dark);
}

.article-content p {
  margin-bottom: 20px;
}

.article-content ul, .article-content ol {
  margin: 0 0 24px 28px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-image-box {
  margin: 36px 0;
  border: 1px solid var(--limestone);
  background: var(--white);
  padding: 12px;
}

.article-image-box figcaption {
  font-size: 0.8rem;
  color: var(--slate);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  background: var(--white);
}

.data-table th, .data-table td {
  border: 1px solid var(--limestone);
  padding: 14px 18px;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th {
  background: var(--deep-blue);
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 600;
}

/* ==========================================================================
   CONTACT FORM STYLES
   ========================================================================== */
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--deep-blue);
  margin-bottom: 8px;
}

.form-input, .form-textarea, .form-select {
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border: 1px solid var(--limestone-dark);
  background: var(--white);
  border-radius: 2px;
  color: var(--charcoal);
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(185, 111, 82, 0.15);
}

.form-success-banner {
  display: none;
  background: var(--olive-light);
  border: 1px solid var(--olive);
  color: var(--olive-dark);
  padding: 16px;
  border-radius: 2px;
  margin-bottom: 20px;
  font-weight: 500;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 30px; }
  .hero-title { font-size: 2.8rem; }
  .hero-stats-bar { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav, .header-actions .btn-header-cta { display: none; }
  .mobile-menu-btn { display: block; }
  .mobile-nav-overlay { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; }
  .contact-form-grid { grid-template-columns: 1fr; }
  .form-group.full-width { grid-column: span 1; }
  .footer-top { grid-template-columns: 1fr; }
  .spatial-controls { flex-direction: column; }
  .hero-stats-bar { grid-template-columns: 1fr; }
}