/* =========================
   Mocca Malabar Coffee — style.css
   Clean, accessible, brand-forward styles
   Replace your existing styles.css with this file
   ========================= */

/* ---------- Theme variables ---------- */
:root{
  --bg: #F5EFE6;            /* warm cream */
  --bg-contrast: #fffdf8;   /* card background */
  --text: #2f261f;          /* primary text */
  --muted: #6c5a4a;         /* secondary text */
  --accent: #d7a86e;        /* warm gold */
  --accent-2: #5d4b3e;      /* deep brown */
  --nav-bg: #23130d;        /* dark roast */
  --shadow: rgba(15,10,8,0.06);
  --radius: 10px;
  --max-width: 1100px;
  --focus: 0 0 0 3px rgba(215,168,110,0.18);
  --glass: rgba(255,255,255,0.86);
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; }
body{
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  -webkit-text-size-adjust:100%;
  -ms-text-size-adjust:100%;
}

/* subtle paper texture (light, non-distracting) */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(transparent 0 40%, rgba(0,0,0,0.01) 100%);
  opacity: 0.6;
  mix-blend-mode: overlay;
}

/* images */
img { max-width: 100%; display: block; height: auto; border-radius: 8px; }

/* links */
a { color: inherit; text-decoration: none; }
a:focus { outline: none; box-shadow: var(--focus); border-radius: 6px; }

/* ---------- Layout container ---------- */
.wrapper{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Navigation ---------- */
nav{
  background: linear-gradient(180deg, rgba(35,19,13,0.98), var(--nav-bg));
  color: var(--bg);
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(255,255,255,0.03);
  backdrop-filter: blur(4px);
}

nav .wrapper{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 20px;
}

.logo{
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
  font-size:1.05rem;
  color: #fff;
}

.logo span{
  color: var(--accent);
  font-weight:700;
}

/* nav links */
.nav-links{
  display:flex;
  gap:18px;
  align-items:center;
  flex-wrap:wrap;
}

.nav-links a{
  font-size:0.9rem;
  text-transform:uppercase;
  letter-spacing:0.08em;
  padding:6px 4px;
  color: rgba(255,255,255,0.92);
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease, transform .12s ease;
}

.nav-links a:hover,
.nav-links a:focus{
  color: #fff;
  border-color: rgba(215,168,110,0.95);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.hero{
  background:
    linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.55)),
    url("images/hero-coffee.jpg") center/cover no-repeat;
  color: #fff;
  min-height: 68vh;
  display:flex;
  align-items:center;
  padding: 48px 0;
}

.hero-content{
  max-width: 680px;
  padding: 40px 20px;
  background: linear-gradient(180deg, rgba(0,0,0,0.08), rgba(0,0,0,0.06));
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.hero-kicker{
  text-transform:uppercase;
  letter-spacing:0.18em;
  font-size:0.75rem;
  color: var(--accent);
  margin-bottom:10px;
  font-weight:700;
}

.hero h1{
  font-family: "Playfair Display", Georgia, serif;
  font-size:2.6rem;
  line-height:1.05;
  margin-bottom:12px;
  color: #fff;
}

.hero p{
  color: rgba(255,235,220,0.95);
  margin-bottom:18px;
  font-size:1.05rem;
}

/* hero buttons */
.hero-buttons{ display:flex; gap:12px; flex-wrap:wrap; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 18px;
  border-radius:999px;
  font-weight:700;
  font-size:0.95rem;
  letter-spacing:0.06em;
  cursor:pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  border: 1px solid transparent;
}

.btn:focus{ outline:none; box-shadow: var(--focus); }

.btn-primary{
  background: linear-gradient(180deg, var(--accent), #c99b5a);
  color: var(--nav-bg);
  border-color: rgba(0,0,0,0.06);
}

.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }

.btn-ghost{
  background: transparent;
  color: rgba(255,255,255,0.95);
  border: 1px solid rgba(255,255,255,0.12);
}

.btn-ghost:hover{ background: rgba(255,255,255,0.06); transform: translateY(-2px); }

/* ---------- Sections ---------- */
.section{ padding: 56px 0; }

.section-header{ margin-bottom: 28px; text-align:left; }

.section-kicker{
  text-transform:uppercase;
  letter-spacing:0.16em;
  font-size:0.78rem;
  color: var(--accent-2);
  margin-bottom:6px;
  font-weight:700;
}

.section-title{
  font-size:1.6rem;
  margin-bottom:8px;
  font-family: "Playfair Display", Georgia, serif;
  color: var(--accent-2);
}

.section-subtitle{
  font-size:0.98rem;
  color: var(--muted);
}

/* highlighted section background utility */
.section--muted{
  background-color: #ebe0d0;
}

/* ---------- Grid & cards ---------- */
.grid{ display:grid; gap:22px; }

.grid-3{ grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card{
  background: var(--bg-contrast);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 10px 30px var(--shadow);
  border: 1px solid rgba(234,223,214,0.6);
}

.card-accent{ border-top: 4px solid var(--accent); }

.card h3{ margin-bottom:8px; color: var(--accent-2); font-size:1.05rem; }

.card p{ color: var(--muted); font-size:0.95rem; line-height:1.5; }

/* badges & tags */
.badge, .origin-tag{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  font-size:0.78rem;
  background: #2f2118;
  color: #f3d3a4;
  font-weight:700;
}

/* ---------- Two-column layout ---------- */
.two-column{
  display:grid;
  grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
  gap:32px;
  align-items:center;
}

/* images inside two-column should be visually balanced */
.two-column img{ border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

/* ---------- Forms ---------- */
form{ display:grid; gap:14px; max-width:520px; }

label{ font-size:0.9rem; font-weight:700; color: var(--accent-2); }

input, textarea, select{
  padding:10px 12px;
  border-radius:8px;
  border:1px solid rgba(201,180,155,0.9);
  background: #fff;
  font-family: inherit;
  font-size:0.95rem;
  color: var(--text);
}

textarea{ min-height:140px; resize:vertical; }

input:focus, textarea:focus, select:focus{
  outline:none;
  box-shadow: var(--focus);
  border-color: var(--accent);
}

/* ---------- Footer ---------- */
footer{
  background: linear-gradient(180deg, var(--nav-bg), rgba(35,19,13,0.95));
  color: #f5efe6;
  padding: 28px 0;
  margin-top: 40px;
  font-size:0.95rem;
}

.footer-inner{
  display:flex;
  gap:20px;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
}

.footer-links a{ margin-left:16px; color: #f3d3a4; font-weight:600; }

/* ---------- Utilities ---------- */
.text-muted{ color: #7a6756; font-size:0.95rem; }
.center{ text-align:center; }

/* ---------- Accessibility helpers ---------- */
.sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px){
  .two-column{ grid-template-columns: 1fr; }
  .hero h1{ font-size:2rem; }
  .hero-content{ padding: 28px 18px; }
}

@media (max-width: 520px){
  nav .wrapper{ flex-direction:column; align-items:flex-start; gap:10px; padding:12px 16px; }
  .nav-links{ gap:10px; }
  .hero{ min-height:60vh; padding: 28px 0; }
  .hero h1{ font-size:1.6rem; }
  .section-title{ font-size:1.25rem; }
}
