/*
Theme Name: Nepal Haus
Theme URI: http://localhost:8888/personal/nepalhausmarket/
Description: A custom child theme of Hello Elementor for Nepal Haus Market & Kitchen — a Himalayan supermarket and restaurant in Frankfurt. Reproduces the Nepal Haus landing page design.
Author: Manoj Shahi
Template: hello-elementor
Version: 1.0.0
Text Domain: nepal-haus
*/

/* =========================================================
   Design tokens
   ========================================================= */
:root{
  --forest:#283A22;
  --forest-deep:#1C2A19;
  --accent:#C0552F;
  --accent-soft:#E8C9A8;
  --cream:#FBF5E9;
  --cream-2:#F3E8D4;
  --card:#FFFFFF;
  --ink:#2A2620;
  --muted:#6E665B;
  --line:rgba(40,58,34,.14);
  --hero-text:#FFF8EC;
  --serif:'Spectral', Georgia, 'Times New Roman', serif;
  --sans:'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --maxw:1200px;
  --radius:18px;
}

/* =========================================================
   Reset / base
   ========================================================= */
*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
/* Front page is a full landing page — hide the WordPress page title */
.home .page-header,.home h1.entry-title{display:none;}
/* Offset anchored Elementor sections so they clear the sticky header */
[id^="about"],[id^="market"],[id^="restaurant"],[id^="gallery"],[id^="visit"],[id^="contact"]{scroll-margin-top:96px;}
body.nhm{
  margin:0;
  font-family:var(--sans);
  color:var(--ink);
  background:var(--cream);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
.nhm img{max-width:100%;display:block;}
.nhm a{color:inherit;text-decoration:none;}
.nhm h1,.nhm h2,.nhm h3,.nhm h4{font-family:var(--serif);font-weight:600;line-height:1.08;margin:0;color:var(--ink);}
.nhm .container{max-width:var(--maxw);margin:0 auto;padding:0 28px;}
.nhm section{position:relative;}

/* buttons */
.nhm .btn{
  display:inline-flex;align-items:center;gap:9px;
  font-family:var(--sans);font-weight:600;font-size:15px;
  padding:14px 24px;border-radius:999px;cursor:pointer;border:1px solid transparent;
  transition:transform .15s ease,background .2s ease,color .2s ease;
}
.nhm .btn:hover{transform:translateY(-2px);}
.nhm .btn-accent{background:var(--accent);color:#fff;}
.nhm .btn-accent:hover{background:#a8481f;}
.nhm .btn-ghost{background:transparent;color:var(--hero-text);border-color:rgba(255,255,255,.4);}
.nhm .btn-ghost:hover{background:rgba(255,255,255,.1);}
.nhm .btn-dark{background:var(--forest);color:var(--hero-text);}
.nhm .btn-dark:hover{background:var(--forest-deep);}
.nhm .ico{width:17px;height:17px;flex:0 0 auto;}

/* =========================================================
   Header
   ========================================================= */
.nhm-header{
  position:sticky;top:0;z-index:50;
  background:rgba(251,245,233,.85);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--line);
}
.nhm-header .bar{display:flex;align-items:center;justify-content:space-between;height:74px;}
.nhm-brand{display:flex;align-items:center;gap:12px;}
.nhm-logo{
  width:42px;height:42px;border-radius:12px;background:var(--forest);
  display:grid;place-items:center;color:var(--accent-soft);
}
.nhm-brand--image{display:flex;align-items:center;}
.nhm-brand--image .custom-logo-link{display:inline-flex;align-items:center;line-height:0;}
.nhm-brand--image .custom-logo{height:46px;width:auto;max-width:220px;display:block;}
.nhm-brand .name{font-family:var(--serif);font-weight:600;font-size:20px;line-height:1;color:var(--ink);display:block;}
.nhm-brand .sub{font-family:var(--sans);font-weight:700;font-size:10px;letter-spacing:.22em;color:var(--accent);margin-top:3px;display:block;}
.nhm-nav{display:flex;align-items:center;gap:30px;}
.nhm-menu{display:flex;align-items:center;gap:30px;list-style:none;margin:0;padding:0;}
.nhm-menu li{margin:0;}
.nhm-nav a{font-weight:500;font-size:15px;color:var(--ink);transition:color .2s;}
.nhm-nav a:not(.btn):hover{color:var(--accent);}
/* Header CTA / phone button: keep white text on hover (don't inherit the link-hover tint) */
.nhm-nav a.btn,.nhm-nav a.btn:hover,.nhm-nav a.btn:focus{color:#fff;}
.nhm-phone .ico{width:16px;height:16px;}
.nhm-phone span{font-variant-numeric:tabular-nums;white-space:nowrap;}
.nhm-burger{display:none;background:none;border:0;cursor:pointer;padding:6px;}

/* =========================================================
   Footer
   ========================================================= */
.nhm-footer{background:var(--forest-deep);color:rgba(255,248,236,.8);padding:64px 0 28px;}
.foot-grid{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:36px;}
.nhm-footer h4{font-family:var(--sans);font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--accent-soft);margin-bottom:16px;}
.nhm-footer .fbrand .name{font-family:var(--serif);font-size:24px;color:var(--hero-text);margin-bottom:14px;}
.nhm-footer .foot-logo{display:inline-block;line-height:0;margin-bottom:16px;}
.nhm-footer .foot-logo img{height:56px;width:auto;max-width:250px;}
.nhm-footer ul{list-style:none;margin:0;padding:0;display:grid;gap:10px;}
.nhm-footer a:hover{color:var(--accent-soft);}
.nhm-footer p{color:rgba(255,248,236,.7);}
.foot-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:48px;padding-top:22px;border-top:1px solid rgba(255,255,255,.12);font-size:14px;flex-wrap:wrap;gap:12px;}
.foot-bottom a{margin-left:20px;}

/* =========================================================
   Restaurant menu modal
   ========================================================= */
.nhm-modal{position:fixed;inset:0;z-index:9999;display:grid;place-items:center;padding:20px;}
.nhm-modal[hidden]{display:none;}
.nhm-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.78);backdrop-filter:blur(4px);}
.nhm-modal__box{
  position:relative;z-index:1;
  max-width:min(820px,100%);max-height:90vh;overflow-y:auto;
  border-radius:16px;box-shadow:0 24px 60px rgba(0,0,0,.45);
}
.nhm-modal__box img{display:block;width:100%;height:auto;border-radius:16px;}
.nhm-modal__close{
  position:sticky;top:10px;float:right;margin:10px 10px 0 0;z-index:2;
  width:36px;height:36px;border-radius:50%;
  background:rgba(0,0,0,.55);color:#fff;border:0;cursor:pointer;
  font-size:18px;display:grid;place-items:center;
  transition:background .2s;
}
.nhm-modal__close:hover{background:rgba(0,0,0,.85);}

/* =========================================================
   Responsive
   ========================================================= */
@media(max-width:980px){
  .foot-grid{grid-template-columns:1fr 1fr;}
}
@media(max-width:640px){
  .nhm-nav{display:none;}
  .nhm-burger{display:inline-flex;}
  /* Mobile dropdown panel when the hamburger is open */
  .nhm-header.is-open .nhm-nav{
    display:flex;flex-direction:column;align-items:stretch;gap:4px;
    position:absolute;top:74px;left:0;right:0;
    background:var(--cream);border-bottom:1px solid var(--line);
    padding:14px 28px 22px;box-shadow:0 16px 28px rgba(40,58,34,.12);
  }
  .nhm-header.is-open .nhm-menu{flex-direction:column;align-items:stretch;gap:4px;width:100%;}
  .nhm-header.is-open .nhm-nav a{padding:11px 0;font-size:17px;}
  .nhm-header.is-open .nhm-nav .btn{margin-top:10px;justify-content:center;}
  .foot-grid{grid-template-columns:1fr;}
}
