/* === NoDa Coffee House — Dark Editorial === */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Source+Serif+4:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

:root {
  --ink: #0D0906;
  --espresso: #1A110C;
  --cocoa: #3A1C14;
  --amber: #E8A959;
  --amber-dim: #C48A3A;
  --cream: #F2E8DA;
  --latte: #D9CAB8;
  --warm-gray: #9A8B7A;
  --off-white: #FAF6F0;
  --white: #FFFDF9;
  --font-display: 'Syne', 'Arial Black', sans-serif;
  --font-body: 'Source Serif 4', Georgia, serif;
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Grain Texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--amber);
  color: var(--ink);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 4px 4px;
  z-index: 9999;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: top 0.3s;
}
.skip-link:focus { top: 0; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  color: var(--cream);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.75rem, 7vw, 5.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p { max-width: 60ch; }

a {
  color: var(--amber);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover, a:focus-visible { color: var(--cream); }

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

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  position: relative;
}
.btn-primary {
  background: var(--amber);
  color: var(--ink);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--cream);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 169, 89, 0.25);
}
.btn-outline {
  background: transparent;
  color: var(--cream);
  border: 1.5px solid var(--cream);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--cream);
  color: var(--ink);
}
.btn-ghost {
  background: transparent;
  color: var(--amber);
  padding: 0.75rem 0;
  letter-spacing: 0.15em;
}
.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.btn-ghost:hover::after, .btn-ghost:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}
.btn-ghost:hover, .btn-ghost:focus-visible { color: var(--amber); }

/* Light section buttons */
.section-light .btn-primary {
  background: var(--ink);
  color: var(--cream);
}
.section-light .btn-primary:hover,
.section-light .btn-primary:focus-visible {
  background: var(--cocoa);
  color: var(--cream);
  box-shadow: 0 8px 30px rgba(13, 9, 6, 0.2);
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.5s var(--ease-out);
}
.nav.scrolled {
  background: rgba(13, 9, 6, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  box-shadow: 0 1px 0 rgba(232, 169, 89, 0.1);
}
.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--cream);
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.nav-logo:hover, .nav-logo:focus-visible { color: var(--cream); }
.nav-logo span { color: var(--amber); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 3rem;
  list-style: none;
}
.nav-links a {
  color: var(--latte);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--amber);
  transition: width 0.35s var(--ease-out);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--cream); }
.nav-links a[aria-current="page"] { color: var(--amber); }

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--cream);
  transition: all 0.35s var(--ease-out);
  transform-origin: center;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background: var(--ink);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    padding: 2rem 3rem;
    border-left: 1px solid rgba(232, 169, 89, 0.1);
    transition: right 0.5s var(--ease-out);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 0.9rem; }
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  filter: saturate(0.6) contrast(1.1);
  transition: opacity 1.2s;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13, 9, 6, 0.3) 0%,
    rgba(13, 9, 6, 0.15) 40%,
    rgba(13, 9, 6, 0.85) 85%,
    var(--ink) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2.5rem 8rem;
  width: 100%;
}
.hero-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}
.hero h1 {
  margin-bottom: 1.5rem;
  max-width: 10ch;
  opacity: 0;
  animation: fadeUp 0.9s 0.6s forwards;
}
.hero h1 em {
  font-style: italic;
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--amber);
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--latte);
  margin-bottom: 2.5rem;
  max-width: 40ch;
  font-weight: 300;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}
.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s 1s forwards;
}

/* Horizontal Rule Accent */
.hr-accent {
  width: 60px;
  height: 1px;
  background: var(--amber);
  border: none;
  margin: 2rem 0;
}
.hr-accent-center {
  margin-left: auto;
  margin-right: auto;
}

