/* Geir Hagberg – geirhagberg.no */

:root {
  --blue: rgb(15, 61, 84);
  --blue-dark: #0a2b3c;
  --gold: rgb(197, 143, 92);
  --cream: hsl(30, 25%, 97%);
  --text: hsl(0, 0%, 15%);

  --font-heading: "Playfair Display", serif;
  --font-body: "Montserrat", sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base ---------- */

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

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

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

ul {
  list-style: none;
}

h2 {
  font-family: var(--font-heading);
  font-size: inherit;
  font-weight: inherit;
}

/* ---------- Layout ---------- */

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  background-color: var(--cream);
}

/* Organic background shapes */
.blob {
  position: absolute;
  opacity: 0.6;
  filter: blur(40px);
  pointer-events: none;
}

.blob-gold {
  top: -6rem;
  left: -6rem;
  width: 28rem;
  height: 28rem;
  background: radial-gradient(circle at 40% 40%, rgba(197, 143, 92, 0.28), transparent 70%);
  border-radius: 62% 38% 54% 46% / 49% 58% 42% 51%;
}

.blob-blue {
  top: 2.5rem;
  right: -8rem;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle at 60% 50%, rgba(15, 61, 84, 0.14), transparent 70%);
  border-radius: 41% 59% 37% 63% / 58% 36% 64% 42%;
}

/* ---------- Header ---------- */

.hero {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 4rem 1.5rem 0;
  text-align: center;
}

.hero-logo {
  width: 16rem;
  margin-bottom: 2rem;
  animation: zoom-in 1s ease-out 0.2s both;
}

.hero-company {
  margin-bottom: 1.5rem;
  color: var(--blue);
  font-size: 0.75rem;
  line-height: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: fade-in 0.8s ease-out 0.5s both;
}

.hero-tagline {
  max-width: 28rem;
  margin-bottom: 2.5rem;
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-style: italic;
  font-weight: 400;
  line-height: 1.625;
  animation: fade-in 0.8s ease-out 0.7s both;
}

.wave-top {
  position: relative;
  z-index: 10;
  width: 100%;
  height: 4rem;
  margin-bottom: -1px;
}

/* ---------- Offers ---------- */

.offers {
  position: relative;
  z-index: 10;
  flex: 1;
  width: 100%;
  padding: 1.5rem 1.5rem 5rem;
  background-color: var(--blue);
}

.glow {
  position: absolute;
  filter: blur(64px);
  pointer-events: none;
}

.glow-gold {
  top: 25%;
  left: 8%;
  width: 18rem;
  height: 18rem;
  opacity: 0.4;
  background: rgba(197, 143, 92, 0.25);
  border-radius: 55% 45% 60% 40% / 45% 55% 45% 55%;
}

.glow-white {
  bottom: 2.5rem;
  right: 6%;
  width: 20rem;
  height: 20rem;
  opacity: 0.3;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 40% 60% 45% 55% / 60% 40% 60% 40%;
}

.offers-grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  max-width: 64rem;
  margin: 0 auto;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2.25rem;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease-out;
  animation: rise-in 0.9s ease-out 1s both;
}

.card-gutta {
  animation-delay: 1.15s;
}

.card:hover {
  transform: translateY(-4px);
}

.card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card-image-org {
  border-radius: 2rem 2rem 45% 2rem / 2rem 2rem 30% 2rem;
}

.card-image-gutta {
  border-radius: 2rem 2rem 2rem 45% / 2rem 2rem 2rem 30%;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.card-image img.img-portrait {
  object-position: center 30%;
}

.card-image img:hover {
  transform: scale(1.05);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.75rem 0.75rem 1rem;
  text-align: left;
}

.card-label {
  margin-bottom: 0.75rem;
  color: var(--gold);
  font-size: 0.75rem;
  line-height: 1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.card-title {
  margin-bottom: 0.75rem;
  color: #fff;
  font-size: 1.875rem;
  font-weight: 400;
  line-height: 1.375;
}

.card-text {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tags li {
  padding: 0.375rem 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  line-height: 1rem;
  letter-spacing: 0.025em;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
  margin-top: auto;
  padding: 0.875rem 1.75rem;
  color: var(--blue);
  background-color: var(--gold);
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 8px 24px -8px rgba(197, 143, 92, 0.7);
  transition: all 0.3s var(--ease);
}

.button:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 12px 28px -8px rgba(197, 143, 92, 0.9);
}

.button-arrow {
  transition: transform 0.3s var(--ease);
}

.button:hover .button-arrow {
  transform: translateX(0.25rem);
}

/* ---------- Footer ---------- */

.footer {
  position: relative;
  z-index: 10;
  color: rgba(255, 255, 255, 0.7);
  background-color: var(--blue-dark);
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.wave-footer {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2.5rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 2.5rem;
}

.footer-logo {
  width: auto;
  height: 1.75rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.15s var(--ease);
}

.footer-link:hover {
  color: #fff;
}

/* ---------- Larger screens ---------- */

@media (min-width: 768px) {
  .hero-logo {
    width: 20rem;
  }

  .hero-tagline {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .wave-top {
    height: 6rem;
  }

  .offers {
    padding-bottom: 7rem;
  }

  .offers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
  }

  .card {
    padding: 1.25rem;
  }

  .card-gutta {
    margin-top: 4rem;
  }

  .card-body {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .card-title {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  .card-text {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }

  .wave-footer {
    height: 3.5rem;
  }
}

/* ---------- Entrance animations ---------- */

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zoom-in {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Uses the separate `translate` property so it doesn't clash with the hover lift */
@keyframes rise-in {
  from {
    opacity: 0;
    translate: 0 24px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
