/* ========================================
   MG HOME DECOR — Light Minimal
   Inspired by Studio DADO aesthetic
   ======================================== */

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

:root {
  --color-bg: #f6f4f0;
  --color-surface: #edeae4;
  --color-border: #d8d3cb;
  --color-text: #2a2a2a;
  --color-text-light: #6b6560;
  --color-text-muted: #9a9490;
  --color-accent: #2a2a2a;
  --color-white: #ffffff;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.8;
  overflow-x: hidden;
}

a {
  color: var(--color-text);
  text-decoration: none;
  transition: opacity 0.3s var(--ease);
}

a:hover {
  opacity: 0.6;
}

em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
}

::selection {
  background: var(--color-text);
  color: var(--color-bg);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 4rem;
  transition: all 0.4s var(--ease);
}

.nav.is-scrolled {
  background: rgba(246, 244, 240, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1.2rem 4rem;
  border-bottom: 1px solid var(--color-border);
}

.nav.menu-open {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo:hover {
  opacity: 1;
}

.nav__logo-img {
  height: 80px;
  width: auto;
  transition: height 0.4s var(--ease);
}

.nav.is-scrolled .nav__logo-img {
  height: 52px;
}

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

.nav__links a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.nav__links a:hover {
  opacity: 1;
  color: var(--color-text);
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__lang {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav__lang-link {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  transition: color 0.3s var(--ease);
}

.nav__lang-link.is-active {
  color: var(--color-text);
}

.nav__lang-link:hover {
  opacity: 1;
  color: var(--color-text);
}

.nav__lang-sep {
  font-size: 0.7rem;
  color: var(--color-border);
}

.nav__toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 101;
}

.nav__toggle-text {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.nav__toggle-lines {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.nav__toggle-lines span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-text);
  transition: all 0.3s var(--ease);
}

.nav__toggle.is-open .nav__toggle-lines span:first-child {
  transform: rotate(45deg) translate(2px, 2px);
}

.nav__toggle.is-open .nav__toggle-lines span:last-child {
  transform: rotate(-45deg) translate(2px, -2px);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem 4rem;
}

.hero__content {
  text-align: center;
  max-width: 800px;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 1.0;
  color: var(--color-text);
  margin-bottom: 2.5rem;
}

.hero__line {
  display: block;
}

/* --- Hero Animation --- */
.hero__word {
  display: inline-block;
  opacity: 0;
  filter: blur(12px);
  transform: scale(0.95);
  animation: heroWordReveal 1.2s var(--ease-out) forwards;
}

.hero__line:nth-child(1) .hero__word:nth-child(1) { animation-delay: 0.2s; }
.hero__line:nth-child(1) .hero__word:nth-child(2) { animation-delay: 0.4s; }
.hero__line:nth-child(1) .hero__word:nth-child(3) { animation-delay: 0.5s; }
.hero__line:nth-child(2) .hero__word:nth-child(1) { animation-delay: 0.6s; }
.hero__line:nth-child(2) .hero__word:nth-child(2) { animation-delay: 0.7s; }
.hero__line:nth-child(2) .hero__word:nth-child(3) { animation-delay: 0.8s; }
.hero__line:nth-child(2) .hero__word:nth-child(4) { animation-delay: 0.9s; }

@keyframes heroWordReveal {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    filter: blur(0px);
    transform: scale(1);
  }
}

.hero-animate--fade {
  opacity: 0;
  animation: heroFadeIn 1.2s var(--ease-out) forwards;
}

.hero__divider.hero-animate--fade { animation-delay: 1s; }
.hero__sub.hero-animate--fade { animation-delay: 1.2s; }

.hero__divider {
  width: 60px;
  height: 1px;
  background: var(--color-text);
  margin: 0 auto 2.5rem;
}

.hero__sub {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-text-light);
  line-height: 2;
  letter-spacing: 0.02em;
}

.hero__scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--color-text-muted), transparent);
  animation: scrollPulse 2.5s ease-in-out infinite;
}

