html {
  scroll-behavior: smooth;
}

:root {
  --bg: #ffffff;
  --bg-darker: #f3f4f6;
  --muted: #6b7280;
  --accent: #00a4bf;
  --accent-2: #ce3a50;
  /* --accent: #d97706; */
  /* warm orange */
  /* --accent-2: #8b5cf6; */
  /* purple for contrast */
  --radius: 12px;
  --max-width: 1100px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  background: linear-gradient(180deg, #fff 0%, #fbfbff 100%);
  color: #111;
  line-height: 1.5
}

a {
  color: var(--accent);
  text-decoration: none
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem
}

/* Header */
header {
  background: transparent;
  padding: 0.6rem 0
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem
}

.logo {
  margin-right: 1rem;
}

nav ul {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none
}

nav li {
  font-weight: 600
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-menu li {
  padding: .5rem 0;
  text-align: center;
  background: var(--bg-darker);
  border-radius: var(--radius);
  margin: .5rem 0;
}

.mobile-menu li a {
  color: var(--muted);
  display: block;
  width: 100%;
  height: 100%;
}

/* mobile nav toggle */
.menu-btn {
  display: none;
  background: none;
  border: 0;
  font-size: 1.2rem
}



/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  padding: 2.4rem 0
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem
}

.eyebrow {
  color: var(--muted);
  font-weight: 600
}

h1 {
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  margin: 0
}

p.lead {
  margin: 0;
  color: var(--muted)
}

.ctas {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-weight: 700
}

.btn-primary {
  background: var(--accent);
  color: white
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 2px solid rgba(0, 0, 0, 0.06)
}

/* Sections */
section {
  padding: 2rem 0
}

.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr))
}

.card {
  background: white;
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  display: flex; /* Make card a flex container */
  flex-direction: column; /* Stack children vertically */
}

.small {
  font-size: .95rem;
  color: var(--muted)
}

/* Contact */
form {
  display: grid;
  gap: .6rem
}

input,
textarea {
  padding: .6rem;
  border-radius: 8px;
  border: 1px solid #e6e9ef;
  font-family: inherit
}

/* align labels and fields nicely */
form label {
  display: flex;
  flex-direction: column;
  gap: .25rem
}

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

footer {
  padding: 1.4rem 0;
  border-top: 1px solid #f0f2f5;
  color: var(--muted)
}

/* Responsive adjustments */
@media (min-width:800px) {
  .hero {
    grid-template-columns: 1fr 420px
  }

  .hero-inner {
    padding-right: 1rem
  }

  nav ul {
    gap: 1.25rem
  }

  .menu-btn {
    display: none
  }

  .mobile-menu {
    display: none;
  }
}

@media (max-width:799px) {
  nav ul {
    display: none
  }

  .menu-btn {
    display: inline-flex
  }

  .mobile-menu {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
  }

  .mobile-menu.open {
    max-height: 500px; /* arbitrary large value */
    padding: 1rem 0;
  }
}

/* language switch */
.lang-switch {
  position: relative;
  width: 72px;
  height: 32px;
  border-radius: 999px;
  background: var(--bg-darker);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  font-weight: 700;
  font-size: .8rem;
  color: var(--muted)
}

.lang-switch .lang-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform .25s ease
}

.lang-switch.es .lang-thumb {
  transform: translateX(40px)
}

.lang-switch .lang-label {
  z-index: 1;
  transition: color .25s ease
}

.lang-switch:not(.es) .lang-label.left {
  color: white
}

.lang-switch.es .lang-label.right {
  color: white
}

/* small polish */
.muted {
  color: var(--muted)
}

.pill {
  display: inline-block;
  padding: .25rem .6rem;
  background: #f3f4f6;
  border-radius: 999px;
  font-weight: 600
}

/* New styles for card with image */
@media (min-width: 800px) {
  .card-with-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0; /* Remove gap to make columns touch */
    padding: 0; /* Remove padding from the grid container itself */
    overflow: hidden; /* Ensure border-radius clips children */
  }

  .card-with-image-grid .card-content {
    display: contents; /* Makes the wrapper part of the grid */
  }

  .card-with-image-grid .card-body {
    padding: 1rem; /* Keep padding for the text content */
    padding-left: 0;
    justify-content: center; /* Center content vertically */
    height: 100%; /* Ensure it fills the grid cell height */
  }

  .card-with-image-grid .card-image {
    width: 100%;
    height: 100%;
  }

  .card-with-image-grid .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 var(--radius) var(--radius) 0; /* Rounded corners on the right side */
  }

  .card {
    padding-left: 2rem;
  }
}

/* Fallback for smaller screens */
@media (max-width: 799px) {
  .card-with-image-grid .card-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .card-with-image-grid .card-image {
    width: 100%;
  }

  .card-with-image-grid .card-image img {
    width: 100%;
    border-radius: var(--radius);
  }
}
