@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;1,400;1,600&family=Puritan:ital,wght@0,400;0,700;1,400&family=Source+Sans+3:wght@300;400&display=swap');

:root {
  --primary: #164E66;
  --secondary: #DA7A7A;
  --accent: #216C8D;
  --bg-color: #FAF9F6;
  --text-main: #2C3032;
  --text-muted: #6B7280;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  font-weight: 400;
  line-height: 1.1;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 5%;
}

.text-accent {
  color: var(--secondary);
  font-style: italic;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.4s ease;
  cursor: pointer;
  border: 1px solid var(--primary);
  background-color: transparent;
  color: var(--primary);
}

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

.btn-primary:hover {
  background-color: var(--text-main);
  border-color: var(--text-main);
  transform: translateY(-2px);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--bg-color);
  transform: translateY(-2px);
}

/* ===== Header ===== */
.site-header {
  width: 100%;
  padding: 1.6rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: all 0.5s ease;
}

.site-header.scrolled {
  padding: 0.8rem 5%;
  background-color: rgba(250, 249, 246, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(22, 78, 102, 0.08);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  text-decoration: none;
  z-index: 101;
}

.brand-logo {
  height: 80px;
  transition: height 0.5s ease;
  flex-shrink: 0;
}

.scrolled .brand-logo {
  height: 52px;
}

.brand-divider {
  width: 1px;
  height: 54px;
  background-color: rgba(22, 78, 102, 0.2);
  transition: height 0.5s ease;
  flex-shrink: 0;
}

.scrolled .brand-divider {
  height: 36px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
  white-space: nowrap;
}

.brand-title {
  font-family: 'Puritan', serif;
  font-weight: 400;
  font-size: 1.7rem;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: 0.01em;
  transition: font-size 0.5s ease;
}

.scrolled .brand-title {
  font-size: 1.1rem;
}

.brand-subtext {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand-line2 {
  font-family: 'Puritan', serif;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--primary);
  opacity: 0.75;
  line-height: 1.3;
  letter-spacing: 0.02em;
  transition: font-size 0.5s ease;
}

.scrolled .brand-line2 {
  font-size: 0.55rem;
}

.brand-line3 {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 300;
  font-size: 0.73rem;
  color: var(--secondary);
  letter-spacing: 0.06em;
  line-height: 1.4;
  transition: font-size 0.5s ease;
}

.scrolled .brand-line3 {
  font-size: 0.47rem;
}

/* Header Nav */
.header-nav {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

/* Hamburger */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 101;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--primary);
  margin: 5px 0;
  transition: 0.3s;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
  .header-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(250, 249, 246, 0.98);
    padding: 2rem 5%;
    border-bottom: 1px solid rgba(22, 78, 102, 0.08);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s ease;
  }

  .header-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-btn {
    display: block;
  }

  .brand-subtext {
    display: none !important;
  }

  .brand-title {
    font-size: 1.3rem !important;
  }

  .brand-divider {
    height: 30px !important;
  }

  .brand-logo {
    height: 45px !important;
  }
}

/* Nav Link Hover effect */
.nav-link {
  text-decoration: none;
  color: var(--primary);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 3px;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 1.5px;
  background-color: var(--secondary);
  transition: width 0.35s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.25s; }
.delay-3 { transition-delay: 0.4s; }

/* ===== Layout ===== */
.split-layout {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

@media (min-width: 900px) {
  .split-layout {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ===== Organic Blobs ===== */
.blob {
  position: absolute;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  z-index: 0;
  pointer-events: none;
}

/* ===== Hero Tilt Card ===== */
.tilt-card {
  transition: transform 0.5s ease;
  will-change: transform;
}

/* ===== Offer Cards ===== */
.offer-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 24px rgba(22, 78, 102, 0.07);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: default;
}

.offer-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(22, 78, 102, 0.13);
}

/* ===== Section Tag ===== */
.section-tag {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  font-family: 'Outfit', sans-serif;
  margin-bottom: 1.5rem;
  display: block;
}

/* ===== Blob Wobble Animation ===== */
@keyframes blobWobble {
  0%, 100% { border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%; }
  50% { border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%; }
}

.blob-animated {
  animation: blobWobble 12s ease-in-out infinite;
}
