/* =========================================
   ADYSA — Agence de Design Spécialisé dans les Métiers de l'Art
   style.css v=1 | adysa.fr
   ========================================= */

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

/* --- RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #f5f0e8;
  --bg-secondary: #ece6d8;
  --bg-dark: #0a0a0a;
  --text-primary: #0a0a0a;
  --text-secondary: #3a3530;
  --text-muted: #7a7268;
  --accent-gold: #b8a88a;
  --accent-gold-light: #d4c4a8;
  --accent-gold-dark: #8a7a62;
  --white: #ffffff;
  --border-light: rgba(184,168,138,0.25);
  --border-mid: rgba(184,168,138,0.5);

  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, sans-serif;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  --spacing-xxl: 10rem;

  --max-width: 1400px;
  --content-width: 900px;
  --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: all 0.2s ease;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
h4 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h5 { font-size: 1.1rem; }

.display-text {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.02em;
}

p {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

p.lead {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 300;
  line-height: 1.7;
  font-style: italic;
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

strong { font-weight: 500; }

em { font-style: italic; }

/* --- UTILITY --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.container--narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section--large {
  padding: var(--spacing-xxl) 0;
}

.section--dark {
  background-color: var(--bg-dark);
  color: var(--white);
}

.section--dark p { color: rgba(255,255,255,0.7); }
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--white); }

.section--alt {
  background-color: var(--bg-secondary);
}

.text-center { text-align: center; }
.text-gold { color: var(--accent-gold); }
.text-muted { color: var(--text-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* --- EYEBROW LABEL --- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: var(--spacing-sm);
}

/* --- DIVIDER --- */
.divider {
  width: 60px;
  height: 1px;
  background: var(--accent-gold);
  margin: var(--spacing-md) auto;
}
.divider--left { margin-left: 0; }

/* --- BUTTONS --- */
.btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background-color: var(--text-primary);
  color: var(--white);
}
.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn--primary:hover::after { transform: scaleX(1); }
.btn--primary span { position: relative; z-index: 1; }

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
}
.btn--outline:hover {
  background-color: var(--text-primary);
  color: var(--white);
}

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.5);
}
.btn--outline-light:hover {
  background-color: var(--white);
  color: var(--text-primary);
}

.btn--gold {
  background-color: var(--accent-gold);
  color: var(--white);
}
.btn--gold:hover {
  background-color: var(--accent-gold-dark);
}

/* --- HEADER & NAV --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
}

.site-header.scrolled {
  background-color: rgba(245, 240, 232, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 30px rgba(10,10,10,0.06);
}

.site-header.hero-mode {
  background: transparent;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-md);
}

.site-logo {
  flex-shrink: 0;
  line-height: 0;
}

.site-logo img {
  height: 40px;
  width: auto;
  display: block;
  transition: var(--transition-fast);
}

.site-header.hero-mode .site-logo img {
  filter: brightness(0) invert(1);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.4rem 1.2rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  position: relative;
}

.site-header.hero-mode .site-nav a {
  color: rgba(255,255,255,0.9);
}

.site-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1.2rem;
  right: 1.2rem;
  height: 1px;
  background: var(--accent-gold);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.site-nav a:hover::after,
.site-nav a.active::after { transform: scaleX(1); }

.site-nav a.active {
  color: var(--accent-gold);
}

.site-header.hero-mode .site-nav a.active {
  color: var(--accent-gold-light);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: var(--text-primary);
  transition: var(--transition-fast);
}
.site-header.hero-mode .nav-toggle span { background: var(--white); }

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('../images/hero-galerie.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,10,10,0.88) 0%,
    rgba(10,10,10,0.86) 50%,
    rgba(10,10,10,0.87) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}
.hero-label::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent-gold);
}
.hero-label span {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.hero h1 em {
  display: block;
  font-style: normal;
  color: var(--accent-gold-light);
}

.hero p.lead {
  color: rgba(255,255,255,0.75);
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  align-items: center;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-scroll span { animation: scrollBounce 2s ease-in-out infinite; }
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* --- PAGE HERO (inner pages) --- */
.page-hero {
  padding: calc(var(--spacing-xxl) + 2rem) 0 var(--spacing-xl);
  background-color: var(--bg-dark);
  color: var(--white);
  text-align: center;
}
.page-hero h1 { color: var(--white); }
.page-hero p.lead { color: rgba(255,255,255,0.65); max-width: 600px; margin: 0 auto; }
.page-hero .divider { background: var(--accent-gold); margin: var(--spacing-md) auto; }

