/*
Theme Name: Hellas Noir
Description: Black and gold restaurant theme for Greek dining. Built for Elementor (free or Pro): Theme Builder header/footer locations, matching global colours and fonts, Greek key and column motifs, Polylang-ready language switcher.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: hellas-noir
*/

:root {
  --hn-black: #000;
  --hn-panel: #0e0d0b;
  --hn-gold: #c9a45c;
  --hn-gold-hi: #e8d29b;
  --hn-gold-lo: #6f5a30;
  --hn-bone: #ece4d2;
  --hn-mute: #a1988a;
  --hn-display: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --hn-body: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hn-pad: clamp(20px, 5vw, 72px);
  --hn-head: 84px;
}

/* Make Elementor's global defaults match the theme, so new widgets inherit the look. */
body[class*="elementor-kit-"] {
  --e-global-color-primary: var(--hn-gold-hi);
  --e-global-color-secondary: var(--hn-gold);
  --e-global-color-text: var(--hn-bone);
  --e-global-color-accent: var(--hn-gold);
  --e-global-typography-primary-font-family: "Marcellus";
  --e-global-typography-secondary-font-family: "Marcellus";
  --e-global-typography-text-font-family: "Jost";
  --e-global-typography-accent-font-family: "Jost";
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--hn-black); color: var(--hn-bone);
  font: 300 17px/1.7 var(--hn-body); -webkit-font-smoothing: antialiased;
}
body.hn-lock { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--hn-gold); text-decoration: none; }
a:hover { color: var(--hn-gold-hi); }
:focus-visible { outline: 2px solid var(--hn-gold-hi); outline-offset: 3px; }
.hn-skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--hn-gold); color: #000; padding: 10px 16px; }
.hn-skip:focus { left: 8px; }

h1, h2, h3, h4, h5, h6,
body .elementor-widget-heading .elementor-heading-title {
  font-family: var(--hn-display); font-weight: 400; color: var(--hn-gold-hi);
  letter-spacing: .02em; line-height: 1.1; margin: 0 0 .5em;
}
body .elementor-widget-text-editor { color: var(--hn-bone); font-family: var(--hn-body); font-weight: 300; font-size: 1.05rem; line-height: 1.75; }
body .elementor-widget-text-editor p { margin: 0 0 1em; }

/* ------------------------------------------------------------ header */
.hn-header { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .4s, border-color .4s; border-bottom: 1px solid transparent; }
body.admin-bar .hn-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .hn-header { top: 46px; } }
.hn-header.is-scrolled, .hn-solid-header .hn-header, .hn-header.is-open { background: #000; border-bottom-color: var(--hn-gold-lo); }
.hn-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 22px var(--hn-pad); min-height: var(--hn-head); }
.hn-brand, .hn-header__end { position: relative; z-index: 3; }
.hn-brand { font: 400 1.3rem/1 var(--hn-display); letter-spacing: .2em; text-transform: uppercase; color: var(--hn-gold-hi); }
.hn-brand img { display: block; max-height: 46px; width: auto; }
.hn-nav ul { display: flex; gap: clamp(20px, 3vw, 44px); list-style: none; margin: 0; padding: 0; }
.hn-nav a { font: 400 .78rem/1 var(--hn-body); letter-spacing: .22em; text-transform: uppercase; color: var(--hn-bone); padding: 8px 0; display: inline-block; }
.hn-nav a:hover, .hn-nav .current-menu-item > a { color: var(--hn-gold); }
.hn-header__end { display: flex; align-items: center; gap: 24px; }
.hn-cta { border: 1px solid var(--hn-gold); color: var(--hn-gold-hi); padding: .85em 1.7em; font: 400 .78rem/1 var(--hn-body); letter-spacing: .2em; text-transform: uppercase; transition: background .3s, color .3s; }
.hn-cta:hover { background: var(--hn-gold); color: #000; }
.hn-nav a.hn-cta--nav { display: none; }
.hn-lang { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0; }
.hn-lang a { font: 400 .75rem/1 var(--hn-body); letter-spacing: .16em; color: var(--hn-mute); }
.hn-lang .is-current a, .hn-lang a:hover { color: var(--hn-gold-hi); }
.hn-burger { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; }
.hn-burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--hn-gold-hi); transition: transform .3s, top .3s; }
.hn-burger span:nth-child(1) { top: 17px; } .hn-burger span:nth-child(2) { top: 26px; }
.is-open .hn-burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.is-open .hn-burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.hn-solid-header .hn-main { padding-top: var(--hn-head); }

