/* ============================================
   Chitrography — Photography Studio Website
   Shared Stylesheet
   ============================================ */

:root {
  /* Purple + gold — matched to the Chitrography logo */
  --bg: #120b1e;
  --bg-soft: #1a1129;
  --card: #211636;
  --text: #f0ebe2;
  --muted: #a99db8;
  --accent: #e3b34c;
  --accent-soft: rgba(227, 179, 76, 0.14);
  --border: #34264e;
  --font-head: Georgia, 'Times New Roman', serif;
  --font-body: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
}

img { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header / Nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 14, 16, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent);
}

.logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--accent); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background:
    linear-gradient(rgba(14,14,16,0.55), rgba(14,14,16,0.9)),
    url('https://images.unsplash.com/photo-1452587925148-ce544e77e70d?w=1600&q=80') center/cover no-repeat;
}

.hero-inner { padding: 60px 24px; }

.hero .kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 4px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero p.sub {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 34px;
  border: 1px solid var(--accent);
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: all 0.25s;
}

.btn:hover { background: var(--accent); color: #111; }

.btn.solid { background: var(--accent); color: #111; }

.btn.solid:hover { background: transparent; color: var(--accent); }

/* ---------- Sections ---------- */
section { padding: 90px 0; }

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

.section-head .kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
}

.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 400;
  margin-top: 8px;
}

.section-head p { color: var(--muted); max-width: 620px; margin: 12px auto 0; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  padding: 110px 24px 70px;
  text-align: center;
  background: linear-gradient(rgba(14,14,16,0.75), rgba(14,14,16,0.95)),
    url('https://images.unsplash.com/photo-1471341971476-ae15ff5dd4ea?w=1600&q=80') center/cover no-repeat;
  border-bottom: 1px solid var(--border);
}

.page-banner h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
}

.page-banner p { color: var(--muted); margin-top: 10px; }

/* ---------- Grid / Cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 36px 30px;
  transition: transform 0.25s, border-color 0.25s;
}

.card:hover { transform: translateY(-6px); border-color: var(--accent); }

.card .icon { font-size: 2rem; margin-bottom: 16px; }

.card h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.card p { color: var(--muted); font-size: 0.95rem; }

.card .price {
  display: block;
  margin-top: 18px;
  color: var(--accent);
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--card);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-item:hover img { transform: scale(1.06); }

.gallery-item .label {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Filter buttons */
.filters { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 40px; }

.filters button {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 8px 22px;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.8rem;
  transition: all 0.2s;
}

.filters button:hover, .filters button.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- About ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-split img { border: 1px solid var(--border); }

.about-split h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 2rem;
  margin-bottom: 18px;
}

.about-split p { color: var(--muted); margin-bottom: 14px; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  text-align: center;
}

.stat h3 {
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--accent);
  font-weight: 400;
}

.stat p { color: var(--muted); text-transform: uppercase; letter-spacing: 2px; font-size: 0.8rem; }

/* ---------- Testimonials ---------- */
.quote {
  background: var(--card);
  border-left: 3px solid var(--accent);
  padding: 28px 30px;
}

.quote p { font-style: italic; color: var(--text); }

.quote cite { display: block; margin-top: 14px; color: var(--muted); font-style: normal; font-size: 0.9rem; }

/* ---------- Contact ---------- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
}

.contact-info h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.contact-info ul { list-style: none; }

.contact-info li { margin-bottom: 16px; color: var(--muted); }

.contact-info li strong { color: var(--text); display: block; font-weight: 600; }

form .field { margin-bottom: 20px; }

form label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

form input, form select, form textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

form input:focus, form select:focus, form textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: var(--accent-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
  padding: 70px 24px;
}

.cta-strip h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 2rem;
  margin-bottom: 12px;
}

.cta-strip p { color: var(--muted); margin-bottom: 28px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 50px 24px 30px;
  background: var(--bg-soft);
}

.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
}

.footer-grid h4 {
  font-family: var(--font-head);
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.footer-grid ul { list-style: none; }

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

.footer-grid a { color: var(--muted); font-size: 0.92rem; }

.footer-grid a:hover { color: var(--accent); }

.footer-bottom {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ============================================
   ADVANCED UPGRADES
   ============================================ */

/* ---------- Preloader ---------- */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  transition: opacity 0.6s, visibility 0.6s;
}

#preloader.hide { opacity: 0; visibility: hidden; }

#preloader .logo-load {
  font-family: var(--font-head);
  font-size: 1.8rem;
  letter-spacing: 4px;
  animation: pulse 1.4s ease-in-out infinite;
}

