/* ============================================
   Phoebe Coffee — Shared styles
   ============================================ */

:root {
  --paper: #f5f1e8;
  --paper-deep: #ece6d6;
  --paper-warm: #faf6ed;
  --ink: #2a2622;
  --ink-soft: #4a4338;
  --ink-mute: #6b6356;
  --sage: #8aa399;
  --sage-deep: #6f8a7e;
  --sage-pale: #b8c8bf;
  --sage-tint: #e8eee9;
  --sun: #f0b53d;
  --sun-deep: #d99820;
  --sun-pale: #fce5a8;
  --rust: #8a4a2a;
  --shadow-sm: 0 2px 8px rgba(42, 38, 34, 0.06);
  --shadow-md: 0 6px 24px rgba(42, 38, 34, 0.08);
  --shadow-lg: 0 12px 40px rgba(42, 38, 34, 0.12);
}

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

html, body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}

/* paper texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(138, 74, 42, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(138, 163, 153, 0.05) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.16 0 0 0 0 0.13 0 0 0 0 0.10 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(138, 163, 153, 0.2);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 42px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-menu a {
  font-family: 'Montserrat', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
  position: relative;
}

.nav-menu a:hover {
  color: var(--sun-deep);
}

.nav-menu a.active {
  color: var(--sun-deep);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--sun);
  border-radius: 2px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.25s ease;
}

.nav-cta:hover {
  background: var(--sun-deep);
  transform: translateY(-1px);
}

.nav-cta svg { width: 14px; height: 14px; }

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: all 0.3s ease;
}

@media (max-width: 900px) {
  .nav-inner { padding: 14px 24px; }
  .nav-menu, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    padding: 20px;
    border-bottom: 1px solid var(--sage-pale);
    gap: 6px;
    align-items: stretch;
  }
  .nav-menu.open a {
    padding: 12px 18px;
    text-align: center;
  }
}

/* ============================================
   Page frame (vertical sage lines)
   ============================================ */
.frame-line {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--sage);
  z-index: 2;
  opacity: 0.45;
  pointer-events: none;
}
.frame-line.left { left: 24px; }
.frame-line.right { right: 24px; }

@media (max-width: 600px) {
  .frame-line.left { left: 12px; }
  .frame-line.right { right: 12px; }
}

/* ============================================
   Containers & layout
   ============================================ */
.container {
  position: relative;
  z-index: 3;
  max-width: 1140px;
  margin: 0 auto;
  padding: 60px 60px;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 60px;
  position: relative;
  z-index: 3;
}

@media (max-width: 700px) {
  .container, .container-narrow { padding: 40px 36px; }
}

/* ============================================
   Typography helpers
   ============================================ */
.eyebrow {
  font-family: 'Caveat', cursive;
  font-size: 22px;
  color: var(--sage-deep);
  letter-spacing: 0.5px;
  text-align: center;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.eyebrow::before, .eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--sage);
  opacity: 0.6;
}

.page-title {
  font-family: 'Bree Serif', serif;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 400;
  color: var(--ink);
  text-align: center;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.page-title .accent {
  color: var(--sun-deep);
  font-style: italic;
  position: relative;
  display: inline-block;
}

.page-title .accent::after {
  content: '';
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: 6px;
  height: 10px;
  background: var(--sun);
  opacity: 0.28;
  z-index: -1;
  transform: skewX(-8deg);
  border-radius: 2px;
}

.lead {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-soft);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.prose {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.prose p { margin-bottom: 20px; }

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose em {
  color: var(--sun-deep);
  font-style: italic;
}

/* divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 40px auto;
}
.divider .line {
  width: 60px;
  height: 1px;
  background: var(--sage);
  opacity: 0.6;
}
.divider .bean {
  width: 12px;
  height: 16px;
  background: var(--rust);
  border-radius: 50%;
  position: relative;
  transform: rotate(-20deg);
}
.divider .bean::after {
  content: '';
  position: absolute;
  inset: 2px 5px;
  border-left: 1px solid rgba(245, 241, 232, 0.6);
  border-radius: 50%;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--sun-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-2px);
}

.btn svg { width: 16px; height: 16px; }

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--sage-tint);
  padding: 60px 40px 30px;
  margin-top: 80px;
  position: relative;
  z-index: 3;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px;
}

@media (max-width: 700px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 35px;
    text-align: center;
  }
}

.footer-brand img {
  height: 52px;
  margin-bottom: 16px;
}

.footer-tagline {
  font-family: 'Caveat', cursive;
  font-size: 20px;
  color: var(--sage-deep);
  line-height: 1.4;
}

.footer h4 {
  font-family: 'Bree Serif', serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.footer ul { list-style: none; }
.footer li { margin-bottom: 8px; }

.footer a {
  font-size: 13.5px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.25s ease;
}
.footer a:hover { color: var(--sun-deep); }

.footer-info {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.footer-bottom {
  max-width: 1140px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(138, 163, 153, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-mute);
}

@media (max-width: 700px) {
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sage);
  border-radius: 50%;
  color: var(--ink);
  transition: all 0.25s ease;
}
.footer-social a:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.footer-social svg { width: 15px; height: 15px; }

/* ============================================
   Utility animations
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}
.fade-in.delay-1 { animation-delay: 0.15s; }
.fade-in.delay-2 { animation-delay: 0.3s; }
.fade-in.delay-3 { animation-delay: 0.45s; }
.fade-in.delay-4 { animation-delay: 0.6s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Decorative
   ============================================ */
.leaf-bg {
  position: absolute;
  pointer-events: none;
  opacity: 0.18;
  z-index: 0;
}