@keyframes heroFadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.2; transform: scaleY(0.4); transform-origin: top; }
  50% { opacity: 0.8; transform: scaleY(1); transform-origin: top; }
}

/* --- Section Layout --- */
.section {
  padding: 7rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section__intro {
  margin-bottom: 4rem;
}

.section__label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.3;
  color: var(--color-text);
}

.section__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}

.section__split-left p,
.section__split-right p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

/* --- Philosophy Statement --- */
.philosophy__statement {
  margin-top: 5rem;
}

.philosophy__statement p {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* --- Divider --- */
.divider {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4rem;
  height: 1px;
  position: relative;
}

.divider::after {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-border);
}

/* --- Services --- */
.services__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}

.service {
  display: flex;
  flex-direction: column;
}

.service__img-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.service__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.service:hover .service__img {
  transform: scale(1.03);
}

.service__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.service__title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-text);
}

.service__text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.9;
  margin-top: 0.4rem;
}

/* --- Art Section --- */
.art__statement {
  margin-bottom: 4rem;
  max-width: 800px;
}

.art__quote {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--color-text);
}

/* --- Contact --- */
.contact__hero {
  margin-bottom: 4rem;
  text-align: center;
}

.contact__hero .section__title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact__detail-label {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 0.4rem;
}

.contact__detail p {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.contact__detail a {
  color: var(--color-text-light);
}

.contact__detail a:hover {
  opacity: 0.6;
}

.contact__sep {
  margin: 0 0.4rem;
  color: var(--color-text-muted);
}

/* --- Form --- */
.form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form__group {
  position: relative;
}

.form__group input,
.form__group textarea {
  width: 100%;
  padding: 0.9rem 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  outline: none;
  transition: border-color 0.3s var(--ease);
}

.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--color-text);
}

.form__group label {
  position: absolute;
  top: 0.9rem;
  left: 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  pointer-events: none;
  transition: all 0.3s var(--ease);
}

.form__group input:focus + label,
.form__group input:not(:placeholder-shown) + label,
.form__group textarea:focus + label,
.form__group textarea:not(:placeholder-shown) + label {
  top: -0.7rem;
  font-size: 0.65rem;
  color: var(--color-text-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.form__group select {
  width: 100%;
  padding: 0.9rem 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--color-text-muted);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  transition: border-color 0.3s var(--ease);
}

.form__group select:focus {
  border-color: var(--color-text);
}

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

.form__group textarea {
  resize: vertical;
  min-height: 100px;
}

/* --- Button --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  background: transparent;
  padding: 1rem 2.5rem;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  margin-top: 0.5rem;
  align-self: flex-start;
}

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

.btn--sm {
  padding: 0.8rem 2rem;
  font-size: 0.65rem;
  margin-top: 0;
}

/* --- Newsletter --- */
.newsletter {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 4rem;
  border-top: 1px solid var(--color-border);
}

.newsletter__inner {
  max-width: 550px;
  margin: 0 auto;
  text-align: center;
}

.newsletter__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--color-text);
  margin-bottom: 0.8rem;
}

