/* Atelier Ligna — warm natural portfolio */

:root {
  --bg: #F7F3EE;
  --bg-alt: #EDE6DC;
  --text: #3D3429;
  --heading: #5C4D3C;
  --accent: #8B6F47;
  --highlight: #C4A77D;
  --white: #FFFCF8;
  --shadow: rgba(61, 52, 41, 0.08);
  --radius: 6px;
  --max-w: 1100px;
  --nav-h: 72px;
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--heading); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius);
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(100% - 2.5rem, var(--max-w));
  margin-inline: auto;
}

/* Header / Nav */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.scrolled {
  background: rgba(247, 243, 238, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(100% - 2.5rem, var(--max-w));
  margin-inline: auto;
}

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--heading);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--heading);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  display: none;
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--bg-alt);
}
.nav-menu.open { display: flex; }

.nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--accent); }

.lang-toggle {
  align-self: flex-start;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-toggle:hover {
  background: var(--accent);
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(139, 111, 71, 0.15) 0%, transparent 50%),
    linear-gradient(180deg, transparent 60%, var(--bg) 100%),
    url("https://picsum.photos/seed/heroarch/1400/900") center / cover no-repeat;
  z-index: -1;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(247, 243, 238, 0.85) 45%, rgba(247, 243, 238, 0.4) 100%);
}

.hero-inner { padding-block: 4rem 6rem; max-width: 36rem; }

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--heading);
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 2rem;
  max-width: 32ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--heading);
  border-color: var(--heading);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--heading);
  border-color: var(--heading);
}
.btn-outline:hover {
  background: var(--heading);
  color: var(--white);
}

/* Sections */
.section { padding-block: 5rem; }
.section-alt { background: var(--bg-alt); }

.section-header { margin-bottom: 2.5rem; }
.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--heading);
}

/* About */
.about-grid {
  display: grid;
  gap: 2.5rem;
}
.about-text p { margin-bottom: 1rem; }
.about-values {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.about-values li::before {
  content: "— ";
  color: var(--highlight);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--shadow);
}
.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.2;
}
.stat-label {
  font-size: 0.8rem;
  color: var(--text);
  opacity: 0.85;
}

/* Cards */
.cards-grid {
  display: grid;
  gap: 1.5rem;
}
.card {
  padding: 1.75rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow);
}
.card-icon {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--highlight);
  display: block;
  margin-bottom: 0.75rem;
}
.card h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--heading);
  margin-bottom: 0.5rem;
}
.card p { font-size: 0.95rem; opacity: 0.9; }

/* Filter */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  background: transparent;
  border: 1px solid var(--bg-alt);
  color: var(--text);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}

/* Projects */
.projects-grid {
  display: grid;
  gap: 1.5rem;
}
.project-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--heading);
  transition: opacity 0.3s, transform 0.3s;
}
.project-card.hidden { display: none; }
.project-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.project-card:hover img { transform: scale(1.04); }
.project-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(transparent, rgba(61, 52, 41, 0.85));
  color: var(--white);
}
.project-cat {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--highlight);
}
.project-info h3 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin: 0.2rem 0;
}
.project-info p { font-size: 0.85rem; opacity: 0.9; }

/* Process */
.process-steps {
  list-style: none;
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}
.process-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.25rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px var(--shadow);
}
.step-num {
  grid-row: span 2;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--highlight);
  line-height: 1;
}
.process-steps h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--heading);
}
.process-steps p { grid-column: 2; font-size: 0.95rem; }

/* Testimonials */
.testimonials-grid {
  display: grid;
  gap: 1.5rem;
}
.testimonial {
  padding: 1.75rem;
  background: var(--white);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 2px 12px var(--shadow);
}
.testimonial p {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--heading);
  margin-bottom: 1rem;
}
.testimonial cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--accent);
}

/* Contact */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}
.contact-info {
  font-style: normal;
  margin-top: 1.5rem;
}
.contact-info p { margin-bottom: 1.25rem; }
.contact-info strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--heading);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--bg-alt);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 100px; }

.form-success {
  padding: 0.75rem 1rem;
  background: rgba(139, 111, 71, 0.12);
  color: var(--heading);
  border-radius: var(--radius);
  font-size: 0.9rem;
}
.form-success.hidden { display: none; }

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--bg-alt);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.footer-copy { font-size: 0.85rem; opacity: 0.8; }
.footer-social {
  list-style: none;
  display: flex;
  gap: 1rem;
}
.footer-social a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text);
}
.footer-social a:hover { color: var(--accent); }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0;
    background: none;
    border: none;
  }
  .nav-links { flex-direction: row; gap: 1.5rem; }
  .about-grid { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(4, 1fr); }
  .projects-grid { grid-template-columns: repeat(3, 1fr); }
  .process-steps { grid-template-columns: repeat(4, 1fr); }
  .process-steps li { grid-template-columns: 1fr; text-align: center; }
  .step-num { grid-row: auto; margin-bottom: 0.5rem; }
  .process-steps p { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .project-card:hover img { transform: none; }
}
