/* ============================================
   LUMERARUGS — Global Stylesheet
   Edit colors, fonts, spacing here globally
   ============================================ */

/* ---------- CSS VARIABLES (Edit here to retheme the whole site) ---------- */
:root {
  --ink:   #1a1410;   /* Main dark color */
  --clay:  #8B5E3C;   /* Primary brand color (brown) */
  --sand:  #D4B896;   /* Light accent */
  --ivory: #FAF6EF;   /* Page background */
  --bone:  #EDE6D6;   /* Section background */
  --gold:  #C49A5A;   /* Highlight / accent */
  --smoke: #6B6055;   /* Body text / muted */
  --green: #3D6B4F;   /* Tip/success color */

  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Jost', sans-serif;

  --max-width: 1200px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
}

.eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--clay);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.eyebrow.gold { color: var(--gold); }

.section-label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.75rem;
  display: block;
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--clay);
  padding: 1rem 2rem;
  border: 1px solid var(--clay);
  transition: background 0.25s, border-color 0.25s;
  cursor: pointer;
  font-family: var(--font-body);
}
.btn-primary:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  transition: gap 0.25s;
}
.btn-ghost::after { content: '→'; }
.btn-ghost:hover { gap: 1rem; }

.btn-outline {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ivory);
  border: 1px solid rgba(250,246,239,0.4);
  padding: 0.6rem 1.2rem;
  transition: background 0.25s;
}
.btn-outline:hover { background: rgba(250,246,239,0.12); }

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  background: rgba(250,246,239,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139,94,60,0.12);
  height: var(--nav-height);
  transition: padding 0.3s;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.05em;
}
.nav__logo span {
  color: var(--clay);
  font-style: italic;
}

.nav__links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  position: relative;
  padding-bottom: 2px;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--clay);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav__links a:hover::after,
.nav__links a.active::after {
  transform: scaleX(1);
}

.nav__cta {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ivory);
  background: var(--ink);
  padding: 0.65rem 1.5rem;
  border: 1px solid var(--ink);
  transition: background 0.25s, color 0.25s;
}
.nav__cta:hover {
  background: transparent;
  color: var(--ink);
}

/* Mobile nav toggle */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--ink);
  transition: all 0.3s;
}

/* ---------- PAGE HERO (shared across inner pages) ---------- */
.page-hero {
  padding-top: var(--nav-height);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 55vh;
  overflow: hidden;
}

.page-hero__left {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4rem;
}

.page-hero__left.dark {
  background: var(--ink);
  color: var(--ivory);
}

.page-hero__title {
  font-size: clamp(2.8rem, 4.5vw, 4.5rem);
  color: inherit;
  margin-bottom: 1rem;
}
.page-hero__title em { font-style: italic; color: var(--sand); }

.page-hero__subtitle {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(250,246,239,0.55);
  max-width: 400px;
}

.page-hero__right {
  position: relative;
  overflow: hidden;
  background: var(--bone);
}
.page-hero__right img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ---------- SECTIONS ---------- */
.section {
  padding: 6rem 4rem;
}
.section.dark   { background: var(--ink); color: var(--ivory); }
.section.light  { background: var(--ivory); }
.section.bone   { background: var(--bone); }
.section.clay   { background: var(--clay); color: var(--ivory); }

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
}

.section__title {
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: inherit;
}
.section__title em { font-style: italic; color: var(--clay); }
.section__title.light-em em { color: var(--sand); }

/* ---------- GRID UTILITIES ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

/* ---------- DIVIDERS ---------- */
.divider {
  width: 100%;
  height: 1px;
  background: rgba(139,94,60,0.15);
  margin: 0;
}

/* ---------- FORMS ---------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--smoke);
}

input, textarea, select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 1px solid rgba(139,94,60,0.2);
  background: var(--bone);
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.25s, background 0.25s;
  font-weight: 300;
  -webkit-appearance: none;
  border-radius: 0;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--clay);
  background: #f0e9da;
}
textarea { min-height: 130px; resize: vertical; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink);
  color: var(--ivory);
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer__logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.footer__logo span { color: var(--sand); font-style: italic; }

.footer__tagline {
  font-size: 0.68rem;
  color: rgba(250,246,239,0.4);
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

.footer__center {
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250,246,239,0.35);
}

.footer__links {
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
  list-style: none;
}
.footer__links a {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(250,246,239,0.5);
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--sand); }

/* ---------- SCROLL REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .nav { padding: 1rem 1.5rem; }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height); left: 0; right: 0;
    background: var(--ivory);
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(139,94,60,0.12);
    gap: 1.5rem;
  }
  .nav__hamburger { display: flex; }
  .nav__cta { display: none; }

  .page-hero { grid-template-columns: 1fr; }
  .page-hero__left { padding: 3rem 1.5rem; }
  .page-hero__right { height: 55vw; min-height: 260px; }

  .section { padding: 4rem 1.5rem; }
  .section__header { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2.keep-2 { grid-template-columns: 1fr 1fr; }

  .footer { grid-template-columns: 1fr; padding: 3rem 1.5rem; }
  .footer__links { justify-content: flex-start; }
}

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