/* ============================================================
   DAMASK INTERIORS — Styles
   Split-screen scroll animation + luxury aesthetic
   ============================================================ */

:root {
  --color-dark: #1a1714;
  --color-panel-left: #1e1b17;
  --color-panel-right: #17140f;
  --color-cream: #f5f0e8;
  --color-gold: #c4a87c;
  --color-gold-light: #d4c5a9;
  --color-text: #2c2622;
  --color-text-muted: #8a7e74;
  --color-bg: #faf7f2;
  --color-bg-alt: #f0ebe3;
  --color-accent: #9c7c62;
  --color-border: #e0d8cd;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}


/* ============================================================
   HERO — Split-screen scroll animation
   ============================================================ */

.hero-scroll-container {
  position: relative;
  height: 180vh;
}

.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  z-index: 100;
}

/* Reveal layer (behind panels) */
.hero-reveal {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-reveal-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-reveal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 14, 0.55);
}

.hero-reveal-content {
  position: relative;
  z-index: 2;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-reveal-content.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-tagline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--color-gold-light);
  letter-spacing: 0.15em;
  line-height: 1.3;
}

.reveal-tagline--second {
  font-style: italic;
  font-weight: 300;
  color: var(--color-gold);
  letter-spacing: 0.08em;
}

/* Panels */
.panel {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  z-index: 10;
  overflow: hidden;
  will-change: transform;
}

.panel-left {
  left: 0;
  background: var(--color-dark);
}

.panel-right {
  right: 0;
  background: var(--color-dark);
}

.panel-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  filter: blur(10px) brightness(0.4);
  transform: scale(1.05);
  pointer-events: none;
}

.panel-right .panel-blur {
  left: -100%;
}

.panel-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  z-index: 1;
}

.panel-right .panel-bg {
  left: -100%;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: scrollIndicatorIn 1s ease 1.5s forwards;
}

.scroll-indicator-text {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.scroll-indicator-line {
  width: 1px;
  height: 40px;
  background: var(--color-gold);
  opacity: 0.5;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollIndicatorIn {
  to { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(0.5); opacity: 0.2; }
}


/* ============================================================
   NAVIGATION
   ============================================================ */

.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.6s var(--ease-out-expo), opacity 0.6s ease;
}

.main-nav.visible {
  transform: translateY(0);
  opacity: 1;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 60px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width 0.3s var(--ease-out-quart);
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--color-text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}


/* ============================================================
   SECTIONS — General
   ============================================================ */

.section {
  padding: 8rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.pre-title {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.25rem;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--color-text);
  letter-spacing: 0.04em;
  line-height: 1.2;
}


/* ============================================================
   INTRO STATEMENT
   ============================================================ */

.section-intro {
  padding: 7rem 0;
  background: var(--color-bg);
}

.intro-statement {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro-statement p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--color-text);
  letter-spacing: 0.01em;
}


/* ============================================================
   THE PROCESS
   ============================================================ */

.section-process {
  position: relative;
  background: var(--color-dark);
  overflow: hidden;
}

.process-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.process-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 14, 0.7);
}

.section-process .container {
  position: relative;
  z-index: 1;
}

.section-process .section-header h2 {
  color: #fff;
}

.section-process .pre-title {
  color: #fff;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.process-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.4s var(--ease-out-quart), background 0.4s ease;
}

.process-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.12);
}

.card-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 1.5rem;
}

.process-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}

.card-line {
  width: 40px;
  height: 1px;
  background: var(--color-gold);
  margin-bottom: 1.25rem;
}

.process-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
}


/* ============================================================
   THE STUDIO
   ============================================================ */

.section-studio {
  background: var(--color-bg);
}

.studio-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.studio-image {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

img.studio-image-inner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.studio-image::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid var(--color-border);
  pointer-events: none;
}

.studio-content-col .pre-title {
  display: block;
}

.studio-content-col h2 {
  margin-bottom: 2rem;
}

.studio-content-col p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.studio-closing {
  font-family: var(--font-display);
  font-size: 1.15rem !important;
  font-style: italic;
  color: var(--color-text) !important;
  margin-top: 1rem;
}


/* ============================================================
   CONTACT
   ============================================================ */

.section-contact {
  position: relative;
  background: var(--color-dark);
  text-align: center;
  padding: 10rem 0;
  overflow: hidden;
}

.contact-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 17, 14, 0.7);
}

.section-contact .container {
  position: relative;
  z-index: 1;
}

.contact-inner .pre-title {
  color: #fff;
}

.section-contact h2 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.contact-text {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.cta-button {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  padding: 1rem 2.5rem;
  background: transparent;
  cursor: pointer;
  transition: background 0.4s ease, color 0.4s ease;
}

.cta-button:hover {
  background: var(--color-gold);
  color: var(--color-dark);
}

.cta-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Contact Form */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group--full {
  margin-bottom: 1.5rem;
}

.contact-form label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.5rem;
}

.contact-form .required {
  color: var(--color-gold);
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--color-cream);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.85rem 1rem;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.09);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.form-footer {
  text-align: center;
  margin-top: 0.5rem;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.85rem;
  min-height: 1.5em;
}

.form-status.success {
  color: #8aba80;
}

.form-status.error {
  color: #d4836a;
}


/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--color-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.footer-logo-img {
  height: 100px;
  width: auto;
}

.footer-location {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-gold);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-instagram {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  transition: color 0.3s ease;
}

.footer-instagram:hover {
  color: var(--color-gold);
}

.footer-instagram svg {
  flex-shrink: 0;
}

.footer-instagram span {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
}


/* ============================================================
   FADE-IN ANIMATIONS
   ============================================================ */

.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo),
              transform 0.8s var(--ease-out-expo);
}

.fade-in.in-view {
  opacity: 1;
  transform: translateY(0);
}

.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 968px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .studio-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .studio-image {
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 5rem 0;
  }

  .section-contact {
    padding: 6rem 0;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 0;
    background: rgba(250, 247, 242, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out-quart);
  }

  .nav-links.open {
    max-height: 300px;
  }

  .nav-links a {
    padding: 1rem;
    width: 100%;
    text-align: center;
  }

  .process-card {
    padding: 2rem;
  }

  .main-nav {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .reveal-tagline {
    font-size: clamp(1.5rem, 7vw, 2.5rem);
    letter-spacing: 0.08em;
  }
}