/* Banner hero (with CSS bg image) */
.banner-hero {
  position: relative;
  padding: var(--spacing-xl) 0;
  background-image: url('../images/typographie.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
}
.banner-hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,0.88);
}
.banner-hero .container { position: relative; z-index: 1; }
.banner-hero h2 { color: var(--white); margin-bottom: var(--spacing-sm); }
.banner-hero p { color: rgba(255,255,255,0.7); max-width: 600px; margin: 0 auto var(--spacing-md); }

/* --- SECTION HEADER --- */
.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.section-header.text-center .divider { margin: var(--spacing-sm) auto var(--spacing-md); }
.section-header.text-center p { max-width: 600px; margin: 0 auto; }

/* --- INTRO SECTION --- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.intro-text h2 { margin-bottom: var(--spacing-sm); }
.intro-text .divider--left { margin-bottom: var(--spacing-md); }
.intro-text p + p { margin-top: 1rem; }
.intro-text .btn { margin-top: var(--spacing-md); }

.intro-image {
  position: relative;
}
.intro-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}
.intro-image::before {
  content: '';
  position: absolute;
  top: -1.5rem;
  left: -1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  border: 1px solid var(--border-mid);
  z-index: -1;
}

/* --- NUMBERS / STATS --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-light);
}

.stat-item {
  background: var(--bg-primary);
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
  transition: background-color 0.3s ease;
}
.stat-item:hover { background: var(--bg-secondary); }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* --- SERVICES GRID --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-light);
}

.service-card {
  background: var(--bg-primary);
  padding: var(--spacing-lg) var(--spacing-md);
  transition: background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 100%;
  height: 1px;
  background: var(--accent-gold);
  transition: right 0.5s ease;
}
.service-card:hover::after { right: 0; }
.service-card:hover { background: var(--bg-secondary); }

.service-number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  margin-bottom: var(--spacing-md);
  display: block;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}
.service-card p { font-size: 0.92rem; }
.service-card .btn { margin-top: var(--spacing-md); }

/* --- PORTFOLIO GRID --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--spacing-sm);
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.portfolio-item:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.portfolio-item:nth-child(2) { grid-column: span 5; }
.portfolio-item:nth-child(3) { grid-column: span 5; }
.portfolio-item:nth-child(4) { grid-column: span 4; }
.portfolio-item:nth-child(5) { grid-column: span 4; }
.portfolio-item:nth-child(6) { grid-column: span 4; }

.portfolio-img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.portfolio-item:nth-child(1) .portfolio-img { min-height: 580px; }

.portfolio-item:hover .portfolio-img { transform: scale(1.04); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0) 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: var(--spacing-md);
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-info { color: var(--white); }
.portfolio-info .eyebrow { color: var(--accent-gold-light); margin-bottom: 0.3rem; }
.portfolio-info h4 { color: var(--white); font-size: 1.2rem; }

/* --- PROCESS / 2-COL --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.two-col--reversed .two-col-image { order: 2; }
.two-col--reversed .two-col-content { order: 1; }

.two-col-image {
  position: relative;
  overflow: hidden;
}
.two-col-image img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  display: block;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.two-col:hover .two-col-image img { transform: scale(1.03); }

.two-col-content {
  padding: clamp(3rem, 7vw, 7rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg-secondary);
}
.section--dark .two-col-content { background: #111111; }

.two-col-content h2 { margin-bottom: var(--spacing-sm); }
.two-col-content .divider--left { margin-bottom: var(--spacing-md); }
.two-col-content p + p { margin-top: 1rem; }
.two-col-content .btn { margin-top: var(--spacing-lg); align-self: flex-start; }

/* Process steps */
.process-steps {
  list-style: none;
  margin-top: var(--spacing-md);
}
.process-steps li {
  display: flex;
  gap: var(--spacing-sm);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
}
.process-steps li:last-child { border-bottom: none; }
.step-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--accent-gold);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  width: 2.5rem;
  padding-top: 0.1rem;
}
.step-text strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}
.step-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- CTA SECTION --- */
.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.cta-image {
  position: relative;
  overflow: hidden;
}
.cta-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}
.cta-section:hover .cta-image img { transform: scale(1.03); }

