/*
Theme Name: Siavash Habibi Photography
Theme URI: https://siavashhabibi.com
Author: Siavash Habibi
Author URI: https://siavashhabibi.com
Description: A cinematic, editorial, photography-first portfolio theme with built-in bilingual (EN/FA) support and a dark/light mode switch. Standalone theme, not a child theme.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: siavash-habibi
Tags: photography, portfolio, one-page, rtl-language-support, dark-mode
*/

/* =========================================================
   SIAVASH HABIBI — PHOTOGRAPHER
   Direction: photography-first / editorial / cinematic
   No external libraries. Replace demo image URLs with the
   final self-hosted WebP/AVIF assets in production.
   ========================================================= */

@font-face{
  font-family:"InterLocal";
  src:url("assets/fonts/Inter-Regular.woff2") format("woff2");
  font-weight:400;font-style:normal;font-display:swap;
}
@font-face{
  font-family:"InterLocal";
  src:url("assets/fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight:600;font-style:normal;font-display:swap;
}
@font-face{
  font-family:"VazirmatnLocal";
  src:url("assets/fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight:400;font-style:normal;font-display:swap;
}
@font-face{
  font-family:"VazirmatnLocal";
  src:url("assets/fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight:700;font-style:normal;font-display:swap;
}

:root{
  --bg:#111;
  --surface:#171717;
  --surface-2:#1d1d1d;
  --text:#f2f0eb;
  --muted:#9a9893;
  --line:rgba(242,240,235,.15);
  --line-strong:rgba(242,240,235,.28);
  --accent:#c8b38a;
  --max:1500px;
  --pad:clamp(20px,4vw,64px);
  --ease:cubic-bezier(.2,.7,.2,1);
}

html[data-theme="light"]{
  --bg:#f3f1ec;
  --surface:#eae7e0;
  --surface-2:#e2dfd7;
  --text:#171717;
  --muted:#66645f;
  --line:rgba(23,23,23,.14);
  --line-strong:rgba(23,23,23,.26);
  --accent:#866f45;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:"InterLocal",Inter,Arial,sans-serif;
  line-height:1.45;
  transition:background .35s ease,color .35s ease;
}
body[dir="rtl"]{
  font-family:"VazirmatnLocal","Tahoma",sans-serif;
}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit}
img{display:block;max-width:100%}
::selection{background:var(--text);color:var(--bg)}

.site{
  width:min(100%,var(--max));
  margin:auto;
  padding:0 var(--pad);
}

/* Header */
.header{
  position:fixed;
  inset:0 0 auto;
  z-index:20;
  padding:18px var(--pad);
  background:linear-gradient(to bottom,rgba(0,0,0,.62),transparent);
  pointer-events:none;
}
.nav{
  width:min(100%,var(--max));
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  pointer-events:auto;
}
.brand{
  font-size:13px;
  font-weight:600;
  letter-spacing:.17em;
  white-space:nowrap;
}
.nav-right{
  display:flex;
  align-items:center;
  gap:22px;
}
.nav-links{
  display:flex;
  gap:24px;
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.14em;
}
.nav-links a{opacity:.75;transition:opacity .2s}
.nav-links a:hover{opacity:1}
.controls{display:flex;gap:7px}
.control{
  border:1px solid var(--line-strong);
  background:rgba(0,0,0,.18);
  backdrop-filter:blur(10px);
  border-radius:999px;
  padding:7px 10px;
  cursor:pointer;
  font-size:10px;
  letter-spacing:.08em;
  transition:.2s;
}
.control:hover{background:var(--surface-2)}

/* Hero */
.hero{
  min-height:100svh;
  position:relative;
  display:grid;
  align-items:end;
  overflow:hidden;
  background:var(--bg);
}
.hero-media{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
}
.hero-media img{
  width:100%;height:100%;
  object-fit:cover;
  object-position:center 35%;
  filter:saturate(.65) contrast(1.05);
  transform:scale(1.015);
}
.hero-media:after{
  content:"";
  position:absolute;inset:0;
  background:
    linear-gradient(to top,rgba(0,0,0,.82) 0%,rgba(0,0,0,.28) 46%,rgba(0,0,0,.14) 100%);
}
html[data-theme="light"] .hero-media:after{
  background:linear-gradient(to top,rgba(0,0,0,.65),rgba(0,0,0,.08) 68%);
}
.hero-content{
  position:relative;z-index:1;
  padding:0 var(--pad) clamp(44px,8vh,92px);
  width:min(100%,var(--max));
  margin:auto;
}
.eyebrow{
  font-size:10px;
  letter-spacing:.2em;
  text-transform:uppercase;
  opacity:.75;
  margin-bottom:18px;
}
.hero h1{
  margin:0;
  max-width:900px;
  font-size:clamp(52px,9.5vw,150px);
  line-height:.88;
  font-weight:600;
  letter-spacing:-.055em;
}
.hero-meta{
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:30px;
  margin-top:28px;
  max-width:1100px;
}
.hero-role{
  font-size:clamp(16px,2vw,23px);
  max-width:580px;
}
.hero-disciplines{
  font-size:10px;
  letter-spacing:.16em;
  text-transform:uppercase;
  text-align:right;
  line-height:1.8;
  opacity:.78;
}

/* Intro */
.intro{
  display:grid;
  grid-template-columns:1fr 1.25fr;
  gap:clamp(40px,9vw,150px);
  padding:clamp(110px,16vw,220px) 0;
  border-bottom:1px solid var(--line);
}
.section-kicker{
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.18em;
  color:var(--muted);
}
.intro-copy{
  font-size:clamp(26px,3.8vw,55px);
  line-height:1.05;
  letter-spacing:-.035em;
  max-width:930px;
  margin:0;
}
.intro-copy em{font-style:normal;color:var(--muted)}

/* Work */
.work{padding:clamp(90px,12vw,160px) 0}
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:30px;
  margin-bottom:42px;
}
.section-title{
  margin:0;
  font-size:clamp(36px,5.2vw,78px);
  line-height:.95;
  letter-spacing:-.045em;
  font-weight:500;
}
.section-note{
  color:var(--muted);
  font-size:12px;
  max-width:280px;
  text-align:right;
}

.projects{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:clamp(18px,2vw,34px);
}
.project{grid-column:span 7}
.project:nth-child(2){grid-column:8 / -1;margin-top:13vw}
.project:nth-child(3){grid-column:2 / span 5;margin-top:3vw}
.project:nth-child(4){grid-column:8 / -1;margin-top:8vw}
.project-image{
  overflow:hidden;
  background:var(--surface);
  aspect-ratio:4/5;
}
.project:nth-child(2) .project-image{aspect-ratio:4/5}
.project:nth-child(3) .project-image{aspect-ratio:3/4}
.project:nth-child(4) .project-image{aspect-ratio:16/11}
.project-image img{
  width:100%;height:100%;object-fit:cover;
  filter:saturate(.78);
  transition:transform .8s var(--ease),filter .5s ease;
}
.project:hover img{transform:scale(1.035);filter:saturate(1)}
.project-info{
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding-top:13px;
  border-top:1px solid var(--line);
  margin-top:10px;
}
.project-name{font-size:14px}
.project-type{
  color:var(--muted);
  font-size:10px;
  letter-spacing:.13em;
  text-transform:uppercase;
}

/* Archive */
.archive{
  border-top:1px solid var(--line);
  padding:clamp(80px,11vw,150px) 0;
}
.archive-row{
  display:grid;
  grid-template-columns:1.1fr 1fr 1fr;
  gap:30px;
  padding:22px 0;
  border-bottom:1px solid var(--line);
  transition:padding .25s ease;
}
.archive-row:hover{padding-left:12px;padding-right:12px}
.archive-year{color:var(--muted);font-size:11px}
.archive-name{font-size:clamp(20px,2.2vw,31px);letter-spacing:-.025em}
.archive-type{color:var(--muted);font-size:11px;text-align:right}

/* About */
.about{
  background:var(--surface);
  padding:clamp(90px,13vw,180px) 0;
}
.about-grid{
  display:grid;
  grid-template-columns:.7fr 1.3fr;
  gap:clamp(40px,9vw,140px);
}
.about h2{
  margin:0;
  font-size:clamp(40px,6vw,90px);
  line-height:.9;
  font-weight:500;
  letter-spacing:-.05em;
}
.about-copy{
  max-width:780px;
  font-size:clamp(19px,2vw,28px);
  line-height:1.3;
}
.about-copy p{margin:0 0 30px}
.facts{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:20px;
  margin-top:55px;
  padding-top:22px;
  border-top:1px solid var(--line);
}
.fact-label{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.15em}
.fact-value{margin-top:8px;font-size:14px}

/* Contact */
.contact{
  padding:clamp(110px,17vw,230px) 0;
  text-align:center;
}
.contact-kicker{color:var(--muted);font-size:10px;letter-spacing:.18em;text-transform:uppercase}
.contact h2{
  margin:20px 0 30px;
  font-size:clamp(50px,9vw,145px);
  line-height:.82;
  letter-spacing:-.06em;
  font-weight:500;
}
.contact-link{
  display:inline-block;
  font-size:clamp(16px,2vw,25px);
  border-bottom:1px solid var(--line-strong);
  padding-bottom:6px;
}

.social-links{
  margin-top:26px;
  display:flex;
  justify-content:center;
  gap:22px;
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.social-links a{opacity:.75;transition:opacity .2s}
.social-links a:hover{opacity:1}

footer{
  border-top:1px solid var(--line);
  padding:25px 0 32px;
  color:var(--muted);
  font-size:10px;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.footer-row{
  display:flex;justify-content:space-between;gap:20px;
}

.reveal{
  opacity:0;
  transform:translateY(24px);
  transition:opacity .8s ease,transform .8s var(--ease);
}
.reveal.visible{opacity:1;transform:none}

/* RTL */
[dir="rtl"] .nav-links,[dir="rtl"] .controls{direction:ltr}
[dir="rtl"] .hero-disciplines{text-align:left}
[dir="rtl"] .section-note,[dir="rtl"] .archive-type{text-align:left}
[dir="rtl"] .intro-copy{letter-spacing:0;line-height:1.2}
[dir="rtl"] .hero h1,[dir="rtl"] .section-title,[dir="rtl"] .about h2,[dir="rtl"] .contact h2{
  letter-spacing:0;
}

@media(max-width:850px){
  .nav-links{display:none}
  .nav-right{gap:10px}
  .hero-meta{display:block}
  .hero-disciplines{text-align:left;margin-top:20px}
  .intro,.about-grid{grid-template-columns:1fr;gap:38px}
  .projects{display:block}
  .project,.project:nth-child(n){margin:0 0 65px}
  .project-image{aspect-ratio:4/5!important}
  .archive-row{grid-template-columns:65px 1fr auto;gap:12px}
  .archive-type{font-size:9px}
}

@media(max-width:520px){
  :root{--pad:18px}
  .header{padding-top:14px}
  .brand{font-size:11px}
  .hero h1{font-size:clamp(48px,15vw,78px)}
  .hero-role{font-size:16px}
  .hero-disciplines{font-size:9px}
  .section-head{display:block}
  .section-note{margin-top:16px;text-align:left}
  .archive-row{grid-template-columns:1fr auto}
  .archive-year{display:none}
  .facts{grid-template-columns:1fr}
  .footer-row{display:block}
  .footer-row span{display:block;margin-bottom:8px}
}

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