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

:root {
  --color-bg: #fefcf6;
  --color-bg-alt: #f5f0e8;
  --color-text: #1a1a1a;
  --color-text-muted: #6b6b6b;
  --color-accent: #444;
  --color-red: #ea4335;
  --color-gold: #fbbc05;
  --color-green: #34a853;
  --color-blue: #4285f4;
  --font-sans: "Inter", -apple-system, blinkmacsystemfont, sans-serif;
  --font-serif: "Playfair Display", georgia, serif;
  --container: 1200px;
  --gap: clamp(1.5rem, 4vw, 3rem);
  --radius: 12px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* --- Sections --- */
section {
  padding: clamp(4rem, 10vw, 8rem) 0;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.section-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn-primary:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgb(0 0 0 / 15%);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-text);
}

.btn-ghost:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn-large {
  padding: 1.1rem 2.75rem;
  font-size: 1rem;
}

.btn-full {
  width: 100%;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all var(--transition);
}

.nav-scrolled {
  background: rgb(254 252 246 / 92%);
  backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  box-shadow: 0 1px 0 rgb(0 0 0 / 6%);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-svg {
  height: 1.5rem;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-text);
  transition: width var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link-cta {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
}

.nav-link-cta::after {
  display: none;
}

.nav-link-cta:hover {
  background: #333;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

.hero-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  width: 100%;
}

.hero-tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  height: 500px;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.hero-shape-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--color-blue), var(--color-green));
  top: 10%;
  right: 5%;
  opacity: 0.8;
  animation-delay: 0s;
}

.hero-shape-2 {
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, var(--color-red), var(--color-gold));
  bottom: 15%;
  right: 30%;
  opacity: 0.7;
  animation-delay: -2s;
}

.hero-shape-3 {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--color-gold), var(--color-green));
  top: 5%;
  left: 10%;
  opacity: 0.6;
  animation-delay: -4s;
}

.hero-shape-4 {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--color-blue), var(--color-red));
  bottom: 30%;
  left: 0;
  opacity: 0.5;
  animation-delay: -1s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  33% {
    transform: translateY(-20px) rotate(3deg);
  }

  66% {
    transform: translateY(10px) rotate(-2deg);
  }
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-scroll span {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: var(--color-text-muted);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-text);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0% {
    top: -100%;
  }

  50% {
    top: 0;
  }

  100% {
    top: 100%;
  }
}

/* --- About --- */
.about {
  background: var(--color-bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.about-text {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgb(0 0 0 / 8%);
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgb(0 0 0 / 8%);
}

.service-card-icon {
  width: 48px;
  height: 48px;
  color: var(--color-text);
  margin-bottom: 2rem;
}

.service-card-number {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  opacity: 0.4;
}

.service-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.service-card-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-card-tags li {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  background: rgb(0 0 0 / 4%);
  border-radius: 100px;
  color: var(--color-text-muted);
}

/* --- Process --- */
.process {
  background: var(--color-text);
  color: var(--color-bg);
}

.process .section-tag {
  color: rgb(254 252 246 / 50%);
}

.process .section-title em {
  color: var(--color-bg);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.process-step {
  padding: 2rem;
  border: 1px solid rgb(254 252 246 / 10%);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.process-step:hover {
  border-color: rgb(254 252 246 / 25%);
  background: rgb(254 252 246 / 3%);
}

.process-number {
  font-size: 2.5rem;
  font-weight: 700;
  opacity: 0.15;
  margin-bottom: 1.5rem;
  line-height: 1;
}

.process-step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.9rem;
  color: rgb(254 252 246 / 60%);
  line-height: 1.6;
}

/* --- Realisations --- */
.realisations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: all var(--transition);
  cursor: pointer;
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgb(0 0 0 / 10%);
}

.project-card-image {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1.25rem;
}

.project-card-category {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  background: rgb(0 0 0 / 55%);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  color: #fff;
}

.project-card-content {
  padding: 1.5rem;
}

.project-card-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-card-content p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* --- CTA --- */
.cta {
  background: var(--color-bg-alt);
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

.cta-text {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
}

.contact-text {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-detail svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-text-muted);
}

.contact-detail span {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 0.15rem;
}

.contact-detail a,
.contact-detail p {
  font-size: 0.95rem;
  font-weight: 500;
}

.contact-detail a:hover {
  text-decoration: underline;
}

.contact-socials {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-socials a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg-alt);
  transition: all var(--transition);
}

.contact-socials a:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.contact-socials svg {
  width: 18px;
  height: 18px;
}

/* --- Form --- */
.contact-form {
  background: var(--color-bg-alt);
  padding: 2.5rem;
  border-radius: var(--radius);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--color-bg);
  border: 1.5px solid rgb(0 0 0 / 8%);
  border-radius: 8px;
  transition: all var(--transition);
  color: var(--color-text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-text);
  box-shadow: 0 0 0 3px rgb(68 68 68 / 8%);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23444' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

/* --- Footer --- */
.footer {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgb(254 252 246 / 50%);
  margin-top: 1rem;
  max-width: 280px;
}

.footer-brand .nav-logo {
  color: var(--color-bg);
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
  color: rgb(254 252 246 / 40%);
}

.footer-col a {
  font-size: 0.9rem;
  color: rgb(254 252 246 / 70%);
  transition: color var(--transition);
  display: block;
  margin-bottom: 0.75rem;
}

.footer-col a:hover {
  color: var(--color-bg);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgb(254 252 246 / 8%);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgb(254 252 246 / 35%);
}

/* --- Animations (scroll reveal) --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Page Header (subpages) --- */
.page-header {
  padding-top: 8rem;
  padding-bottom: 3rem;
}

/* --- FAQ --- */
.faq {
  padding-top: 0;
}

.faq-list {
  max-width: 800px;
}

.faq-item {
  border-bottom: 1px solid rgb(0 0 0 / 8%);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.4;
  transition: color var(--transition);
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question:hover {
  color: var(--color-text-muted);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

details[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding-bottom: 1.5rem;
}

.faq-answer p {
  font-size: 1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.faq-answer a {
  text-decoration: underline;
  font-weight: 500;
}

/* --- Legal --- */
.legal {
  padding-top: 0;
}

.legal-content {
  max-width: 800px;
}

.legal-section {
  margin-bottom: 3rem;
}

.legal-section h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.legal-section p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.legal-section ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-section li {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 0.25rem;
}

.legal-section a {
  text-decoration: underline;
  font-weight: 500;
  color: var(--color-text);
}

/* --- Responsive --- */
@media (width <= 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (width <= 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right var(--transition);
  }

  .nav-menu-open {
    right: 0;
  }

  .nav-link {
    font-size: 1.5rem;
  }

  .nav-link-cta {
    font-size: 1rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .process-grid {
    grid-template-columns: 1fr;
  }

  .realisations-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-scroll {
    display: none;
  }
}

@media (width <= 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}
