/* =============================================
   MIAN FLOORING & RENOVATION — Global Styles
   ============================================= */

:root {
  --brand-light: #E8E8E8;
  --brand-dark:  #3A4A5C;
  --brand-accent: #C9A876;
  --brand-white: #FFFFFF;
  --transition: 0.3s ease;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ---- Page transition ---- */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--brand-dark);
  background: #fff;
  margin: 0;
  padding: 0;
  animation: pageFadeIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.page-exit {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.28s ease-in, transform 0.28s ease-in;
  pointer-events: none;
}

/* ---- Hero entrance keyframes ---- */
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-anim-1 { animation: heroReveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.3s  both; }
.hero-anim-2 { animation: heroReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both; }
.hero-anim-3 { animation: heroReveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.82s both; }
.hero-anim-4 { animation: heroReveal 0.75s cubic-bezier(0.22, 1, 0.36, 1) 1.05s both; }

/* ---- Clip-path image reveal ---- */
.img-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.05s cubic-bezier(0.77, 0, 0.175, 1);
}
.img-reveal.revealed {
  clip-path: inset(0 0% 0 0);
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

.section-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin-bottom: 0.75rem;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-block;
  position: relative;
  overflow: hidden;
  background: var(--brand-accent);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  border: 2px solid var(--brand-accent);
  cursor: pointer;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-18deg);
  transition: left 0s;
  pointer-events: none;
}
.btn-primary:hover {
  background: #b8935f;
  border-color: #b8935f;
  transform: translateY(-1px);
}
.btn-primary:hover::before {
  left: 160%;
  transition: left 0.65s ease;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
  border: 2px solid rgba(255,255,255,0.7);
  cursor: pointer;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
}

.btn-primary-dark {
  display: inline-block;
  background: var(--brand-accent);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
  border: 2px solid var(--brand-accent);
  cursor: pointer;
}
.btn-primary-dark:hover {
  background: #b8935f;
  border-color: #b8935f;
  transform: translateY(-1px);
}

.btn-outline-dark {
  display: inline-block;
  background: transparent;
  color: var(--brand-dark);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.85rem 2rem;
  border-radius: 3px;
  text-decoration: none;
  transition: all var(--transition);
  border: 2px solid var(--brand-dark);
  cursor: pointer;
}
.btn-outline-dark:hover {
  background: var(--brand-dark);
  color: #fff;
}

/* ---- Navigation ---- */
#main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
#main-nav.transparent {
  background: transparent;
  padding: 1.4rem 0;
}
#main-nav.scrolled {
  background: var(--brand-dark);
  box-shadow: 0 2px 24px rgba(0,0,0,0.18);
  padding: 1rem 0;
}

/* Nav CTA button — consistent size across all pages */
.nav-cta {
  padding: 0.65rem 1.5rem !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.05em;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.nav-logo img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.nav-brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-brand-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav-brand-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--brand-accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color var(--transition);
  padding: 0.25rem 0;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1.5px;
  background: var(--brand-accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--brand-accent); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--brand-dark);
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--transition);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--brand-accent); }
.mobile-menu .mob-cta {
  margin-top: 1rem;
  display: block;
  text-align: center;
  background: var(--brand-accent);
  color: #fff !important;
  padding: 0.75rem 1rem;
  border-radius: 3px;
  font-weight: 600;
  border-bottom: none !important;
}

/* ---- Hero ---- */
.hero-section {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,38,50,0.72) 0%, rgba(58,74,92,0.55) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.18;
  margin: 0.5rem 0 1.25rem;
}
.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 600px;
}

/* ---- Trust Bar ---- */
.trust-bar {
  background: var(--brand-light);
  padding: 2.5rem 0;
}
.trust-item {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.trust-icon {
  width: 44px;
  height: 44px;
  background: var(--brand-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}
.trust-icon svg { color: var(--brand-accent); }
.trust-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1;
}
.trust-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #666;
  letter-spacing: 0.03em;
}

/* ---- Section shared ---- */
.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.2;
  margin: 0 0 1rem;
}
.section-heading-light {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 1rem;
}

/* ---- Service Cards ---- */
.service-card {
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(58,74,92,0.10);
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(58,74,92,0.18);
}
.service-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}
.service-card-body {
  padding: 1.75rem 2rem 2rem;
}
.service-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 0.75rem;
}
.service-card-body p {
  font-size: 0.93rem;
  color: #555;
  line-height: 1.7;
  margin: 0 0 1.25rem;
}
.card-link {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand-accent);
  text-decoration: none;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition);
}
.card-link:hover { gap: 0.7rem; }

/* ---- Why Choose Us pillars ---- */
.pillar-icon {
  width: 52px;
  height: 52px;
  background: rgba(201,168,118,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(201,168,118,0.3);
}
.pillar-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
}
.pillar-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  margin: 0;
}