@media (max-width: 900px) {
  .hn-burger { display: block; }
  .hn-header__end > .hn-cta { display: none; }
  .hn-nav { position: fixed; inset: 0; z-index: 2; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 36px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
  .is-open .hn-nav { opacity: 1; visibility: visible; }
  .hn-nav ul { flex-direction: column; align-items: center; gap: 22px; }
  .hn-nav a { font: 400 1.9rem/1.2 var(--hn-display); letter-spacing: .06em; text-transform: none; }
  .hn-nav a.hn-cta--nav { display: inline-block; font: 400 .85rem/1 var(--hn-body); letter-spacing: .2em; text-transform: uppercase; padding: 1.1em 2.2em; }
}

/* ------------------------------------------------------------ sections (Elementor containers) */
/* Defaults are set through Elementor's own CSS variables, so values typed into the Elementor panel always win. */
.e-con.hn-sec { --padding-top: clamp(56px, 7vw, 110px); --padding-bottom: clamp(56px, 7vw, 110px); --padding-left: var(--hn-pad); --padding-right: var(--hn-pad); --gap: clamp(28px, 4vw, 56px); scroll-margin-top: var(--hn-head); }
.hn-sec-title .elementor-heading-title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin: 0; }
.hn-sec-title .elementor-heading-title::before { content: ""; display: block; width: 112px; height: 16px; margin-bottom: 26px; background: url(assets/svg/meander.svg) repeat-x 0 0 / 16px 16px; }
.hn-center { text-align: center; align-items: center; }
.hn-center .elementor-heading-title::before { margin-left: auto; margin-right: auto; }
.hn-lede { max-width: 46ch; color: var(--hn-mute); }
.hn-center .hn-lede { margin-left: auto; margin-right: auto; }

/* Greek motifs: line art at very low opacity (opacity is baked into the SVGs) */
.hn-pillars { background-image: url(assets/svg/column.svg), url(assets/svg/column.svg); background-repeat: no-repeat; background-position: left 3% center, right 3% center; background-size: auto 88%; }
.hn-temple { background: url(assets/svg/temple.svg) no-repeat center bottom / min(980px, 96%) auto; }
@media (max-width: 900px) { .hn-pillars { background-position: left -48px center, right -48px center; background-size: auto 70%; } }

/* image tiles: set the photo in Elementor > Style > Background */
body .e-con.hn-ph { background-color: #0b0a08; background-image: radial-gradient(120% 90% at 50% 0%, #1c1810 0%, #070604 72%); background-size: cover; background-position: center; }
body .e-con.hn-tile { position: relative; overflow: hidden; outline: 1px solid rgba(201, 164, 92, .5); outline-offset: -14px; min-height: 0; }
body .e-con.hn-tile--cap { justify-content: flex-end; --padding-top: 34px; --padding-right: 34px; --padding-bottom: 34px; --padding-left: 34px; box-shadow: inset 0 -140px 100px -70px rgba(0, 0, 0, .8); }
.hn-tile--cap .elementor-heading-title { font-size: 1.35rem; margin: 0; }

.hn-grid-space { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(220px, 24vw, 380px); gap: 12px; }
body .e-con.hn-grid-space > .e-con:nth-child(1) { grid-column: 1 / 8; grid-row: 1 / 3; }
body .e-con.hn-grid-space > .e-con:nth-child(2) { grid-column: 8 / 13; }
body .e-con.hn-grid-space > .e-con:nth-child(3) { grid-column: 8 / 13; }
body .e-con.hn-grid-space > .e-con:nth-child(4) { grid-column: 1 / 6; }
body .e-con.hn-grid-space > .e-con:nth-child(5) { grid-column: 6 / 13; }
.hn-dishes { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(240px, 26vw, 420px); gap: 12px; }
@media (max-width: 900px) {
  .hn-grid-space { grid-template-columns: 1fr 1fr; grid-auto-rows: 52vw; }
  body .e-con.hn-grid-space > .e-con:nth-child(n) { grid-column: auto; grid-row: auto; }
  body .e-con.hn-grid-space > .e-con:nth-child(1) { grid-column: 1 / 3; }
  .hn-dishes { grid-template-columns: 1fr 1fr; grid-auto-rows: 54vw; }
  body .e-con.hn-tile--cap { --padding-top: 22px; --padding-right: 22px; --padding-bottom: 22px; --padding-left: 22px; }
}
@media (max-width: 560px) { .hn-dishes { grid-template-columns: 1fr; grid-auto-rows: 72vw; } }

/* hero */
body .e-con.hn-hero { --min-height: 100vh; --padding-top: calc(var(--hn-head) + 40px); --gap: 28px; justify-content: center; align-items: center; text-align: center; box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, .42); }
.hn-hero .elementor-heading-title { font-size: clamp(2.7rem, 7.2vw, 6.4rem); line-height: 1.02; max-width: 15ch; margin: 0 auto; }
.hn-hero .elementor-widget-text-editor { letter-spacing: .06em; }
.hn-hero .hn-actions { margin-top: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .hn-hero .elementor-heading-title { animation: hn-ink 1.8s cubic-bezier(.2, .7, .2, 1) both; }
  .hn-hero .elementor-widget:not(.elementor-widget-heading) { animation: hn-fade 1.4s .9s ease both; }
}
@keyframes hn-ink { from { opacity: 0; letter-spacing: .14em; filter: blur(8px); } to { opacity: 1; letter-spacing: .02em; filter: blur(0); } }
@keyframes hn-fade { from { opacity: 0; } to { opacity: 1; } }

