/* ============================================================
   D+D Studio LLC — Shared Stylesheet
   Design: Luxury Modern | Colors: #0D0D0D / #F7F7F5 / #B8B8B8
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&family=Inter:wght@300;400;500&display=swap');

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: #F7F7F5;
  color: #0D0D0D;
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* --- CSS Variables --- */
:root {
  --black:      #0D0D0D;
  --soft-black: #1A1A1A;
  --warm-white: #F7F7F5;
  --gray:       #B8B8B8;
  --light-gray: #E8E8E6;
  --mid-gray:   #6B6B6B;
  --section-pad: 120px;
  --nav-h: 80px;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Libre Baskerville', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 5.5vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.65rem); }
h4 { font-size: 1.1rem; font-weight: 500; font-family: 'Inter', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }
p  { font-size: 1rem; color: var(--mid-gray); max-width: 640px; }

/* --- Container --- */
.container { max-width: 1200px; padding: 0 24px; margin: 0 auto; }

/* --- Utility --- */
.text-center { text-align: center; }
.text-center p { margin: 0 auto; }
.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 20px;
  display: block;
}
.section-intro {
  margin-top: 20px;
  font-size: 1.1rem;
  color: var(--mid-gray);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 15px 36px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1.5px solid transparent;
  line-height: 1;
}
.btn-primary   { background: var(--black); color: var(--warm-white); border-color: var(--black); }
.btn-primary:hover { background: var(--soft-black); border-color: var(--soft-black); }
.btn-secondary { background: transparent; color: var(--black); border-color: var(--black); }
.btn-secondary:hover { background: var(--black); color: var(--warm-white); }
.btn-white     { background: var(--warm-white); color: var(--black); border-color: var(--warm-white); }
.btn-white:hover { background: transparent; color: var(--warm-white); border-color: var(--warm-white); }
.btn-outline-white { background: transparent; color: var(--warm-white); border-color: rgba(247,247,245,0.5); }
.btn-outline-white:hover { border-color: var(--warm-white); }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav.scrolled {
  background: var(--black);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo img { height: 72px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}
.nav-links a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,247,245,0.75);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--warm-white); }
.nav-links .nav-cta a {
  background: var(--warm-white);
  color: var(--black);
  padding: 10px 24px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}
.nav-links .nav-cta a:hover { background: transparent; color: var(--warm-white); border: 1px solid var(--warm-white); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--black);
  background-image: url('Jollis-Front.png');
  background-size: cover;
  background-position: center 30%;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13,13,13,0.88) 0%, rgba(13,13,13,0.55) 60%, rgba(13,13,13,0.3) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 680px; }
.hero-content h1 { color: var(--warm-white); margin-bottom: 28px; }
.hero-content p {
  color: rgba(247,247,245,0.7);
  font-size: 1.1rem;
  margin-bottom: 44px;
  max-width: 520px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   SECTIONS — General
   ============================================================ */
.section { padding: var(--section-pad) 0; }
.section-header { margin-bottom: 64px; }
.section-header.text-center h2 { margin: 0 auto; max-width: 580px; }

/* ============================================================
   CREDIBILITY STRIP
   ============================================================ */
.credibility {
  padding: 48px 0;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  background: var(--warm-white);
}
.credibility-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.credibility-item {
  text-align: center;
  padding: 24px 32px;
  border-right: 1px solid var(--light-gray);
}
.credibility-item:last-child { border-right: none; }
.credibility-item span {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

/* ============================================================
   FEATURED WORK
   ============================================================ */
.work-preview { background: var(--warm-white); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-bottom: 56px;
}
.work-card-link { display: block; text-decoration: none; color: inherit; }
.work-card-link:hover .work-card img { transform: scale(1.04); }
.work-card { position: relative; overflow: hidden; aspect-ratio: 3/2; background: #1a1a1a; }
.work-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease, opacity 0.4s ease;
  opacity: 0.9;
}
.work-card:hover img { transform: scale(1.05); opacity: 1; }
.work-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px 24px 20px;
  background: linear-gradient(to top, rgba(13,13,13,0.85), transparent);
  transform: translateY(8px);
  opacity: 0;
  transition: all 0.35s ease;
}
.work-card:hover .work-card-info { opacity: 1; transform: translateY(0); }
.work-card-info h3 { color: var(--warm-white); font-size: 1.15rem; margin-bottom: 4px; }
.work-card-info span { color: var(--gray); font-size: 0.8rem; letter-spacing: 0.06em; }
.work-preview .text-center { margin-top: 8px; }

/* ============================================================
   PROCESS
   ============================================================ */
.process { background: #F0EFED; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
.process-step { position: relative; }
.process-step-num {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 400;
  color: var(--light-gray);
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}
.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
  color: var(--black);
}
.process-step p { font-size: 0.9rem; color: var(--mid-gray); max-width: none; }

/* ============================================================
   SERVICES PREVIEW
   ============================================================ */
.services-preview { background: var(--warm-white); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 64px;
}
.service-card {
  background: #F0EFED;
  padding: 48px 36px 44px;
  transition: background 0.3s ease;
  cursor: default;
}
.service-card:hover { background: var(--black); }
.service-card:hover h3, .service-card:hover p { color: var(--warm-white); }
.service-card:hover .service-icon { color: var(--gray); }
.service-icon {
  font-size: 1.5rem;
  margin-bottom: 24px;
  display: block;
  color: var(--gray);
  transition: color 0.3s;
}
.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  transition: color 0.3s;
}
.service-card p { font-size: 0.88rem; max-width: none; transition: color 0.3s; }