/* ---- Projects grid ---- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.project-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 4/3;
}
.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.2);
  transform-origin: top center;
  transition: transform 0.5s ease;
}
.project-item:hover img { transform: scale(1.27); }
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(58,74,92,0.3);
  opacity: 0;
  transition: opacity var(--transition);
}
.project-item:hover .project-overlay { opacity: 1; }

/* ---- Testimonials ---- */
.testimonial-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 2rem 2.25rem;
  transition: background var(--transition);
}
.testimonial-card:hover {
  background: rgba(255,255,255,0.13);
}
.testimonial-quote {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  line-height: 1.75;
  margin: 0 0 1.25rem;
}
.testimonial-author {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.quote-mark {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--brand-accent);
  opacity: 0.6;
  margin-bottom: 0.5rem;
  display: block;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background-size: cover;
  background-position: center;
  position: relative;
  padding: 6rem 0;
}
.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30,38,50,0.78) 0%, rgba(58,74,92,0.65) 100%);
}
.cta-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* ---- Footer ---- */
footer {
  background: #1e2632;
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 2rem;
}
footer .footer-logo img {
  height: 44px;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--brand-accent);
  margin: 0 0 1rem;
}
footer a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition);
  display: block;
  margin-bottom: 0.4rem;
}
footer a:hover { color: var(--brand-accent); }
footer .footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  margin-top: 2.5rem;
  text-align: center;
}

/* ---- Image Collage ---- */
.img-collage {
  display: grid;
  grid-template-columns: 3fr 2fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  height: 460px;
  border-radius: 10px;
  overflow: hidden;
}

.img-collage-cell {
  overflow: hidden;
  position: relative;
  background: #ddd;
}

.img-collage-cell.featured {
  grid-row: 1 / span 2;
}

.img-collage-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-collage-cell:hover img {
  transform: scale(1.06);
}

/* Subtle dark scrim on hover for depth */
.img-collage-cell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 38, 50, 0);
  transition: background 0.4s ease;
  pointer-events: none;
}
.img-collage-cell:hover::after {
  background: rgba(30, 38, 50, 0.08);
}

/* Accent corner tag on featured image */
.img-collage-cell.featured::before {
  content: attr(data-label);
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  background: rgba(201, 168, 118, 0.92);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 2px;
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.img-collage-cell.featured:hover::before {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .img-collage {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px 180px;
    height: auto;
  }
  .img-collage-cell.featured {
    grid-column: 1 / span 2;
    grid-row: 1;
  }
}

@media (max-width: 560px) {
  .img-collage {
    grid-template-rows: 220px 150px;
  }
}

/* ---- Services page ---- */
.page-header {
  background: var(--brand-dark);
  padding: 9rem 0 4rem;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #fff;
  margin: 0.5rem 0 1rem;
}
.page-header p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

.category-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--brand-dark);
  border-left: 4px solid var(--brand-accent);
  padding-left: 1rem;
  margin: 0 0 2.5rem;
}

.service-section {
  padding: 4rem 0;
  border-bottom: 1px solid #eee;
}
.service-section:last-child { border-bottom: none; }

.service-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.service-images img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
}

.spec-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(201,168,118,0.12);
  border: 1px solid rgba(201,168,118,0.4);
  color: #a07840;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.included-list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1.5rem;
}
.included-list li {
  font-size: 0.9rem;
  color: #555;
  padding: 0.35rem 0;
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.6;
}
.included-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--brand-accent);
  font-weight: 700;
  font-size: 0.85rem;
}

/* ---- Contact page ---- */
.contact-form-wrap {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 32px rgba(58,74,92,0.10);
  padding: 2.5rem 2.5rem 3rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-dark);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--brand-dark);
  background: #fafafa;
  border: 1.5px solid #ddd;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(201,168,118,0.15);
  background: #fff;
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-submit-btn {
  width: 100%;
  background: var(--brand-accent);
  color: #fff;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.95rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  margin-top: 0.5rem;
}
.form-submit-btn:hover {
  background: #b8935f;
  transform: translateY(-1px);
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.75rem;
}
.contact-info-icon {
  width: 42px;
  height: 42px;
  background: rgba(201,168,118,0.12);
  border: 1px solid rgba(201,168,118,0.3);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-icon svg { color: var(--brand-accent); }
.contact-info-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #999;
  display: block;
  margin-bottom: 0.2rem;
}
.contact-info-value {
  font-size: 0.95rem;
  color: var(--brand-dark);
  font-weight: 500;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-images {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-images img:last-child {
    grid-column: span 2;
  }
  .contact-form-wrap {
    padding: 1.75rem 1.5rem 2rem;
  }
}

@media (max-width: 560px) {
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
  .service-images {
    grid-template-columns: 1fr;
  }
  .service-images img:last-child {
    grid-column: span 1;
  }
}

/* ---- Utilities ---- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.text-accent { color: var(--brand-accent); }
.bg-light { background: var(--brand-light); }
.bg-dark { background: var(--brand-dark); }

/* ---- Divider ---- */
.accent-divider {
  width: 48px;
  height: 3px;
  background: var(--brand-accent);
  margin: 1rem 0 1.5rem;
}
.accent-divider.center { margin: 1rem auto 1.5rem; }

/* ---- Success message ---- */
.form-success {
  display: none;
  background: #f0faf0;
  border: 1px solid #b7dfb7;
  border-radius: 4px;
  padding: 1rem 1.25rem;
  color: #2d6a2d;
  font-size: 0.92rem;
  margin-top: 1rem;
  text-align: center;
}
