/* =======================================================
   RESET & GLOBAL
======================================================= */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: #F8F8F8;
  color: #1A1A1A;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
}

/* =======================================================
   GLOBAL ELEMENTS
======================================================= */

section {
  padding: 100px 5%;
}

.cropped-frame {
  width: 100%;
  height: 450px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.bw-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.5s ease;
}

.bw-image:hover {
  filter: grayscale(30%);
}

img[loading="lazy"] {
  opacity: 0;
  animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.grid-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10%;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
}

.grid-layout.reverse .text-block {
  order: 2;
}

.grid-layout.reverse .image-block {
  order: 1;
}

.text-block h3 {
  font-size: 2.2rem;
  margin-bottom: 25px;
  letter-spacing: 1px;
}

.text-block p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: #444;
}

.philosophy-italic {
  font-style: italic;
  margin-top: 30px;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
}

/* =======================================================
   HEADER
======================================================= */

.main-header {
  background-color: rgba(248, 248, 248, 0.95);
  width: 100%;
  padding: 15px 5%;
  position: fixed;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
}

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

.brand-logo {
  height: 40px;
  width: auto;
  display: block;
}

.header-nav ul {
  list-style: none;
  display: flex;
  gap: 35px;
  align-items: center;
}

.header-nav a {
  text-decoration: none;
  color: #1A1A1A;
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 1px;
  transition: opacity 0.2s;
}

.header-nav a:hover {
  opacity: 0.5;
}

/* =======================================================
   LANGUAGE SELECTOR
======================================================= */

.lang-selector {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #CCCCCC;
}

.active-lang {
  color: #1A1A1A;
  font-weight: 600;
  pointer-events: none;
}

.inactive-lang {
  text-decoration: none;
  color: #888 !important;
  transition: color 0.2s;
}

.inactive-lang:hover {
  color: #1A1A1A !important;
  opacity: 1 !important;
}

/* =======================================================
   HERO
======================================================= */

.hero-section {
  padding: 180px 5% 100px 5%;
  max-width: 1600px;
  margin: 0 auto;
}

.hero-name-title {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 4.2rem;
  color: #1A1A1A;
  line-height: 1.1;
  margin-bottom: 5px;
  letter-spacing: -0.5px;
}

.hero-tagline {
  font-size: 1.6rem;
  margin-bottom: 70px;
  text-align: left;
  color: #444;
  font-weight: 300;
}

.hero-content {
  display: flex;
  gap: 8%;
  align-items: center;
}

.hero-image-block,
.hero-text-block {
  flex: 1;
}

