/* Cabinet RJA - Architecture | cabinetrja.com */
/* Design: Dark charcoal, steel, light — Modern architectural minimalist */

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

:root {
  --charcoal: #1a1a1a;
  --charcoal-mid: #2a2a2a;
  --charcoal-light: #3a3a3a;
  --steel: #94a3b8;
  --steel-light: #b8c8d8;
  --light: #f1f5f9;
  --light-mid: #e2e8f0;
  --white: #ffffff;
  --accent: #94a3b8;
  --font-heading: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --transition: 0.3s ease;
  --max-width: 1280px;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--charcoal);
  color: var(--light);
  line-height: 1.7;
  overflow-x: hidden;
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 300; letter-spacing: 0.1em; text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 300; letter-spacing: 0.06em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.6rem); font-weight: 400; }
h4 { font-size: 1.1rem; font-weight: 500; }
p { margin-bottom: 1.2em; color: var(--steel-light); }
a { color: var(--steel); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--white); }
strong { color: var(--white); font-weight: 600; }

/* LAYOUT */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.section-sm { padding: 3rem 0; }

/* HEADER / NAV */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26,26,26,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148,163,184,0.12);
  transition: background var(--transition);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.nav-logo img { height: 44px; width: auto; display: block; }
.nav-menu { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-menu a {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 4px;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--steel);
  transition: width var(--transition);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--white); }
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; background: var(--white); }
.nav-cta {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--steel);
  color: var(--steel);
  transition: all var(--transition);
}
.nav-cta:hover { background: var(--steel); color: var(--charcoal); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.nav-hamburger span { display: block; width: 24px; height: 1px; background: var(--steel); transition: all var(--transition); }

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  min-height: 650px;
  display: flex;
  align-items: center;
  background-image: url('/images/hero-archi.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.87);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.hero-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1.5rem;
  display: block;
}
.hero h1 { margin-bottom: 1.5rem; max-width: 750px; }
.hero p {
  font-size: 1.1rem;
  max-width: 560px;
  color: var(--steel-light);
  margin-bottom: 2.5rem;
}
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--steel);
  color: var(--charcoal);
  font-weight: 600;
}
.btn-primary:hover { background: var(--white); color: var(--charcoal); }
.btn-outline {
  border: 1px solid var(--steel);
  color: var(--steel);
  background: transparent;
}
.btn-outline:hover { background: var(--steel); color: var(--charcoal); }
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--steel);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
  animation: scrollBounce 2s infinite;
}
.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: var(--steel);
  opacity: 0.5;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ABOUT / INTRO */
.intro-section { background: var(--charcoal); }
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.intro-label {
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--steel);
  display: block;
  margin-bottom: 1rem;
}
.intro-text h2 { margin-bottom: 1.5rem; }
.intro-text p { color: var(--steel-light); }
.intro-image { position: relative; }
.intro-image img { width: 100%; height: 500px; object-fit: cover; display: block; }
.intro-image::before {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid rgba(148,163,184,0.2);
  z-index: -1;
}
.stats-row {
  display: flex;
  gap: 3rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(148,163,184,0.15);
}
.stat-item {}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 200;
  color: var(--white);
  letter-spacing: -0.02em;
  display: block;
}
.stat-label { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--steel); }

/* CLIENT LINK SECTION */
.client-link-section { background: var(--charcoal-mid); }
.client-link-inner { max-width: 820px; margin: 0 auto; text-align: center; }
.client-link-inner p { font-size: 1.05rem; line-height: 1.85; color: var(--steel-light); }
.client-link-inner a { color: var(--steel); border-bottom: 1px solid rgba(148,163,184,0.4); }
.client-link-inner a:hover { color: var(--white); border-bottom-color: var(--white); }

/* BANNER SECTION */
.banner-section {
  position: relative;
  padding: 8rem 0;
  background-image: url('/images/realisation.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
.banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,26,0.88);
}
.banner-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}
.banner-content h2 { margin-bottom: 1rem; }
.banner-content p { max-width: 600px; margin: 0 auto 2rem; }

/* PROJECTS GRID */
.projects-section { background: var(--charcoal); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .intro-label { justify-content: center; display: block; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 560px; margin: 0 auto; color: var(--steel-light); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5px; }
.project-card { position: relative; overflow: hidden; aspect-ratio: 3/4; }
.project-card.large { grid-column: span 2; aspect-ratio: auto; }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card:hover img { transform: scale(1.04); }
.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,26,0.9) 0%, rgba(26,26,26,0.1) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity var(--transition);
}
.project-card:hover .project-card-overlay { opacity: 1; }
.project-card-overlay h3 { margin-bottom: 0.3rem; }
.project-card-overlay span { font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--steel); }

