/* JID — Justinterior Design | style.css */

:root {
  --linen:  #F5F3EF;
  --ink:    #1A1917;
  --mid:    #4A4845;
  --light:  #9A9590;
  --stone:  #C4B8A8;
  --rule:   #D5D1CB;
  --serif:  'Bodoni Moda', Georgia, serif;
  --sans:   'Inter', 'Helvetica Neue', Arial, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--linen);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ─── NAV ─────────────────────────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: var(--linen);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
nav.scrolled { border-bottom-color: var(--rule); }

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 48px; width: auto; }

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 201;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 1px;
  background: var(--ink);
  transition: all 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

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

.hero {
  height: 100vh;
  width: 100%;
  overflow: hidden;
  position: relative;
}
.hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

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

.home-intro {
  padding: 88px 48px 72px;
  max-width: 740px;
}
.home-intro p {
  font-size: 18px;
  line-height: 1.85;
  color: var(--mid);
  margin-bottom: 20px;
}

.home-nav-strip {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.home-nav-item {
  flex: 1;
  display: block;
  padding: 32px 48px;
  text-decoration: none;
  border-right: 1px solid var(--rule);
  transition: background 0.2s;
}
.home-nav-item:last-child { border-right: none; }
.home-nav-item:hover { background: rgba(196,184,168,0.12); }
.home-nav-label {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  display: block;
  margin-bottom: 6px;
}
.home-nav-desc {
  font-size: 13px;
  color: var(--light);
}

/* ─── PAGE HEADER ─────────────────────────────────────── */

.page-wrap { padding-top: 89px; }

.page-header {
  padding: 72px 48px 48px;
  border-bottom: 1px solid var(--rule);
}
.page-header h1 {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--light);
  display: block;
  margin-bottom: 14px;
}

/* ─── PORTFOLIO GRID ──────────────────────────────────── */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 3px;
}
.portfolio-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  text-decoration: none;
  background: var(--stone);
}
.portfolio-card.featured {
  grid-column: 1 / -1;
  aspect-ratio: 16/7;
}
.portfolio-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}
.portfolio-card:hover img { transform: scale(1.03); }
.portfolio-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 28px 24px;
  background: linear-gradient(transparent, rgba(26,25,23,0.65));
}
.portfolio-card-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: #fff;
  display: block;
  line-height: 1.2;
}
.portfolio-card-location {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 5px;
  display: block;
}

/* ─── PROJECT PAGE ────────────────────────────────────── */

.project-hero {
  width: 100%;
  height: 72vh;
  overflow: hidden;
}
.project-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.project-header {
  padding: 56px 48px 44px;
  border-bottom: 1px solid var(--rule);
}
.project-title {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.15;
}

.project-body {
  padding: 56px 48px;
  max-width: 700px;
  border-bottom: 1px solid var(--rule);
}
.project-body p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--mid);
  margin-bottom: 22px;
}
.project-body p:last-child { margin-bottom: 0; }

/* Gallery */
.gallery {
  padding: 40px 48px 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.gallery img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: opacity 0.2s;
}
.gallery img:hover { opacity: 0.9; }
.gallery .full { grid-column: 1 / -1; aspect-ratio: 16/9; }
.gallery .portrait { aspect-ratio: 3/4; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light);
  text-decoration: none;
  padding: 40px 48px;
  border-top: 1px solid var(--rule);
  width: 100%;
  transition: color 0.2s;
}
.back-link:hover { color: var(--ink); }
.back-link::before { content: '←'; font-size: 13px; }

/* ─── CONTENT PAGES ───────────────────────────────────── */

.content-header {
  padding: 72px 48px 52px;
  border-bottom: 1px solid var(--rule);
}
.content-header h1 {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.content-body {
  padding: 60px 48px;
  max-width: 700px;
}
.content-body p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--mid);
  margin-bottom: 24px;
}
.content-body p:last-child { margin-bottom: 0; }

.service-block { margin-bottom: 52px; }
.service-block h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 16px;
}
.service-block p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--mid);
}
.service-divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 52px 0;
}

/* About photo placeholder */
.about-photo-wrap {
  padding: 0 48px 0;
  max-width: 500px;
}
.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--stone);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 20px;
  margin-bottom: 0;
  overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo-label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light);
}