.hero-text-block h2 {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-discretion {
  font-size: 1rem;
  margin-bottom: 35px;
  color: #444;
}

.cta-button {
  display: inline-block;
  padding: 16px 45px;
  background-color: #1A1A1A;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.3s;
}

.cta-button:hover {
  opacity: 0.8;
}

/* =======================================================
   PROCESS
======================================================= */

.process-section {
  background-color: #FFFFFF;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

.process-container {
  max-width: 1600px;
  margin: 0 auto;
}

.process-section h3 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.process-subtitle {
  font-size: 0.95rem;
  margin-bottom: 60px;
  color: #666;
  font-style: italic;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: 100%;
}

.process-card {
  padding: 35px 20px;
  background-color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.85rem;
  text-align: left;
  line-height: 1.3;
}

.step-num {
  display: block;
  margin-bottom: 8px;
  color: #777;
  font-weight: 300;
}

/* =======================================================
   CONTACT & FORM
======================================================= */

.form-intro {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 20px;
}

.contact-legal-info {
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.legal-firm-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.legal-detail {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 5px;
  font-weight: 300;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  max-width: 420px;
}

.form-group input,
.form-textarea {
  width: 100%;
  padding: 14px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  color: #1A1A1A;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-textarea:focus {
  border-bottom-color: #1A1A1A;
}

.form-textarea {
  min-height: 80px;
  max-height: 200px;
  resize: vertical;
  line-height: 1.5;
}

.form-action-container {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 10px;
  min-height: 50px;
}

.form-submit-btn {
  padding: 15px 40px;
  background-color: #1A1A1A;
  color: #FFFFFF;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
}

.form-submit-btn:hover {
  background-color: #444;
}

/* =======================================================
   GDPR CHECKBOX
======================================================= */

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.checkbox-group input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  top: 0;
}

.checkbox-group label {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1;
  color: #444;
  cursor: pointer;
}

/* =======================================================
   FORM STATUS
======================================================= */

.form-status-note {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
  color: #1A1A1A;
  transition: opacity 0.4s ease-in-out;
  display: inline-block;
  opacity: 1;
}

.text-hidden {
  opacity: 0 !important;
  pointer-events: none;
}

.element-hidden {
  display: none !important;
}

/* =======================================================
   HONEYPOT FIELD
======================================================= */

.hidden-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* =======================================================
   FOOTER
======================================================= */

.main-footer {
  padding: 60px 5% 40px 5%;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 0.85rem;
  background-color: #F0F0F0;
}

.footer-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.footer-corporate {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding-bottom: 25px;
}

.footer-brand-name {
  font-weight: 500;
  color: #1A1A1A;
}

.footer-ami-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: #E2E2E2;
  padding: 2px 8px;
  letter-spacing: 0.5px;
  color: #333;
}

.footer-address-text {
  color: #666;
  font-size: 0.8rem;
  font-weight: 300;
}

.footer-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-legal {
  color: #777;
}

.footer-policies a {
  text-decoration: none;
  color: #555;
  margin-left: 25px;
  transition: color 0.2s;
}

.footer-policies a:hover {
  color: #1A1A1A;
}

/* =======================================================
   COOKIE BANNER
======================================================= */

.cookie-banner {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 650px;
  background-color: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  padding: 30px;
  z-index: 999999;
  box-sizing: border-box;
  border-radius: 4px;
}

.cookie-banner.hidden {
  display: none;
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cookie-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: #1A1A1A;
}

.cookie-content p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #444444;
}

.cookie-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 10px;
}

.btn {
  padding: 13px 32px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background-color: #1A1A1A;
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #444444;
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid rgba(0, 0, 0, 0.15);
  color: #555555;
}

.btn-secondary:hover {
  border-color: #1A1A1A;
  color: #1A1A1A;
  background-color: rgba(0, 0, 0, 0.02);
}

/* =======================================================
   RESPONSIVE
======================================================= */

@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .hero-name-title {
    font-size: 3.5rem;
    text-align: center;
  }

  .hero-tagline {
    text-align: center;
  }

  .grid-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .grid-layout.reverse .text-block,
  .grid-layout.reverse .image-block {
    order: 0;
  }

  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cropped-frame {
    height: 350px;
  }

  .contact-form {
    max-width: 100%;
  }

  .form-submit-btn {
    align-self: center;
    width: 100%;
  }

  .form-action-container {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .main-header {
    padding: 15px 5%;
  }

  .header-container {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .header-nav ul {
    gap: 15px;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .header-nav a {
    font-size: 0.75rem;
    letter-spacing: 0;
  }

  .brand-logo {
    height: 32px;
  }

  .hero-name-title {
    font-size: 2.8rem;
  }

  .hero-section {
    padding: 160px 5% 70px 5%;
  }

  .hero-text-block h2 {
    font-size: 2rem;
  }

  section {
    padding: 70px 5%;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-card {
    padding: 25px 15px;
  }

  .footer-bottom-row {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .footer-policies a {
    margin: 0 10px;
  }

  .cropped-frame {
    height: 260px;
  }

  .footer-corporate {
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 600px) {
  .cookie-banner {
    bottom: 0;
    left: 0 !important;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    transform: none !important;
    padding: 20px 5%;
    border-left: none;
    border-right: none;
  }

  .cookie-buttons {
    flex-direction: column;
    gap: 10px;
  }

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