/* ----------------------------------------
   Florida Roaster — main stylesheet
   ---------------------------------------- */

:root {
  --color-bg: #fdf6ee;
  --color-text: #2c1a0e;
  --color-accent: #c45c1a;
  --color-muted: #9a7a5a;
  --color-cta: #c45c1a;
  --color-cta-hover: #a04a14;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

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

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ----------------------------------------
   Splash / Hero
   ---------------------------------------- */

/* ----------------------------------------
   Site Header (all non-splash pages)
   ---------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(44, 26, 14, 0.1);
}

.site-logo {
  display: block;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  overflow: hidden;
}

.site-logo svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.site-header--nav-only {
  justify-content: center;
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav a:hover {
  color: var(--color-accent);
}

/* ----------------------------------------
   Splash / Hero
   ---------------------------------------- */

.splash {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 4rem 2rem;
  width: 100%;
  max-width: 720px;
  text-align: center;
  min-height: 100vh;
  margin: 0 auto;
}

/* Logo */
.splash-illustration {
  width: min(420px, 80vw);
}

.splash-illustration svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(44, 26, 14, 0.12));
}

/* Text block */
.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  font-weight: 400;
  color: var(--color-muted);
  max-width: 42ch;
  line-height: 1.6;
}

/* Divider */
.splash-divider {
  width: 48px;
  height: 2px;
  background-color: var(--color-accent);
  border: none;
  border-radius: 1px;
  opacity: 0.5;
}

/* CTA button */
.cta-button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.85rem 2.5rem;
  background-color: var(--color-cta);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background-color 0.2s, transform 0.15s;
}

.cta-button:hover {
  background-color: var(--color-cta-hover);
  transform: translateY(-1px);
}

/* ----------------------------------------
   Roasters page
   ---------------------------------------- */

.page-roasters {
  max-width: 860px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.page-header {
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(44, 26, 14, 0.12);
  padding-bottom: 2rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-family: var(--font-body);
  color: var(--color-muted);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.back-link:hover {
  color: var(--color-accent);
}

.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  font-size: 1.05rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.page-subtitle a {
  color: var(--color-accent);
  text-decoration: none;
}

.page-subtitle a:hover {
  text-decoration: underline;
}

.draft-notice {
  font-size: 0.8rem;
  color: var(--color-muted);
  font-style: italic;
  opacity: 0.75;
}

.draft-notice a {
  color: var(--color-accent);
}

.roasters-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(44, 26, 14, 0.12);
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.roasters-footer a {
  color: var(--color-accent);
  text-decoration: none;
}

.roasters-footer a:hover {
  text-decoration: underline;
}

.roaster-suggest-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.roaster-suggest-form input {
  flex: 1;
  min-width: 200px;
  padding: 0.6rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  background: #fff;
  border: 1px solid rgba(44, 26, 14, 0.2);
  border-radius: 999px;
  outline: none;
}

.roaster-suggest-form input:focus {
  border-color: var(--color-accent);
}

.roaster-suggest-form button {
  padding: 0.6rem 1.5rem;
  background-color: var(--color-cta);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.roaster-suggest-form button:hover {
  background-color: var(--color-cta-hover);
}

/* ----------------------------------------
   Contact page
   ---------------------------------------- */

.page-contact {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  margin-top: 0.75rem;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: #fff;
  border: 1px solid rgba(44, 26, 14, 0.2);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  outline: none;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-accent);
}

.contact-form button {
  align-self: flex-start;
  margin-top: 1rem;
  padding: 0.75rem 2rem;
  background-color: var(--color-cta);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.contact-form button:hover {
  background-color: var(--color-cta-hover);
}

/* ----------------------------------------
   Blog index
   ---------------------------------------- */

.blog-index {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.blog-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.blog-card-link {
  display: block;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid rgba(44, 26, 14, 0.08);
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.blog-card-link:hover {
  box-shadow: 0 2px 12px rgba(44, 26, 14, 0.08);
  border-color: rgba(196, 92, 26, 0.25);
}

.blog-card-date {
  font-size: 0.8rem;
  color: var(--color-muted);
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.blog-card-description {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.blog-empty {
  font-style: italic;
  color: var(--color-muted);
}

/* ----------------------------------------
   Single post
   ---------------------------------------- */

.post {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 1.5rem 5rem;
}

.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(44, 26, 14, 0.12);
}

.post-date {
  font-size: 0.8rem;
  color: var(--color-muted);
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.post-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}

.post-description {
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.6;
}

.post-body {
  font-size: 1.05rem;
  line-height: 1.75;
}

.post-body p { margin-bottom: 1.25rem; }
.post-body h2 { font-family: var(--font-heading); font-size: 1.5rem; margin: 2rem 0 0.75rem; }
.post-body h3 { font-family: var(--font-heading); font-size: 1.2rem; margin: 1.75rem 0 0.5rem; }
.post-body a { color: var(--color-accent); text-decoration: none; }
.post-body a:hover { text-decoration: underline; }

.post-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(44, 26, 14, 0.12);
}

/* ----------------------------------------
   Map page
   ---------------------------------------- */

.page-map {
  position: relative;
  width: 100%;
  height: calc(100vh - 76px);
}

#map {
  width: 100%;
  height: 100%;
}

.map-legend {
  position: absolute;
  bottom: 1.5rem;
  left: 1rem;
  z-index: 1000;
  background: #fff;
  border: 1px solid rgba(44, 26, 14, 0.1);
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-family: var(--font-body);
  color: var(--color-text);
  box-shadow: 0 1px 6px rgba(44, 26, 14, 0.1);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-item::before {
  content: '';
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  flex-shrink: 0;
}

.legend-exact::before  { background: #c45c1a; }
.legend-approx::before { background: #9a7a5a; }

/* Leaflet popup overrides */
.leaflet-popup-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0.6rem 0.75rem;
  min-width: 140px;
}

.popup-name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
}

.popup-city {
  font-size: 0.8rem;
  color: var(--color-muted);
}

.popup-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.popup-link:hover { text-decoration: underline; }

.popup-approx {
  font-size: 0.72rem;
  font-style: italic;
  color: var(--color-muted);
  opacity: 0.8;
}

/* ----------------------------------------
   Region sections */
.region {
  margin-bottom: 3rem;
}

.region-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(196, 92, 26, 0.2);
}

/* Roaster grid */
.roaster-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.roaster-card {
  background: #fff;
  border: 1px solid rgba(44, 26, 14, 0.08);
  border-radius: 4px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.roaster-card:hover {
  box-shadow: 0 2px 12px rgba(44, 26, 14, 0.08);
  border-color: rgba(196, 92, 26, 0.25);
}

.roaster-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.roaster-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}

.roaster-city {
  font-size: 0.8rem;
  color: var(--color-muted);
  letter-spacing: 0.02em;
}

.roaster-link {
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: none;
  letter-spacing: 0.03em;
  align-self: flex-start;
}

.roaster-link:hover {
  text-decoration: underline;
}
