/* ============================================================
   DORIAN COFFEE — Styles
   Dark chocolate-brown ground, warm gold type
   Palette sampled from branded flyer (coffee_brown.jpg)
   ============================================================ */

/* Web font — loaded explicitly so all lang= variants render identically */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #2a1810;
  --bg-soft: #331e14;
  --surface: rgba(52, 32, 20, 0.68);
  --surface-strong: rgba(58, 36, 24, 0.78);
  --line: rgba(222, 137, 66, 0.18);
  --text: #dc9653;
  --text-bright: #efb06c;
  --muted: #b98557;
  --accent: #e5a24f;
  --accent-deep: #f1b46b;
  --white: #f5ead8;
  --shadow: 0 16px 48px rgba(20, 10, 4, 0.5);
  --shadow-sm: 0 4px 16px rgba(20, 10, 4, 0.35);
  --radius: 22px;
  --radius-sm: 14px;
  --max-width: 1100px;
  --header-h: 64px;
  --bg-stack-step: 620px;
  --font-body: "Inter", Arial, Helvetica, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
}

/* ---- Reset ---- */

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

html {
  font-size: 16px; /* anchor rem base — prevents browser lang-heuristic size adjustments */
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: var(--font-body);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-optical-sizing: none;
  font-size: 1rem;
  line-height: 1.6;
  background: var(--bg);
  background-image:
    linear-gradient(rgba(24, 14, 9, 0.42), rgba(24, 14, 9, 0.54)),
    url("../images/bg/bg2.webp"),
    url("../images/bg/bg3.webp"),
    url("../images/bg/bg4.webp");
  background-position:
    center top,
    center 0,
    center var(--bg-stack-step),
    center calc(var(--bg-stack-step) * 2);
  background-size: cover, 100% auto, 100% auto, 100% auto;
  background-repeat: no-repeat, repeat-y, repeat-y, repeat-y;
  background-attachment: scroll, scroll, scroll, scroll;
  background-blend-mode: normal, lighten, lighten, lighten;
}

@media (max-width: 1200px) {
  :root {
    --bg-stack-step: 540px;
  }
}

@media (max-width: 900px) {
  :root {
    --bg-stack-step: 460px;
  }
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

/* ---- Utilities ---- */

.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;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 50;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

/* ---- Layout ---- */

.map-embed {
  margin-top: 1.5rem;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(80, 45, 25, 0.14);
  box-shadow: 0 18px 45px rgba(42, 24, 16, 0.12);
  background: #f7efe7;
}

.map-embed iframe {
  display: block;
  width: 100%;
  min-height: 320px;
}

.map-embed img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center 35%; /* frames sea + mountains, crops plain foreground sand */
}

.shell {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 56px 0;
}

.section-soft {
  border-top: 0;
  border-bottom: 0;
  background: transparent;
}

/* ---- Header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(36, 20, 12, 0.76);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
}

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

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.07em;
  line-height: 1.2;
  color: var(--text-bright);
}

.brand-place {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.2;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.93rem;
  line-height: 1;
  padding: 6px 0;
  color: var(--muted);
}

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

.lang-select {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 34px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background-color: var(--surface-strong);
  color: var(--text);
  font-size: 0.88rem;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 14px) calc(50% - 2px),
    calc(100% - 8px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.lang-select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---- Buttons ---- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  white-space: nowrap;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(145deg, var(--accent) 0%, #b8922e 100%);
  color: var(--bg);
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(212, 168, 76, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow: 0 8px 32px rgba(212, 168, 76, 0.28);
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface-strong);
  color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(232, 149, 46, 0.3);
  background: rgba(42, 31, 18, 0.68);
}

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

.hero {
  position: relative;
  isolation: isolate;
  padding: 64px 0 80px;
  overflow: hidden;
}

/* Site-wide background lives on body; hero keeps only a local readability wash */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(
      180deg,
      rgba(20, 12, 8, 0.06) 0%,
      rgba(20, 12, 8, 0.1) 52%,
      rgba(20, 12, 8, 0.24) 72%,
      rgba(20, 12, 8, 0.42) 88%,
      rgba(20, 12, 8, 0.62) 100%
    ),
    url("../images/bg/bg1.webp");
  background-position: center top, center top;
  background-size: cover, cover;
  background-repeat: no-repeat, no-repeat;
}

