/* =========================================
   Village Mill Coffee Company - Simple Site
   ========================================= */

* { box-sizing: border-box; }

:root {
  --text: #1f1f1f;
  --muted: #555;
  --border: #e7e7e7;
  --bg: #ffffff;
  --card: #fafafa;
  --shadow: 0 10px 32px rgba(0,0,0,0.10);
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =================
   Header / Nav
   ================= */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Desktop logo */
.brand img {
  height: auto;
  width: 240px;
  max-width: none; 
  max-height: none; 
}

/* Mobile logo */
@media (max-width: 860px) {   
   .brand img { 
      width: auto; 
      height: 177px;
   }
}

/* Desktop nav */
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.nav a {
  padding: 6px 8px;
  border-radius: 8px;
}

.nav a.active {
  text-decoration: underline;
}

/* Hamburger */
.navToggle {
  display: none;
  background: transparent;
  border: 1px solid #d9d9d9;
  border-radius: 12px;
  padding: 10px;
  line-height: 0;
}

.navToggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* =================
   Hero
   ================= */
.hero {
  width: 100%;
  height: 62vh;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  background: #ddd;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.60), rgba(0,0,0,0.15));
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
  color: #fff;
}

.hero-content h1 {
  margin: 0 0 10px 0;
  font-size: 44px;
  letter-spacing: 0.3px;
}

.hero-content p {
  margin: 0;
  max-width: 760px;
  font-size: 18px;
  color: rgba(255,255,255,0.95);
}

/* =================
   Sections
   ================= */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 16px;
}

.section h2 {
  margin: 0 0 12px 0;
  font-size: 28px;
}

.section p {
  margin: 0 0 14px 0;
  max-width: 880px;
  color: var(--text);
}

.muted { color: var(--muted); }

.callout {
  margin-top: 18px;
  padding: 16px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.button {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid var(--text);
  font-weight: 800;
  text-decoration: none;
}

.button:hover { text-decoration: none; }

.button.primary {
  background: var(--text);
  color: #fff;
}

/* =================
   Tiles
   ================= */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.tile {
  display: block;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: #f7f7f7;
}

.tile img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.ribbon {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(20,20,20,0.85);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.3px;
}

.tile-caption {
  padding: 14px 14px 16px;
}

.tile-caption strong {
  display: block;
  margin-bottom: 6px;
}

.tile-caption span {
  display: block;
  color: #444;
  font-size: 14px;
}

/* =================
   Simple page header
   ================= */
.page-title {
  padding: 28px 0 0;
}

.page-title h1 {
  margin: 0 0 10px 0;
  font-size: 34px;
}

.hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 18px 0 0;
}

/* =================
   Footer
   ================= */
.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.footer-inner h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
}

.footer-inner p {
  margin: 0;
  color: #333;
  font-size: 14px;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px 18px;
  color: #666;
  font-size: 12px;
}

/* =================
   Mobile
   ================= */
@media (max-width: 900px) {
  .hero-content h1 { font-size: 34px; }
}

@media (max-width: 860px) {
  /* Hamburger visible, nav becomes dropdown */
  .navToggle { display: inline-block; }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 10px;
    flex-direction: column;
    gap: 0;
    z-index: 999;
  }

  .nav.isOpen { display: flex; }

  .nav a {
    padding: 12px 10px;
    border-radius: 12px;
    font-size: 16px;
  }

  .nav a:hover {
    background: #f5f5f5;
    text-decoration: none;
  }

  .tiles { grid-template-columns: 1fr; }
  .tile img { height: 220px; }

  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .brand img { height: 177px; }
  .hero { min-height: 340px; }
}
