/* ============================================================
   EVERDOG Unified Design System
   Applies to: everdog.online + everdog.site
   ============================================================ */

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

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Palette */
  --beige:        #F5EFE6;
  --beige-dark:   #EDE4D6;
  --slate:        #3D4A4F;
  --slate-light:  #6B7C82;
  --slate-xlight: #A8B8BD;
  --sage:         #7A9E87;
  --sage-dark:    #5E8470;
  --sage-light:   #EBF2EE;
  --clay:         #C47E6A;
  --clay-light:   #F5E8E4;
  --white:        #FFFFFF;
  --black:        #1A1A1A;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Type scale */
  --text-xs:   12px;
  --text-sm:   14px;
  --text-base: 16px;
  --text-md:   18px;
  --text-lg:   22px;
  --text-xl:   28px;
  --text-2xl:  36px;
  --text-3xl:  48px;
  --text-4xl:  64px;

  /* Spacing scale */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  80px;
  --space-10: 120px;

  /* Layout */
  --container:       1200px;
  --container-narrow: 780px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(61,74,79,.08);
  --shadow-md: 0 4px 16px rgba(61,74,79,.10);
  --shadow-lg: 0 12px 40px rgba(61,74,79,.13);

  /* Transitions */
  --ease: 0.25s ease;
}

/* ── Base ─────────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--slate);
  background-color: var(--beige);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  color: var(--slate);
}

p { color: var(--slate-light); line-height: 1.75; }

strong { color: var(--slate); font-weight: 600; }

/* ── Skip link ────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--sage);
  color: var(--white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 600;
  z-index: 9999;
  transition: top var(--ease);
}
.skip-link:focus { top: var(--space-2); }

/* ── Container ────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container--narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,239,230,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--beige-dark);
  padding: var(--space-4) 0;
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}
.navbar__brand {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--slate);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.navbar__brand:hover { color: var(--sage); }
.navbar__menu {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.navbar__menu a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--slate-light);
  letter-spacing: 0.3px;
  transition: color var(--ease);
}
.navbar__menu a:hover,
.navbar__menu a[aria-current="page"] { color: var(--sage); }
.navbar__cta { margin-left: var(--space-4); }
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--space-2);
  cursor: pointer;
}
.navbar__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--slate);
  transition: all var(--ease);
  border-radius: 2px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: all var(--ease);
  border: 1.5px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}
.btn--primary {
  background: var(--sage);
  color: var(--white);
  border-color: var(--sage);
}
.btn--primary:hover {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--secondary {
  background: transparent;
  color: var(--slate);
  border-color: var(--slate);
}
.btn--secondary:hover {
  background: var(--slate);
  color: var(--white);
}
.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn--outline-white:hover {
  background: var(--white);
  color: var(--slate);
}
.btn--clay {
  background: var(--clay);
  color: var(--white);
  border-color: var(--clay);
}
.btn--clay:hover { background: #b06b58; border-color: #b06b58; }
.btn--sm { padding: 9px 20px; font-size: var(--text-xs); }
.btn--lg { padding: 16px 40px; font-size: var(--text-base); }
.btn--full { width: 100%; }

/* ── Badges / Chips ───────────────────────────────────────── */
.chip {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.chip--sage { background: var(--sage-light); color: var(--sage-dark); }
.chip--clay { background: var(--clay-light); color: var(--clay); }
.chip--beige { background: var(--beige-dark); color: var(--slate-light); }

/* ── Section spacing ──────────────────────────────────────── */
.section { padding: var(--space-10) 0; }
.section--sm { padding: var(--space-8) 0; }
.section--beige { background: var(--beige); }
.section--white { background: var(--white); }
.section--sage { background: var(--sage-light); }
.section--slate { background: var(--slate); }
.section--clay { background: var(--clay-light); }

/* ── Section headers ──────────────────────────────────────── */
.section-header { margin-bottom: var(--space-8); }
.section-header--center { text-align: center; }
.section-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: var(--space-3);
  display: block;
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--slate);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}
.section-subtitle {
  font-size: var(--text-md);
  color: var(--slate-light);
  max-width: 600px;
  line-height: 1.7;
}
.section-header--center .section-subtitle { margin: 0 auto; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--ease), transform var(--ease);
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.card__image { overflow: hidden; }
.card__image img { width: 100%; height: 240px; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card__image img { transform: scale(1.03); }
.card__body { padding: var(--space-5); }
.card__eyebrow { font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--sage); margin-bottom: var(--space-2); display: block; }
.card__title { font-family: var(--font-display); font-size: var(--text-xl); color: var(--slate); margin-bottom: var(--space-3); line-height: 1.25; }
.card__text { font-size: var(--text-sm); color: var(--slate-light); line-height: 1.7; margin-bottom: var(--space-4); }
.card__link { font-size: var(--text-sm); font-weight: 600; color: var(--sage); display: inline-flex; align-items: center; gap: var(--space-1); }
.card__link:hover { color: var(--sage-dark); }
.card__link::after { content: '→'; transition: transform var(--ease); }
.card__link:hover::after { transform: translateX(3px); }

