@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

:root {
  --fr2-primary: var(--pico-primary);
  --fr2-primary-2: var(--pico-primary-focus);
}

body {
  font-family: "Inter", sans-serif;
}

h1, h2 {
  font-family: "Instrument Sans", sans-serif;
  font-weight: 600;
  color: var(--fr2-primary);
}

header.container-fluid.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.04);
}

nav.menu .nav-links a {
  color: var(--fr2-primary);
  font-weight: 500;
  text-decoration: none;
  position: relative;
  padding: 0.25em 0.5em;
  border-radius: 0.25em;
}

nav.menu .nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--fr2-primary);
  transition: width 0.3s ease;
}

nav.menu .nav-links a:hover::after,
nav.menu .nav-links a:focus::after {
  width: 80%;
}

.hero {
  position: relative;
  padding: 2rem 2rem;
  margin-bottom: 3rem;
  background: linear-gradient(-40deg, var(--fr2-primary) 0%, var(--fr2-primary-2) 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.hero-text {
  color: white;
}


.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: white;
  letter-spacing: -0.02em;
}

.hero-text p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 540px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-cta a[role="button"] {
  background: var(--pico-primary);
  color: var(--pico-contrast-inverse);
  border: 2px solid var(--pico-contrast-inverse);
  border-radius: 3em;
  font-weight: 600;
  padding: 0.875rem 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-cta a[role="button"]:hover {
  transform: translateY(-2px);
}

.hero-cta a[role="button"].secondary {
  background: var(--pico-secondary);
  color: var(--pico-contrast-inverse);
}

.hero-cta a[role="button"].outline {
  background: transparent;
  color: var(--pico-card-background-color);
  border: solid 2px var(--pico-card-background-color);
}

.hero-cta a[role="button"].outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-image {
  text-align: center;
  position: relative;
}

.hero-image::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
  z-index: -1;
}

.hero-image {
  height: 65vh;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;
  border-radius: 1rem;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
  animation: heroFloat 6s ease-in-out infinite;
}

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

.hero.hero-right {
  min-height: 85vh;
  padding-right: 0;
}

.hero.hero-right .hero-grid {
  padding-right: 0;
}

.hero.hero-right .hero-text {
  text-align: left;
  padding-left: 5%;
}

.hero.hero-right .hero-text h1 {
  margin-bottom: 1rem;
}

.hero.hero-right .hero-text p {
  margin-bottom: 1.5rem;
}

.hero.hero-right .hero-text,
.hero.hero-left .hero-text {
  background: none;
}

.hero.hero-right .hero-image {
  overflow: hidden;
  background-position: left center;
  background-repeat: no-repeat;
  background-size: cover;
  padding-right: 0;
  border-radius: 1rem 0 0 1rem;
}

.hero.hero-left {
    padding-left: 0;
}

.hero.hero-left .hero-grid{
	padding-left: 0;
}

.hero.hero-left .hero-image {
  order: -1;
  overflow: hidden;
  background-position: right center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 0 1rem 1rem 0;
}

.hero.hero-left .hero-text {
  order: 1;
  text-align: left;
  padding-right: 5%;
}

.hero.hero-bg {
  background-size: cover;
  background-position: center;
}

.hero.hero-bg .hero-image {
  display: none;
}

.hero.hero-bg .hero-grid {
  grid-template-columns: 1fr;
  text-align: center;
}

.hero.hero-bg .hero-text {
  margin: 0 auto;
  background: var(--pico-modal-overlay-background-color);
  color: var(--fr2-primary);
  padding: 1.25rem 1.5rem;
  border-radius: 0.5rem;
}

.hero.hero-bg .hero-text h1,
.hero.hero-bg .hero-text p {
  color: inherit;
}


.hero.hero-text .hero-image {
  display: none;
}

.hero.hero-text .hero-text {
    background-color: unset; 
}

.hero.hero-text .hero-grid {
  grid-template-columns: 1fr;
  text-align: center;
}

.hero.hero-right::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 15vh;
  background: var(--pico-background-color);
  clip-path: polygon(0% 100%, 100% 25%, 100% 100%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .hero.hero-right, .hero.hero-left {
    min-height: auto;
    padding: 1rem 1rem;
  }

  .hero-image {
    margin-top: 1.5rem;
  }

  .hero-image {
    height: auto;
    min-height: 50vh;
    width: 100%;
    animation: none;
    border-radius: 1rem !important;
  }

  

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: unset;
  }

  .hero-text {
    max-width: 100%;
    padding-left: 0;
    text-align: center;
  }

  .hero {
    padding: 2rem;
  }

  .hero-text p {
    margin: 0 auto 2rem;
  }

  .hero-cta {
    justify-content: center;

  }

  .hero-text h1 {
    font-size: 2.25rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: 3rem 1rem;
  }

  .hero-text h1 {
    font-size: 1.75rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta a[role="button"] {
    width: 100%;
    text-align: center;
  }
}

footer {
  background: linear-gradient(-40deg, var(--fr2-primary) 0%, var(--fr2-primary-2) 100%);
  color: var(--pico-contrast-inverse);
  clip-path: polygon(0% 10%, 100% 0%, 100% 100%, 0% 100%);
}

.footer-grid {
    background-color: unset;
}

footer a,
footer .footer-brand p,
footer .footer-bottom,
footer .footer-links li,
footer .footer-social a {
  color: var(--pico-contrast-inverse);
}

.section-bleed::before {
  background: linear-gradient(-40deg, var(--fr2-primary) 0%, var(--fr2-primary-2) 100%);
  clip-path: polygon(0% 10%, 100% 0%, 100% 90%, 0% 100%);
}
