@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap');

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --cream:      #FAF7F2;
  --parchment:  #EFE8DC;
  --sand:       #D9CEBD;
  --brown:      #2C2416;
  --brown-mid:  #6B5B45;
  --rust:       #C4622D;
  --rust-light: #E8A882;
  --sage:       #8B9E77;
  --white:      #FFFFFF;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition:  0.3s var(--ease-smooth);
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--cream);
  color: var(--brown);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fadeIn 0.6s var(--ease-smooth) 0.1s forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── Nav ───────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--sand);
  padding: 0 2.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(8px);
  background: rgba(250, 247, 242, 0.92);
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--brown);
}

.nav-brand span {
  color: var(--rust);
  font-style: italic;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown-mid);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--rust); }

.btn-login {
  background: var(--brown);
  color: var(--cream) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 2px;
  font-size: 0.8rem !important;
  letter-spacing: 0.1em !important;
  transition: background var(--transition), color var(--transition) !important;
}

.btn-login:hover {
  background: var(--rust) !important;
  color: var(--white) !important;
}

/* ─── Footer ────────────────────────────────────────────────── */
footer {
  margin-top: auto;
  border-top: 1px solid var(--sand);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--brown-mid);
}

footer .footer-brand {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
}

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  padding: 7rem 2.5rem 5rem;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 1.5rem;
  animation: slideUp 0.6s var(--ease-smooth) 0.3s both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--brown);
  margin-bottom: 1.5rem;
  animation: slideUp 0.6s var(--ease-smooth) 0.4s both;
}

.hero h1 em {
  font-style: italic;
  color: var(--rust);
}

.hero p {
  font-size: 1.1rem;
  color: var(--brown-mid);
  max-width: 480px;
  margin: 0 auto 2.5rem;
  animation: slideUp 0.6s var(--ease-smooth) 0.5s both;
}

.hero-divider {
  width: 48px;
  height: 2px;
  background: var(--rust);
  margin: 0 auto 2.5rem;
  animation: slideUp 0.6s var(--ease-smooth) 0.55s both;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Cards / Section ───────────────────────────────────────── */
.section {
  padding: 4rem 2.5rem;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--parchment);
  border: 1px solid var(--sand);
  border-radius: 4px;
  padding: 2rem 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(44, 36, 22, 0.08);
}

.card-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.88rem;
  color: var(--brown-mid);
  line-height: 1.6;
}

/* ─── Login Form ────────────────────────────────────────────── */
.auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
}

.auth-card {
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 6px;
  padding: 3rem 3rem 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 40px rgba(44, 36, 22, 0.07);
  animation: slideUp 0.5s var(--ease-smooth) 0.2s both;
}

.auth-card .auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.auth-card .auth-header h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 0.4rem;
}

.auth-card .auth-header p {
  font-size: 0.88rem;
  color: var(--brown-mid);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brown-mid);
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--sand);
  border-radius: 3px;
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--brown);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus {
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(196, 98, 45, 0.12);
}

.form-group input::placeholder { color: var(--sand); }

.btn-primary {
  display: block;
  width: 100%;
  padding: 0.85rem;
  margin-top: 1.75rem;
  background: var(--brown);
  color: var(--cream);
  border: none;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}

.btn-primary:hover { background: var(--rust); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: var(--sand);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--sand);
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem;
  background: var(--white);
  border: 1px solid var(--sand);
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--brown);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.btn-google:hover {
  border-color: var(--brown-mid);
  box-shadow: 0 2px 8px rgba(44, 36, 22, 0.08);
}

.auth-error {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: #fdf0eb;
  border: 1px solid var(--rust-light);
  border-radius: 3px;
  font-size: 0.85rem;
  color: var(--rust);
  text-align: center;
}

/* ─── Dashboard ─────────────────────────────────────────────── */
.dashboard-wrap {
  flex: 1;
  padding: 4rem 2.5rem;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

.dashboard-header {
  border-bottom: 1px solid var(--sand);
  padding-bottom: 2rem;
  margin-bottom: 2.5rem;
}

.dashboard-header h2 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 0.25rem;
}

.dashboard-header h2 em { font-style: italic; color: var(--rust); }

.dashboard-header p { color: var(--brown-mid); font-size: 0.9rem; }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.dash-tile {
  background: var(--parchment);
  border: 1px solid var(--sand);
  border-radius: 4px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dash-tile .tile-label {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brown-mid);
}

.dash-tile .tile-value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
}

.dash-tile .tile-note {
  font-size: 0.82rem;
  color: var(--brown-mid);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border: 1px solid var(--sand);
  border-radius: 3px;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brown-mid);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.btn-secondary:hover { border-color: var(--rust); color: var(--rust); }

/* ─── Utility ───────────────────────────────────────────────── */
.text-rust { color: var(--rust); }
.mt-1 { margin-top: 1rem; }
