/* ============================================================
   SIBGHATULLAH SIDDIQUI — Visual & Calligraphy Artist
   Original editorial design inspired by eelcomaan.nl aesthetic:
   minimal · centered · artwork-first · generous whitespace
   ============================================================ */

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: #ffffff;
  color: #111111;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

/* ── Layout wrapper ────────────────────────────────────────── */
.site-wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── HEADER ────────────────────────────────────────────────── */
.site-header {
  text-align: center;
  padding: 52px 32px 0;
}

.site-header a { text-decoration: none; }

.artist-name {
  font-family: 'Cinzel', 'Georgia', 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  line-height: 1.0;
  letter-spacing: 0.06em;
  color: #858585;
  margin-bottom: 0.25em;
  text-transform: uppercase;
}

.artist-discipline {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #666666;
  margin-bottom: 0;
}

.site-nav {
  text-align: center;
  padding: 22px 32px 0;
  border: none;
}

.site-nav ul {
  list-style: none;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
}

.site-nav li { display: flex; align-items: center; }

.site-nav a {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #666666;
  padding: 2px 6px;
  transition: color 0.2s;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active,
.site-nav a[aria-current="page"] {
  color: #333333;
}

.nav-pipe {
  color: #666666;
  font-size: 0.78rem;
  padding: 0 1px;
  user-select: none;
}

/* ── RULE under nav — REMOVED per Eelco Maan reference ────── */
.header-rule {
  display: none;
}

/* ── MAIN ──────────────────────────────────────────────────── */
.page-main { padding-bottom: 60px; }

/* ── HOME HERO ─────────────────────────────────────────────── */

.hero-section {
  width: 100%;
  max-width: 860px;
  margin: 30px auto 0;
  padding: 0;
  text-align: center;
}

.hero-figure {
  margin: 0 auto;
  line-height: 0;
  display: inline-block;
  border: 1px solid #444444;
  width: 100%;
}

.hero-figure img {
  width: 100%;
  height: auto;
  display: block;
}

/* hide caption — removed per spec */
.hero-caption { display: none; }

/* Legacy class */
.hero-wrap {
  width: 100%;
  max-width: 680px;
  margin: 28px auto 0;
  line-height: 0;
}
.hero-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── HOME TEXT BLOCK ───────────────────────────────────────── */
.home-text {
  max-width: 850px;
  margin: 35px auto;
  padding: 0 16px;
  text-align: center;
}

/* Tagline — bold, centered, NOT italic */
.home-text .tagline {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 700;
  color: #111111;
  margin-bottom: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

/* Body paragraphs */
.home-text p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  font-weight: 400;
  color: #222222;
  line-height: 1.5;
  margin-bottom: 16px;
  letter-spacing: 0;
}

.home-text p:last-child { margin-bottom: 0; }

/* content-rule hidden — removed per spec */
.content-rule { display: none; }

/* ── PAGE HEADING ──────────────────────────────────────────── */
.page-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: 0.06em;
  color: #8a8078;
  text-align: center;
  margin: 30px 0 28px;
}

.home-heading {
  display: none;
}

/* ── GALLERY ───────────────────────────────────────────────── */

/* Masonry-style grid: 3 columns desktop, 2 tablet, 1 mobile */
.gallery-grid {
  column-count: 3;
  column-gap: 16px;
  max-width: 960px;
  margin: 0 auto;
  padding: 0;
}

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

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

.gallery-item:hover img { opacity: 0.9; }

