/* ============================================================================
   Sorga Furniture Studio — editorial dark theme
   Near-black warm palette · Outfit (Fontshare) throughout · rust accent.
   Two-tone headlines, alternating feature layout.
   Outfit is used for the entire page; Amharic falls back to Noto Sans Ethiopic.
   ============================================================================ */

:root {
  color-scheme: dark;
  --bg: #100D0C;
  --bg-2: #181413;
  --bg-3: #211B19;
  --text: #F3EFE8;
  --muted: rgba(243, 239, 232, 0.56);
  --rust: #C15B33;
  --rust-bright: #D66E42;
  --hairline: rgba(243, 239, 232, 0.13);
  --shadow: 0 50px 120px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

/* ---------------------------------------------------------------------------
   Typography primitives
   --------------------------------------------------------------------------- */
.display {
  font-family: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}

.accent {
  /* Rust-coloured second word of the two-tone headlines, in the same Outfit
     as the rest of the page. */
  color: var(--rust);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.72rem;
  color: var(--rust);
  margin: 0 0 1.4rem;
}

.lede {
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.05rem;
}

.lede.italic {
  font-style: normal;
}

.ordinal {
  font-family: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  color: var(--muted);
}

/* Ethiopic script lacks serif glyphs — fall back cleanly for Amharic */
.lang-ethiopic {
  font-family: 'Noto Sans Ethiopic', 'DM Sans', sans-serif;
}

.lang-ethiopic .display,
.lang-ethiopic .brand,
.lang-ethiopic .footer-brand {
  font-family: 'Noto Sans Ethiopic', Georgia, serif;
  font-weight: 700;
}

/* ---------------------------------------------------------------------------
   Top bar
   --------------------------------------------------------------------------- */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding: 1.3rem clamp(1.25rem, 3vw, 2.8rem);
  transition: background 0.35s ease, border-color 0.35s ease;
  background: transparent;
  border-bottom: 1px solid transparent;
  text-shadow: 0 1px 14px rgba(16, 13, 12, 0.5);
}

.topbar.solid {
  background: rgba(16, 13, 12, 0.8);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(20px) saturate(120%);
  text-shadow: none;
}

.brand,
.footer-brand {
  font-family: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.85rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--text);
}

.brand .dot,
.footer-brand .dot {
  color: var(--rust);
}

/* Header lockup: wordmark with a "Furniture Studio" line justified to its width */
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  line-height: 1;
}

.brand-name {
  font-size: 2.7rem;
}

.brand-tag {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  /* Brighter than --muted so it reads over the hero image, but still clearly
     secondary to the wordmark (smaller, lighter weight than "Sorga.") */
  color: rgba(243, 239, 232, 0.86);
  /* Spread the line to fill the wordmark's width so the two align */
  text-align: justify;
  text-align-last: justify;
}

.nav-links {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.82;
  transition: opacity 0.25s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.22rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(243, 239, 232, 0.04);
  backdrop-filter: blur(8px);
}

.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  background: var(--text);
  color: var(--bg);
  font-weight: 700;
}

.commission {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.25s ease;
}

.commission .arrow {
  transition: transform 0.25s ease;
}

.commission:hover {
  color: var(--rust-bright);
}

.commission:hover .arrow {
  transform: translateX(4px);
}

/* ---------------------------------------------------------------------------
   Arrow link (editorial CTA)
   --------------------------------------------------------------------------- */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--hairline);
  transition: color 0.25s ease, border-color 0.25s ease;
}

.link-arrow .arrow {
  color: var(--rust);
  transition: transform 0.25s ease;
}

.link-arrow:hover {
  color: var(--rust-bright);
  border-color: var(--rust);
}

.link-arrow:hover .arrow {
  transform: translateX(5px);
}

/* ---------------------------------------------------------------------------
   Hero (full-bleed)
   --------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.panel-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Exactly the page background so feathered photo edges blend seamlessly */
  background: var(--bg);
}

.panel-media svg {
  width: auto;
  height: clamp(46%, 56vh, 64%);
  opacity: 0.9;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}

.hero-photo,
.product-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.8s ease;
  /* Feather every edge fully to transparent so the studio photo melts into the
     page with no hard edge. closest-side guarantees alpha=0 at all four edges. */
  -webkit-mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 52%, transparent 99%);
  mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 52%, transparent 99%);
}