/* SERVICES */
.services-section { background: var(--charcoal-mid); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.service-card {
  padding: 2.5rem;
  border: 1px solid rgba(148,163,184,0.12);
  transition: border-color var(--transition), background var(--transition);
}
.service-card:hover { border-color: rgba(148,163,184,0.3); background: rgba(148,163,184,0.04); }
.service-icon {
  width: 48px;
  height: 1px;
  background: var(--steel);
  margin-bottom: 2rem;
  transition: width var(--transition);
}
.service-card:hover .service-icon { width: 80px; }
.service-card h3 { margin-bottom: 1rem; font-size: 1.1rem; }
.service-card p { font-size: 0.9rem; color: var(--steel); }

/* CTA 2-COL */
.cta-section { background: var(--charcoal); }
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.cta-image img { width: 100%; height: 480px; object-fit: cover; display: block; }
.cta-content { padding: 2rem 0; }
.cta-content h2 { margin-bottom: 1.5rem; }
.cta-content p { margin-bottom: 2rem; color: var(--steel-light); }

/* BLOG */
.blog-section { background: var(--charcoal-mid); }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.blog-card { background: var(--charcoal); overflow: hidden; }
.blog-card-img { overflow: hidden; aspect-ratio: 16/10; }
.blog-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 1.8rem; }
.blog-card-meta { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); margin-bottom: 0.8rem; }
.blog-card h3 { font-size: 1rem; font-weight: 500; margin-bottom: 0.8rem; }
.blog-card h3 a { color: var(--white); }
.blog-card h3 a:hover { color: var(--steel); }
.blog-card p { font-size: 0.87rem; color: var(--steel); margin-bottom: 1.2rem; }
.read-more { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); border-bottom: 1px solid transparent; transition: all var(--transition); }
.read-more:hover { color: var(--white); border-bottom-color: var(--white); }

/* ARTICLE PAGE */
.article-hero {
  position: relative;
  height: 500px;
  display: flex;
  align-items: flex-end;
}
.article-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.article-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,26,26,0.95) 0%, rgba(26,26,26,0.4) 100%); }
.article-hero-content { position: relative; z-index: 2; padding: 3rem 2rem; max-width: var(--max-width); margin: 0 auto; width: 100%; }
.article-hero-meta { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel); margin-bottom: 1rem; }
.article-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.8rem); max-width: 780px; }
.article-body { max-width: 820px; margin: 0 auto; padding: 4rem 2rem; }
.article-body h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.article-body h3 { font-size: 1.2rem; margin: 2rem 0 0.8rem; }
.article-body p { color: var(--steel-light); margin-bottom: 1.5rem; line-height: 1.85; }
.article-body a { color: var(--steel); border-bottom: 1px solid rgba(148,163,184,0.3); }
.article-body a:hover { color: var(--white); }
.article-img { width: 100%; margin: 2.5rem 0; display: block; }
.article-img img { width: 100%; height: 400px; object-fit: cover; }

/* BLOG INDEX */
.blog-index-hero {
  padding: 10rem 0 5rem;
  background: var(--charcoal);
  border-bottom: 1px solid rgba(148,163,184,0.1);
}
.blog-grid-full { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

/* PAGE INNER */
.page-hero {
  padding: 10rem 0 5rem;
  background: var(--charcoal-mid);
  border-bottom: 1px solid rgba(148,163,184,0.1);
}
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p { max-width: 560px; color: var(--steel-light); }
.breadcrumb { font-size: 0.72rem; letter-spacing: 0.1em; color: var(--steel); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--steel); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin: 0 0.5rem; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }
.contact-info h3 { margin-bottom: 2rem; }
.contact-info p { color: var(--steel-light); margin-bottom: 1rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-item-icon { width: 36px; height: 1px; background: var(--steel); margin-top: 0.7rem; flex-shrink: 0; }
.contact-form { display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); }
.form-group input, .form-group textarea, .form-group select {
  background: var(--charcoal-mid);
  border: 1px solid rgba(148,163,184,0.2);
  color: var(--white);
  padding: 0.9rem 1.2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--steel); }
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }

/* SITEMAP */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.sitemap-col h3 { font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--steel); margin-bottom: 1.5rem; padding-bottom: 0.8rem; border-bottom: 1px solid rgba(148,163,184,0.15); }
.sitemap-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.sitemap-col ul li a { font-size: 0.9rem; color: var(--steel-light); }
.sitemap-col ul li a:hover { color: var(--white); }

/* 404 */
.error-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--charcoal);
}
.error-code {
  font-family: var(--font-heading);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 100;
  color: rgba(148,163,184,0.15);
  line-height: 1;
  display: block;
  margin-bottom: -2rem;
}
.error-section h2 { margin-bottom: 1rem; }
.error-section p { color: var(--steel); margin-bottom: 2rem; }

/* FOOTER */
footer {
  background: #111111;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(148,163,184,0.1);
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand img { height: 38px; margin-bottom: 1.2rem; display: block; }
.footer-brand p { font-size: 0.85rem; color: var(--steel); line-height: 1.7; }
.footer-col h4 { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--steel); margin-bottom: 1.2rem; font-weight: 500; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul li a { font-size: 0.87rem; color: rgba(148,163,184,0.7); }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(148,163,184,0.08);
  font-size: 0.78rem;
  color: rgba(148,163,184,0.5);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .intro-grid, .cta-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .project-card.large { grid-column: span 1; }
  .services-grid, .blog-grid, .blog-grid-full { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-menu { display: none; position: fixed; top: 73px; left: 0; right: 0; background: var(--charcoal); flex-direction: column; padding: 2rem; gap: 1.5rem; border-bottom: 1px solid rgba(148,163,184,0.1); }
  .nav-menu.open { display: flex; }
  .nav-hamburger { display: flex; }
  .nav-cta { display: none; }
  .hero { background-attachment: scroll; }
  .banner-section { background-attachment: scroll; }
  .services-grid, .blog-grid, .blog-grid-full { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .stats-row { flex-direction: column; gap: 1.5rem; }
  .sitemap-grid { grid-template-columns: 1fr; }
}