.cta-content {
  background: var(--bg-dark);
  padding: clamp(3rem, 7vw, 7rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.cta-content h2 { color: var(--white); margin-bottom: var(--spacing-sm); }
.cta-content .divider--left { margin-bottom: var(--spacing-md); }
.cta-content p { color: rgba(255,255,255,0.65); margin-bottom: 1rem; }
.cta-content .btn { margin-top: var(--spacing-md); align-self: flex-start; }

/* --- CLIENT LINK / PARTNERS --- */
.partner-mention {
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.partner-mention .container {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}
.partner-mention p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--text-muted);
  text-align: center;
}
.partner-mention a {
  color: var(--accent-gold-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-gold);
  transition: color 0.3s ease, border-color 0.3s ease;
  font-style: normal;
}
.partner-mention a:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

/* --- BLOG GRID --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(10,10,10,0.08);
}

.blog-card-image {
  overflow: hidden;
  aspect-ratio: 16/10;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.blog-card:hover .blog-card-image img { transform: scale(1.05); }

.blog-card-body {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-body .eyebrow { margin-bottom: 0.5rem; }
.blog-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  transition: color 0.2s ease;
}
.blog-card:hover .blog-card-body h3 { color: var(--accent-gold-dark); }
.blog-card-body p { font-size: 0.9rem; flex: 1; }
.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--spacing-sm);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--border-light);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.blog-card-meta .read-more {
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.68rem;
}
.blog-card-meta .read-more:hover { color: var(--text-primary); }

/* Blog featured (homepage) */
.blog-grid--featured {
  grid-template-columns: 1fr 1fr;
}
.blog-grid--featured .blog-card:first-child {
  grid-row: span 2;
}
.blog-grid--featured .blog-card:first-child .blog-card-image {
  aspect-ratio: 4/3;
}
.blog-grid--featured .blog-card:first-child h3 { font-size: 1.6rem; }

/* --- ARTICLE PAGE --- */
.article-header {
  padding: calc(var(--spacing-xxl) + 2rem) 0 var(--spacing-xl);
  text-align: center;
  background: var(--bg-dark);
  color: var(--white);
}
.article-header h1 { color: var(--white); margin-bottom: var(--spacing-sm); font-size: clamp(2rem, 4vw, 3.5rem); }
.article-header .lead { color: rgba(255,255,255,0.65); max-width: 700px; margin: 0 auto; }
.article-header .article-meta {
  margin-top: var(--spacing-sm);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}

.article-hero-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

.article-body {
  padding: var(--spacing-xl) 0;
}
.article-body .container--narrow > * + * { margin-top: 1.5rem; }
.article-body h2 { font-size: 1.8rem; margin-top: var(--spacing-lg); }
.article-body h3 { font-size: 1.4rem; margin-top: var(--spacing-md); }
.article-body p { font-size: 1.05rem; line-height: 1.85; }
.article-body img {
  width: 100%;
  height: auto;
  display: block;
  margin: var(--spacing-md) 0;
}
.article-body blockquote {
  border-left: 2px solid var(--accent-gold);
  padding: 1rem 2rem;
  margin: var(--spacing-md) 0;
  background: var(--bg-secondary);
}
.article-body blockquote p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.article-footer {
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--border-light);
  margin-top: var(--spacing-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

/* Blog listing */
.blog-listing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}
.blog-listing-grid .blog-card:first-child {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.blog-listing-grid .blog-card:first-child .blog-card-image {
  aspect-ratio: unset;
}

/* --- PHILOSOPHY PAGE --- */
.manifesto {
  padding: var(--spacing-xl) 0;
}
.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--text-primary);
}
.manifesto-text em { color: var(--accent-gold); font-style: italic; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md) var(--spacing-lg);
  margin-top: var(--spacing-xl);
}
.value-item {
  padding: var(--spacing-md) 0;
  border-top: 1px solid var(--border-mid);
}
.value-item h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.value-item p { font-size: 0.95rem; }

/* --- CONTACT PAGE --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: var(--spacing-md);
}
.contact-info p { margin-bottom: 0.75rem; font-size: 0.95rem; }

.contact-detail {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border-light);
}
.contact-detail:last-child { border-bottom: none; }
.contact-detail .label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 0.3rem;
}
.contact-detail p { font-size: 0.95rem; color: var(--text-secondary); }

.contact-form {
  background: var(--white);
  padding: var(--spacing-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 300;
  background: var(--bg-primary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  transition: border-color 0.3s ease;
  outline: none;
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-gold);
}
.form-group textarea { resize: vertical; min-height: 150px; }

/* --- FOOTER --- */
.site-footer {
  background: var(--bg-dark);
  color: var(--white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: var(--spacing-md);
}

.footer-brand .site-logo img {
  height: 36px;
  filter: brightness(0) invert(1) opacity(0.8);
  margin-bottom: var(--spacing-md);
}

.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.7;
  max-width: 260px;
}

