/*
Theme Name: Tsera Dhöm Bistro
Theme URI: https://www.tseralimited.com/
Author: Muhammad Talaay
Author URI: https://www.tseralimited.com/
Description: Lightweight Elementor-ready theme using the Dhöm Bistro palette, fixed Amsterdam One-ready wordmark, centred WordPress menu, booking button, and editable global footer.
Version: 1.7.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: dhom-bistro-shell
*/

:root {
  /* Client-approved brand palette */
  --dhom-main: #A8A696;
  --dhom-second: #EBE9DD;
  --dhom-text: #38342C;
  --dhom-surface: #F8F7F0;
  --dhom-main-dark: #747267;
  --dhom-muted: #6F6B61;
  --dhom-header-height: 82px;

  /* Backward-compatible aliases used by existing Elementor HTML sections */
  --dhom-sage: var(--dhom-main);
  --dhom-sage-dark: var(--dhom-main-dark);
  --dhom-sage-deep: var(--dhom-text);
  --dhom-cream: var(--dhom-second);
  --dhom-ivory: var(--dhom-surface);
  --dhom-gold: var(--dhom-main-dark);
  --dhom-ink: var(--dhom-text);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--dhom-ink);
  background: var(--dhom-second);
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.7;
  font-weight: 300;
}
img { max-width: 100%; height: auto; }
a { color: var(--dhom-sage-deep); text-decoration: none; }
a:hover { color: var(--dhom-sage-dark); }

.dhom-container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

/* Fixed Dhöm Bistro wordmark */
.dhom-wordmark {
  --dhom-bistro-offset: 3.5rem;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  width: max-content;
  color: var(--dhom-text);
  line-height: 1;
  white-space: nowrap;
}
.dhom-wordmark:hover { color: var(--dhom-text); }
.dhom-wordmark__dhom {
  display: block;
  font-family: "Amsterdam", "Parisienne", cursive;
  font-size: 2.15rem;
  font-weight: 400;
  line-height: .92;
}
.dhom-wordmark__bistro {
  display: block;
  position: static;
  margin: .42rem 0 0 var(--dhom-bistro-offset);
  font-family: "Playfair Display", Georgia, serif;
  font-size: .58rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .44em;
  text-transform: uppercase;
}

/* Force the uploaded Amsterdam font on the Dhöm wordmark only.
   The stronger selectors override broad Elementor/custom CSS font rules. */
body .site-header .dhom-wordmark .dhom-wordmark__dhom,
body .site-footer .dhom-wordmark .dhom-wordmark__dhom {
  font-family: "Amsterdam", "Parisienne", cursive !important;
  font-style: normal !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  line-height: .85 !important;
  text-transform: none !important;
}

body .site-header .dhom-wordmark .dhom-wordmark__bistro,
body .site-footer .dhom-wordmark .dhom-wordmark__bistro {
  position: static !important;
  display: block !important;
  font-family: "Playfair Display", Georgia, serif !important;
  margin-top: .42rem !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  margin-left: var(--dhom-bistro-offset) !important;
  line-height: 1 !important;
}

/* Global header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--dhom-main);
  box-shadow: 0 2px 12px rgba(56, 52, 44, .12);
}
.admin-bar .site-header { top: 32px; }
.site-header__inner {
  min-height: var(--dhom-header-height);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  column-gap: 30px;
}
.site-branding { justify-self: start; }
.site-header .dhom-wordmark { --dhom-bistro-offset: 3.45rem; }
.site-navigation { justify-self: center; }
.site-navigation ul {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  margin: 0;
  padding: 0;
}
.site-navigation a {
  display: block;
  color: var(--dhom-text);
  font-size: .79rem;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding: 9px 0 5px;
  transition: border-color .2s ease, opacity .2s ease;
}
.site-navigation a:hover,
.site-navigation .current-menu-item > a,
.site-navigation .current_page_item > a {
  color: var(--dhom-text);
  border-color: var(--dhom-text);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-booking-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 21px;
  border: 1px solid var(--dhom-text);
  background: var(--dhom-text);
  color: var(--dhom-second);
  font: 500 .72rem/1 "Jost", Arial, sans-serif;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .22s ease, color .22s ease, transform .22s ease;
}
.header-booking-button:hover {
  background: transparent;
  color: var(--dhom-text);
  transform: translateY(-1px);
}
.menu-toggle {
  display: none;
  appearance: none;
  width: 41px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(56,52,44,.42);
  background: transparent;
  color: var(--dhom-text);
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
}
.menu-toggle__lines,
.menu-toggle__lines::before,
.menu-toggle__lines::after {
  width: 18px;
  height: 1px;
  display: block;
  background: currentColor;
  content: "";
  position: relative;
}
.menu-toggle__lines::before { position: absolute; top: -6px; }
.menu-toggle__lines::after { position: absolute; top: 6px; }

/* Main page output */
.site-main { min-height: 46vh; }
.dhom-default-content { padding: 72px 0; }
.dhom-default-content .entry-title {
  margin: 0 0 28px;
  font: 500 clamp(2.25rem, 5vw, 3.6rem)/1.08 "Playfair Display", Georgia, serif;
}
.dhom-default-content .entry-content > *:first-child { margin-top: 0; }
.dhom-default-content .entry-content > *:last-child { margin-bottom: 0; }