.gallery-item figcaption {
  font-size: 0.68rem;
  color: #aaa49e;
  padding: 5px 0 0;
  font-style: italic;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* ── WEBSTORE CATALOGUE ────────────────────────────────────── */
.catalogue-intro {
  max-width: 560px;
  margin: 0 auto 32px;
  text-align: center;
  font-size: 0.84rem;
  color: #6a6460;
  line-height: 1.8;
}

.catalogue-intro a { color: #d4956a; }
.catalogue-intro a:hover { color: #8b4e28; }

.catalogue-grid {
  column-count: 3;
  column-gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.catalogue-item {
  break-inside: avoid;
  margin-bottom: 28px;
  cursor: pointer;
}

.catalogue-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s;
}

.catalogue-item:hover img { opacity: 0.9; }

.catalogue-item-info {
  padding: 8px 0 0;
}

.catalogue-item-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  font-style: italic;
  color: #5a5450;
  line-height: 1.3;
}

.catalogue-item-sub {
  font-size: 0.7rem;
  color: #b0a89e;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.catalogue-item-action {
  margin-top: 6px;
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4956a;
  border-bottom: 1px solid #d4956a;
  padding-bottom: 1px;
  transition: color 0.2s, border-color 0.2s;
}

.catalogue-item:hover .catalogue-item-action {
  color: #8b4e28;
  border-color: #8b4e28;
}

/* ── INFO / BIO PAGE ───────────────────────────────────────── */
.bio-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  max-width: 820px;
  margin: 0 auto;
  align-items: start;
}

.bio-portrait {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.bio-portrait-caption {
  font-size: 0.68rem;
  color: #b0a89e;
  margin-top: 6px;
  font-style: italic;
  text-align: center;
}

.bio-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: #8a8078;
  letter-spacing: 0.05em;
  margin: 1.6em 0 0.5em;
}

.bio-text h2:first-child { margin-top: 0; }

.bio-text p {
  font-size: 0.84rem;
  color: #5a5450;
  line-height: 1.85;
  margin-bottom: 0.9em;
}

.bio-text p:last-child { margin-bottom: 0; }

.bio-text em {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.0rem;
  color: #888078;
}

/* ── STUDIO PAGE ───────────────────────────────────────────── */
.studio-grid {
  column-count: 2;
  column-gap: 16px;
  max-width: 820px;
  margin: 0 auto;
}

.studio-item {
  break-inside: avoid;
  margin-bottom: 16px;
  cursor: pointer;
}

.studio-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s;
}

.studio-item:hover img { opacity: 0.9; }

.studio-item figcaption {
  font-size: 0.68rem;
  color: #aaa49e;
  padding: 5px 0 0;
  font-style: italic;
}

/* ── FILM & PHOTO ──────────────────────────────────────────── */
.film-grid {
  column-count: 2;
  column-gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}

.film-item {
  break-inside: avoid;
  margin-bottom: 20px;
  cursor: pointer;
}

.film-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.3s;
}

.film-item:hover img { opacity: 0.9; }

.film-item figcaption {
  font-size: 0.68rem;
  color: #aaa49e;
  padding: 5px 0 0;
  font-style: italic;
}