/* ── Product card ─────────────────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--ease);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card__image { overflow: hidden; position: relative; background: var(--beige); }
.product-card__image img { width: 100%; height: 280px; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card__image img { transform: scale(1.04); }
.product-card__mood {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
}
.product-card__body { padding: var(--space-5); flex: 1; display: flex; flex-direction: column; }
.product-card__name { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--slate); margin-bottom: var(--space-2); }
.product-card__desc { font-size: var(--text-sm); color: var(--slate-light); flex: 1; margin-bottom: var(--space-4); }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; }
.product-card__price { font-size: var(--text-lg); font-weight: 600; color: var(--slate); }
.product-card__size { font-size: var(--text-xs); color: var(--slate-xlight); }

/* ── Grids ────────────────────────────────────────────────── */
.grid { display: grid; gap: var(--space-6); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ── Trust bar ────────────────────────────────────────────── */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-7);
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--slate-light);
  font-weight: 500;
}
.trust-item__icon { font-size: 18px; }

/* ── Forms ────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--space-2); }
.form-group label { font-size: var(--text-sm); font-weight: 600; color: var(--slate); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--beige-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--slate);
  background: var(--white);
  transition: border-color var(--ease);
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sage);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.form-note { font-size: var(--text-xs); color: var(--slate-xlight); }
.form-note a { color: var(--sage); text-decoration: underline; }

/* ── Inline form (email capture) ──────────────────────────── */
.inline-form { display: flex; gap: var(--space-3); }
.inline-form input {
  flex: 1;
  padding: 13px 16px;
  border: 1.5px solid var(--beige-dark);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  background: var(--white);
  transition: border-color var(--ease);
}
.inline-form input:focus { outline: none; border-color: var(--sage); }

/* ── Form feedback ────────────────────────────────────────── */
.form-feedback {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  margin-top: var(--space-3);
  background: var(--sage-light);
  border: 1px solid var(--sage);
  color: var(--sage-dark);
}
.form-feedback--error {
  background: var(--clay-light);
  border-color: var(--clay);
  color: var(--clay);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--slate);
  color: var(--white);
  padding: var(--space-9) 0 var(--space-6);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}
.footer__brand { font-family: var(--font-display); font-size: var(--text-2xl); color: var(--white); margin-bottom: var(--space-4); display: block; }
.footer__tagline { font-size: var(--text-sm); color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: var(--space-5); }
.footer__col-title { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: var(--space-4); display: block; }
.footer__col ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer__col ul a { font-size: var(--text-sm); color: rgba(255,255,255,0.65); transition: color var(--ease); }
.footer__col ul a:hover { color: var(--white); }
.footer__signup-label { font-size: var(--text-sm); color: rgba(255,255,255,0.65); margin-bottom: var(--space-3); }
.footer__signup { display: flex; gap: var(--space-2); }
.footer__signup input {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--white);
}
.footer__signup input::placeholder { color: rgba(255,255,255,0.35); }
.footer__signup input:focus { outline: none; border-color: var(--sage); }
.footer__signup button {
  padding: 10px 18px;
  background: var(--sage);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--ease);
}
.footer__signup button:hover { background: var(--sage-dark); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footer__copy { font-size: var(--text-xs); color: rgba(255,255,255,0.35); }
.footer__legal { display: flex; gap: var(--space-5); }
.footer__legal a { font-size: var(--text-xs); color: rgba(255,255,255,0.35); transition: color var(--ease); }
.footer__legal a:hover { color: var(--white); }

/* ── Accessibility ────────────────────────────────────────── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 2px;
}
a:focus:not(:focus-visible),
button:focus:not(:focus-visible) { outline: none; }

/* ── Divider ──────────────────────────────────────────────── */
.divider { height: 1px; background: var(--beige-dark); border: none; margin: 0; }

/* ── Utility ──────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-sage { color: var(--sage); }
.text-clay { color: var(--clay); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.gap-3 { gap: var(--space-3); }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.inline-flex { display: inline-flex; }

/* ── Tablet (≤1024px) ─────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --text-4xl: 52px;
    --text-3xl: 40px;
  }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-6); }
}

/* ── Mobile (≤768px) ──────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --text-4xl: 40px;
    --text-3xl: 32px;
    --text-2xl: 28px;
    --space-10: 72px;
    --space-9:  56px;
  }
  .container, .container--narrow { padding: 0 var(--space-4); }
  .navbar__menu { display: none; flex-direction: column; gap: var(--space-4); position: absolute; top: 100%; left: 0; right: 0; background: var(--beige); padding: var(--space-5) var(--space-4); border-bottom: 1px solid var(--beige-dark); z-index: 99; }
  .navbar__menu.nav-open { display: flex; }
  .navbar__cta { display: none; }
  .navbar__toggle { display: flex; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--auto { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .inline-form { flex-direction: column; }
  .trust-bar { gap: var(--space-5); }
  .footer__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .section-title { font-size: var(--text-2xl); }
}
