/* ===========================
   Mireille Nail Studio
   =========================== */

:root {
  --bg: #faf6f1;
  --bg-warm: #f3ebe1;
  --bg-blush: #f7e8e2;
  --rose: #c9847a;
  --rose-dark: #a16259;
  --mauve: #5a3a3a;
  --gold: #b8956a;
  --text: #3a2828;
  --text-mid: #6b5252;
  --text-soft: #9d8a82;
  --border: rgba(58, 40, 40, 0.1);
  --serif: 'Cormorant Garamond', 'Noto Serif TC', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Noto Sans TC', sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.italic { font-family: var(--serif); font-style: italic; font-weight: 500; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 40px;
  transition: all 0.4s var(--ease);
}
.nav.scrolled {
  background: rgba(250, 246, 241, 0.95);
  backdrop-filter: blur(20px);
  padding: 16px 40px;
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.logo {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  font-style: italic;
  color: var(--mauve);
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo span {
  font-family: var(--sans);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--rose);
  font-weight: 600;
  margin-top: 4px;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.nav-links a {
  color: var(--text);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--rose);
  transition: all 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; left: 0; }
.nav-cta {
  padding: 12px 26px;
  background: var(--rose);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 100px;
  transition: all 0.3s var(--ease);
}
.nav-cta:hover { background: var(--mauve); transform: translateY(-2px); }

/* ============ HERO ============ */
.hero {
  padding: 140px 40px 100px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-blush) 100%);
  overflow: hidden;
}
.hero-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: center;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--rose);
  font-weight: 600;
  margin-bottom: 28px;
  text-transform: uppercase;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(56px, 8vw, 120px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--mauve);
  margin-bottom: 32px;
}
.hero-title .italic { color: var(--rose); }
.hero-desc {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 40px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-mid);
}
.hero-trust strong { color: var(--mauve); font-size: 16px; }
.stars {
  display: flex;
  gap: 2px;
}
.stars svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

/* Hero collage */
.hero-images {
  position: relative;
  height: 580px;
}
.hero-img-1, .hero-img-2, .hero-img-3 {
  position: absolute;
  border-radius: 200px 200px 12px 12px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(90, 58, 58, 0.15);
}
.hero-img-1 {
  width: 60%;
  height: 75%;
  top: 0;
  left: 5%;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}
