/* ============================================================
   KASEM — Photographer & Filmmaker
   Light, professional theme.
   Navy #002147 and gold #C79316 are used as accents only.
   You normally never need to edit this file.
   ============================================================ */

:root {
  --navy: #002147;
  --gold: #C79316;
  --white: #ffffff;
  --black: #000000;
  --off-white: #fafaf8;
  --ink: #1c1c1c;
  --text-dim: #5a5a5a;
  --line: #e6e4df;
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--navy); text-decoration: none; }
a:hover { opacity: 0.8; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Logo placeholder — replace with <img src="images/logo.png" alt="Logo"> later */
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
}
.logo-mono {
  height: 46px;
  width: auto;
  flex-shrink: 0;
}
.logo img { height: 48px; width: auto; }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.3;
}
.logo-text span { color: var(--gold); }

.main-nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.main-nav a {
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.main-nav a:hover { color: var(--navy); opacity: 1; }
.main-nav a.active { color: var(--navy); border-bottom-color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  color: var(--navy);
  font-size: 1.2rem;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--line);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.7rem 0; }
}

/* ---------- Layout helpers ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 820px; }

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  text-align: center;
  margin: 3.5rem 0 0.6rem;
  color: var(--navy);
}
.page-subtitle {
  text-align: center;
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 auto 3rem;
  font-size: 1.05rem;
}
.gold-rule {
  width: 70px;
  height: 2px;
  background: var(--gold);
  margin: 1.2rem auto 1.5rem;
  border: none;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  margin-bottom: 0.4rem;
  color: var(--navy);
}
.section-title span { color: var(--gold); }

/* ---------- Hero (home page) ---------- */
.hero {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--off-white);
  border-bottom: 1px solid var(--line);
  padding: 4rem 1.5rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}
.hero h1 span { color: var(--gold); font-style: italic; }
.hero p {
  color: var(--text-dim);
  font-size: 1rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-top: 1.2rem;
}
.hero-actions { margin-top: 2.5rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.85rem 2.2rem;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: transform 0.15s, opacity 0.2s;
}
.btn:hover { transform: translateY(-2px); opacity: 1; }
.btn-gold { background: var(--navy); color: var(--white); font-weight: 600; }
.btn-gold:hover { background: #01305f; }
.btn-outline { border: 1px solid var(--gold); color: var(--navy); }

/* Home page category cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 3rem 0 4rem;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 4px;
  padding: 2rem 1.6rem;
  color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 33, 71, 0.1);
  opacity: 1;
}
.card h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: 0.5rem; color: var(--navy); }
.card p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- About page ---------- */
.video-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--off-white);
  margin-bottom: 3rem;
}
.video-frame video { width: 100%; display: block; }
.video-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  color: var(--text-dim);
  text-align: center;
  padding: 1rem;
}
.video-placeholder .play-circle {
  width: 70px;
  height: 70px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 1.5rem;
}

.about-text { color: var(--ink); font-size: 1.05rem; }
.about-text h2 { font-family: var(--font-display); color: var(--navy); margin: 2rem 0 0.8rem; }
.about-text p { margin-bottom: 1.2rem; color: var(--text-dim); }

/* ---------- Photography ---------- */
.category-nav {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.category-nav a {
  padding: 0.55rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 30px;
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all 0.2s;
}
.category-nav a:hover { border-color: var(--gold); color: var(--navy); opacity: 1; }

.gallery-section { margin-bottom: 4.5rem; scroll-margin-top: 90px; }
.gallery-section .section-head { margin-bottom: 1.5rem; }
.gallery-section .section-head p { color: var(--text-dim); max-width: 640px; }

/* Masonry-style grid: photos keep their original aspect ratio */
.gallery-grid {
  columns: 3 300px;
  column-gap: 1.2rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  cursor: pointer;
  background: var(--off-white);
  border: 1px solid var(--line);
  break-inside: avoid;
  margin-bottom: 1.2rem;
  display: block;
}
.gallery-item img {
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem 1rem 0.8rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: var(--white);
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-item:hover .caption { opacity: 1; }

.empty-note {
  border: 1px dashed var(--gold);
  border-radius: 6px;
  padding: 2rem;
  color: var(--text-dim);
  text-align: center;
  background: var(--off-white);
}

/* Lightbox (full-screen viewer stays dark by design) */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  flex-direction: column;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 4px; }
.lightbox .lb-caption { color: rgba(255, 255, 255, 0.75); margin-top: 1rem; text-align: center; }
.lightbox .lb-close {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox .lb-prev, .lightbox .lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  font-size: 1.4rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
}
.lightbox .lb-prev { left: 1.2rem; }
.lightbox .lb-next { right: 1.2rem; }

/* ---------- Filmmaking ---------- */
/* Films stack vertically, one per row, at near-full page width.
   New films added to content/films-data.js appear below existing ones. */
.films-grid {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 980px;
  margin: 0 auto 4rem;
}
.film-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.film-card:hover { box-shadow: 0 10px 28px rgba(0, 33, 71, 0.1); }
.film-embed { position: relative; aspect-ratio: 16 / 9; background: var(--off-white); }
.film-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.film-info { padding: 1.3rem 1.4rem 1.6rem; border-top: 2px solid var(--gold); }
.film-info h3 { font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 0.4rem; color: var(--navy); }
.film-info p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Book with me ---------- */
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 820px) { .book-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: 4px;
  padding: 2rem;
}
.panel h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 1.2rem;
}
.contact-list { list-style: none; }
.contact-list li { margin-bottom: 0.9rem; color: var(--text-dim); }
.contact-list .label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.contact-list a { color: var(--ink); }

.pricing-table { width: 100%; border-collapse: collapse; }
.pricing-table th, .pricing-table td {
  text-align: left;
  padding: 0.9rem 0.8rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.pricing-table th {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}
.pricing-table .price { color: var(--navy); font-weight: 600; white-space: nowrap; }
.pricing-table .includes { color: var(--text-dim); font-size: 0.9rem; }

.terms-list { list-style: none; counter-reset: term; }
.terms-list li {
  counter-increment: term;
  margin-bottom: 1rem;
  padding-left: 2.4rem;
  position: relative;
  color: var(--text-dim);
}
.terms-list li::before {
  content: counter(term, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 2px solid var(--gold);
  background: var(--off-white);
  padding: 2.2rem 1.5rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-top: 4rem;
}
.site-footer .foot-nav { margin-bottom: 0.8rem; display: flex; justify-content: center; gap: 1.4rem; flex-wrap: wrap; }
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--navy); }