/* Contact */
.contact-details { margin-top: 40px; }
.contact-row {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.contact-row:first-child { border-top: 1px solid var(--rule); }
.contact-label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light);
  min-width: 80px;
}
.contact-value {
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-value:hover { color: var(--light); }

/* CTA */
.cta {
  display: inline-block;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  margin-top: 32px;
  transition: color 0.2s, border-color 0.2s;
}
.cta:hover { color: var(--light); border-color: var(--light); }

/* ─── FOOTER ──────────────────────────────────────────── */

footer {
  padding: 44px 48px;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}
.footer-logo img { height: 36px; width: auto; opacity: 0.55; }
.footer-right { text-align: right; }
.footer-copy {
  font-size: 10.5px;
  color: var(--light);
  letter-spacing: 0.06em;
  display: block;
}
.footer-email {
  font-size: 11px;
  color: var(--light);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
  display: block;
  margin-top: 4px;
}
.footer-email:hover { color: var(--ink); }

/* ─── LIGHTBOX ────────────────────────────────────────── */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,25,23,0.96);
  z-index: 500;
  cursor: zoom-out;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  pointer-events: none;
}
.lb-close {
  position: absolute;
  top: 28px; right: 36px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: color 0.2s;
}
.lb-close:hover { color: #fff; }

/* ─── FOOTER INSTAGRAM ────────────────────────────────── */

.footer-instagram {
  font-size: 10.5px;
  color: var(--light);
  text-decoration: none;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 4px;
  transition: color 0.2s;
}
.footer-instagram:hover { color: var(--ink); }

/* ─── CONTACT FORM ────────────────────────────────────── */

.contact-form { margin-top: 52px; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea,
.form-group select {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--rule);
  padding: 10px 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
  -webkit-appearance: none;
  border-radius: 0;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: var(--stone);
}

.form-group textarea {
  resize: none;
  min-height: 120px;
  line-height: 1.7;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--rule); }

.form-hidden { display: none; }

.form-submit {
  margin-top: 8px;
  display: inline-block;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--linen);
  background: var(--ink);
  border: none;
  padding: 16px 36px;
  cursor: pointer;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--mid); }

.form-success {
  display: none;
  padding: 32px 0;
}
.form-success p {
  font-size: 17px;
  color: var(--mid);
  line-height: 1.7;
}

/* ─── COOKIE BANNER ───────────────────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 18px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 300;
  font-size: 12px;
  line-height: 1.5;
}
.cookie-banner.hidden { display: none; }

.cookie-banner p { flex: 1; }
.cookie-banner a { color: rgba(255,255,255,0.5); }
.cookie-banner a:hover { color: #fff; }

.cookie-actions { display: flex; gap: 12px; flex-shrink: 0; }

.cookie-btn {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
  padding: 8px 18px;
  cursor: pointer;
  transition: all 0.2s;
}
.cookie-btn.accept { background: rgba(255,255,255,0.15); }
.cookie-btn:hover { border-color: rgba(255,255,255,0.7); }

/* ─── RESPONSIVE ──────────────────────────────────────── */

@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card.featured { aspect-ratio: 4/3; }
}

@media (max-width: 768px) {
  nav { padding: 16px 24px; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--linen);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 36px;
    z-index: 200;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 13px; }
  .nav-toggle { display: flex; }

  .hero { height: 65vh; }

  .home-intro { padding: 56px 24px 48px; }
  .home-intro p { font-size: 16px; }
  .home-nav-strip { flex-direction: column; }
  .home-nav-item { border-right: none; border-bottom: 1px solid var(--rule); padding: 24px; }
  .home-nav-item:last-child { border-bottom: none; }

  .page-header { padding: 56px 24px 40px; }
  .page-header h1 { font-size: 38px; }

  .project-hero { height: 50vh; }
  .project-header { padding: 44px 24px 36px; }
  .project-title { font-size: 32px; }
  .project-body { padding: 44px 24px; }
  .project-body p { font-size: 16px; }

  .gallery { padding: 24px 16px 40px; gap: 4px; }
  .back-link { padding: 32px 24px; }

  .content-header { padding: 56px 24px 44px; }
  .content-header h1 { font-size: 38px; }
  .content-body { padding: 48px 24px; }
  .content-body p { font-size: 16px; }

  .about-photo-wrap { padding: 0 24px; }

  footer { padding: 36px 24px; }
  .footer-right { display: none; }

  .form-row { grid-template-columns: 1fr; gap: 0; }

  .cookie-banner {
    padding: 16px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