/* Global footer */
.site-footer {
  background: var(--dhom-text);
  color: rgba(235,233,221,.84);
  padding: 58px 0 24px;
}
.site-footer a { color: var(--dhom-second); }
.site-footer .dhom-wordmark { --dhom-bistro-offset: 4.35rem; margin-bottom: 18px; color: var(--dhom-second); }
.site-footer .dhom-wordmark:hover { color: var(--dhom-second); }
.site-footer .dhom-wordmark__dhom { font-size: 2.85rem; }
.site-footer .dhom-wordmark__bistro { font-size: .68rem; }
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.45fr) minmax(190px, .9fr) minmax(140px, .65fr) minmax(160px, .7fr);
  gap: 48px;
  align-items: start;
}
.site-footer__about-heading { margin-top: 27px; }
.site-footer__about-text {
  max-width: 430px;
  color: rgba(235,233,221,.74);
  font-size: .94rem;
  line-height: 1.75;
}
.site-footer__heading {
  margin: 0 0 16px;
  color: var(--dhom-second);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.site-footer p { margin: 0 0 9px; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu li + li { margin-top: 8px; }
.footer-menu a { transition: opacity .2s ease; }
.footer-menu a:hover { opacity: .72; }
.footer-social-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}
.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(235,233,221,.88);
  transition: opacity .2s ease, transform .2s ease;
}
.footer-social-link:hover {
  color: var(--dhom-second);
  opacity: .78;
  transform: translateX(2px);
}
.footer-social-link__icon {
  width: 31px;
  height: 31px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(235,233,221,.28);
  border-radius: 50%;
  flex: 0 0 31px;
}
.footer-social-link__icon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-social-link:nth-child(2) .footer-social-link__icon svg path,
.footer-social-link:nth-child(3) .footer-social-link__icon svg path {
  fill: currentColor;
  stroke: none;
}
.site-footer__bottom {
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(235,233,221,.15);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  font-size: .8rem;
}
.site-footer__bottom-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}
.site-footer__legal {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.site-footer__legal-separator { opacity: .45; }
.site-footer__bottom a {
  color: rgba(235,233,221,.9);
  text-decoration: underline;
  text-decoration-color: rgba(235,233,221,.35);
  text-underline-offset: 3px;
  transition: color .2s ease, text-decoration-color .2s ease;
}
.site-footer__bottom a:hover {
  color: var(--dhom-second);
  text-decoration-color: var(--dhom-second);
}
.site-footer__credit { white-space: nowrap; }

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 1040px) {
  .site-footer__grid { grid-template-columns: 1.25fr 1fr; gap: 38px 54px; }
}

@media (max-width: 920px) {
  .site-header__inner {
    min-height: 74px;
    grid-template-columns: 1fr auto;
    column-gap: 14px;
    padding: 9px 0;
  }
  .site-branding { grid-column: 1; grid-row: 1; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .menu-toggle { display: inline-flex; }
  .site-navigation {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    justify-self: stretch;
    padding: 9px 0 5px;
  }
  .site-navigation.is-open { display: block; }
  .site-navigation ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    text-align: center;
  }
  .site-navigation a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(56,52,44,.18);
  }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
  .site-footer__bottom-meta { justify-content: flex-start; }
}

@media (max-width: 680px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .site-footer__about-text { max-width: none; }
}

@media (max-width: 520px) {
  .dhom-container { width: min(100% - 30px, 1180px); }
  .dhom-wordmark__dhom { font-size: 1.78rem; }
  .dhom-wordmark__bistro { font-size: .5rem; }
  .site-header .dhom-wordmark { --dhom-bistro-offset: 2.85rem; }
  .site-footer .dhom-wordmark { --dhom-bistro-offset: 3.55rem; }
  .header-actions { gap: 9px; }
  .header-booking-button { min-height: 38px; padding: 9px 13px; font-size: .62rem; letter-spacing: .12em; }
}