.hero-img-2 {
  width: 42%;
  height: 50%;
  top: 30%;
  right: 0;
  z-index: 3;
  border-radius: 200px 200px 12px 12px;
  animation: float 7s ease-in-out infinite 1s;
}
.hero-img-3 {
  width: 38%;
  height: 38%;
  bottom: 0;
  left: 0;
  z-index: 1;
  border-radius: 12px;
  animation: float 8s ease-in-out infinite 0.5s;
}
.hero-img-1 img, .hero-img-2 img, .hero-img-3 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-badge {
  position: absolute;
  bottom: 5%;
  right: 5%;
  width: 130px;
  height: 130px;
  z-index: 5;
  background: var(--mauve);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg);
  animation: spin 30s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.rotate-text {
  position: absolute;
  inset: 0;
}
.rotate-text svg {
  width: 100%;
  height: 100%;
}
.badge-mark {
  font-family: var(--serif);
  font-size: 56px;
  font-style: italic;
  font-weight: 500;
  animation: spin 30s linear infinite reverse;
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 32px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  border-radius: 100px;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.btn.full { width: 100%; justify-content: center; }
.btn-rose {
  background: var(--rose);
  color: #fff;
  border: 1px solid var(--rose);
}
.btn-rose:hover { background: var(--mauve); border-color: var(--mauve); transform: translateY(-2px); }
.btn-line {
  background: transparent;
  color: var(--mauve);
  border: 1px solid var(--mauve);
}
.btn-line:hover { background: var(--mauve); color: #fff; }

/* ============ MARQUEE ============ */
.marquee-bar {
  background: var(--mauve);
  color: var(--bg);
  padding: 18px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.marquee-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 500;
}
.marquee-track .dot { color: var(--rose); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============ SECTION HEAD ============ */
.section-eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--rose);
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--mauve);
}
.section-title em { font-style: italic; color: var(--rose); }
.section-desc {
  font-size: 15px;
  color: var(--text-mid);
  margin-top: 16px;
  max-width: 540px;
}
.section-head { margin-bottom: 64px; }
.section-head.center {
  text-align: center;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.section-head.center .section-desc { margin-left: auto; margin-right: auto; }

/* ============ ABOUT ============ */
.about {
  padding: 140px 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 90px;
  align-items: center;
}
.about-image {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(90, 58, 58, 0.15);
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-stamp {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--bg);
  padding: 16px 24px;
  border-radius: 100px;
  text-align: center;
  font-family: var(--serif);
}
.about-stamp span {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--rose);
  font-weight: 600;
  text-transform: uppercase;
}
.about-stamp strong {
  font-size: 28px;
  color: var(--mauve);
  font-style: italic;
  font-weight: 500;
}
.about-body {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.85;
  margin-top: 24px;
}
.about-features {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.feat {
  display: flex;
  align-items: center;
  gap: 16px;
}
.feat svg {
  width: 36px;
  height: 36px;
  padding: 8px;
  border-radius: 50%;
  background: var(--bg-warm);
  color: var(--rose);
  flex-shrink: 0;
}
.feat strong {
  display: block;
  font-size: 15px;
  color: var(--mauve);
  font-weight: 600;
}
.feat small {
  font-size: 13px;
  color: var(--text-soft);
}

/* ============ SERVICES ============ */
.services {
  padding: 140px 0;
  background: var(--bg-warm);
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 30px 60px rgba(90, 58, 58, 0.15);
}
.service-card.popular {
  border: 2px solid var(--rose);
}
.badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--rose);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  letter-spacing: 0.1em;
  z-index: 2;
}
.service-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.service-card:hover .service-img img { transform: scale(1.08); }
.service-body {
  padding: 28px 24px;
}
.service-body h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--mauve);
  margin-bottom: 10px;
}
.service-body p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 24px;
  min-height: 48px;
}
.service-foot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.service-foot .price {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--rose);
  font-weight: 600;
  font-style: italic;
}
.service-foot .price sup {
  font-size: 12px;
  margin-left: 2px;
}
.service-foot .time {
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.1em;
}

/* ============ GALLERY ============ */
.gallery {
  padding: 140px 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.g-item {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.g-item:hover img { transform: scale(1.1); }
.g-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(201, 132, 122, 0);
  transition: background 0.4s;
}
.g-item:hover::after { background: rgba(201, 132, 122, 0.2); }

/* ============ TESTIMONIALS ============ */
.testimonials {
  padding: 140px 0;
  background: var(--bg-blush);
}
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testi-card {
  background: var(--bg);
  padding: 40px 32px;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(90, 58, 58, 0.06);
}
.testi-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 20px;
}
.testi-stars svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}
.testi-card p {
  font-family: var(--serif);
  font-size: 19px;
  font-style: italic;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 28px;
}
.testi-author strong {
  display: block;
  font-size: 14px;
  color: var(--mauve);
  font-weight: 600;
}
.testi-author small {
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.05em;
}

/* ============ CONTACT ============ */
.contact {
  padding: 140px 0;
}
.contact-card {
  background: var(--mauve);
  border-radius: 24px;
  padding: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  color: var(--bg);
}
.contact-card .section-eyebrow { color: var(--rose); }
.contact-card .section-title { color: var(--bg); }
.contact-card .section-title em { color: var(--rose); }
.contact-desc {
  font-size: 16px;
  color: rgba(250, 246, 241, 0.75);
  margin-top: 24px;
  margin-bottom: 40px;
}
.info-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.info-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: rgba(250, 246, 241, 0.85);
}
.info-row svg { color: var(--rose); flex-shrink: 0; }

