/* ============================================================
   AFROOZ STUDIO — Stylesheet
   Author: Afrooz Studio
   Fonts: Cormorant Garamond (headings) + Inter (body)
   ============================================================ */

/* ── CSS Variables ── */
:root {
  --bronze:   #5A3A22;
  --charcoal: #1C1C1C;
  --gold:     #B68A3A;
  --paper:    #F7F5F1;
  --text:     #222;
  --muted:    #6b625a;
  --line:     #ded7ce;
  --max:      1180px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

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

/* ============================================================
   HEADER & NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 245, 241, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 54px);
}

.brand {
  font-family: "Cormorant Garamond", serif;
  font-size: 28px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 14px;
}

.nav a { text-decoration: none; }
.nav a:hover { color: var(--bronze); }

.nav-cta { border: 1px solid var(--bronze); padding: 9px 14px; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  padding: 9px 12px;
  cursor: pointer;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.section-pad {
  padding: clamp(64px, 8vw, 120px) clamp(18px, 4vw, 54px);
  max-width: var(--max);
  margin: auto;
}

.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(34px, 6vw, 78px);
  align-items: center;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bronze);
  font-weight: 700;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  min-height: calc(100vh - 74px);
}

.hero h1,
.section-title h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(50px, 7vw, 94px);
  line-height: 0.92;
  margin: 10px 0 22px;
  font-weight: 600;
}

.section-title h2 {
  font-size: clamp(38px, 5vw, 68px);
  max-width: 900px;
}

.lead {
  font-size: clamp(19px, 2.4vw, 27px);
  max-width: 630px;
  color: #3c3732;
}

.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* Hero credential badges */
.hero-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.credential-badge {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 7px 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.5);
}

.credential-badge strong {
  color: var(--bronze);
  font-weight: 600;
}

/* Hero image frame */
.hero-image {
  background: #efeae2;
  padding: 18px;
  box-shadow: 0 20px 70px rgba(90, 58, 34, 0.13);
}

.hero-image img {
  height: min(78vh, 780px);
  width: 100%;
  object-fit: cover;
}

/* ============================================================
   TRUST STRIP
   ============================================================ */
.strip {
  max-width: 100%;
  padding: 20px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 28px;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--bronze);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.strip span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  text-decoration: none;
  border: 1px solid var(--bronze);
  font-weight: 600;
  min-height: 48px;
  transition: box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn.primary {
  background: var(--bronze);
  color: #fff;
}

.btn.ghost {
  background: transparent;
  color: var(--bronze);
}

.btn:hover,
.nav-cta:hover {
  box-shadow: 0 12px 30px rgba(90, 58, 34, 0.16);
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.portrait {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.08);
}

.copy p {
  font-size: 18px;
  color: #3b3630;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 30px;
}

.skill-grid span,
.card {
  border: 1px solid var(--line);
  padding: 14px;
  background: rgba(255, 255, 255, 0.44);
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 28px 0 34px;
}

.filter {
  border: 1px solid var(--line);
  background: transparent;
  padding: 10px 14px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s, color 0.2s;
}

.filter.active {
  background: var(--charcoal);
  color: #fff;
}

.filter:hover:not(.active) {
  background: var(--line);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project {
  background: #fff;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.project:focus {
  outline: 3px solid rgba(182, 138, 58, 0.45);
  outline-offset: 3px;
}

.project:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.project img {
  height: 340px;
  width: 100%;
  object-fit: cover;
  background: #eee;
  transition: transform 0.45s ease;
}

.project:hover img { transform: scale(1.025); }

.project div { padding: 20px; }

.project h3,
.card h3,
.contact-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 31px;
  line-height: 1.05;
  margin: 0 0 8px;
}

.project p,
.card p { color: #3f3933; }

/* ── Project Carousel Showcase ── */
.project-showcase-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.project-showcase { background: #fff; }

.project-showcase .project-carousel {
  position: relative;
  padding: 0;
  background: #111;
  overflow: hidden;
}

.project-showcase .carousel-main {
  height: 520px;
  width: 100%;
  object-fit: cover;
  background: #151515;
  cursor: zoom-in;
}

/* Cancel the base hover scale on showcase cards */
.project-showcase:hover .carousel-main { transform: none; }

.project-showcase .project-content { padding: 24px; }
.project-showcase .project-content p { margin-bottom: 0; }

.carousel-btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(28, 28, 28, 0.55);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 31px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease;
}

.carousel-btn:hover { background: rgba(90, 58, 34, 0.9); }
.carousel-btn.prev { left: 12px; }
.carousel-btn.next { right: 12px; }

.project-showcase .thumb-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  padding: 10px;
  background: #151515;
}