/* ============================================================
   WHY US
   ============================================================ */
.why-us { background: var(--black); }
.why-us .section-label { color: var(--gray); }
.why-us h2 { color: var(--warm-white); }
.why-us-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}
.why-us-text .section-intro { color: rgba(247,247,245,0.55); max-width: 440px; }
.why-items { display: flex; flex-direction: column; gap: 0; }
.why-item {
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.why-item:first-child { border-top: 1px solid rgba(255,255,255,0.08); }
.why-item-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gray);
  flex-shrink: 0;
  margin-top: 10px;
}
.why-item p { color: rgba(247,247,245,0.65); font-size: 0.95rem; max-width: none; margin: 0; }

/* ============================================================
   CTA
   ============================================================ */
.cta {
  background: var(--soft-black);
  text-align: center;
  padding: 100px 0;
}
.cta h2 { color: var(--warm-white); max-width: 600px; margin: 0 auto 40px; }
.cta p { color: var(--gray); margin: 0 auto 40px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  padding: 72px 0 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}
.footer-logo img { height: 64px; margin-bottom: 20px; }
.footer-tagline { color: var(--gray); font-size: 0.88rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: rgba(247,247,245,0.5); font-size: 0.88rem; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--warm-white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(247,247,245,0.3); max-width: none; margin: 0; }

/* ============================================================
   INNER PAGE HERO
   ============================================================ */
.page-hero {
  background: var(--black);
  padding: 160px 0 100px;
  position: relative;
}
.page-hero h1 { color: var(--warm-white); max-width: 700px; }
.page-hero p { color: var(--gray); margin-top: 24px; font-size: 1.05rem; max-width: 500px; }

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-list { background: var(--warm-white); }
.service-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  padding: 72px 0;
  border-bottom: 1px solid var(--light-gray);
  align-items: start;
}
.service-row:last-child { border-bottom: none; }
.service-row-label span { display: block; font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray); margin-bottom: 16px; }
.service-row-label h3 { font-size: 1.8rem; }
.service-row-detail p { font-size: 1rem; margin-bottom: 24px; color: var(--mid-gray); max-width: none; }
.service-row-detail ul { list-style: none; margin-top: 16px; }
.service-row-detail ul li {
  font-size: 0.9rem;
  color: var(--mid-gray);
  padding: 10px 0;
  border-bottom: 1px solid var(--light-gray);
  display: flex; align-items: center; gap: 12px;
}
.service-row-detail ul li::before { content: '—'; color: var(--gray); flex-shrink: 0; }

/* ============================================================
   PORTFOLIO PAGE
   ============================================================ */
