/* ======================================
   Kaiboo Coming Soon — Design System
   ====================================== */

/* --- CSS Custom Properties --- */
:root {
  --color-beige: #e9dccd;
  --color-sage: #b0b08c;
  --color-bronze: #c48041;
  --color-dark: #2d3329;
  --color-white: #ffffff;

  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-beige);
  color: var(--color-dark);
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

::selection {
  background-color: var(--color-bronze);
  color: var(--color-white);
}

/* --- Animations --- */
@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  opacity: 0;
  animation: fade-in-up 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 150ms; }
.delay-2 { animation-delay: 300ms; }
.delay-3 { animation-delay: 450ms; }

/* --- Navbar --- */
.site-navbar {
  width: 100%;
  flex-shrink: 0;
  background-color: rgba(45, 51, 41, 0.05);
}

.navbar-container {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
}

.navbar-brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-dark); /* Dark green */
  letter-spacing: 0.05em;
}

/* --- Footer --- */
.site-footer {
  flex-shrink: 0;
  padding: 0.5rem 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(45, 51, 41, 0.6);
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* --- Main Container --- */
.main-container {
  flex: 1;
  width: 100%;
  max-width: 56rem; /* ~896px */
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* --- Logo --- */
.logo-container {
  margin-top: 0;
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.logo-circle {
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  transition: all 0.3s ease-in-out;
  overflow: hidden;
}

.logo-container:hover .logo-circle {
  transform: translate(-2px, -2px);
}

.logo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* --- Typography Section --- */
.typography-section {
  max-width: 40rem;
  margin: 0 auto 1rem;
}

.main-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: #874E12;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  white-space: nowrap;
}

.main-subtitle {
  font-size: 0.95rem;
  color: rgba(45, 51, 41, 0.8);
  font-weight: 500;
  line-height: 1.5;
}

/* --- Action Buttons --- */
.action-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 28rem;
  margin-bottom: 1rem;
}

.btn {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0.6rem 1.5rem;
  border: 3px solid var(--color-bronze);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(176, 176, 140, 0.3);
}

/* Instagram — outlined */
.btn-instagram {
  background-color: transparent;
  color: var(--color-bronze);
}

.btn-instagram .btn-bg {
  position: absolute;
  inset: 0;
  background-color: var(--color-bronze);
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
}

.btn-instagram:hover .btn-bg {
  transform: translateX(0);
}

.btn-instagram:hover {
  color: var(--color-white);
}

/* WhatsApp — filled */
.btn-whatsapp {
  background-color: var(--color-bronze);
  color: var(--color-white);
}

.btn-whatsapp .btn-bg {
  position: absolute;
  inset: 0;
  background-color: var(--color-beige);
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
}

.btn-whatsapp:hover .btn-bg {
  transform: translateX(0);
}

.btn-whatsapp:hover {
  color: var(--color-bronze);
}

/* Button content */
.btn-content {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1;
}

.btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* --- Newsletter Section --- */
.newsletter-section {
  width: 100%;
  max-width: 28rem;
  margin-bottom: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 1rem;
  border: 1px solid rgba(196, 128, 65, 0.2);
  transition: all 0.3s ease;
}

.newsletter-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(45, 51, 41, 0.05);
}

.newsletter-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.newsletter-form {
  width: 100%;
}

.input-group {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
}

#newsletter-email {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 2px solid rgba(196, 128, 65, 0.3);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.8);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-dark);
  transition: all 0.3s ease;
  min-width: 0;
}

#newsletter-email:focus {
  outline: none;
  border-color: var(--color-bronze);
  box-shadow: 0 0 0 4px rgba(196, 128, 65, 0.1);
}

.btn-submit {
  padding: 0.6rem 1.5rem;
  background-color: var(--color-bronze);
  color: var(--color-white);
  border: none;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 6rem;
  position: relative;
  white-space: nowrap;
}

.btn-submit:hover {
  background-color: #a86c35;
  transform: scale(1.02);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-message {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  min-height: 1rem;
}

.form-message.success { color: #4a6741; }
.form-message.error { color: #a63a3a; }

/* Loader Animation */
.btn-loader {
  display: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading .btn-text { display: none; }
.loading .btn-loader { display: block; }

/* --- Countdown Section --- */
.countdown-section {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(176, 176, 140, 0.3);
  width: 100%;
  max-width: 28rem;
}

.countdown-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-sage);
  margin-bottom: 0.5rem;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0.75rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-value {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-bronze);
  line-height: 1.2;
  min-width: 2.5ch;
  text-align: center;
}

.countdown-text {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-sage);
  margin-top: 0.25rem;
}

.countdown-separator {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(176, 176, 140, 0.5);
  line-height: 1.2;
}

/* ======================================
   Responsive — Tablet & Desktop
   ====================================== */

@media (min-width: 640px) {
  .action-buttons {
    flex-direction: row;
  }

  .btn {
    width: 50%;
  }

  .main-container {
    padding: 0.5rem 1.5rem;
  }

  .countdown-timer {
    gap: 1rem;
  }
}

@media (min-width: 768px) {
  .logo-circle {
    width: 7rem;
    height: 7rem;
  }

  .main-heading {
    font-size: 2.5rem;
  }

  .main-subtitle {
    font-size: 1rem;
  }

  .btn {
    font-size: 0.9rem;
  }

  .countdown-value {
    font-size: 1.75rem;
  }

  .countdown-separator {
    font-size: 1.75rem;
  }

  .countdown-label {
    font-size: 0.8rem;
  }
}

@media (min-width: 1024px) {
  .main-heading {
    font-size: 3rem;
  }
}

/* ======================================
   Responsive — Mobile (compact)
   ====================================== */

@media (max-width: 639px) {
  .navbar-container {
    padding: 0.4rem 1rem;
  }

  .navbar-brand {
    font-size: 1rem;
  }

  .main-container {
    padding: 0.25rem 1rem;
  }

  .logo-container {
    margin-bottom: 0.5rem;
  }

  .logo-circle {
    width: 4.5rem;
    height: 4.5rem;
  }

  .typography-section {
    margin: 0 auto 0.75rem;
  }

  .main-heading {
    font-size: 1.5rem;
    white-space: normal;
  }

  .main-subtitle {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .action-buttons {
    flex-direction: row;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    max-width: 100%;
  }

  .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.7rem;
    border-width: 2px;
    width: 50%;
  }

  .btn-icon {
    width: 1rem;
    height: 1rem;
  }

  .newsletter-section {
    max-width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
  }

  .newsletter-text {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .input-group {
    flex-direction: column;
    gap: 0.4rem;
  }

  #newsletter-email {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .btn-submit {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    width: 100%;
  }

  .form-message {
    margin-top: 0.25rem;
    font-size: 0.7rem;
    min-height: 0.8rem;
  }

  .countdown-section {
    margin-top: 0.25rem;
    padding-top: 0.5rem;
  }

  .countdown-label {
    font-size: 0.65rem;
    margin-bottom: 0.35rem;
  }

  .countdown-value {
    font-size: 1.25rem;
  }

  .countdown-separator {
    font-size: 1.25rem;
  }

  .countdown-text {
    font-size: 0.6rem;
  }

  .site-footer {
    padding: 0.35rem 1rem;
    font-size: 0.65rem;
  }
}
