/* ============================================================
   Mr Cow Studio — Production Stylesheet
   Luxury interior design · Singapore
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --background: #F7F3EE;
  --cream: #EFE8DF;
  --beige: #E7DED2;
  --olive: #9C9C80;
  --olive-dark: #8A8A70;
  --gold: #B99863;
  --dark: #2D2926;
  --white: #FFFFFF;
  --text-muted: #7A746E;
  --border: #DDD5CA;
  --shadow-sm: 0 4px 20px rgba(45, 41, 38, 0.06);
  --shadow-md: 0 8px 32px rgba(45, 41, 38, 0.1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1200px;
  --header-h: 80px;
  --transition: 0.25s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-muted);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-label--center { justify-content: center; }

.section-label__line {
  display: inline-block;
  width: 32px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.section-title--left { text-align: left; }

.section-header { margin-bottom: 48px; }
.section-header--center { text-align: center; }

.section { padding: 80px 0; }

.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--olive);
  color: var(--white);
  border-color: var(--olive);
}

.btn--primary:hover {
  background: var(--olive-dark);
  border-color: var(--olive-dark);
  box-shadow: var(--shadow-sm);
}

.btn--outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--dark);
}

.btn--outline:hover {
  background: var(--dark);
  color: var(--white);
}

.btn--header { padding: 11px 22px; font-size: 12px; }
.btn--full { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 20px;
}

.header__logo img {
  height: 72px;
  width: auto;
}

.header__nav { flex: 1; display: flex; justify-content: center; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
}

.nav__link {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link--active { color: var(--dark); }

.nav__link:hover::after,
.nav__link--active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--dark);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-h) + 48px) 0 80px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero__title-accent {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.hero__text {
  font-size: 15px;
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 28px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero__features {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.hero__feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
}

.hero__visual { display: flex; justify-content: flex-end; }

.hero__image-wrap {
  position: relative;
  width: 100%;
  max-width: 560px;
}

.hero__bg {
  width: 100%;
  aspect-ratio: 4 / 4.5;
  object-fit: cover;
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xl) var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.hero__mascot {
  position: absolute;
  bottom: 8%;
  left: 10%;
  width: clamp(120px, 28%, 200px);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.15));
  pointer-events: none;
}

/* ---------- Projects ---------- */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.project-card { transition: transform var(--transition); }
.project-card:hover { transform: translateY(-4px); }

.project-card__image {
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.project-card__image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card__image img { transform: scale(1.04); }

.project-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.project-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 2px;
}

.project-card__subtitle { font-size: 12px; color: var(--text-muted); }

.project-card__arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  transition: background var(--transition), border-color var(--transition);
}

.project-card__arrow:hover {
  background: var(--olive);
  border-color: var(--olive);
}

.project-card__arrow:hover img { filter: brightness(10); }

/* ---------- Before & After ---------- */
.transform { padding: 40px 0 80px; }

.transform__panel {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: center;
  background: var(--cream);
  border-radius: var(--radius-xl);
  padding: 48px;
}

.transform__text {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 28px;
  color: var(--text-muted);
}

/* Before-after slider */
.ba-slider {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  user-select: none;
  touch-action: none;
}

.ba-slider__inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  overflow: hidden;
}

.ba-slider__after,
.ba-slider__before {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-slider__before-wrap {
  position: absolute;
  top: 0; left: 0;
  width: 50%; height: 100%;
  overflow: hidden;
  z-index: 2;
}

.ba-slider__before {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  max-width: none;
  /* Width set by JavaScript to match slider inner width */
}

.ba-slider__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  margin-left: -1.5px;
  background: var(--white);
  z-index: 3;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-slider__handle-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  font-size: 16px;
  color: var(--dark);
  line-height: 1;
}

.ba-slider__label {
  position: absolute;
  bottom: 16px;
  z-index: 4;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(45, 41, 38, 0.55);
  padding: 4px 12px;
  border-radius: 999px;
}

.ba-slider__label--before { left: 16px; }
.ba-slider__label--after { right: 16px; }

/* ---------- Services ---------- */
.services { background: var(--white); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 32px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--background);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: transparent;
}

.service-card__icon { margin-bottom: 18px; }

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.service-card__text { font-size: 13px; line-height: 1.65; }

/* ---------- Why Choose Us ---------- */
.why__grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
}