/* Additional warm overlay to hold contrast around the opening section */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(30, 18, 10, 0.08) 0%,
      rgba(30, 18, 10, 0.16) 55%,
      rgba(30, 18, 10, 0.28) 100%
    );
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 400px);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  max-width: 520px;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-size: 0.72rem;
  color: rgba(247, 224, 191, 0.82);
  text-shadow: 0 1px 10px rgba(40, 20, 8, 0.22);
  line-height: 1.5;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: #f4c98f;
  text-shadow: 0 8px 24px rgba(44, 20, 8, 0.18);
}

.lead {
  margin: 14px 0 0;
  font-size: 1rem;
  color: rgba(255, 238, 214, 0.9);
  text-shadow: 0 1px 10px rgba(40, 20, 8, 0.2);
  max-width: 40ch;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0 0; /* reset browser default dl bottom margin */
}

.hero-facts div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.hero-facts dt {
  margin-bottom: 4px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
}

.hero-facts dd {
  margin: 0;
  font-size: 0.88rem;
}

.hero-figure {
  margin: 0; /* reset browser default figure margin (1em 40px) */
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

/* ---- Section headings ---- */

.section-heading {
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-bright);
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 44ch;
}

/* ---- Menu ---- */

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.menu-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.menu-card h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent);
}

.menu-note {
  margin: 0 0 16px;
  font-size: 0.86rem;
  color: var(--muted);
}

.menu-list {
  display: grid;
  gap: 12px;
}

.menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.menu-item.has-image {
  grid-template-columns: 56px 1fr auto;
}

.menu-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.menu-item-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--surface-strong);
}

.menu-item strong {
  display: block;
  font-weight: 600;
}

.menu-item p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.menu-price {
  white-space: nowrap;
  font-weight: 700;
  font-feature-settings: "tnum";
  color: var(--accent);
}

.menu-noscript {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
}

/* ---- Visit ---- */

.visit-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.visit-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.visit-detail h3 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-weight: 600;
}

.visit-detail p,
.visit-detail address {
  margin: 0 0 24px;
  font-style: normal;
  line-height: 1.6;
}

.visit-detail a[href^="tel"] {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.visit-detail a[href^="tel"]:hover {
  text-decoration: underline;
}

.visit-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.hours-list {
  display: grid;
  gap: 8px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 0.93rem;
}

.hours-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.hours-row dt {
  font-weight: 600;
}

.hours-row dd {
  margin: 0;
  color: var(--muted);
}

/* ---- About ---- */

.about-content {
  max-width: 640px;
}

.about-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
}

/* ---- Footer ---- */

.site-footer {
  padding: 24px 0 32px;
}

.footer-inner {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: start;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.07em;
  display: block;
  margin-bottom: 4px;
  color: var(--text-bright);
}

.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  text-decoration: none;
  font-size: 0.93rem;
  color: var(--muted);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--accent);
}

.footer-lang {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.footer-lang-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 2px;
}

.footer-lang a {
  text-decoration: none;
  font-size: 0.93rem;
  color: var(--muted);
}

.footer-lang a:hover,
.footer-lang a:focus-visible {
  color: var(--accent);
}

.footer-lang a.is-active {
  font-weight: 600;
  color: var(--text);
}

.footer-credit {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.76rem;
  color: rgba(185, 133, 87, 0.42);
  letter-spacing: 0.03em;
}

/* ---- Accessibility ---- */

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---- Responsive: tablet ---- */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero-copy {
    max-width: 580px;
    margin: 0 auto;
  }

  .lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-facts {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-figure {
    max-width: 360px;
    margin: 0 auto;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .visit-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

/* ---- Responsive: mobile ---- */

@media (max-width: 640px) {
  :root {
    --bg-stack-step: 360px;
  }

  body {
    background-position:
      center top,
      center 0,
      center var(--bg-stack-step),
      center calc(var(--bg-stack-step) * 2);
    background-size: cover, 160% auto, 160% auto, 160% auto;
    background-attachment: scroll, scroll, scroll, scroll;
  }

  .site-nav {
    display: none;
  }

  .shell {
    width: min(var(--max-width), calc(100% - 24px));
  }

  .hero {
    padding: 32px 0 40px;
  }

  .section {
    padding: 40px 0;
  }

  .hero-copy h1 {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

  .hero-facts {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .visit-card {
    padding: 20px;
  }

  .menu-card {
    padding: 18px;
  }

  .menu-item.has-image {
    grid-template-columns: 48px 1fr auto;
  }

  .menu-item-img {
    width: 48px;
    height: 48px;
  }

  .button {
    min-height: 46px;
    padding: 0 16px;
  }

}
