/* ═══════════════════════════════════════════
   AIM Facility — Landing Page Styles
   ═══════════════════════════════════════════ */


/* ─── VARIABLES ─── */
:root {
  /* Brand colors */
  --coral:        #E8825E;
  --coral-light:  #F0A080;
  --coral-dark:   #D06A48;

  /* Neutrals */
  --charcoal:     #3D3D3D;
  --gray-700:     #4A4A4A;
  --gray-500:     #7A7A7A;
  --gray-300:     #B8B8B8;
  --gray-100:     #E8E3DE;
  --cream:        #F5F0EB;
  --cream-light:  #FAF8F5;
  --white:        #FFFFFF;

  /* Typography */
  --font-display: 'Outfit', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}


/* ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════ */
/* TIPOGRAFIA                                  */
/* ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════ */

@font-face {
    font-family: 'archiaregular';
    src: url('archia-regular-webfont.eot');
    src: url('archia-regular-webfont.eot?#iefix') format('embedded-opentype'),
         url('archia-regular-webfont.woff2') format('woff2'),
         url('archia-regular-webfont.woff') format('woff'),
         url('archia-regular-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'archiamedium';
    src: url('archia-medium-webfont.eot');
    src: url('archia-medium-webfont.eot?#iefix') format('embedded-opentype'),
         url('archia-medium-webfont.woff2') format('woff2'),
         url('archia-medium-webfont.woff') format('woff'),
         url('archia-medium-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'archiasemibold';
    src: url('archia-semibold-webfont.eot');
    src: url('archia-semibold-webfont.eot?#iefix') format('embedded-opentype'),
         url('archia-semibold-webfont.woff2') format('woff2'),
         url('archia-semibold-webfont.woff') format('woff'),
         url('archia-semibold-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'archiabold';
    src: url('archia-bold-webfont.eot');
    src: url('archia-bold-webfont.eot?#iefix') format('embedded-opentype'),
         url('archia-bold-webfont.woff2') format('woff2'),
         url('archia-bold-webfont.woff') format('woff'),
         url('archia-bold-webfont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}





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

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

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul {
  list-style: none;
}








/* ─── UTILITIES ─── */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}


/* ─── SHARED SECTION ELEMENTS ─── */
.section-label {
  display: inline-flex;
  align-items: center;
  font-family: 'archiamedium';
  gap: 1.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1rem;
  text-align: center;
  justify-content: center;
}



.section-title {
  font-family: 'archiabold';
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom:2%;
}



/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  background: var(--coral);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 12px;
  font-family: 'archiabold';
  font-weight: 600;
  font-size: 1.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(232, 130, 94, 0.3);
}

.btn-primary:hover {
  background: var(--coral-dark);
  box-shadow: 0 8px 32px rgba(232, 130, 94, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--charcoal);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-family: 'archiabold';
  font-weight: 500;
  font-size: 1.5rem;
  border: 1.5px solid var(--gray-500);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: var(--coral);
  color: var(--coral);
}













/* ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════ */
/* NAV                                         */
/* ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════ */

.nav {
  height: 100px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  background: white;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.nav.scrolled {
  height: 80px;
  padding: 0 2rem;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 100%;
}

.nav-logo img {
  /* height: 40px; */
  height: 64px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: 'archiasemibold';
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--charcoal);
  letter-spacing: 0.02em;
  transition: color 0.25s ease;
  position: relative;
}

.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--coral);
  transition: width 0.3s ease;
}

.nav-links a:not(.nav-cta):hover {
  color: var(--charcoal);
}

.nav-links a:not(.nav-cta):hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--coral);
  color: var(--white) !important;
  padding: 0.625rem 1.25rem;
  border-radius: 12px;
  font-family: 'archiasemibold';
  font-size: 1.15rem !important;
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--coral-dark);
  transform: translateY(-1px);
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 0 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gray-500);
  padding: 0.5rem 0;
  transition: color 0.25s ease;
}

.nav-mobile a:hover {
  color: var(--coral);
}

