/* ================================================
   DECOR DYNAMICS — Premium Design System
   Inspired by award-winning luxury interior firms
   Garonzi, Anuc Home, Rossi Studio
   ================================================ */

/* === GOOGLE FONTS IMPORT === */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* === CSS CUSTOM PROPERTIES === */
:root {
  --black:        #0A0A0A;
  --dark:         #111111;
  --surface:      #1A1A1A;
  --warm-white:   #F7F3EC;
  --cream:        #EDE7DA;
  --beige:        #D8D0C4;
  --gold:         #C9A96E;
  --gold-light:   #E8D5B0;
  --gold-muted:   #B89860;
  --gold-dark:    #9A7A4A;

  --text-dark:    #111111;
  --text-mid:     #555555;
  --text-muted:   #888888;
  --text-white:   #F7F3EC;

  --font-serif:   'Cormorant Garamond', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, -apple-system, sans-serif;

  --ease-smooth:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out:   cubic-bezier(0.87, 0, 0.13, 1);

  --nav-height:    80px;
}

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

html {
  font-size: 16px;
  scroll-behavior: auto; /* GSAP handles scrolling */
}

body {
  font-family: var(--font-sans);
  background: var(--warm-white);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === SCROLL PROGRESS BAR === */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  z-index: 9999;
  width: 0;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* Custom cursor removed — using default browser cursor */

/* === PRELOADER === */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 9997;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preloader-brand {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 3.5vw, 2.25rem);
  font-weight: 300;
  color: var(--warm-white);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  overflow: hidden;
  display: flex;
  gap: 0;
}

.preloader-brand .char {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}

.preloader-bar {
  width: 0;
  height: 1px;
  background: var(--gold);
  margin-top: 2rem;
}

.preloader-sub {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-top: 1.25rem;
  opacity: 0;
}

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 500;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 3rem;
  transition: background 0.4s ease,
              box-shadow 0.4s ease,
              height 0.4s ease;
}

.nav.nav--light {
  /* transparent over dark hero */
}

.nav.nav--scrolled {
  background: rgba(247, 243, 236, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
  height: 68px;
}

.nav-inner {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  line-height: 1;
}

.nav-logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}

.nav-logo-mark img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  /* White on dark hero background */
  filter: brightness(0) invert(1);
  transition: filter 0.35s ease;
}

/* Dark mark on scrolled light navbar */
.nav--scrolled .nav-logo-mark img {
  filter: none;
}

.nav-logo:hover .nav-logo-mark {
  transform: scale(1.08);
}

/* Footer logo mark */
.footer-logo-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-mark img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  /* Gold tint on dark footer */
  filter: brightness(0) sepia(1) saturate(3) hue-rotate(5deg) brightness(1.1);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.nav-logo-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-white);
  line-height: 1;
  transition: color 0.35s ease;
}

.nav--scrolled .nav-logo-name {
  color: var(--text-dark);
}

.nav-logo-sub {
  font-family: var(--font-sans);
  font-size: 0.55rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, 0.5);
  transition: color 0.35s ease;
  white-space: nowrap;
  line-height: 1;
}

.nav--scrolled .nav-logo-sub {
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.75rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: rgba(247, 243, 236, 0.82);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.nav--scrolled .nav-links a {
  color: var(--text-dark);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-smooth);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--black) !important;
  background: var(--gold);
  padding: 0.65rem 1.625rem;
  border-radius: 2px;
  transition: background 0.3s ease, transform 0.2s ease !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  background: var(--gold-dark) !important;
  color: var(--warm-white) !important;
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--warm-white);
  transition: all 0.3s ease;
}

.nav--scrolled .nav-toggle span {
  background: var(--text-dark);
}

/* === PAGE HEADER (for inner pages) === */
.page-hero {
  height: 60vh;
  min-height: 420px;
  background: var(--black);
  display: flex;
  align-items: flex-end;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 60%, rgba(201, 169, 110, 0.07) 0%, transparent 55%);
}

.page-hero-content {
  position: relative;
  z-index: 10;
  padding: 0 3rem;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.page-hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: pageReveal 0.9s var(--ease-out) 0.3s forwards;
}