.contact-form {
  background: rgba(255,255,255,0.06);
  padding: 40px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-form h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 12px;
  font-style: italic;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--bg);
  padding: 16px 18px;
  font-size: 14px;
  font-family: inherit;
  border-radius: 8px;
  transition: all 0.3s;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(250,246,241,0.5); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--rose);
  background: rgba(255,255,255,0.12);
}
.form-field textarea { resize: vertical; }
.form-note {
  text-align: center;
  font-size: 11px;
  color: rgba(250,246,241,0.5);
  letter-spacing: 0.05em;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-warm);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
  color: var(--mauve);
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.footer-brand span {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--text-soft);
  font-style: normal;
  text-transform: uppercase;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-soft);
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--mauve);
  transition: all 0.3s;
}
.footer-social a:hover {
  background: var(--rose);
  color: #fff;
  border-color: var(--rose);
}

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ MOBILE NAV / HAMBURGER ============ */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  position: relative;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 50%;
  z-index: 1001;
}
.nav-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--mauve);
  transform: translate(-50%, -50%);
  transition: all 0.4s var(--ease);
}
.nav-toggle span:nth-child(1) { transform: translate(-50%, calc(-50% - 5px)); }
.nav-toggle span:nth-child(3) { transform: translate(-50%, calc(-50% + 5px)); }
body.menu-open .nav-toggle span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-20px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  overflow-y: auto;
}
body.menu-open { overflow: hidden; }
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-menu-inner {
  min-height: 100%;
  padding: 110px 32px 60px;
  display: flex;
  flex-direction: column;
}
.mobile-nav { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
  font-family: var(--serif);
  font-size: 32px;
  font-style: italic;
  color: var(--mauve);
  transition: padding 0.3s var(--ease), color 0.3s;
}
.mobile-nav a span {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--rose);
  font-style: normal;
}
.mobile-nav a:hover { padding-left: 12px; color: var(--rose); }
.mobile-cta {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 32px;
  background: var(--rose);
  color: #fff;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.15em;
  border-radius: 999px;
}
.mobile-foot {
  margin-top: auto;
  padding-top: 60px;
  font-size: 12px;
  color: var(--text-soft);
  letter-spacing: 0.05em;
  line-height: 1.9;
}
.mobile-foot em { font-family: var(--serif); font-size: 16px; font-style: italic; color: var(--rose); }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .nav { padding: 22px 32px; }
  .hero { padding: 130px 32px 90px; }
  .hero-title { font-size: clamp(56px, 9vw, 88px); }
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-images { height: 480px; }
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .contact-card { grid-template-columns: 1fr; gap: 60px; padding: 60px 40px; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav { padding: 16px 24px; }
  .container { padding: 0 24px; }
  .hero { padding: 110px 24px 70px; }
  .hero-eyebrow { font-size: 11px; }
  .hero-title { font-size: clamp(44px, 12vw, 64px); line-height: 1.05; }
  .hero-desc { font-size: 14px; }
  .hero-actions { flex-wrap: wrap; gap: 12px; }
  .hero-actions .btn { padding: 14px 22px; font-size: 12px; }
  .hero-images { height: 420px; }
  .hero-img-1 { width: 65%; }
  .hero-badge { width: 90px; height: 90px; }
  .badge-mark { font-size: 38px; }

  .marquee { font-size: 12px; padding: 16px 0; }

  .about, .services, .gallery, .testimonials, .contact { padding: 80px 0; }
  .section-eyebrow { font-size: 11px; }
  .section-title { font-size: clamp(36px, 9vw, 56px); }

  .service-grid { grid-template-columns: 1fr; gap: 20px; }
  .service-card { padding: 32px 28px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .contact-card { padding: 40px 24px; }
  .contact-form { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-inner { flex-direction: column; text-align: center; gap: 24px; padding: 40px 0; }
}
@media (max-width: 480px) {
  .hero-title { font-size: clamp(40px, 13vw, 52px); }
  .mobile-nav a { font-size: 26px; padding: 22px 0; }
  .mobile-menu-inner { padding: 100px 24px 50px; }
}
