/* ============================================
   XTRASPAIN — Global Stylesheet
   Colors: #0A0A0A · #FFFFFF · #B1655B (terracotta)
   ============================================ */

/* Fonts loaded via <link> in HTML for faster rendering — see each page's <head> */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:      #0A0A0A;
  --white:      #FFFFFF;
  --terra:      #B1655B;
  --terra-light:#C8837A;
  --gray-100:   #F6F5F3;
  --gray-200:   #EBEBEB;
  --gray-400:   #9A9A9A;
  --gray-600:   #555555;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
  --max-w:      1200px;
  --nav-h:      72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--black);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-serif); line-height: 1.2; }

.label {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.label--terra { color: var(--terra); }

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 100;
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.nav__logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black);
}

.nav__logo span { color: var(--terra); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav__links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gray-600);
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active { color: var(--black); }

.nav__cta {
  font-size: 13px;
  font-weight: 500;
  padding: 9px 20px;
  background: var(--black);
  color: var(--white) !important;
  border-radius: 4px;
  transition: background 0.2s;
}

.nav__cta:hover { background: var(--terra) !important; color: var(--white) !important; }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--black);
  transition: all 0.3s;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav__links { display: none; flex-direction: column; gap: 0; }
  .nav__hamburger { display: flex; }

  .nav__links.open {
    display: flex;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 24px 20px 32px;
    gap: 20px;
  }

  .nav__cta {
    width: fit-content;
    margin-top: 8px;
  }

  .nav__inner { padding: 0 20px; }
}

/* Page offset for fixed nav */
.page-offset { padding-top: var(--nav-h); }

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 120px 0 100px;
  border-bottom: 1px solid var(--gray-200);
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--terra);
}

.hero__title {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 820px;
  margin-bottom: 32px;
}

.hero__title em {
  font-style: italic;
  color: var(--terra);
}

.hero__subtitle {
  font-size: 18px;
  line-height: 1.65;
  color: var(--gray-600);
  max-width: 520px;
  margin-bottom: 48px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 4px;
  transition: all 0.2s;
  letter-spacing: 0.01em;
  cursor: pointer;
  text-decoration: none;
}

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

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

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

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

.btn--terra {
  background: var(--terra);
  color: var(--white);
  border: 1.5px solid var(--terra);
}

.btn--terra:hover {
  background: #9b4f45;
  border-color: #9b4f45;
}

.btn--gold {
  background: #D4A853;
  color: var(--white);
  border: none;
}

.btn--gold:hover {
  background: #bf9748;
}

.btn--concierge {
  background: #B56B5F;
  color: var(--white);
  border: none;
}

.btn--concierge:hover {
  background: #a25f54;
}

.btn--link {
  padding: 0;
  font-size: 14px;
  color: var(--terra);
  border-bottom: 1px solid transparent;
  border-radius: 0;
}

.btn--link:hover { border-bottom-color: var(--terra); }

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 0;
  gap: 24px;
}

.section-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 600px;
}

/* ============================================
   NUMBERED LIST (services style like screenshot)
   ============================================ */
.numbered-list { border-top: 1px solid var(--gray-200); }

.numbered-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.15s;
  cursor: default;
}

.numbered-item:hover { background: var(--gray-100); margin: 0 -32px; padding: 36px 32px; }

.numbered-item__num {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 300;
  color: var(--gray-400);
  letter-spacing: 0.04em;
}

