/* ===== Fonts ===== */
@font-face {
  font-family: 'Obviously Bold';
  src: url('../assets/fonts/Obviously-CondensedBold.otf') format('opentype');
  font-display: swap;
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Obviously Semibold';
  src: url('../assets/fonts/Obviously-Semibold.otf') format('opentype');
  font-display: swap;
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'Obviously Regular';
  src: url('../assets/fonts/Obviously-Regular.otf') format('opentype');
  font-display: swap;
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Obviously condensed bold';
  src: url('../assets/fonts/Obviously-CondensedBold.otf') format('opentype');
  font-display: swap;
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Obviously condensed semibold';
  src: url('../assets/fonts/Obviously-CondensedSemibold.otf') format('opentype');
  font-display: swap;
  font-weight: bold;
  font-style: normal;
}

/* ===== Variables ===== */
:root {
  --primary: #1108BB;
  --secondary: #FFF9EE;
  --overlay: rgba(0, 0, 0, 0.4);
  --transition: all 0.3s ease;
}

/* ===== Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
  line-break: loose;
  font-style: normal;
  border: none;  
}

html, body {
  width: 100%;
  height: 100%;
  overflow: visible;
  overflow-x: hidden;
  font-family: 'Obviously Regular', sans-serif;
}

main {
  display: flex;
  width: 100%;
  height: 100%;
}

/* ===== Typography ===== */
h1 {
  color: var(--primary);
  font-family: 'Obviously Bold', sans-serif;
  font-size: clamp(5rem, 10vw, 12rem);
  line-height: 0.85;
  text-transform: uppercase;
  animation: fadeIn 0.8s ease-out forwards;
  opacity: 0;
  transition: all 0.3s ease;
}

h2 {
  font-family: 'Obviously condensed semibold', sans-serif;
  color: var(--secondary);
  font-size: 3rem;
  transition: all 0.3s ease;
  text-wrap-style: balance;
}

address {
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.3em;
  color: var(--primary);
  transition: all 0.3s ease;
}

address a:hover {
  font-style: italic;
  text-decoration: underline;
}

#main-title {
  transform-style: preserve-3d;
  perspective: 1000px;
}

a:visited {
  text-decoration: none;
}

/* ===== Animations ===== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.left-text p:nth-child(1) { animation-delay: 0.3s; }
.left-text p:nth-child(2) { animation-delay: 0.6s; }
.left-text p:nth-child(3) { animation-delay: 0.9s; }

/* ===== Layout ===== */
/* Header */
header {
  position: relative;
  display: flex;
  justify-content: start;
  width: 100%;
  z-index: 10;
}

.logo {
  height: clamp(3rem, 2rem, 5rem);
  transition: var(--transition);
}

.logo-mobile { display: none; }
.logo-desktop { display: block; }

/* Left Section */
.left {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;
  background-color: var(--secondary);
  position: relative;
  overflow: hidden;
}

.inner-container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px;
  height: 100%;
  width: 100%;
}

.bottom-container {
  padding: 1rem 0;
}

/* Right Section */

.right {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  width: 55%;
  align-items: center;
  overflow: hidden;
  background-color: var(--primary);
  color: var(--secondary);
}

.right > iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.content-wrapper {
  max-width: 1200px;
  width: 90%;
  padding: 4rem 2rem;
  color: var(--secondary);
  position: relative;
}

/* Buttons */
.close-content {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: transparent;
  border: none;
  color: var(--secondary);
  font-size: 2rem;
  transition: var(--transition);
}

.close-content:hover {
  transform: rotate(90deg);
}

/* Typography Helpers */
.word {
  display: block;
  z-index: 4;
}

/* ===== Responsive Styles ===== */
@media (max-width: 768px) {
  main {
    flex-direction: column;
  }

  header {
    justify-content: center;
    padding: 0.5rem;
  }

  .left, .right {
    flex: none;
    height: 50vh;
    width: 100%;
  }

  .left {
    padding: 1rem;
  }

  .logo-mobile {
    display: block;
    height: 4rem;
    align-content: center;
  }

  .logo-desktop {
    display: none;
  }

  h1 {
    font-size: clamp(3rem, 20vw, 12rem);
    text-align: center;
  }

  h2 {
    text-align: center;
  }

  p {
    text-align: center;
  }

  address {
    text-align: center;
    overflow: visible;
    white-space: nowrap;
  }

  .inner-container {
    height: 100%;
    padding: 0 1rem 0 1rem;
    justify-content: space-around;
  }

  .word {
    display: inline-flex;
  }

  .hero-image figcaption {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: unset;
    padding: 1rem;
  }

  .hero-image h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 420px) {
  .inner-container {
    padding: 0 1em 0 1em; 
  }

  .left-text {
    text-align: center;
  }

  address {
    font-size: 0.6rem;
  }

  .hero-image figcaption {
    padding: 0.75rem;
  }

  .hero-image h2 {
    font-size: 1.2rem;
  }

  .hero-image p {
    font-size: 0.9rem;
  }
}