.portfolio-grid-full {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--light-gray);
}
.portfolio-item { background: var(--warm-white); overflow: hidden; position: relative; }
.portfolio-item-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #1a1a1a;
}
.portfolio-item-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.portfolio-item:hover .portfolio-item-img img { transform: scale(1.04); }
.portfolio-item-meta { padding: 24px 28px; }
.portfolio-item-meta span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
  display: block;
}
.portfolio-item-meta h3 { font-size: 1.1rem; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: start;
}
.about-philosophy { background: #F0EFED; }
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 64px;
}
.philosophy-card {
  background: var(--warm-white);
  padding: 48px 36px;
}
.philosophy-card-num { font-family: 'Playfair Display', serif; font-size: 3rem; color: var(--light-gray); display: block; margin-bottom: 16px; line-height: 1; }
.philosophy-card h3 { font-size: 1.2rem; margin-bottom: 14px; }
.philosophy-card p { font-size: 0.9rem; max-width: none; }
.who-we-work-with { background: var(--warm-white); }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 64px; }
.audience-card { background: #F0EFED; padding: 48px 36px; }
.audience-card h3 { font-size: 1.1rem; margin-bottom: 16px; }
.audience-card p { font-size: 0.9rem; max-width: none; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 96px;
  align-items: start;
}
.contact-form { }
.contact-sidebar { }
.contact-sidebar h3 { font-size: 1.4rem; margin-bottom: 20px; }
.contact-sidebar p { font-size: 0.92rem; color: var(--mid-gray); max-width: none; margin-bottom: 32px; }
.contact-sidebar-detail { margin-bottom: 16px; }
.contact-sidebar-detail span { font-size: 0.65rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray); display: block; margin-bottom: 4px; }
.contact-sidebar-detail a { font-size: 0.95rem; color: var(--black); }

.form-group { margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-bottom: 10px;
  font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--light-gray);
  background: var(--warm-white);
  color: var(--black);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--black); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-group select { cursor: pointer; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --section-pad: 90px; }
  .credibility-grid { grid-template-columns: repeat(2, 1fr); }
  .credibility-item:nth-child(2) { border-right: none; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .why-us-layout { grid-template-columns: 1fr; gap: 56px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .about-intro { grid-template-columns: 1fr; gap: 48px; }
  .philosophy-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 768px) {
  :root { --section-pad: 72px; }
  .nav-links { display: none; }
  .credibility-grid { grid-template-columns: 1fr 1fr; }
  .work-grid, .portfolio-grid-full { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .service-row { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .philosophy-grid, .audience-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PROJECT PAGES
   ============================================================ */
.project-hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
  background: var(--black);
  margin-top: var(--nav-h);
}
.project-hero img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.88;
  transition: opacity 0.6s;
}
.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,13,13,0.4) 0%, transparent 60%);
}

.project-header-section {
  padding: 64px 0 56px;
  background: var(--warm-white);
  border-bottom: 1px solid var(--light-gray);
}
.project-back {
  margin-bottom: 36px;
}
.project-back a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.2s;
}
.project-back a:hover { color: var(--black); }

.project-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 48px;
}
.project-header-left h1 { font-size: clamp(2rem, 4vw, 3rem); }
.project-header-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 8px;
}
.project-detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--light-gray);
}
.project-detail-item:last-child { border-bottom: none; padding-bottom: 0; }
.project-detail-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 500;
}
.project-detail-value {
  font-size: 0.95rem;
  color: var(--black);
}
.project-description p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--mid-gray);
  max-width: 680px;
}

.project-gallery-section {
  padding: 72px 0 96px;
  background: var(--warm-white);
}
.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
}
.project-gallery-item { overflow: hidden; background: var(--black); }
.project-gallery-item:first-child {
  grid-column: 1 / -1;
}
.project-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
  aspect-ratio: 16/9;
}
.project-gallery-item:first-child img { aspect-ratio: 21/9; }
.project-gallery-item:hover img { transform: scale(1.03); }

.project-nav-bar {
  background: #F0EFED;
  border-top: 1px solid var(--light-gray);
  padding: 40px 0;
}
.project-nav-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.project-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: opacity 0.2s;
}
.project-nav-link:hover { opacity: 0.6; }
.project-nav-next { text-align: right; }
.project-nav-label {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}
.project-nav-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--black);
}
.project-nav-all {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
  transition: color 0.2s;
}
.project-nav-all:hover { color: var(--black); }

/* Portfolio card link wrapper */
.portfolio-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.portfolio-item-link:hover .portfolio-item-img img { transform: scale(1.04); }

/* Project page responsive */
@media (max-width: 768px) {
  .project-hero { height: 55vw; min-height: 280px; }
  .project-header { grid-template-columns: 1fr; gap: 36px; }
  .project-gallery { grid-template-columns: 1fr; }
  .project-gallery-item:first-child { grid-column: auto; }
  .project-gallery-item img { aspect-ratio: 4/3 !important; }
  .project-nav-layout { flex-direction: column; gap: 24px; text-align: center; }
  .project-nav-next { text-align: center; }
}
