/* Venkata Polavarapu Photography — shared styles */

:root {
  --bg: #0b0b0c;
  --bg-elevated: #141416;
  --bg-card: #18181b;
  --text: #f3f1ec;
  --text-muted: #9a9691;
  --accent: #c9a15a;
  --border: #26262a;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --maxw: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Nav ---------- */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  background: linear-gradient(to bottom, rgba(11,11,12,0.85), transparent);
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.solid {
  background: rgba(11,11,12,0.92);
  backdrop-filter: blur(8px);
  padding: 14px 32px;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  font-weight: 600;
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  white-space: nowrap;
}

.wordmark span {
  font-family: var(--sans);
  font-size: 0.62em;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s ease;
  position: relative;
}

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

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--bg-elevated);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    padding: 0 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    border-left: 1px solid var(--border);
  }

  .nav-links.open { transform: translateX(0); }

  body.nav-open { overflow: hidden; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center 35%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,11,12,0.95) 0%, rgba(11,11,12,0.25) 55%, rgba(11,11,12,0.35) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 32px 80px;
  max-width: var(--maxw);
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  margin: 0 0 18px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.1;
  margin: 0 0 20px;
  max-width: 780px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

/* ---------- Page header (inner pages) ---------- */

.page-header {
  padding: 170px 0 60px;
  border-bottom: 1px solid var(--border);
}

.page-header .kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  margin: 0 0 14px;
}

.page-header h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin: 0 0 16px;
}

.page-header p {
  color: var(--text-muted);
  max-width: 620px;
  margin: 0;
  font-size: 1.05rem;
}

/* ---------- Sections ---------- */

section { padding: 90px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0;
}

.section-head p {
  color: var(--text-muted);
  margin: 8px 0 0;
  max-width: 480px;
}

.section-link {
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--accent);
  white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.section-link:hover { border-color: var(--accent); }

/* ---------- Category grid (home) ---------- */

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

@media (max-width: 720px) {
  .category-grid { grid-template-columns: 1fr; }
}

.category-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

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

.category-card:hover img { transform: scale(1.06); }

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.05) 55%);
}

.category-card .label {
  position: absolute;
  left: 24px;
  bottom: 22px;
  right: 24px;
  z-index: 2;
}

.category-card .label h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0 0 4px;
}

.category-card .label span {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}

.category-card.soon .label span { color: var(--accent); }

.category-card.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(135deg, var(--bg-card), var(--bg-card) 12px, #1d1d20 12px, #1d1d20 24px);
}

.category-card.placeholder .label {
  position: static;
  text-align: center;
}

/* ---------- Photo grid (gallery pages) ---------- */

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

@media (max-width: 900px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .photo-grid { grid-template-columns: 1fr; }
}

.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: var(--bg-card);
  cursor: zoom-in;
  border: 1px solid var(--border);
}

.photo-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.photo-item:hover img { transform: scale(1.05); }

.photo-item .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  font-size: 0.85rem;
  color: var(--text);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.photo-item:hover .cap { opacity: 1; }

/* ---------- Coming soon ---------- */

.coming-soon {
  padding: 60px 0 140px;
  text-align: center;
}

.coming-soon .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.coming-soon h2 {
  font-family: var(--serif);
  font-size: 1.9rem;
  margin: 0 0 14px;
}

.coming-soon p {
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6,6,7,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.lightbox figure { margin: 0; text-align: center; }

.lightbox figcaption {
  color: var(--text-muted);
  margin-top: 16px;
  font-size: 0.9rem;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 8px;
}

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

.lightbox-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
  position: relative;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border-radius: 30px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.share-btn svg { flex-shrink: 0; }

.share-menu {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  min-width: 220px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.5);
  z-index: 10;
}

.share-menu.open { display: grid; }

.share-menu a,
.share-menu button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border-radius: 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 0.68rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.share-menu a:hover,
.share-menu button:hover {
  background: var(--bg-card);
  color: var(--text);
}

.share-menu svg { width: 18px; height: 18px; }

.share-toast {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #1a1305;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.share-toast.show { opacity: 1; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner .wordmark { font-size: 1.1rem; }

footer .credit {
  color: var(--text-muted);
  font-size: 0.85rem;
}

footer .foot-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

footer .foot-links a { color: var(--text-muted); }
footer .foot-links a:hover { color: var(--accent); }