/* ── CONTACT PAGE ──────────────────────────────────────────── */
.contact-wrap {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.contact-wrap p {
  font-size: 0.84rem;
  color: #5a5450;
  line-height: 1.85;
  margin-bottom: 0.8em;
}

.contact-wrap a { color: #d4956a; }
.contact-wrap a:hover { color: #8b4e28; }

.contact-form { margin-top: 28px; text-align: left; }

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9a9490;
  margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: #fff;
  border: 1px solid #ddd9d4;
  padding: 9px 12px;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 300;
  color: #3a3530;
  outline: none;
  border-radius: 0;
  transition: border-color 0.2s;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus { border-color: #d4956a; }

.form-group textarea { min-height: 130px; resize: vertical; }

.form-submit {
  background: none;
  border: 1px solid #c8906a;
  color: #c8906a;
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 32px;
  cursor: pointer;
  transition: background 0.22s, color 0.22s;
  margin-top: 8px;
  display: inline-block;
}

.form-submit:hover { background: #c8906a; color: #fff; }

.form-status {
  margin-top: 12px;
  font-size: 0.78rem;
  color: #8a8078;
}

/* ── LINKS PAGE ────────────────────────────────────────────── */
.links-wrap {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
}

.links-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.0rem;
  color: #8a8078;
  letter-spacing: 0.06em;
  margin: 2em 0 0.6em;
}

.links-section-title:first-child { margin-top: 0; }

.links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.links-list li {
  padding: 4px 0;
  font-size: 0.83rem;
}

.links-list a {
  color: #d4956a;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  padding-bottom: 1px;
}

.links-list a:hover {
  color: #8b4e28;
  border-color: #8b4e28;
}

/* ── LIGHTBOX ──────────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.93);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: default;
}

.lightbox.is-open { display: flex; }

.lightbox-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: min(90vw, 1100px);
}

.lightbox-content img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  display: block;
  cursor: default;
}

.lightbox-caption {
  color: #a89e98;
  font-size: 0.72rem;
  font-style: italic;
  margin-top: 10px;
  text-align: center;
  letter-spacing: 0.02em;
}

.lightbox-close {
  position: absolute;
  top: -44px;
  right: -8px;
  background: none;
  border: none;
  color: #a89e98;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.lightbox-close:hover { color: #fff; }

/* ── FOOTER ────────────────────────────────────────────────── */
.site-footer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 960px;
  margin: 40px auto 0;
  padding: 16px 32px 28px;
}

/* Main row: logo + right side */
.footer-main {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

/* Left column: logo only */
.footer-left {
  flex-shrink: 0;
}

.footer-logo-img {
  height: 70px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Right column: takes all remaining width */
.footer-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Row 1 — social icons, pushed to the right */
.footer-social {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

/* Individual icon buttons */
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: #ffffff;
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.footer-social-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

.footer-social-btn--instagram {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.footer-social-btn--linkedin {
  background: #0077b5;
}

.footer-social-btn--facebook {
  background: #00457c;
}

/* Row 2 — 1px horizontal divider line */
.footer-divider {
  height: 1px;
  background-color: #d1d5db;
  width: 100%;
}

/* Row 3 — contact text, right-aligned */
.footer-contact {
  font-size: 0.72rem;
  color: #555555;
  text-align: right;
  margin-top: 5px;
  line-height: 1.4;
}

.footer-contact a {
  color: #333333;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.footer-contact a:hover {
  border-bottom-color: #333333;
}

/* Bottom bar — centered copyright & attribution */
.footer-bottom {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.footer-designer,
.footer-copyright {
  font-size: 0.68rem;
  line-height: 1.5;
  margin: 0;
  text-align: center;
  width: 100%;
}

.footer-designer {
  color: #777777;
}

.footer-sep {
  display: inline;
}

.footer-updated {
  color: #8b0000;
  font-weight: 500;
  display: inline-block;
  white-space: nowrap;
}

.footer-copyright {
  color: #777777;
}

.footer-copyright a {
  color: #444444;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.footer-copyright a:hover {
  color: #111111;
  border-bottom-color: #111111;
}

/* Utilities */
.text-center {
  text-align: center !important;
}

.justify-center {
  justify-content: center !important;
}

/* ── Signature ─────────────────────────────────────────────── */
.signature-img {
  display: block;
  width: 120px;
  height: auto;
  margin: 0 auto;
  opacity: 0.55;
  mix-blend-mode: multiply;
  filter: grayscale(1);
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 860px) {
  .gallery-grid { column-count: 2; }
  .catalogue-grid { column-count: 2; }
  .bio-wrap {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 540px;
  }
  .bio-portrait {
    width: 180px;
    margin: 0 auto;
    aspect-ratio: auto;
    border-radius: 0;
  }
  .bio-text { text-align: left; }

  /* Hero — tablet */
  .hero-section {
    margin-top: 28px;
  }
}

/* ── FOOTER — MOBILE (≤768px) ────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-footer {
    padding: 20px 15px;
    gap: 15px;
    margin-top: 24px;
  }

  .footer-main {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
  }

  .footer-left {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .footer-logo-img {
    height: 48px;
    width: auto;
  }

  .footer-right {
    width: 100%;
    align-items: center;
  }

  .footer-social {
    justify-content: center;
    margin-bottom: 10px;
  }

  .footer-divider {
    width: 100%;
  }

  .footer-contact {
    text-align: center;
    font-size: 12px;
  }

  .footer-bottom {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
  }

  .footer-designer,
  .footer-copyright {
    text-align: center;
    font-size: 11px;
    line-height: 1.5;
    margin: 0;
  }

  .footer-sep {
    display: none;
  }

  .footer-updated {
    display: block;
    margin-top: 4px;
    text-align: center;
    font-size: 11px;
    line-height: 1.5;
    color: #8b0000;
  }
}

@media (max-width: 640px) {
  .site-wrap { padding: 0 20px; }
  .artist-name { font-size: 2.2rem; }
  .artist-discipline { font-size: 0.62rem; letter-spacing: 0.22em; }
  .site-nav a { font-size: 0.72rem; padding: 2px 4px; }
  .gallery-grid { column-count: 2; column-gap: 10px; }
  .catalogue-grid { column-count: 1; max-width: 420px; margin: 0 auto; }
  .studio-grid { column-count: 1; max-width: 500px; margin: 0 auto; }
  .film-grid { column-count: 1; max-width: 500px; margin: 0 auto; }

  /* Hero — mobile */
  .hero-section {
    margin-top: 20px;
    padding: 0 20px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
  }
  .home-text {
    padding-top: 32px;
    padding-left: 4px;
    padding-right: 4px;
  }
  /* Tagline slightly smaller on mobile — keeps proportion with shorter line lengths */
  .home-text .tagline {
    font-size: 1.0rem;
    line-height: 1.6;
    margin-bottom: 20px;
  }
  /* Body text: slightly tighter on narrow screens but still airy */
  .home-text p {
    font-size: 0.84rem;
    line-height: 1.85;
    margin-bottom: 1em;
  }
  .content-rule {
    margin: 22px auto;
  }
}

@media (max-width: 420px) {
  .gallery-grid { column-count: 1; }
  .artist-name { font-size: 1.85rem; }
  /* hero-section is already edge-to-edge from 640px breakpoint */
  .home-text .tagline {
    font-size: 0.95rem;
  }
}

/* ── HAMBURGER BUTTON ──────────────────────────────────────── */
.nav-hamburger {
  display: none; /* hidden on desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin: 0;
  border-radius: 0;
  transition: opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.nav-hamburger:hover {
  opacity: 0.7;
}

.nav-hamburger__bar {
  display: block;
  width: 22px;
  height: 2px;
  background: #666666;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Animate bars into an × when open */
.nav-hamburger--open .nav-hamburger__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger--open .nav-hamburger__bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger--open .nav-hamburger__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── MOBILE NAV (≤768px) ───────────────────────────────────── */
@media (max-width: 768px) {
  .home-heading {
    display: block;
  }

  .site-header {
    position: relative;
    display: block;
    padding: 24px 20px 16px;
    text-align: center;
  }

  .site-header .site-wrap {
    padding: 0;
    margin: 0 auto;
    text-align: center;
    width: 100%;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 900;
    background: #ffffff;
    padding: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  }

  /* Show hamburger */
  .nav-hamburger {
    display: flex;
    position: absolute;
    right: 20px;
    top: 20px;
  }

  /* Hide the link list by default */
  .site-nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    padding: 10px 0 16px;
    /* Slide-down entry */
    animation: none;
  }

  /* Revealed when toggle fires */
  .site-nav ul.nav-menu--open {
    display: flex;
    animation: navSlideDown 0.25s ease forwards;
  }

  @keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Stack links vertically, remove pipes */
  .site-nav li { width: 100%; justify-content: center; }

  .nav-pipe { display: none; }

  .site-nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 8px 12px;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid #f0ede8;
  }

  .site-nav li:last-child a {
    border-bottom: none;
  }

  .site-nav a:hover,
  .site-nav a.active,
  .site-nav a[aria-current="page"] {
    color: #111111;
    background: #faf8f5;
  }
}

