/* ===================================================
   CROSSROADS COFFEE — Shared Stylesheet
   Fonts: Playfair Display (headings), Lato (body)
   Colors inspired by crossroadscoffee.shop
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Lato:wght@300;400;700&family=Satisfy&display=swap');

/* --- CSS Variables --- */
:root {
  --color-bg:        #1a1208;   /* deep espresso */
  --color-surface:   #2b1f0e;   /* dark roast brown */
  --color-card:      #3a2a12;   /* warm dark card */
  --color-border:    #5a3e1b;   /* medium brown */
  --color-accent:    #c8922a;   /* golden amber */
  --color-accent2:   #e8b86d;   /* light caramel */
  --color-text:      #f0e6d3;   /* cream/off-white */
  --color-muted:     #a08060;   /* muted tan */
  --color-heading:   #e8c97e;   /* warm gold */
  --color-white:     #fdf6ec;   /* warm white */

  --font-display:    'Playfair Display', Georgia, serif;
  --font-script:     'Satisfy', cursive;
  --font-body:       'Lato', 'Helvetica Neue', sans-serif;

  --max-width:       1100px;
  --header-height:   110px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--color-accent2); text-decoration: underline; }

/* --- Header --- */
site-header {
  display: block;
  background-color: var(--color-surface);
  border-bottom: 2px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1rem;
}

.logo-link {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Logo scales with viewport but respects its natural size */
.logo-link img {
  width: clamp(120px, 15vw, 196.35px);
  height: auto;
}

/* --- Navigation --- */
nav { display: flex; align-items: center; gap: 0; }

nav ul {
  list-style: none;
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav ul li a {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  padding: 0.45rem 0.9rem;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}

nav ul li a:hover,
nav ul li a.active {
  background: var(--color-accent);
  color: var(--color-bg);
  text-decoration: none;
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  color: var(--color-text);
  font-size: 1.3rem;
  line-height: 1;
}

/* --- Footer --- */
site-footer {
  display: block;
  background-color: var(--color-surface);
  border-top: 2px solid var(--color-border);
  margin-top: auto;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand p,
.footer-links p,
.footer-hours p {
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 0.4rem;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--color-heading);
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 0.3rem; }
.footer-links ul li a { font-size: 0.85rem; color: var(--color-muted); }
.footer-links ul li a:hover { color: var(--color-accent2); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  text-align: center;
  padding: 0.9rem 1.5rem;
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* --- Main Content Wrapper --- */
main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  width: 100%;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-heading);
  line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 0.5rem; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 0.4rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }

p { margin-bottom: 1rem; color: var(--color-text); }

.script-heading {
  font-family: var(--font-script);
  color: var(--color-accent);
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  display: block;
  margin-bottom: 0.25rem;
}

/* --- Section Divider --- */
.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

/* --- Hero Section --- */
.hero {
  text-align: center;
  padding: 4rem 1rem 3rem;
}

.hero .script-heading { font-size: clamp(2rem, 6vw, 4rem); }
.hero p { max-width: 600px; margin: 1rem auto 2rem; font-size: 1.05rem; color: var(--color-muted); }

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-bg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: 3px;
  transition: background 0.2s, transform 0.15s;
}
.btn:hover { background: var(--color-accent2); color: var(--color-bg); text-decoration: none; transform: translateY(-1px); }

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.5rem;
}

.card h3 { color: var(--color-accent2); margin-bottom: 0.4rem; }
.card p { font-size: 0.92rem; color: var(--color-muted); margin: 0; }

/* --- Menu Table --- */
.menu-section { margin-bottom: 2.5rem; }

.menu-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-heading);
  padding: 0.6rem 0;
  border-bottom: 2px solid var(--color-accent);
  margin-bottom: 1rem;
}

.menu-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.menu-table thead tr {
  background: var(--color-card);
}

.menu-table thead th {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.menu-table thead th.price-col { text-align: right; }

.menu-table tbody tr {
  border-bottom: 1px solid var(--color-border);
  transition: background 0.15s;
}

.menu-table tbody tr:hover { background: var(--color-card); }

.menu-table td {
  padding: 0.65rem 0.8rem;
  vertical-align: top;
}

.menu-table td.item-name {
  font-weight: 700;
  color: var(--color-text);
}

.menu-table td.item-desc {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-style: italic;
}

.menu-table td.price-col {
  text-align: right;
  color: var(--color-accent2);
  font-weight: 700;
  white-space: nowrap;
}

.menu-table td.price-col span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--color-muted);
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.map-embed {
  border: 2px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-info h2 { margin-bottom: 1rem; }

.contact-detail {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
}

.contact-detail .label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  margin-bottom: 0.2rem;
}

.contact-detail .value {
  color: var(--color-text);
  font-size: 1rem;
}

/* --- About Page --- */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  align-items: start;
}

.about-image-placeholder {
  aspect-ratio: 3/4;
  background: var(--color-card);
  border: 2px dashed var(--color-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

/* --- Flavors Page --- */
.flavors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.flavor-item {
  padding: 0.4rem 0.7rem;
  background: var(--color-card);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 4px 4px 0;
  font-size: 0.88rem;
  color: var(--color-text);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 2px solid var(--color-border);
    padding: 1rem 1.5rem;
    gap: 0.2rem;
  }

  nav ul.open { display: flex; }
  nav ul li a { display: block; padding: 0.6rem 1rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 1.2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }

  .menu-table td.item-desc { display: none; }
}

@media (max-width: 480px) {
  :root { --header-height: 80px; }
  .menu-table { font-size: 0.85rem; }
  .menu-table td { padding: 0.5rem 0.5rem; }
}