.why__list { margin-top: 28px; display: flex; flex-direction: column; gap: 24px; }

.why__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why__item h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.why__item p { font-size: 13px; line-height: 1.6; }

.why__mascot {
  display: flex;
  justify-content: center;
  align-items: center;
}

.why__mascot img {
  max-width: 280px;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,0.1));
}

/* Testimonial */
.testimonial-card {
  margin-top: 24px;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.testimonial-card__stars {
  color: var(--gold);
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.testimonial-card__quote {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--dark);
  margin-bottom: 20px;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-card__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card__name {
  display: block;
  font-style: normal;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.testimonial-card__role { font-size: 12px; color: var(--text-muted); }

/* ---------- Process Timeline ---------- */
.process { background: var(--cream); }

.process__timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}

.process__timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--gold) 0, var(--gold) 4px, transparent 4px, transparent 10px);
  opacity: 0.4;
  z-index: 0;
}

.process__step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process__icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  background: var(--white);
  border-radius: 50%;
  border: 1px solid var(--border);
  margin: 0 auto 16px;
  box-shadow: var(--shadow-sm);
}

.process__number {
  position: absolute;
  bottom: -6px; right: -6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--white);
  background: var(--gold);
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process__step h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.process__step p { font-size: 12px; line-height: 1.55; }

/* ---------- Contact ---------- */
.contact {
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
  position: relative;
}

.contact__info { padding-top: 8px; }

.contact__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 28px 0 16px;
}

.contact__phone {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--dark);
  transition: color var(--transition);
}

.contact__phone:hover { color: var(--gold); }

.contact__whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--olive);
  border-bottom: 1px solid var(--olive);
  padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}

.contact__whatsapp:hover { color: var(--gold); border-color: var(--gold); }

.contact__decor {
  position: absolute;
  right: -40px;
  bottom: -40px;
  pointer-events: none;
  opacity: 0.9;
}

.contact__decor img {
  max-height: 420px;
  width: auto;
}

/* Form */
.contact__form {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__group { margin-bottom: 16px; }

.form__group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 6px;
}

.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(156, 156, 128, 0.15);
}

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

.form__success {
  margin-top: 12px;
  font-size: 14px;
  color: var(--olive);
  font-weight: 500;
  text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  background: var(--background);
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.site-footer__tagline {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--gold);
}

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

/* ---------- Animations (scroll reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================================
   RESPONSIVE — Mobile First Breakpoints
   ============================================================ */

@media (max-width: 1100px) {
  .why__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .why__mascot {
    grid-column: 1 / -1;
    order: -1;
  }

  .why__mascot img { max-width: 220px; }

  .contact__decor { display: none; }

  .process__timeline { grid-template-columns: repeat(3, 1fr); }
  .process__timeline::before { display: none; }
}

@media (max-width: 900px) {
  .header__nav,
  .btn--header { display: none; }

  .nav-toggle { display: flex; }

  .header__nav.is-open {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    padding: 24px;
    box-shadow: var(--shadow-md);
  }

  .header__nav.is-open .nav__list {
    flex-direction: column;
    width: 100%;
    gap: 20px;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__visual { justify-content: center; }

  .projects__grid,
  .services__grid { grid-template-columns: repeat(2, 1fr); }

  .transform__panel {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

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

@media (max-width: 600px) {
  .section { padding: 56px 0; }

  .hero { padding-top: calc(var(--header-h) + 32px); }

  .hero__features { flex-direction: column; gap: 14px; }

  .projects__grid,
  .services__grid,
  .process__timeline { grid-template-columns: 1fr; }

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

  .site-footer__inner { flex-direction: column; text-align: center; }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 50px; height: 50px;
  }
}

/* ---------- Skip to content ---------- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  background: var(--dark);
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- FAQ ---------- */
.faq__list {
  display: grid;
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
}

.faq__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.faq__item[open] {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 500;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
  content: "+";
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 26px 24px;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 15px;
}

.faq__answer a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(185, 152, 99, 0.4);
  text-underline-offset: 3px;
}

.faq__answer strong {
  color: var(--dark);
  font-weight: 600;
}

@media (max-width: 768px) {
  .faq__item summary {
    padding: 18px 20px;
    font-size: 17px;
  }

  .faq__answer {
    padding: 0 20px 20px;
    font-size: 14px;
  }
}
