/* =============================================
   THE WALL CHRONICLES – styles.css
   ============================================= */

/* ---------- Accessibility: Skip Link ---------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: #1a1a1a;
  color: #fff;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 8px; }

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

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

body {
  font-family: 'Lato', sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.6;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

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

h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: 0.02em; }

h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 500; }

h4 { font-size: 1rem; font-weight: 700; letter-spacing: 0.06em; }

/* ---------- Section base ---------- */
.section { padding: 80px 6vw; }

.section-head { text-align: center; margin-bottom: 50px; }

.section-rule {
  display: block;
  width: 60px;
  height: 1px;
  background: #1a1a1a;
  margin: 14px auto 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
  border: none;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid #fff;
}
.btn-outline-light:hover { background: #fff; color: #1a1a1a; }

.btn-dark {
  background: #1a1a1a;
  color: #fff;
  border: 1.5px solid #1a1a1a;
}
.btn-dark:hover { background: transparent; color: #1a1a1a; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5vw;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #e8e4de;
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.08); }

.nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: #1a1a1a;
  transition: width 0.25s;
}
.nav-links a:hover::after, .nav-links a:focus::after { width: 100%; }

.arrow { font-size: 0.7rem; margin-left: 3px; }

/* Mega Menu */
.has-mega { position: relative; }

.mega-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 700px;
  background: #fff;
  border: 1px solid #e8e4de;
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  padding: 36px 40px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  transform: translateX(-50%) translateY(-6px);
}
.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.mega-col h4 {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 6px;
  margin-bottom: 12px;
}

.mega-col ul li { margin-bottom: 6px; }
.mega-col ul a {
  font-size: 0.82rem;
  color: #444;
  transition: color 0.2s;
}
.mega-col ul a:hover { color: #1a1a1a; }

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a1a;
  transition: all 0.3s;
}

/* =============================================
   HERO SLIDER
   ============================================= */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  margin-top: 68px;
}

.slides-track {
  display: flex;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.77, 0, 0.175, 1);
}

.slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Fallback gradient backgrounds per slide */
.slide-1 { background: linear-gradient(135deg, #e8e0d5 0%, #c9bfb0 100%); }
.slide-2 { background: linear-gradient(135deg, #f0e8dc 0%, #d4c4b0 100%); }
.slide-3 { background: linear-gradient(135deg, #e0d5c5 0%, #c0b098 100%); }
.slide-4 { background: linear-gradient(135deg, #d8d0c5 0%, #b8afa0 100%); }
.slide-5 { background: linear-gradient(135deg, #d5ddd0 0%, #a8b8a0 100%); }

.slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}
.slide-overlay--bottom {
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, transparent 60%);
}

.slide-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 820px;
  padding: 0 8vw;
  text-align: center;
  margin: 0 auto;
}

.slide-content--left {
  text-align: left;
  margin: 0;
}

.slide-content--bottom-left {
  position: absolute;
  bottom: 100px;
  left: 0;
  text-align: left;
}

.slide-content--center {
  position: absolute;
  bottom: 80px;
  left: 0; right: 0;
  text-align: center;
  margin: 0 auto;
}

.slide-content h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 500;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.15;
}

.headline-large {
  font-size: clamp(2.4rem, 6vw, 5rem) !important;
  font-family: 'Playfair Display', serif;
  letter-spacing: 0.04em;
}

.slide-tag {
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.9;
}

.slide-sub {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
  opacity: 0.9;
}

/* Slider controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.slider-btn:hover { background: rgba(255,255,255,0.3); }
.slider-prev { left: 24px; }
.slider-next { right: 24px; }

.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  padding: 0;
}
.dot.active {
  background: #fff;
  transform: scale(1.3);
}

/* =============================================
   COLLECTION LISTING
   ============================================= */
.collection-listing { background: #fafaf8; }

.collection-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.col-label {
  font-family: 'Lato', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.col-group ul li { margin-bottom: 8px; }
.col-group ul a {
  font-size: 0.88rem;
  color: #444;
  transition: color 0.2s;
}
.col-group ul a:hover { color: #1a1a1a; text-decoration: underline; }

/* =============================================
   FOUR-COLUMN GRID (Home Decor & Gallery)
   ============================================= */
.four-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1300px;
  margin: 0 auto;
}

/* Product cards */
.product-card, .gallery-card {
  overflow: hidden;
  cursor: pointer;
}

.product-img, .gallery-img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
  background: #d4c9b8; /* fallback */
}
.product-card:hover .product-img,
.gallery-card:hover .gallery-img { transform: scale(1.04); }

figcaption {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  padding: 10px 0 4px;
  color: #1a1a1a;
}

/* Alternate gallery section */
.gallery-alt { background: #fafaf8; }

/* =============================================
   SERVICES
   ============================================= */
.services-section { background: #fff; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  border: 1px solid #e0dbd4;
  padding: 0;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.service-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); }

.service-img-wrap { height: 260px; overflow: hidden; background: #c8bfb5; }

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.service-card:hover .service-img { transform: scale(1.04); }

.service-desc {
  font-size: 0.88rem;
  color: #555;
  padding: 20px 20px 8px;
  line-height: 1.6;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 500;
  padding: 0 20px 24px;
  line-height: 1.3;
}

/* =============================================
   HOW WE WORK
   ============================================= */
.process-section { background: #fafaf8; }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.process-step { text-align: left; }

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #ccc;
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}

.process-step h4 {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  line-height: 1.4;
  font-family: 'Lato', sans-serif;
}

.process-img-wrap { height: 240px; overflow: hidden; background: #c5bdb0; }

.process-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.process-step:hover .process-img { transform: scale(1.04); }

/* =============================================
   PROJECTS
   ============================================= */
.projects-section { background: #fff; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
  max-width: 1300px;
  margin: 0 auto;
}

.project-item {
  overflow: hidden;
  height: 280px;
  background: #c8c0b5;
}
.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.project-item:hover img { transform: scale(1.04); }

.project-wide {
  grid-column: span 2;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-section { background: #fafaf8; }

.contact-inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.contact-sub {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 36px;
}

.contact-form { display: flex; flex-direction: column; gap: 14px; text-align: left; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #d8d4ce;
  background: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: #1a1a1a;
  outline: none;
  transition: border-color 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: #1a1a1a; }

.contact-form textarea { resize: vertical; }

.contact-form .btn { align-self: center; margin-top: 6px; }

/* =============================================
   FOOTER
   ============================================= */
.site-footer { background: #1a1a1a; color: #e0dbd4; }

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 60px;
  padding: 64px 6vw 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #fff;
}

.footer-tag { font-size: 0.85rem; color: #a09890; line-height: 1.6; }

.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.footer-col h5 {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
}

.footer-col ul li { margin-bottom: 8px; }

.footer-col ul a {
  font-size: 0.82rem;
  color: #a09890;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  text-align: center;
  padding: 18px 6vw;
  font-size: 0.78rem;
  color: #706860;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .collection-cols { grid-template-columns: repeat(2, 1fr); }
  .mega-menu-inner { grid-template-columns: repeat(2, 1fr); }
  .mega-menu { min-width: 500px; }
}

@media (max-width: 900px) {
  .four-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-wide { grid-column: span 2; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 56px 5vw; }

  /* Nav */
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 6vw;
    gap: 0;
    border-top: 1px solid #e8e4de;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.3s;
    pointer-events: none;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li { width: 100%; border-bottom: 1px solid #f0ece6; }
  .nav-links li a { display: block; padding: 12px 0; font-size: 0.95rem; }

  /* Mega menu – simplified on mobile */
  .mega-menu {
    position: static;
    transform: none;
    min-width: 0;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: none;
  }
  .has-mega.open .mega-menu { display: block; }
  .mega-menu-inner { grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px 0; }

  /* Hero */
  .slide-content { padding: 0 6vw; }
  .slide-content--left { padding: 0 6vw; }
  .slide-content--bottom-left { padding: 0 6vw; bottom: 80px; }
  .slide-content--center { padding: 0 6vw; bottom: 60px; }

  /* Grids */
  .collection-cols { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; max-width: 480px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .four-grid { grid-template-columns: 1fr; }
  .collection-cols { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-wide { grid-column: span 1; }
  .footer-nav { grid-template-columns: 1fr; }
  .slider-btn { display: none; }
  .slide-content h1 { font-size: 1.8rem; }
}
