/* ═══════════════════════════════════════════
   LO's Inspired Design — Design Tokens
   Warm, luxury interior design aesthetic
   ═══════════════════════════════════════════ */

:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing (4px base) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transition */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Switzer', 'Helvetica Neue', sans-serif;
}

/* ── Light Mode (default) ── */
:root, [data-theme="light"] {
  --color-bg:             #FAF8F5;
  --color-surface:        #F5F0EA;
  --color-surface-2:      #EDE7DF;
  --color-surface-offset: #E8E0D6;
  --color-divider:        #D5CCC1;
  --color-border:         #C9BFB2;
  --color-text:           #2C261E;
  --color-text-muted:     #7A7068;
  --color-text-faint:     #B5ADA5;
  --color-text-inverse:   #FAF8F5;
  --color-primary:        #8B7355;
  --color-primary-hover:  #6E5A42;
  --color-primary-active: #544433;
  --shadow-sm: 0 1px 2px oklch(0.2 0.01 60 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 60 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 60 / 0.12);
}

/* ── Dark Mode ── */
[data-theme="dark"] {
  --color-bg:             #1A1714;
  --color-surface:        #231F1B;
  --color-surface-2:      #2A2520;
  --color-surface-offset: #302A24;
  --color-divider:        #3A3329;
  --color-border:         #4A4237;
  --color-text:           #E5DDD5;
  --color-text-muted:     #9B9189;
  --color-text-faint:     #665D55;
  --color-text-inverse:   #1A1714;
  --color-primary:        #C4A882;
  --color-primary-hover:  #D4BC9A;
  --color-primary-active: #B09670;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #1A1714;
    --color-surface:        #231F1B;
    --color-surface-2:      #2A2520;
    --color-surface-offset: #302A24;
    --color-divider:        #3A3329;
    --color-border:         #4A4237;
    --color-text:           #E5DDD5;
    --color-text-muted:     #9B9189;
    --color-text-faint:     #665D55;
    --color-text-inverse:   #1A1714;
    --color-primary:        #C4A882;
    --color-primary-hover:  #D4BC9A;
    --color-primary-active: #B09670;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  }
}

/* ═══════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════ */

/* ── Header ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-5) var(--space-8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text-muted);
  border-radius: var(--radius-full);
  transition: color var(--transition-interactive);
}

.theme-toggle:hover {
  color: var(--color-text);
}

/* Mobile nav */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: var(--space-2);
}

.mobile-toggle span {
  display: block;
  height: 1.5px;
  background: var(--color-text);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    oklch(from var(--color-bg) l c h / 0.3) 0%,
    oklch(from var(--color-bg) l c h / 0.6) 50%,
    oklch(from var(--color-bg) l c h / 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-8);
  max-width: 900px;
}

.hero-content .eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  display: block;
}

.hero-content h1 {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-6);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.hero-content p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto var(--space-10);
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
  padding: var(--space-4) var(--space-8);
  border: 1px solid var(--color-primary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.hero-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

/* ── Section Basics ── */
.section {
  padding: clamp(var(--space-16), 8vw, var(--space-32)) var(--space-8);
}

.section-container {
  max-width: var(--content-wide);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(var(--space-12), 5vw, var(--space-20));
}

.section-header .eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  display: block;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Portfolio Grid ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.portfolio-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  cursor: pointer;
  group: true;
}

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

.portfolio-card:hover img {
  transform: scale(1.05);
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 40%,
    oklch(0.1 0 0 / 0.7) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-card:hover .portfolio-card-overlay {
  opacity: 1;
}

.portfolio-card-overlay h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: #fff;
  margin-bottom: var(--space-1);
}

.portfolio-card-overlay p {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
}

/* Featured large card */
.portfolio-card.featured {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

/* ── About Section ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-12), 5vw, var(--space-20));
  align-items: center;
}

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content .eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  display: block;
}

.about-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-6);
}

.about-content p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.7;
}

.about-content .stat-row {
  display: flex;
  gap: var(--space-10);
  margin-top: var(--space-8);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-divider);
}

.stat-item .stat-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  display: block;
}

.stat-item .stat-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Styles Showcase (Detail Cards) ── */
.styles-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-12), 5vw, var(--space-20));
  align-items: center;
}

.styles-showcase.reverse {
  direction: rtl;
}

.styles-showcase.reverse > * {
  direction: ltr;
}

.showcase-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.showcase-content .eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
  display: block;
}

.showcase-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.showcase-content p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.showcase-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.showcase-tag {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

/* ── Process Section ── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.process-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-divider);
}

.process-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  display: block;
}

.process-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.process-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ── Testimonials Carousel ── */
.testimonial-section {
  background: var(--color-surface);
  text-align: center;
}

.testimonial-carousel {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
}

.testimonial-track {
  position: relative;
  min-height: 220px;
}

.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
  position: relative;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text);
  max-width: 700px;
  margin: 0 auto var(--space-6);
  line-height: 1.5;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.testimonial-author {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.04em;
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

.testimonial-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.testimonial-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-btn:hover {
  color: var(--color-text);
  border-color: var(--color-primary);
}

.testimonial-dots {
  display: flex;
  gap: var(--space-2);
}

.testimonial-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  border: none;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.testimonial-dot.active {
  background: var(--color-primary);
  width: 24px;
}

/* ── Contact / CTA ── */
.cta-section {
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.cta-section p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 500px;
  margin: 0 auto var(--space-8);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-inverse);
  background: var(--color-primary);
  text-decoration: none;
  padding: var(--space-4) var(--space-10);
  border: 1px solid var(--color-primary);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.social-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.social-links a:hover {
  color: var(--color-primary);
}

/* ── Footer ── */
.site-footer {
  padding: var(--space-8);
  text-align: center;
  border-top: 1px solid var(--color-divider);
}

.site-footer p,
.site-footer a {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--content-wide);
  margin: 0 auto;
}

/* ── Divider ── */
.divider {
  width: 48px;
  height: 1px;
  background: var(--color-primary);
  margin: 0 auto var(--space-6);
}

/* ── Lightbox ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: oklch(from var(--color-bg) l c h / 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-lg);
  object-fit: contain;
}

.lightbox-info {
  text-align: center;
  margin-top: var(--space-4);
}

.lightbox-info h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.lightbox-info p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.lightbox-close {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  font-size: 24px;
  z-index: 10;
}

.lightbox-close:hover {
  color: var(--color-primary);
}

/* ═══════════════════════════════════════════
   SCROLL ANIMATIONS
   ═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio-card.featured {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16/9;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: var(--space-4) var(--space-5);
  }
  
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    z-index: 90;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: var(--text-lg);
  }

  .mobile-toggle {
    display: flex;
    z-index: 100;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .portfolio-card.featured {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }

  .about-grid,
  .styles-showcase {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .styles-showcase.reverse {
    direction: ltr;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  .hero-content h1 {
    font-size: var(--text-3xl);
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-2);
  }

  .portfolio-card-overlay {
    opacity: 1;
    background: linear-gradient(
      180deg,
      transparent 50%,
      oklch(0.1 0 0 / 0.6) 100%
    );
  }

  .about-content .stat-row {
    gap: var(--space-6);
  }

  .section {
    padding: clamp(var(--space-12), 6vw, var(--space-20)) var(--space-5);
  }

  .lightbox-close {
    top: var(--space-4);
    right: var(--space-4);
  }
}