.thumb {
  border: 1px solid transparent;
  background: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.thumb.active,
.thumb:hover {
  opacity: 1;
  border-color: var(--gold);
}

.project .thumb img {
  height: 64px;
  width: 100%;
  object-fit: cover;
  display: block;
  background: #222;
}

/* Romania/last card spans full width */
.project-showcase-grid .project:last-child {
  grid-column: 1 / -1;
}

.project-showcase-grid .project:last-child .carousel-main {
  height: 620px;
}

.project.hidden { display: none !important; }

/* ============================================================
   SERVICES
   ============================================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  padding: 28px;
  min-height: 230px;
}

.card a {
  color: var(--bronze);
  font-weight: 700;
  text-decoration: none;
}

.card a:hover { text-decoration: underline; }

/* ============================================================
   PUBLIC ART (DARK SECTION)
   ============================================================ */
.dark {
  max-width: 100%;
  background: var(--charcoal);
  color: #fff;
}

.dark .section-title,
.dark .two-col {
  max-width: var(--max);
  margin: auto;
}

.dark .eyebrow    { color: var(--gold); }
.dark .copy p     { color: #eee; }
.dark .btn.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #1c1c1c;
}

.wide-image {
  height: 520px;
  width: 100%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================================
   PROCESS
   ============================================================ */
.timeline {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 8px;
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.timeline li {
  border-top: 2px solid var(--bronze);
  padding-top: 14px;
  font-size: 14px;
}

.timeline li::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  color: var(--bronze);
  font-weight: 700;
}

.process-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 42px;
}

.process-images img {
  height: 260px;
  width: 100%;
  object-fit: cover;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 30px;
  align-items: start;
}

.contact-form,
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  font: inherit;
  background: #fff;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--bronze);
}

/* Textarea and submit span full width */
.contact-form .full-width { grid-column: 1 / -1; }

/* Form status messages */
.form-status {
  display: none;
  grid-column: 1 / -1;
  padding: 14px 18px;
  font-size: 14px;
  border: 1px solid var(--line);
}

.form-status.success {
  display: block;
  background: #f0faf0;
  border-color: #6dbf6d;
  color: #2a6a2a;
}

.form-status.error {
  display: block;
  background: #fff5f5;
  border-color: #e88;
  color: #8a2a2a;
}

/* ============================================================
   CONTACT CARD (sidebar)
   ============================================================ */
.contact-card { display: flex; flex-direction: column; gap: 16px; }
.contact-card h3 { margin: 0; }

.contact-detail-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}

.contact-detail-val {
  font-size: 16px;
  color: var(--text);
}

.contact-detail-val a { color: var(--bronze); }
.contact-detail-val a:hover { text-decoration: underline; }

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.social-link {
  border: 1px solid var(--line);
  padding: 8px 14px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.social-link:hover {
  border-color: var(--bronze);
  color: var(--bronze);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 24px clamp(18px, 4vw, 54px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.footer a { color: var(--bronze); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 99;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.active { display: flex; }
.lightbox img    { max-height: 90vh; max-width: 92vw; }

.close {
  position: absolute;
  right: 24px;
  top: 18px;
  background: none;
  color: #fff;
  border: 0;
  font-size: 42px;
  cursor: pointer;
  line-height: 1;
}

/* ============================================================
   SCROLL REVEAL
   Fix: elements are visible by default.
   JS adds .js-ready to <html> before triggering animations,
   so users without JS always see the content.
   ============================================================ */
.reveal {
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
}

.js-ready .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE — Tablet (≤950px)
   ============================================================ */
@media (max-width: 950px) {
  .menu-toggle { display: block; }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 70px;
    background: var(--paper);
    padding: 20px;
    flex-direction: column;
    border-bottom: 1px solid var(--line);
  }

  .nav.open { display: flex; }

  .hero,
  .two-col,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

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

  .project-showcase-grid {
    grid-template-columns: 1fr;
  }

  .project-showcase-grid .project:last-child {
    grid-column: auto;
  }

  .project-showcase .carousel-main,
  .project-showcase-grid .project:last-child .carousel-main {
    height: 460px;
  }

  .project-showcase .thumb-row {
    grid-template-columns: repeat(4, 1fr);
  }

  .timeline {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* ============================================================
   RESPONSIVE — Mobile (≤620px)
   ============================================================ */
@media (max-width: 620px) {
  .project-grid,
  .service-grid,
  .process-images,
  .skill-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 { font-size: 48px; }

  .project img { height: 300px; }

  .project-showcase .carousel-main,
  .project-showcase-grid .project:last-child .carousel-main {
    height: 360px;
  }

  .carousel-btn { width: 36px; height: 36px; font-size: 26px; }
  .project .thumb img { height: 56px; }

  .project-showcase .thumb-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .strip { justify-content: flex-start; }
  .footer { display: block; }

  .timeline { grid-template-columns: 1fr; }

  .site-header { padding: 14px 18px; }
  .brand { font-size: 24px; }
  .hero { min-height: auto; }

  .contact-form { grid-template-columns: 1fr; }
  .hero-credentials { flex-direction: column; }
}
