/* =============================================
   Why The Rush Photography — Site Styles
   ============================================= */

:root {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #666666;
  --nav-bg: #111111;
  --nav-text: #ffffff;
  --accent: #c8a96e;
  --border: #e5e5e5;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

/* ---- NAV ---- */
nav {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 60px;
}

.logo {
  color: var(--nav-text);
  text-decoration: none;
  font-size: 18px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 2px;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ffffff;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  cursor: pointer;
  user-select: none;
}

.dropdown-toggle::after {
  content: ' ▾';
  font-size: 10px;
  opacity: 0.6;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1a1a1a;
  min-width: 180px;
  border-top: 2px solid var(--accent);
  padding: 8px 0;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: rgba(255,255,255,0.06);
  color: #fff;
}

/* ---- PAGE HEADER ---- */
.page-header {
  padding: 48px 40px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
}

.page-header p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* ---- GALLERY GRID ---- */
.gallery {
  padding: 0 32px 60px;
  columns: 3;
  column-gap: 12px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease, opacity 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.03);
  opacity: 0.88;
}

/* ---- LIGHTBOX ---- */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 999;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

#lightbox.open { display: flex; }

#lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: white;
  font-size: 32px;
  cursor: pointer;
  opacity: 0.7;
  background: none;
  border: none;
  line-height: 1;
}

#lightbox-close:hover { opacity: 1; }

#lightbox-nav {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}

#lightbox-nav button {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  padding: 8px 20px;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.2s;
}

#lightbox-nav button:hover {
  background: rgba(255,255,255,0.1);
}

/* ---- BLOG ---- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 0 40px 60px;
}

.blog-card {
  border-bottom: 1px solid var(--border);
  padding-bottom: 24px;
}

.blog-card .date {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.blog-card h2 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

a.blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

a.blog-card:hover {
  opacity: 0.75;
}

/* ---- ABOUT / TEXT PAGES ---- */
.text-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

.text-page h1 {
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
  text-transform: uppercase;
}

.text-page h2 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 32px 0 12px;
  color: var(--muted);
}

.text-page p {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 16px;
}

.text-page ul {
  margin: 0 0 16px 20px;
}

.text-page li {
  font-size: 14px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 8px;
}

.text-page a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-page a:hover { color: var(--muted); }

.text-page .btn,
.text-page .btn:hover {
  color: #ffffff;
  text-decoration: none;
}

/* ---- CONTACT ---- */
.contact-form {
  max-width: 560px;
}

.contact-form label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
  margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: var(--font);
  background: #fafafa;
  transition: border-color 0.2s;
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #999;
  background: #fff;
}

.contact-form textarea {
  height: 140px;
  resize: vertical;
}

.btn {
  display: inline-block;
  margin-top: 24px;
  padding: 13px 32px;
  background: var(--nav-bg);
  color: white;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s;
}

.btn:hover { background: #333; }

/* ---- FOOTER ---- */
footer {
  background: var(--nav-bg);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 28px 40px;
  font-size: 12px;
  letter-spacing: 0.08em;
}

footer a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  margin: 0 12px;
}

footer a:hover { color: rgba(255,255,255,0.9); }

.footer-social {
  margin-bottom: 10px;
  font-size: 13px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .gallery { columns: 2; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  nav { padding: 0 20px; }
  .gallery { columns: 1; padding: 0 16px 40px; }
  .page-header { padding: 32px 20px 20px; }
  .blog-grid { grid-template-columns: 1fr; padding: 0 20px 40px; }
  .text-page { padding: 32px 20px 60px; }
  .nav-links { display: none; }
}
