/* css/styles.css - global theme */
:root {
  /* Koyo Beauty teal palette */
  --deep-1: #0a3f3a; /* deep teal for text */
  --mid-1: #0e7f76; /* brand teal */
  --accent: #7fd9cf; /* light aqua accent */
  --glass: #ffffff14; /* translucent white for glass */
  --silver: #c8e5e1; /* soft teal-tinted silver */
  --muted: #6a8f8c; /* muted teal-gray for secondary text */
  --card-radius: 14px;
  /* Typography scale */
  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  --font-serif: "Playfair Display", Georgia, serif;
  --fs-xxl: clamp(36px, 4vw, 52px);
  --fs-xl: clamp(26px, 3vw, 34px);
  --fs-lg: 20px;
  --fs-md: 16px;
  --fs-sm: 14px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
  font-family: var(--font-sans);
  background: radial-gradient(
      800px 400px at 10% 10%,
      rgba(14, 127, 118, 0.08),
      transparent 8%
    ),
    linear-gradient(180deg, #f3fbfa 0%, #f6fdfc 100%);
  color: var(--deep-1);
  -webkit-font-smoothing: antialiased;
}
.h1,
h1 {
  font-family: var(--font-serif);
  font-size: var(--fs-xxl);
  line-height: 1.15;
}
.h2,
h2 {
  font-family: var(--font-serif);
  font-size: var(--fs-xl);
  line-height: 1.2;
}
.h3,
h3 {
  font-size: var(--fs-lg);
  line-height: 1.3;
}
p {
  font-size: var(--fs-md);
}
small,
.small {
  font-size: var(--fs-sm);
}
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* header/footer */
.site-header {
  padding: 14px 0;
  background: var(--mid-1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-logo {
  height: 48px;
}
.header-inner .nav {
  display: flex;
  gap: 16px;
}
.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-link:hover {
  opacity: 0.85;
}
.site-footer {
  padding: 30px 0;
  text-align: center;
  color: var(--muted);
  margin-top: 40px;
}

/* buttons */
.btn-primary {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--mid-1), #0a6d65);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(11, 31, 54, 0.12);
}
.btn-outline {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(14, 127, 118, 0.25);
  background: transparent;
  color: var(--mid-1);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(14, 127, 118, 0.18);
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
}

/* cards */
.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.75),
    rgba(255, 255, 255, 0.6)
  );
  border-radius: var(--card-radius);
  box-shadow: 0 12px 40px rgba(15, 30, 50, 0.06);
  padding: 18px;
}

/* utility */
.block {
  display: block;
  width: 100%;
}
.small {
  font-size: 0.9rem;
  color: var(--muted);
}
.form-error {
  color: #ff6b6b;
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.9rem;
}
.form-message {
  margin-top: 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Success animations */
@keyframes successPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.success-pulse {
  animation: successPulse 0.6s ease-in-out;
}

/* Smooth transitions - use transform and opacity for better performance */
.btn-primary,
.btn-outline,
.btn-ghost {
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background-color 0.2s ease;
  will-change: transform;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(11, 31, 54, 0.15);
}

.btn-outline:hover {
  background: rgba(14, 127, 118, 0.08);
  transform: translateY(-1px);
}

/* Input focus states */
input:focus {
  outline: none;
  border-color: var(--mid-1);
  box-shadow: 0 0 0 3px rgba(14, 127, 118, 0.15);
}