.newsletter__text {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.newsletter__input-wrap {
  display: flex;
  gap: 0;
  justify-content: center;
}

.newsletter__input-wrap input {
  padding: 0.8rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-right: none;
  outline: none;
  width: 280px;
  transition: border-color 0.3s var(--ease);
}

.newsletter__input-wrap input:focus {
  border-color: var(--color-text);
}

.newsletter__input-wrap input::placeholder {
  color: var(--color-text-muted);
}

.newsletter__input-wrap .btn--sm {
  border-left: none;
}

/* --- Floating CTA --- */
.floating-cta {
  position: fixed;
  bottom: 2.5rem;
  right: 2.5rem;
  z-index: 90;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  background: linear-gradient(
    135deg,
    rgba(80, 75, 70, 0.55) 0%,
    rgba(60, 56, 52, 0.45) 40%,
    rgba(90, 85, 78, 0.5) 70%,
    rgba(70, 66, 60, 0.5) 100%
  );
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  padding: 1.1rem 2.4rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.1),
    0 1px 3px rgba(0, 0, 0, 0.06),
    inset 0 1px 1px rgba(255, 255, 255, 0.15),
    inset 0 -1px 1px rgba(255, 255, 255, 0.05);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s var(--ease);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.floating-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.floating-cta:hover {
  opacity: 1;
  color: rgba(255, 255, 255, 1);
  background: linear-gradient(
    135deg,
    rgba(70, 65, 60, 0.65) 0%,
    rgba(50, 46, 42, 0.55) 40%,
    rgba(80, 75, 68, 0.6) 70%,
    rgba(60, 56, 50, 0.6) 100%
  );
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.15),
    0 2px 6px rgba(0, 0, 0, 0.08),
    inset 0 1px 1px rgba(255, 255, 255, 0.2),
    inset 0 -1px 1px rgba(255, 255, 255, 0.08);
}

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--color-border);
  padding: 3rem 4rem;
  text-align: center;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer__logo-img {
  height: 120px;
  width: auto;
  display: block;
  margin: 0 auto 1rem;
}

.footer__tagline {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.footer__copy {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

/* --- Illustrations --- */
.section--illus {
  position: relative;
  overflow: visible;
}

.section__illus {
  position: absolute;
  width: 220px;
  height: auto;
  opacity: 0.13;
  pointer-events: none;
  user-select: none;
}

.section__illus--right {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.section__illus--left {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.section__illus--sm {
  width: 160px;
  top: 20%;
  right: 3rem;
}

.section__illus--top {
  top: -5%;
  transform: none;
}

@media (max-width: 768px) {
  .section__illus {
    width: 120px;
    opacity: 0.1;
  }
}

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

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

/* --- Form Success --- */
.form-success {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  text-align: center;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.newsletter-success {
  text-align: center;
  padding: 1rem 0;
}

.newsletter-success p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-text-light);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 1024px) {
  .section__split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .services__list {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .service__img-wrap {
    aspect-ratio: 4 / 3;
  }

  .service__img {
    object-fit: contain;
    object-position: center;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact__grid .form {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav {
    padding: 1.5rem 1.5rem;
  }

  .nav.is-scrolled {
    padding: 1rem 1.5rem;
  }

  .nav__links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(246, 244, 240, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
  }

  .nav__links.is-open {
    opacity: 1;
    pointer-events: all;
  }

  .nav__links a {
    font-size: 1rem;
    letter-spacing: 0.1em;
  }

  .nav__right {
    gap: 1rem;
  }

  .nav__lang {
    gap: 0.4rem;
  }

  .nav__logo-img {
    height: 56px;
  }

  .nav.is-scrolled .nav__logo-img {
    height: 40px;
  }

  .nav__toggle {
    display: flex;
  }

  .hero {
    padding: 2rem 1.5rem;
  }

  .section {
    padding: 4rem 1.5rem;
  }

  .divider {
    padding: 0 1.5rem;
  }

  .newsletter {
    padding: 4rem 1.5rem;
  }

  .footer {
    padding: 2.5rem 1.5rem;
  }

  .newsletter__input-wrap {
    flex-direction: column;
    gap: 0;
  }

  .newsletter__input-wrap input {
    width: 100%;
    border-right: 1px solid var(--color-border);
    border-bottom: none;
  }

  .newsletter__input-wrap .btn--sm {
    border-left: 1px solid var(--color-text);
    width: 100%;
  }

  .floating-cta {
    right: auto;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    bottom: 2rem;
  }

  .floating-cta.is-visible {
    transform: translateX(-50%) translateY(0);
  }

  .floating-cta:hover {
    transform: translateX(-50%) translateY(-2px);
  }
}