/* === Sections === */
.section {
  padding: 7rem 2.5rem;
}
.section-light {
  background: var(--off-white);
  color: var(--ink);
}
.section-light h2, .section-light h3, .section-light h4 { color: var(--ink); }
.section-light p { color: var(--cocoa); }
.section-warm {
  background: var(--cream);
  color: var(--ink);
}
.section-warm h2, .section-warm h3 { color: var(--ink); }
.section-warm p { color: var(--cocoa); }

.container {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 4.5rem;
}
.section-header p {
  margin: 1rem auto 0;
  color: var(--warm-gray);
  font-size: 1.1rem;
  font-weight: 300;
}
.section-light .section-header p { color: var(--cocoa); }
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}

/* === About Preview === */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 5rem;
  align-items: center;
}
.about-image {
  position: relative;
}
.about-image img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}
.about-image::before {
  content: '';
  position: absolute;
  top: -16px;
  left: -16px;
  right: 16px;
  bottom: 16px;
  border: 1px solid var(--amber);
  opacity: 0.3;
  z-index: -1;
}
.about-text .section-label { margin-bottom: 1rem; }
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p {
  color: var(--latte);
  font-size: 1.05rem;
  font-weight: 300;
  margin-bottom: 1rem;
}
.section-light .about-text p { color: var(--cocoa); }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image::before { display: none; }
}

/* === Menu/Services Cards === */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: rgba(232, 169, 89, 0.08);
}
.menu-card {
  background: var(--ink);
  padding: 3rem 2.5rem;
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.menu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.menu-card:hover::before { transform: scaleX(1); }
.menu-card:hover { background: rgba(26, 17, 12, 0.8); }
.menu-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}
.menu-card p {
  color: var(--warm-gray);
  font-size: 0.95rem;
  font-weight: 300;
}
.menu-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(232, 169, 89, 0.08);
  line-height: 1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}
.menu-items {
  list-style: none;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(232, 169, 89, 0.08);
}
.menu-items li {
  padding: 0.35rem 0;
  color: var(--latte);
  font-size: 0.95rem;
  font-weight: 300;
  padding-left: 1rem;
  position: relative;
}
.menu-items li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--amber);
  opacity: 0.5;
}

/* Light variant */
.section-light .menu-grid { background: rgba(58, 28, 20, 0.05); }
.section-light .menu-card { background: var(--off-white); }
.section-light .menu-card:hover { background: var(--white); }
.section-light .menu-card p { color: var(--cocoa); }
.section-light .menu-items li { color: var(--cocoa); }

@media (max-width: 960px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .menu-grid { grid-template-columns: 1fr; }
  .menu-card { padding: 2rem 1.5rem; }
}

/* === Image Band === */
.image-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--ink);
}
.image-band img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.05);
  transition: all 0.6s;
}
.image-band img:hover {
  filter: saturate(1) contrast(1);
}

@media (max-width: 600px) {
  .image-band { grid-template-columns: 1fr; }
}

/* === CTA Banner === */
.cta-banner {
  text-align: center;
  padding: 6rem 2.5rem;
  background: var(--espresso);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 169, 89, 0.04) 0%, transparent 70%);
}
.cta-banner h2 { margin-bottom: 1rem; position: relative; }
.cta-banner p {
  color: var(--warm-gray);
  font-size: 1.1rem;
  font-weight: 300;
  margin: 0 auto 2.5rem;
  max-width: 45ch;
  position: relative;
}

/* === Contact Layout === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}
.contact-info-item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
  align-items: flex-start;
}
.contact-info-item .icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(232, 169, 89, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  font-size: 1.1rem;
}
.contact-info-item h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  letter-spacing: 0.05em;
}
.contact-info-item p {
  color: var(--warm-gray);
  font-size: 0.95rem;
  font-weight: 300;
}
.contact-info-item a {
  color: var(--amber);
}

/* Light variant */
.section-light .contact-info-item .icon {
  border-color: rgba(58, 28, 20, 0.15);
  color: var(--cocoa);
}
.section-light .contact-info-item p { color: var(--cocoa); }