.hero-photo.is-loaded,
.product-photo.is-loaded {
  opacity: 1;
}

/* Hero is a full interior scene (portrait). Size the element to the image
   itself (height-driven, auto width) and centre it, so the feather mask fades
   the image's own edges — sides included — into the dark page. */
.hero-photo {
  inset: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.panel-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(16, 13, 12, 0.7) 0%, rgba(16, 13, 12, 0.15) 14%, transparent 32%),
    linear-gradient(0deg, rgba(16, 13, 12, 0.95) 0%, rgba(16, 13, 12, 0.5) 36%, transparent 66%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 6rem) clamp(4.5rem, 11vh, 9rem);
}

.hero-title {
  font-size: clamp(1.9rem, 4.2vw, 4rem);
  max-width: 18ch;
  margin-bottom: 1.4rem;
}

.hero-title span {
  display: inline;
}

.hero-inner .lede {
  max-width: 36rem;
  margin: 0 0 2.4rem;
}

.scroll-cue {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.scroll-arrow {
  font-size: 1.1rem;
  animation: bob 1.9s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* ---------------------------------------------------------------------------
   Feature (product) sections — alternating editorial layout
   --------------------------------------------------------------------------- */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
  min-height: 88vh;
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(4rem, 9vh, 7rem) clamp(1.5rem, 5vw, 6rem);
}

.feature.reverse .feature-media {
  order: 2;
}

.feature-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Exactly the page background so feathered photo edges blend seamlessly */
  background: var(--bg);
  border: none;
}

.feature-media .product-svg {
  width: 78%;
  height: auto;
  position: relative;
  z-index: 0;
}

.feature-media .ordinal {
  position: absolute;
  top: 1.5rem;
  left: 1.6rem;
  z-index: 3;
  color: rgba(243, 239, 232, 0.85);
}

.feature-title {
  font-size: clamp(3rem, 7vw, 7rem);
  margin-bottom: 1.6rem;
}

.feature-title span {
  display: block;
}

.feature-copy .lede {
  max-width: 30rem;
  margin: 0 0 2.4rem;
}

/* ---------------------------------------------------------------------------
   Marquee
   --------------------------------------------------------------------------- */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
}

.marquee {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding: 1.4rem 0;
  font-family: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  font-style: normal;
  font-size: 1.3rem;
  color: var(--muted);
  animation: marquee 26s linear infinite;
  white-space: nowrap;
}

.marquee .sep {
  color: var(--rust);
  font-style: normal;
}

.marquee span {
  white-space: nowrap;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------------------------------------------------------------------------
   Why — editorial numbered rows
   --------------------------------------------------------------------------- */
.why {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(5rem, 12vh, 9rem) clamp(1.5rem, 5vw, 6rem);
}

.section-header {
  max-width: 40ch;
  margin-bottom: 3.5rem;
}

.section-header .display,
.customise-copy .display,
.inquiry-copy .display {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  margin: 0.4rem 0 0;
}

.why-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 1.5rem;
  padding: 2.4rem 0;
  border-top: 1px solid var(--hairline);
}

.why-row:last-child {
  border-bottom: 1px solid var(--hairline);
}

.why-row .ordinal {
  padding-top: 0.4rem;
  color: var(--rust);
}

.why-body h3 {
  font-family: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  margin: 0 0 0.8rem;
  line-height: 1.15;
}

.why-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
  max-width: 52ch;
}

/* ---------------------------------------------------------------------------
   Customise
   --------------------------------------------------------------------------- */
.customise {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 8rem) clamp(1.5rem, 5vw, 6rem);
}

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2.4rem;
}

.option-card {
  padding: 1.7rem;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--rust);
}

.option-card h4 {
  margin: 0 0 0.6rem;
  font-family: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
}

.option-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

.customise-art {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 560px;
  /* Exactly the page background so the feathered photo edges blend seamlessly */
  background: var(--bg);
}

.customise-photo {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  /* Feather every edge into the dark page, matching the hero/product photos */
  -webkit-mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 55%, transparent 99%);
  mask-image: radial-gradient(ellipse closest-side at 50% 50%, #000 55%, transparent 99%);
}

/* ---------------------------------------------------------------------------
   Inquiry / form
   --------------------------------------------------------------------------- */
