/* =========================================================
   Hasib — Photographer Portfolio
   Design tokens pulled from the reference mockup:
   amber/orange gradient + near-black ink, bold uppercase
   headline type, sharp-cornered black CTA, boxed active nav.
   ========================================================= */

:root {
  --amber-1: #f9c449;
  --amber-2: #ff8c1a;
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --paper: #fffaf0;
  --white: #ffffff;
  --muted: #55503f;
  --border: rgba(10, 10, 10, 0.15);
  --radius-sm: 2px;
  --shadow-soft: 0 20px 60px rgba(10, 10, 10, 0.12);
  --container: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --ff-display: "Archivo Black", "Arial Black", sans-serif;
  --ff-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--ff-display);
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--ink-soft);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
}

.btn-outline:hover {
  transform: translateY(-2px);
  background: var(--ink);
  color: var(--white);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--ff-display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.logo svg {
  width: 34px;
  height: 34px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links a {
  position: relative;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: border-color 0.2s ease;
}

.nav-links a:hover {
  border-color: var(--border);
}

.nav-links a.active {
  border-color: var(--ink);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

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

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

.hero {
  background: radial-gradient(120% 140% at 75% 20%, var(--amber-1), var(--amber-2) 70%);
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 8vw, 6rem);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-headline {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
}

.hero-headline span {
  display: block;
}

.hero-copy {
  margin-top: 1.5rem;
  max-width: 30rem;
  font-size: 1rem;
  color: var(--ink-soft);
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 2px dashed rgba(10, 10, 10, 0.35);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  text-align: center;
  padding: 2rem;
}

.hero-visual.has-image {
  border-style: solid;
  background: none;
  padding: 0;
  overflow: hidden;
}

.hero-visual.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.placeholder-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink-soft);
}

.placeholder-note svg {
  width: 46px;
  height: 46px;
  opacity: 0.6;
}

.placeholder-note strong {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.placeholder-note small {
  font-size: 0.78rem;
  max-width: 15rem;
  opacity: 0.75;
}

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

section {
  padding: clamp(3rem, 7vw, 6rem) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
}

.section-head p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Featured strip (home) ---------- */

.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}

.featured-grid .tile {
  aspect-ratio: 3 / 4;
}

/* ---------- Photo tile placeholder ---------- */

.tile {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #efe6d2;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile .placeholder-note svg {
  width: 32px;
  height: 32px;
}

.tile .placeholder-note small {
  max-width: 9rem;
}

.tile-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.72), transparent);
  color: var(--white);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tile:hover .tile-caption {
  opacity: 1;
  transform: translateY(0);
}

.tile-caption .cat {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.tile-caption .title {
  font-weight: 700;
}

/* ---------- Strip / stats ---------- */

.strip {
  background: var(--ink);
  color: var(--paper);
}

.strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  text-align: center;
}

.strip .stat strong {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.strip .stat span {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}

.about-photo {
  aspect-ratio: 4 / 5;
  border-radius: 8px;
}

.services-list {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.services-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.services-list li span {
  font-family: var(--ff-body);
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--muted);
}

/* ---------- Portfolio filters + grid ---------- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.filter-btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--ink);
  color: var(--white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.portfolio-grid .tile {
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

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

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  max-width: 900px;
  width: 100%;
  color: var(--white);
  text-align: center;
}

.lightbox-frame {
  aspect-ratio: 4 / 3;
  border: 2px dashed rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.lightbox-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}

.lightbox-close {
  position: absolute;
  top: 1.75rem;
  right: 2rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-info h3 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.contact-info a,
.contact-info p {
  font-size: 1.05rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
  background: var(--ink);
  color: var(--white);
}

.social-links svg {
  width: 18px;
  height: 18px;
}

form {
  display: grid;
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  font-family: var(--ff-body);
  font-size: 0.95rem;
  padding: 0.85rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--ink);
}

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

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.form-success {
  display: none;
  padding: 1rem 1.2rem;
  border: 2px solid var(--ink);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-success.show {
  display: block;
}

/* ---------- CTA band ---------- */

.cta-band {
  background: radial-gradient(120% 160% at 20% 0%, var(--amber-1), var(--amber-2) 75%);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 40rem;
  margin: 0 auto;
}

.cta-band p {
  margin: 1.25rem auto 2rem;
  max-width: 32rem;
  color: var(--ink-soft);
}

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

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-top .logo {
  color: var(--white);
}

.footer-top .logo svg circle {
  stroke: var(--white);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.78rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

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

  .featured-grid,
  .strip .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
  }

  .nav-toggle {
    display: block;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .featured-grid,
  .strip .container,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