/* buttons */
body .hn-btn .elementor-button { background: transparent; border: 1px solid var(--hn-gold); border-radius: 0; color: var(--hn-gold-hi); font: 400 .8rem/1 var(--hn-body); letter-spacing: .22em; text-transform: uppercase; padding: 1.2em 2.4em; transition: background .3s, color .3s; }
body .hn-btn .elementor-button:hover, body .hn-btn .elementor-button:focus-visible { background: var(--hn-gold); color: #000; }
body .hn-btn--solid .elementor-button { background: var(--hn-gold); color: #000; }
body .hn-btn--solid .elementor-button:hover { background: var(--hn-gold-hi); border-color: var(--hn-gold-hi); }
body .e-con.hn-actions { flex-direction: row; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; --padding-top: 0px; --padding-right: 0px; --padding-bottom: 0px; --padding-left: 0px; }

/* prices */
.hn-prices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 1080px; }
.hn-price { background: var(--hn-panel); border: 1px solid var(--hn-gold-lo); padding: clamp(26px, 3.4vw, 48px); }
.hn-price h3 { font-size: 1.9rem; margin: 0 0 4px; }
.hn-price .hn-time { color: var(--hn-mute); margin: 0 0 22px; font-size: .95rem; }
.hn-price ul { list-style: none; margin: 0; padding: 0; }
.hn-price li { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding: 14px 0; border-bottom: 1px dotted var(--hn-gold-lo); }
.hn-price li:last-child { border-bottom: 0; }
.hn-price li b { font: 400 1.5rem/1 var(--hn-display); color: var(--hn-gold-hi); white-space: nowrap; }
.hn-prices-note { grid-column: 1 / -1; margin: 6px 0 0; color: var(--hn-mute); font-size: .95rem; }
@media (max-width: 760px) { .hn-prices { grid-template-columns: 1fr; } }

/* evening */
body .e-con.hn-evening { --min-height: min(70vh, 680px); justify-content: center; align-items: flex-start; box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, .5); }
.hn-evening .elementor-widget-text-editor { max-width: 40ch; }

/* reservation + contact */
.hn-phone a { font: 400 clamp(2rem, 5vw, 3.6rem)/1.1 var(--hn-display); color: var(--hn-gold-hi); letter-spacing: .03em; }
.hn-phone { margin: 0; }
body .e-con.hn-contact-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); }
.hn-col-title .elementor-heading-title { font-size: 1.3rem; color: var(--hn-gold); }
.hn-map iframe { display: block; width: 100%; filter: grayscale(1) invert(.92) contrast(.9); border: 1px solid var(--hn-gold-lo); }
@media (max-width: 760px) { body .e-con.hn-contact-cols { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ footer + plain pages */
.hn-footer { position: relative; padding: 84px var(--hn-pad) 40px; text-align: center; background: #000; }
.hn-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 16px; background: url(assets/svg/meander.svg) repeat-x 0 0 / 16px 16px; opacity: .55; }
.hn-footer .hn-brand { display: inline-block; margin-bottom: 26px; }
.hn-footer ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; list-style: none; margin: 0 0 28px; padding: 0; }
.hn-footer ul a { font: 400 .78rem/1 var(--hn-body); letter-spacing: .2em; text-transform: uppercase; color: var(--hn-bone); }
.hn-footer .hn-lang { justify-content: center; margin-bottom: 28px; }
.hn-footer small { color: var(--hn-mute); font-size: .82rem; }
.hn-prose { max-width: 760px; margin: 0 auto; padding: 60px var(--hn-pad) 100px; }
.hn-prose h1 { font-size: clamp(2rem, 4vw, 3rem); }
.hn-prose a { text-decoration: underline; text-underline-offset: 3px; }