.numbered-item__content h3 {
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.numbered-item__content p {
  font-size: 14px;
  color: var(--gray-600);
  max-width: 500px;
}

.numbered-item__arrow {
  font-size: 20px;
  color: var(--gray-400);
  transition: transform 0.2s, color 0.2s;
}

.numbered-item:hover .numbered-item__arrow {
  transform: translateX(4px);
  color: var(--terra);
}

@media (max-width: 600px) {
  .numbered-item { grid-template-columns: 48px 1fr; }
  .numbered-item__arrow { display: none; }
  .numbered-item:hover { margin: 0 -20px; padding: 28px 20px; }
}

/* ============================================
   CARDS
   ============================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
}

.card {
  background: var(--white);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 0.15s;
}

.card:hover { background: var(--gray-100); }

.card__num {
  font-size: 11px;
  font-weight: 300;
  color: var(--gray-400);
  letter-spacing: 0.08em;
}

.card__icon {
  font-size: 28px;
  margin-bottom: 4px;
}

.card h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
  flex: 1;
}

.card__link {
  font-size: 13px;
  font-weight: 500;
  color: var(--terra);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.card:hover .card__link { gap: 10px; }

/* ============================================
   SECTIONS — Generic
   ============================================ */
.section { padding: 96px 0; }
.section--sm { padding: 64px 0; }
.section--lg { padding: 128px 0; }
.section--gray { background: var(--gray-100); }
.section--black { background: var(--black); color: var(--white); }

/* ============================================
   ABOUT STRIP (home teaser)
   ============================================ */
.about-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 96px 0;
  border-bottom: 1px solid var(--gray-200);
}

.about-strip__text h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  line-height: 1.2;
}

.about-strip__text p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 28px;
}

.about-strip__image {
  aspect-ratio: 4/3;
  background: var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}



.placeholder-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #d4bfb0 0%, #c8a99a 40%, #b8896f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 48px;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 768px) {
  .about-strip { grid-template-columns: 1fr; gap: 40px; }
  .about-strip__image { order: -1; }
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.stat {
  padding: 48px 32px;
  border-right: 1px solid var(--gray-200);
}

.stat:last-child { border-right: none; }

.stat__num {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  color: var(--terra);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 13px;
  color: var(--gray-600);
}

@media (max-width: 600px) {
  .stats-bar { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--gray-200); padding: 32px 20px; }
}

/* ============================================
   DIY TEASER / STORE BANNER
   ============================================ */
.diy-banner {
  background: var(--black);
  color: var(--white);
  padding: 80px 0;
}

.diy-banner__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}

.diy-banner h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.diy-banner p {
  font-size: 16px;
  color: #a0a0a0;
  line-height: 1.6;
  max-width: 520px;
}

@media (max-width: 700px) {
  .diy-banner__inner { grid-template-columns: 1fr; }
}

/* ============================================
   COLLABORATORS
   ============================================ */
.collab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
  margin-top: 48px;
}

.collab-item {
  background: var(--white);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.collab-item__icon { font-size: 24px; }

.collab-item h4 {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.collab-item p {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ============================================
   BLOG
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
}

.blog-card {
  background: var(--white);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover { background: var(--gray-100); }

.blog-card__cat {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terra);
}

.blog-card h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.blog-card__excerpt {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
  flex: 1;
}

.blog-card__meta {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
}

/* ============================================
   BLOG POST
   ============================================ */
.post-hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--gray-200);
}

.post-hero__cat {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.post-hero__cat::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--terra);
}

.post-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 820px;
  margin-bottom: 24px;
}

.post-hero__meta {
  font-size: 13px;
  color: var(--gray-400);
}

.post-body {
  max-width: 720px;
  padding: 64px 0 96px;
}

.post-body p { font-size: 17px; line-height: 1.75; margin-bottom: 24px; color: #333; }
.post-body h2 { font-size: 28px; margin: 48px 0 16px; letter-spacing: -0.02em; }
.post-body h3 { font-size: 21px; margin: 36px 0 12px; letter-spacing: -0.01em; }
.post-body ul, .post-body ol { padding-left: 24px; margin-bottom: 24px; }
.post-body li { font-size: 17px; line-height: 1.7; margin-bottom: 8px; color: #333; }
.post-body blockquote {
  border-left: 3px solid var(--terra);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  font-style: italic;
  color: var(--gray-600);
}
.post-body strong { color: var(--black); font-weight: 600; }
.post-body a { color: var(--terra); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.post-body a:hover { border-bottom-color: var(--terra); }
.post-body hr { border: none; border-top: 1px solid var(--gray-200); margin: 40px 0; }
.post-body table { width: 100%; border-collapse: collapse; margin-bottom: 28px; font-size: 15px; }
.post-body table th { text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gray-400); border-bottom: 1px solid var(--gray-200); padding: 10px 14px; }
.post-body table td { padding: 12px 14px; border-bottom: 1px solid var(--gray-200); color: #333; vertical-align: top; line-height: 1.5; }
.post-body table tr:last-child td { border-bottom: none; }
.post-body table tr:nth-child(even) td { background: var(--gray-100); }
@media (max-width: 640px) { .post-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; } }

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--gray-200);
}