#preloader .ring {
  width: 46px;
  height: 46px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible { opacity: 1; transform: none; }

.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ---------- Hero slideshow (Ken Burns) ---------- */
.hero { overflow: hidden; }

.hero .slides { position: absolute; inset: 0; z-index: -1; }

.hero .slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.6s ease;
}

.hero .slide.active {
  opacity: 1;
  animation: kenburns 7s ease-out forwards;
}

.hero .slides::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(14,14,16,0.55), rgba(14,14,16,0.92));
}

@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }

.hero-inner { position: relative; z-index: 1; }

/* Scroll-down indicator */
.scroll-down {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: var(--muted);
  font-size: 1.4rem;
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* ---------- Header scrolled state ---------- */
header.scrolled { background: rgba(14,14,16,0.98); box-shadow: 0 4px 24px rgba(0,0,0,0.5); }

/* ---------- Masonry gallery ---------- */
.masonry {
  columns: 3 300px;
  column-gap: 16px;
}

.masonry .gallery-item {
  aspect-ratio: auto;
  margin-bottom: 16px;
  break-inside: avoid;
  cursor: pointer;
  border: 1px solid var(--border);
}

.masonry .gallery-item img { height: auto; }

.gallery-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(14,14,16,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.35s;
}

.gallery-item:hover .overlay { opacity: 1; }

.gallery-item .overlay .zoom-icon {
  font-size: 1.6rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.gallery-item .overlay .cat {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  color: var(--text);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8,8,10,0.96);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 88vw;
  max-height: 84vh;
  border: 1px solid var(--border);
  box-shadow: 0 20px 80px rgba(0,0,0,0.7);
  animation: lbIn 0.35s ease;
}

@keyframes lbIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }

.lightbox .lb-caption {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.lightbox button {
  position: absolute;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.5rem;
  width: 52px;
  height: 52px;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox button:hover { border-color: var(--accent); color: var(--accent); }

.lightbox .lb-close { top: 24px; right: 24px; }
.lightbox .lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- Floating buttons ---------- */
.float-btn {
  position: fixed;
  right: 22px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 200;
  box-shadow: 0 6px 24px rgba(0,0,0,0.45);
  transition: transform 0.2s, opacity 0.3s;
}

.float-btn:hover { transform: scale(1.1); }

.whatsapp-btn { bottom: 22px; background: #25d366; color: #fff; }

.back-top {
  bottom: 88px;
  background: var(--card);
  border: 1px solid var(--accent);
  color: var(--accent);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
}

.back-top.show { opacity: 1; pointer-events: auto; }

/* ---------- Album / Story cards ---------- */
.albums-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 26px;
}

.album-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  background: var(--card);
}

.album-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.album-card:hover img { transform: scale(1.07); }

.album-card .album-info {
  position: absolute;
  inset: auto 0 0 0;
  padding: 26px 22px 20px;
  background: linear-gradient(transparent, rgba(10,6,18,0.95));
}

.album-card .album-cat {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.72rem;
  margin-bottom: 6px;
}

.album-card h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.25;
}

.album-card .album-count {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 6px;
}

.album-card .album-open {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(10,6,18,0.6);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 7px 14px;
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.3s;
}

.album-card:hover .album-open { opacity: 1; transform: none; }

/* ---------- Album detail view ---------- */
#album-view { display: none; }

#album-view.open { display: block; }

.album-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 36px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.album-head .album-cat {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.78rem;
}

.album-head h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin-top: 6px;
}

.album-head p.album-desc { color: var(--muted); margin-top: 8px; max-width: 640px; }

.back-albums {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 10px 24px;
  cursor: pointer;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  transition: all 0.2s;
  white-space: nowrap;
}

.back-albums:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Facebook embeds ---------- */
.fb-embeds {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  justify-items: center;
}

.fb-embeds iframe {
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--border) !important;
  border-radius: 4px;
}

/* ---------- Marquee strip ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  background: var(--bg-soft);
}

.marquee-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: marquee 22s linear infinite;
  font-family: var(--font-head);
  font-size: 1.1rem;
  letter-spacing: 3px;
  color: var(--muted);
  text-transform: uppercase;
}

.marquee-track span::after { content: ' ✦'; color: var(--accent); margin-left: 48px; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 16px;
  }

  .nav-links.open { display: flex; }

  .about-split, .contact-split { grid-template-columns: 1fr; }

  section { padding: 60px 0; }
}