/* === Contact Form === */
.contact-form {
  background: rgba(232, 169, 89, 0.03);
  border: 1px solid rgba(232, 169, 89, 0.1);
  padding: 3rem;
}
.form-group {
  margin-bottom: 1.75rem;
}
.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 0.6rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid rgba(232, 169, 89, 0.15);
  background: rgba(13, 9, 6, 0.5);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 300;
  color: var(--cream);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--warm-gray);
  opacity: 0.6;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(232, 169, 89, 0.1);
}
.form-group textarea { min-height: 150px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* Light variant form */
.section-light .contact-form {
  background: var(--white);
  border-color: rgba(58, 28, 20, 0.08);
}
.section-light .form-group label { color: var(--ink); }
.section-light .form-group input,
.section-light .form-group textarea {
  background: var(--off-white);
  border-color: rgba(58, 28, 20, 0.12);
  color: var(--ink);
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 2rem 1.5rem; }
}

/* === Page Header (inner pages) === */
.page-header {
  padding: 11rem 2.5rem 5rem;
  text-align: left;
  max-width: 1300px;
  margin: 0 auto;
}
.page-header-bg {
  background: var(--ink);
  position: relative;
}
.page-header h1 {
  margin-bottom: 1rem;
}
.page-header p {
  color: var(--warm-gray);
  font-size: 1.15rem;
  font-weight: 300;
  max-width: 50ch;
}

/* === NoDa Highlight === */
.noda-block {
  background: rgba(232, 169, 89, 0.04);
  border-left: 2px solid var(--amber);
  padding: 2.5rem 3rem;
  margin: 2rem 0;
}
.noda-block h3 { margin-bottom: 0.75rem; }
.noda-block p {
  color: var(--warm-gray);
  font-weight: 300;
  font-size: 1.05rem;
}
.section-light .noda-block { background: rgba(58, 28, 20, 0.03); }
.section-light .noda-block p { color: var(--cocoa); }

/* === Values === */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
}
.value-item { text-align: center; padding: 1rem; }
.value-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 800;
  color: rgba(232, 169, 89, 0.1);
  line-height: 1;
  margin-bottom: 1rem;
}
.value-item h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.value-item p {
  color: var(--warm-gray);
  font-size: 0.95rem;
  font-weight: 300;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .values-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* === Footer === */
.footer {
  background: var(--espresso);
  padding: 5rem 2.5rem 2rem;
  border-top: 1px solid rgba(232, 169, 89, 0.06);
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}
.footer-brand p {
  color: var(--warm-gray);
  font-size: 0.95rem;
  font-weight: 300;
  max-width: 35ch;
  margin-top: 1rem;
}
.footer h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.5rem;
}
.footer-links {
  list-style: none;
}
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a {
  color: var(--warm-gray);
  font-size: 0.95rem;
  font-weight: 300;
}
.footer-links a:hover, .footer-links a:focus-visible { color: var(--cream); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(232, 169, 89, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--warm-gray);
  font-weight: 300;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .section { padding: 4.5rem 1.5rem; }
  .page-header { padding: 9rem 1.5rem 3.5rem; }
  .hero-content { padding: 0 1.5rem 5rem; }
}

/* === Animations === */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.25s; }
.reveal-delay-4 { transition-delay: 0.35s; }
.reveal-delay-5 { transition-delay: 0.45s; }
.reveal-delay-6 { transition-delay: 0.55s; }

/* === Map === */
.map-wrap {
  margin-top: 2.5rem;
  border: 1px solid rgba(232, 169, 89, 0.1);
  overflow: hidden;
  aspect-ratio: 16/7;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.7) invert(0.95) contrast(0.9); }
.section-light .map-wrap iframe { filter: grayscale(0.3) contrast(0.95); }

/* === Utility === */
.text-center { text-align: center; }
.mt-3 { margin-top: 3rem; }
.mt-2 { margin-top: 2rem; }