.page-hero-eyebrow::before {
  content: '';
  width: 36px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 300;
  color: var(--warm-white);
  line-height: 1.0;
  letter-spacing: -0.02em;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  animation: pageReveal 1s var(--ease-out) 0.5s forwards;
}

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

@keyframes pageReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* === SECTION UTILITIES === */
.section {
  padding: 9rem 0;
}

.section--dark {
  background: var(--black);
}

.section--cream {
  background: var(--cream);
}

.section--white {
  background: var(--warm-white);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.section-label::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.section-heading {
  font-family: var(--font-serif);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.section-heading em {
  font-style: italic;
  color: var(--gold-dark);
}

.section-heading--light {
  color: var(--warm-white);
}

.section-heading--light em {
  color: var(--gold-light);
}

.section-body {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.78;
}

.section-body--light {
  color: rgba(247, 243, 236, 0.55);
}

/* === LINK ARROW === */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(17,17,17,0.25);
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease, gap 0.3s ease;
}

.link-arrow:hover {
  color: var(--gold-dark);
  border-color: var(--gold-dark);
  gap: 1rem;
}

.link-arrow--light {
  color: var(--warm-white);
  border-color: rgba(247, 243, 236, 0.3);
}

.link-arrow--light:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  padding: 1.1rem 2.75rem;
  border-radius: 2px;
  transition: all 0.3s ease;
  
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--black);
  color: var(--warm-white);
}

.btn-primary:hover {
  background: var(--gold-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(154, 122, 74, 0.25);
}

.btn-gold {
  background: var(--gold);
  color: var(--black);
}

.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--warm-white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--warm-white);
  border: 1px solid rgba(247, 243, 236, 0.3);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

/* === MARQUEE === */
.marquee-strip {
  background: var(--gold);
  padding: 1.1rem 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marqueeRun 35s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
}

.marquee-item span {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--black);
  letter-spacing: 0.03em;
}

.marquee-item .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--black);
  opacity: 0.4;
  flex-shrink: 0;
}

@keyframes marqueeRun {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* === FOOTER === */
.footer {
  background: var(--black);
  padding: 5rem 3rem 3rem;
  color: var(--warm-white);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.footer-brand-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-white);
}

.footer-brand-desc {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.38);
  line-height: 1.72;
  max-width: 270px;
  margin-bottom: 2rem;
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.75rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-links a {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255,255,255,0.48);
  text-decoration: none;
  transition: color 0.3s ease;
  letter-spacing: 0.01em;
}

.footer-links a:hover { color: var(--gold); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.02em;
}

.footer-socials {
  display: flex;
  gap: 1.75rem;
}

.footer-socials a {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255,255,255,0.3);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color 0.3s ease;
}

.footer-socials a:hover { color: var(--gold); }

/* === SCROLL REVEAL ANIMATIONS === */
.anim-up {
  opacity: 0;
  transform: translateY(55px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.anim-up.in-view { opacity: 1; transform: translateY(0); }

.anim-fade {
  opacity: 0;
  transition: opacity 1.1s ease;
}

.anim-fade.in-view { opacity: 1; }

.anim-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.anim-left.in-view { opacity: 1; transform: translateX(0); }

/* Stagger */
[data-delay="1"] { transition-delay: 0.1s !important; }
[data-delay="2"] { transition-delay: 0.2s !important; }
[data-delay="3"] { transition-delay: 0.3s !important; }
[data-delay="4"] { transition-delay: 0.4s !important; }
[data-delay="5"] { transition-delay: 0.5s !important; }
[data-delay="6"] { transition-delay: 0.6s !important; }
[data-delay="7"] { transition-delay: 0.7s !important; }
[data-delay="8"] { transition-delay: 0.8s !important; }

/* === RESPONSIVE === */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  .nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .container { padding: 0 1.5rem; }
  .section { padding: 6rem 0; }
  .page-hero { height: 50vh; }
  .page-hero-content { padding: 0 1.5rem; }
  .footer { padding: 4rem 1.5rem 2.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

@media (max-width: 480px) {
  :root { --nav-height: 64px; }
}