.nav-mobile .nav-cta {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 12px 40px;
}






/* ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════ */
/* HERO BANNER                                 */
/* ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 10rem 0 6rem;
  position: relative;
  overflow: hidden;
}

/* Background glow */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(232, 130, 94, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  justify-content: center;
  z-index: 2;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  /* background: rgba(232, 130, 94, 0.08); */
  border: 1px solid rgba(232, 130, 94, 1);
  border-radius: 100px;
  padding: 1rem 1.35rem;
  font-family: 'archiamedium';
  /* font-size: 1.5rem; */
  font-size: clamp(1.25rem, 1vw, 2rem);
  color: var(--coral);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease both;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--coral);
  animation: pulse 2s infinite;
}

/* Title */
.hero-title {
  font-family: 'archiabold';
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  text-align: center;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-title span {
  color: var(--coral);
}

.hero-sub {
  font-family: 'archiaregular';
  /* font-size: 2rem; */
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.3;
  color: var(--gray-700);
  text-align: center;
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  animation: fadeInUp 0.8s ease 0.3s both;
  max-width: 420px;
  width: 100%;
}

.btn-primary,
.btn-secondary {
  justify-content: center;
  text-align: center;
}





/* ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════ */
/* SERVICES                                    */
/* ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════ */

.services {
  padding: 7rem 0;
  background: var(--cream-light);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-100), transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 4%;
  width: 100%;
}