.footer-col h5 {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: var(--spacing-sm);
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s ease;
}
.footer-col ul li a:hover { color: var(--accent-gold); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
}

/* --- SITEMAP --- */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}
.sitemap-section h3 {
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--accent-gold);
  margin-bottom: var(--spacing-sm);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-light);
}
.sitemap-section ul { list-style: none; }
.sitemap-section ul li { margin-bottom: 0.5rem; }
.sitemap-section ul li a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}
.sitemap-section ul li a:hover { color: var(--accent-gold); }

/* --- 404 --- */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl) 0;
}
.error-code {
  font-family: var(--font-display);
  font-size: clamp(8rem, 20vw, 16rem);
  font-weight: 300;
  color: var(--bg-secondary);
  line-height: 1;
  user-select: none;
}
.error-page h1 { margin-bottom: var(--spacing-sm); }
.error-page p { max-width: 400px; margin: 0 auto var(--spacing-md); }

/* --- BREADCRUMB --- */
.breadcrumb {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: var(--spacing-lg);
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.breadcrumb ol li:not(:last-child)::after {
  content: ' /';
  margin-left: 0.5rem;
  opacity: 0.4;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent-gold); }
.breadcrumb [aria-current] { color: var(--text-primary); }

/* --- FULL SERVICES PAGE --- */
.services-full-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-light);
}
.service-full-card {
  background: var(--bg-primary);
  padding: clamp(2rem, 5vw, 4rem);
  transition: background 0.3s ease;
}
.service-full-card:hover { background: var(--bg-secondary); }
.service-full-card .service-number { margin-bottom: 1rem; }
.service-full-card h3 { margin-bottom: 1rem; }
.service-full-card p { font-size: 0.95rem; }
.service-full-card ul {
  list-style: none;
  margin-top: var(--spacing-md);
}
.service-full-card ul li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--border-light);
  padding-left: 1rem;
  position: relative;
}
.service-full-card ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-size: 0.7rem;
}

/* --- PORTFOLIO FULL PAGE --- */
.portfolio-full-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
}
.portfolio-full-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.portfolio-full-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.portfolio-full-item:hover img { transform: scale(1.05); }
.portfolio-full-item .portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0) 55%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: var(--spacing-md);
}
.portfolio-full-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-full-item:nth-child(1),
.portfolio-full-item:nth-child(5) { grid-column: span 2; }

/* --- ANIMATIONS & TRANSITIONS --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeInUp 0.8s ease both;
}
.animate-delay-1 { animation-delay: 0.15s; }
.animate-delay-2 { animation-delay: 0.3s; }
.animate-delay-3 { animation-delay: 0.45s; }

/* --- RESPONSIVE --- */
@media (max-width: 1100px) {
  .portfolio-grid { display: flex; flex-direction: column; }
  .portfolio-item { width: 100%; }
  .portfolio-item .portfolio-img { min-height: 280px; }
  .portfolio-item:nth-child(1) .portfolio-img { min-height: 400px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--spacing-md); }
}

@media (max-width: 900px) {
  .intro-grid,
  .two-col,
  .cta-inner,
  .contact-grid { grid-template-columns: 1fr; }
  .two-col--reversed .two-col-image { order: 0; }
  .two-col--reversed .two-col-content { order: 0; }
  .services-grid,
  .services-full-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-grid--featured { grid-template-columns: 1fr; }
  .blog-grid--featured .blog-card:first-child { grid-row: auto; }
  .blog-listing-grid { grid-template-columns: 1fr; }
  .blog-listing-grid .blog-card:first-child { grid-column: span 1; grid-template-columns: 1fr; }
  .portfolio-full-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-full-item:nth-child(1),
  .portfolio-full-item:nth-child(5) { grid-column: span 1; }
  .values-grid { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: 1fr 1fr; }
  .two-col-image img { min-height: 350px; }
  .intro-image img { height: 350px; }
}

@media (max-width: 700px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    justify-content: center;
    align-items: center;
    gap: var(--spacing-sm);
    z-index: 999;
  }
  .site-nav.open a {
    color: var(--white);
    font-size: 1.5rem;
    padding: 0.8rem;
    letter-spacing: 0.15em;
  }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .sitemap-grid { grid-template-columns: 1fr; }
  .portfolio-full-grid { grid-template-columns: 1fr; }
  .portfolio-full-item:nth-child(1),
  .portfolio-full-item:nth-child(5) { grid-column: span 1; }
  .article-footer { flex-direction: column; }
  h1 { font-size: clamp(2.2rem, 8vw, 3.5rem); }
}