.page-hero__num {
  font-size: 12px;
  font-weight: 300;
  color: var(--gray-400);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.07;
  max-width: 780px;
  margin-bottom: 24px;
}

.page-hero h1 em { font-style: italic; color: var(--terra); }

.page-hero p {
  font-size: 18px;
  color: var(--gray-600);
  max-width: 560px;
  line-height: 1.65;
}

/* ============================================
   CONTACT / CTA SECTION
   ============================================ */
.cta-section {
  padding: 100px 0;
  border-top: 1px solid var(--gray-200);
}

.cta-section__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 48px;
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-section p { font-size: 16px; color: var(--gray-600); max-width: 480px; }

@media (max-width: 700px) {
  .cta-section__inner { grid-template-columns: 1fr; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 64px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 32px;
}

.footer__brand .nav__logo { margin-bottom: 16px; display: block; color: var(--white); }
.footer__brand p { font-size: 13px; color: #666; line-height: 1.6; max-width: 280px; }

.footer__col h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 16px;
}

.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 14px; color: #888; transition: color 0.2s; }
.footer__col a:hover { color: var(--white); }

.footer__subscribe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.footer__subscribe h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  font-weight: 400;
}
.footer__subscribe p {
  font-size: 13px;
  color: #666;
}
.footer__subscribe .ml-embedded {
  flex: 1;
  min-width: 260px;
  max-width: 420px;
}
@media (max-width: 700px) {
  .footer__subscribe { flex-direction: column; align-items: flex-start; }
  .footer__subscribe .ml-embedded { width: 100%; max-width: 100%; }
}

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

.footer__bottom p { font-size: 12px; color: #444; }
.footer__bottom a { font-size: 12px; color: #444; transition: color 0.2s; }
.footer__bottom a:hover { color: var(--terra); }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* ============================================
   UTILITY
   ============================================ */
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mt-64 { margin-top: 64px; }
.text-terra { color: var(--terra); }
.text-muted { color: var(--gray-600); }
.text-sm { font-size: 14px; }
.text-xs { font-size: 12px; }

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 500; }
.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 4px;
  background: var(--white);
  color: var(--black);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--black);
}

.form-group textarea { min-height: 120px; resize: vertical; }

/* ============================================
   BADGE / PILL
   ============================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}

.badge--terra { background: rgba(177,101,91,0.1); color: var(--terra); }
.badge--black { background: var(--black); color: var(--white); }
.badge--outline { border: 1px solid var(--gray-200); color: var(--gray-600); }

/* --- Lead Capture Card --- */
.lead-capture {
  max-width: 520px;
  margin: 3rem auto;
  padding: 2rem;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  text-align: center;
}
.lead-capture h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #B56B5F;
  margin-bottom: 0.5rem;
}
.lead-capture p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 1.25rem;
}

/* --- Sticky Subscribe Banner --- */
#ml-sticky-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid #e5e5e5;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.10);
  z-index: 9999;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.22,1,0.36,1);
}
#ml-sticky-banner.is-visible { transform: translateY(0); }
#ml-sticky-banner .banner-text { font-size: 0.9rem; color: var(--gray-600); white-space: nowrap; }
#ml-sticky-banner .banner-text strong { color: var(--black); }
#ml-sticky-close {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--gray-400);
  line-height: 1;
  padding: 4px 8px;
  transition: color 0.15s;
}
#ml-sticky-close:hover { color: var(--black); }
@media (max-width: 600px) {
  #ml-sticky-banner { flex-direction: column; align-items: stretch; gap: 0.75rem; padding: 1rem; }
  #ml-sticky-banner .banner-text { white-space: normal; }
  #ml-sticky-close { top: 0.75rem; transform: none; }
}