.service-card {
  aspect-ratio: 1 / 1;
  background: var(--cream);
  border-radius: 16px;
  /* padding: 48px; */
  text-align: center;
  transition: all 0.35s ease;
  border: 1px solid transparent;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.service-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border-radius: 14px;
  /* background: rgba(232, 130, 94, 0.08); */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.service-icon img {
  width: 90px;
  height: 90px;
}

.service-card h3 {
  font-family: 'archiabold';
  /* font-size: 1.25rem; */
  font-size: clamp(1.35rem, 2.25vw, 1.75rem);
  color: var(--coral);
  text-transform: ;
}










/* ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════ */
/* FORM SECTION                                */
/* ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════ */

.form-section {
  padding: 7rem 0;
  position: relative;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* Left info */
.form-info-title {
  font-family: 'archiabold';
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.form-info-title span {
  color: var(--coral);
}

.form-info-desc {
  font-family: 'archiamedium';
  font-size: 1.2rem;
  color: var(--gray-700);
  line-height: 1.35;
  margin-bottom: 10%;
}

.form-features {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.form-feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

/* Icons */
.form-feature-icon {
  width: 64px;
  height: 64px;
  min-width: 48px;
  min-height: 48px;
  border-radius: 12px;
  border:1px solid var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-feature-icon img {
  width: 32px;
  height: 32px;
  color: var(--gray-700);
}

/* Texts */
.form-feature h4 {
  font-family: 'archiamedium';
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.form-feature p {
  font-family: 'archiamedium';
  font-size: 1.1rem;
  color: var(--gray-500);
  line-height: 1.5;
}





/* ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════ */
/* FORMULARI                                     */
/* ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════ */

.form-card {
  background: var(--white);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.form-card h3 {
  font-family: 'archiabold';
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 40px;
}

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

.form-group label {
  font-family: 'archiasemibold';
  display: block;
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--charcoal);
}

.form-group label span {
  font-family: 'archiamedium';
  color: var(--coral);

}



.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--gray-100);
  border-radius: 12px;
  font-family: 'archiamedium';
  font-size: 1rem;
  color: var(--charcoal);
  background: var(--cream-light);
  transition: all 0.25s ease;
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--coral);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(232, 130, 94, 0.08);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #E25C5C;
}

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

.form-group select {
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: 'archiabold';
  font-size: 1.35rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(232, 130, 94, 0.3);
  margin-top: 0.5rem;
}

.btn-submit:hover {
  background: var(--coral-dark);
  box-shadow: 0 8px 32px rgba(232, 130, 94, 0.4);
  transform: translateY(-2px);
}

/* Success state */
.form-success {
  text-align: center;
  padding: 3rem 1rem;
}

.form-success svg {
  margin-bottom: 1.5rem;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.form-success p {
  color: var(--gray-500);
  line-height: 1.6;
}


/* ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════ */
/* PÀGINA DE COMFIRMACIÓ                       */
/* ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════ */


/* ─── LAYOUT ─── */
.confirmation {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Radial glow — same as hero::before */
.confirmation::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(232, 130, 94, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.confirmation-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 560px;
  position: relative;
  z-index: 2;
}


/* ─── ICON ─── */
.confirmation-icon {
  width: 96px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease both;
}

.confirmation-icon svg {
  width: 80px;
  height: 80px;
}


/* ─── TYPOGRAPHY ─── */
.confirmation-title {
  font-family: 'archiabold';
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.confirmation-title span {
  color: var(--coral);
}

.confirmation-desc {
  font-family: 'archiaregular';
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  line-height: 1.5;
  color: var(--gray-700);
  max-width: 480px;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease 0.2s both;
}


/* ─── CTA ─── */
.confirmation .btn-primary {
  animation: fadeInUp 0.8s ease 0.3s both;
}


/* ─── RESPONSIVE ─── */
@media (max-width: 600px) {

  .confirmation {
    padding: 3rem 1.5rem;
  }

  .confirmation-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 2rem;
  }

  .confirmation-icon svg {
    width: 64px;
    height: 64px;
  }

  .confirmation-desc {
    margin-bottom: 2.5rem;
  }

  .confirmation .btn-primary {
    width: 100%;
    justify-content: center;
  }
}
















/* ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════ */
/* FOOTER                                      */
/* ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════ */

.footer {
  height: auto;
  background: #242424;
  padding: 110px 0 2rem;
}

.footer-grid {
  display: flex;
  flex-direction: row;
  gap: 64px;
  margin-bottom: 56px;
  align-items: flex-start;
}

.footer-logo {
  /* filter: brightness(0) invert(1); */
  height: 64px;
}

.footer h4 {
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.footer a {
  color: var(--cream);
  font-family: 'archiaregular';
  font-size: 1.1rem;
  /* font-size: clamp(1.25rem, 3vw, 2rem); */
  transition: color 0.25s ease;
  text-decoration: none;
}

.footer p {
  color: var(--cream);
  font-family: 'archiaregular';
  font-size: 1.1rem;
  /* font-size: clamp(1.25rem, 3vw, 2rem); */
  line-height: 1.35;
  transition: color 0.25s ease;
  text-decoration: none;
}

/*  Credits */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-500);

}

.footer-bottom p {
  font-family: 'archiamedium';
  font-size: .85rem;
  color: var(--gray-500);
}


















/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Scroll-triggered fade-in (controlled by JS) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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









/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET
   ═══════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    order: -1;
  }

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

  .footer-grid {
    flex-direction: column;
    gap: 4rem;
  }

  /* Show mobile toggle, hide desktop links */

  .nav {
    min-height: 70px;
    height: auto;
  }

  .nav-inner {
  height: 70px;
}

.nav.scrolled .nav-inner {
  height: 60px;
}

  .nav-logo img {
    height: 42px;
    width: auto;
  }

  .nav.scrolled {
    min-height: 60px;
    height: auto;
    padding: 0 1rem;
  }


  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .float-tag.t2 {
    left: 0;
  }
}


/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════ */
@media (max-width: 600px) {


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

  .service-card {
    min-width: 0;    /* ← AFEGIR */
    padding: 20px 0.75rem;
  }

  .service-icon {
    width: 72px;
    height: 72px;
  }

  .service-icon img {
    width: 72px;
    height: 72px;
  }

  .service-card h3 {
    font-size: 1.25rem;
  }

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

  .hero {
    padding: 7rem 0 4rem;
  }

  .footer {
    height: auto;
    background: #242424;
    padding-top: 56px;
  }

  .footer-logo {
    height: 56px;
  }
}