.inquiry {
  max-width: 60rem;
  margin: 0 auto;
  padding: clamp(4rem, 10vh, 8rem) clamp(1.5rem, 5vw, 6rem) clamp(5rem, 12vh, 9rem);
}

.inquiry-copy {
  max-width: 42rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.inquiry-copy p:last-child {
  color: var(--muted);
  line-height: 1.85;
  margin: 1.2rem auto 0;
}

.inquiry-form {
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: clamp(1.6rem, 4vw, 3rem);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}

label {
  display: grid;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--muted);
}

label span {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 0.72rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--hairline);
  background: rgba(243, 239, 232, 0.03);
  color: var(--text);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  font: inherit;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

input::placeholder,
textarea::placeholder {
  color: rgba(243, 239, 232, 0.34);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--rust);
  background: rgba(243, 239, 232, 0.06);
}

select option {
  background: var(--bg-2);
  color: var(--text);
}

.full-width {
  grid-column: 1 / -1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.4rem;
  padding: 0 2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  transition: transform 0.25s ease, background 0.25s ease;
}

.button.submit-button {
  width: 100%;
  margin-top: 0.4rem;
  background: var(--rust);
  color: #1a120d;
}

.button.submit-button:hover {
  transform: translateY(-2px);
  background: var(--rust-bright);
}

.thank-you {
  margin: 1.4rem 0 0;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.35s ease, transform 0.35s ease;
  color: var(--rust-bright);
  font-weight: 500;
  text-align: center;
}

.thank-you.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding: 2.4rem clamp(1.5rem, 5vw, 6rem);
  border-top: 1px solid var(--hairline);
  background: var(--bg-2);
}

.footer-copy {
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  flex: 1 1 240px;
}

.footer-nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.82;
  transition: opacity 0.25s ease;
}

.footer-nav a:hover {
  opacity: 1;
}

/* ---------------------------------------------------------------------------
   Reveal animation
   --------------------------------------------------------------------------- */
.section-anim {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.section-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero.section-anim {
  transform: none;
}

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .feature {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: auto;
  }

  .feature.reverse .feature-media {
    order: 0;
  }

  .feature-media {
    aspect-ratio: 3 / 2;
  }

  .customise {
    grid-template-columns: 1fr;
  }

  .customise-art {
    order: -1;
    min-height: 320px;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 1rem 1.25rem;
  }

  .nav-links {
    display: none;
  }

  .commission {
    display: none;
  }

  .why-row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-arrow,
  .marquee {
    animation: none;
  }

  .section-anim {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------------------------------------------------------------------------
   Floating WhatsApp chat button
   --------------------------------------------------------------------------- */
.wa-float {
  position: fixed;
  right: clamp(1rem, 3vw, 2.2rem);
  bottom: clamp(1rem, 3vw, 2.2rem);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.3rem 0.5rem 0.5rem;
  background: rgba(16, 13, 12, 0.66);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  border: 1px solid rgba(243, 239, 232, 0.12);
  color: var(--cream, #f3efe8);
  border-radius: 999px;
  text-decoration: none;
  font-family: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease,
    border-color 0.3s ease, background 0.3s ease;
  animation: wa-bob 4.5s ease-in-out infinite;
}

.wa-float:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 211, 102, 0.5);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(37, 211, 102, 0.2);
}

/* Circular icon disc with a glossy WhatsApp-green gradient */
.wa-badge {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 30% 25%, #4aee78 0%, #25d366 45%, #128c4a 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.45),
    inset 0 -3px 6px rgba(0, 0, 0, 0.25), 0 4px 12px rgba(18, 140, 74, 0.4);
}

.wa-icon {
  position: relative;
  z-index: 2;
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wa-float:hover .wa-icon {
  transform: rotate(-8deg) scale(1.08);
}

/* Expanding halo rings that ripple outward from the disc */
.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: 1;
  animation: wa-pulse 2.6s ease-out infinite;
}

.wa-pulse--2 {
  animation-delay: 1.3s;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  70% {
    opacity: 0;
  }
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

@keyframes wa-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

@media (max-width: 600px) {
  /* Icon-only on small screens */
  .wa-float {
    padding: 0.4rem;
    gap: 0;
  }
  .wa-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float,
  .wa-icon {
    transition: none;
    animation: none;
  }
  .wa-pulse {
    animation: none;
    opacity: 0;
  }
}
