/* ==========================================================================
   Photocraft Imaging Sdn Bhd — shared stylesheet
   ========================================================================== */

:root {
  --paper: #F7F5F0;
  --paper-deep: #EFEBE1;
  --ink: #201C16;
  --ink-soft: #4A443B;
  --stone: #6B6459;
  --stone-line: #DDD6C8;
  --teal: #2F5FA6;
  --teal-deep: #1F4275;
  --gold: #2FA14C;
  --white: #FFFFFF;

  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --max: 1160px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

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

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 4.4vw, 3.8rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 500; letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; font-weight: 600; }

p { margin: 0 0 1rem; color: var(--ink-soft); max-width: 62ch; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 0.9rem;
  display: inline-block;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 56ch;
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover { background: var(--teal-deep); }
.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--stone-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo {
  height: 60px;
  width: auto;
  display: block;
}
.brand .sub {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--stone);
  letter-spacing: 0.02em;
  max-width: 130px;
  line-height: 1.3;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
nav.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--ink);
  border-bottom-color: var(--gold);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

/* Hero --------------------------------------------------------------------*/
.hero {
  padding: 64px 0 40px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  display: block;
}
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy p { margin-bottom: 30px; }
.hero-photo {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 848/600;
  background: var(--paper-deep);
  border: 1px solid var(--stone-line);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Stats strip ---------------------------------------------------------------*/
.stats {
  border-top: 1px solid var(--stone-line);
  border-bottom: 1px solid var(--stone-line);
  margin-top: 56px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat {
  padding: 30px 24px;
  text-align: left;
  border-left: 1px solid var(--stone-line);
}
.stat:first-child { border-left: none; }
.stat .num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--teal);
  display: block;
}
.stat .label {
  font-size: 0.85rem;
  color: var(--stone);
  margin-top: 4px;
}

/* Section spacing ---------------------------------------------------------*/
.section { padding: 84px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-alt { background: var(--paper-deep); }

/* What we shoot — tag-style cards ------------------------------------------*/
.shoot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--stone-line);
  border: 1px solid var(--stone-line);
}
.shoot-card {
  background: var(--paper);
  padding: 34px 30px;
}
.shoot-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--teal);
  background: rgba(47, 95, 166, 0.08);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.shoot-card h3 { margin-bottom: 8px; }
.shoot-card p { font-size: 0.94rem; margin: 0; }

/* Process (genuinely sequential — numbered) ---------------------------------*/
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.process-step .step-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--gold);
  display: block;
  margin-bottom: 14px;
}
.process-step h4 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { font-size: 0.92rem; }

/* Testimonials --------------------------------------------------------------*/
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: var(--white);
  border: 1px solid var(--stone-line);
  border-radius: var(--radius);
  padding: 28px;
}
.testi-card p.quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 16px;
}
.testi-card .who {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--stone);
}

/* CTA band -------------------------------------------------------------------*/
.cta-band {
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius);
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.82); margin: 0; }
.cta-band .btn-outline { border-color: rgba(255,255,255,0.6); color: var(--white); }
.cta-band .btn-outline:hover { background: var(--white); color: var(--teal); }

/* Portfolio coming soon --------------------------------------------------------*/
.portfolio-coming-soon {
  text-align: center;
  max-width: 520px;
  margin: 40px auto 20px;
  padding: 64px 32px;
  border: 1.5px dashed var(--stone-line);
  border-radius: var(--radius);
}
.portfolio-coming-soon .section-label { margin-bottom: 14px; }
.portfolio-coming-soon h2 { margin-bottom: 14px; }
.portfolio-coming-soon .lede { margin: 0 auto 28px; }

/* Portfolio banner (full-width feature shot) ---------------------------------*/
.portfolio-banner {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stone-line);
  margin-bottom: 20px;
}
.portfolio-banner img {
  width: 100%;
  height: auto;
  display: block;
  cursor: zoom-in;
}

/* Portfolio grid -------------------------------------------------------------*/
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.portfolio-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-deep);
  border: 1px solid var(--stone-line);
}
.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover;
  cursor: zoom-in;
}

/* Lightbox ---------------------------------------------------------------------*/
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(32, 28, 22, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.22); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s ease;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

@media (max-width: 560px) {
  .lightbox { padding: 16px; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; }
}

/* Team / branches -------------------------------------------------------------*/
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.team-card .photo {
  aspect-ratio: 4/3.4;
  border-radius: var(--radius);
  background: var(--paper-deep);
  border: 1px solid var(--stone-line);
  margin-bottom: 16px;
  overflow: hidden;
}
.team-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-card .kicker {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 6px;
  display: block;
}

/* Client logo grid -------------------------------------------------------------*/
.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--stone-line);
  border: 1px solid var(--stone-line);
}
.client-logo {
  background: var(--white);
  aspect-ratio: 2.2/1;
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
}
.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Why choose us ------------------------------------------------------------------*/
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 48px;
}
.why-item h3 { margin-bottom: 10px; }
.why-item p { margin: 0; font-size: 0.96rem; }

/* Quote block -----------------------------------------------------------------*/
.pull-quote {
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 26px;
  margin: 40px 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--ink);
}

/* Contact ------------------------------------------------------------------------*/
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
}
.office-card {
  border-top: 1px solid var(--stone-line);
  padding: 22px 0;
}
.office-card .tag-hq {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.03em;
  margin-bottom: 6px;
  display: block;
}
.office-card dl { margin: 12px 0 0; }
.office-card dt {
  font-size: 0.75rem;
  color: var(--stone);
  font-weight: 600;
  margin-top: 10px;
}
.office-card dd { margin: 2px 0 0; color: var(--ink-soft); }

form.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--stone-line);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--teal);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--stone); margin-top: 4px; }

/* Footer ---------------------------------------------------------------------------*/
footer.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.72);
  padding: 64px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo {
  height: 52px;
  width: auto;
  background: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.footer-grid p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: rgba(255,255,255,0.68); font-size: 0.9rem; }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Page hero (interior pages) -------------------------------------------------------*/
.page-hero { padding: 56px 0 20px; }
.page-hero .section-label { margin-bottom: 14px; }
.page-hero h1 { margin-bottom: 16px; }

/* Responsive ------------------------------------------------------------------------*/
@media (max-width: 900px) {
  nav.main-nav { display: none; }
  nav.main-nav.nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--stone-line);
    padding: 12px 32px 20px;
    gap: 16px;
  }
  .site-header { position: sticky; }
  .header-inner { position: relative; }
  .nav-toggle { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .shoot-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-left: none; border-top: 1px solid var(--stone-line); }
  .stat:first-child { border-top: none; }
  .shoot-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { padding: 16px 20px; }
  .container { padding: 0 20px; }
}

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