/* =====================================================
   TRIANGELN — Premium Restaurant Website
   Color theme: Deep charcoal + warm gold + cream
   Inspired by Kallskänken, Florentine, Samburger
   ===================================================== */

/* ---------- VARIABLES ---------- */
:root {
  --color-bg:       #0f0d0b;
  --color-bg-warm:  #1a1714;
  --color-cream:    #f5f0e6;
  --color-cream-d:  #e8e0d0;
  --color-gold:     #c8a45c;
  --color-gold-l:   #dfc07a;
  --color-gold-d:   #a0833a;
  --color-white:    #ffffff;
  --color-text:     #2c2a26;
  --color-muted:    #6b665c;
  --font-heading:   'Playfair Display', Georgia, serif;
  --font-body:      'Inter', system-ui, -apple-system, sans-serif;
  --ease:           cubic-bezier(.4, 0, .2, 1);
  --radius:         6px;
  --radius-lg:      12px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-cream);
  color: var(--color-text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }

/* ========================================================
   PAGE TRANSITION CURTAIN (Florentine-style)
   ======================================================== */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transform: translateY(0%);
  transition: transform .65s cubic-bezier(.77, 0, .175, 1);
}

/* Text inside the curtain */
.page-transition-inner {
  text-align: center;
  opacity: 1;
  transition: opacity .3s ease;
}
.pt-text {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: .08em;
  opacity: .8;
}

/* LEAVING = curtain slides UP to reveal page */
.page-transition.is-leaving {
  transform: translateY(-100%);
}

/* ENTERING = curtain slides back DOWN to cover page */
.page-transition.is-entering {
  transform: translateY(0%);
  transition: transform .55s cubic-bezier(.77, 0, .175, 1);
}

/* ---------- ANIMATIONS (keyframes) ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes scaleReveal {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes lineGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

/* scroll-reveal class applied via JS */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ========================================================
   HEADER — dark bar, gold logo, overlay on hero pages
   ======================================================== */
.site-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: none;
}
.site-header-overlay {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: none;
  transition: background .4s var(--ease);
}
/* scroll-effekt borttagen */

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .6rem;
  padding-bottom: .6rem;
}

.logo-link { display: flex; align-items: center; }
.site-logo {
  height: 270px;
  width: auto;
  object-fit: contain;
  transition: height .3s var(--ease);
}

.site-nav {
  display: flex;
  gap: 2.2rem;
}
.site-nav a {
  color: var(--color-cream);
  text-decoration: none;
  font-weight: 600;
  font-size: .88rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  position: relative;
  transition: color .3s;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--color-gold);
  transition: width .35s var(--ease);
}
.site-nav a:hover { color: var(--color-gold); }
.site-nav a:hover::after { width: 100%; }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(200,164,92,.4);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .5rem 1.1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .3s;
}
.menu-toggle:hover {
  background: var(--color-gold);
  color: var(--color-bg);
  border-color: var(--color-gold);
}

/* ========================================================
   HERO — full-screen with image, overlay + text
   ======================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 8s var(--ease) forwards;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15,13,11,.45) 0%,
    rgba(15,13,11,.7) 100%
  );
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 6rem 2rem 4rem;
  max-width: 800px;
}
.hero-content h1 {
  color: var(--color-white);
  text-shadow: 0 2px 30px rgba(0,0,0,.4);
  animation: fadeUp .9s var(--ease) .2s both;
}
.hero-tagline {
  color: var(--color-gold-l);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-top: .8rem;
  animation: fadeUp .9s var(--ease) .45s both;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
  animation: fadeUp .9s var(--ease) .65s both;
}

/* ========================================================
   BUTTONS
   ======================================================== */
.btn {
  display: inline-block;
  padding: .95rem 2.2rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .35s var(--ease);
}
.btn-gold {
  background: var(--color-gold);
  color: var(--color-bg) !important;
  border-color: var(--color-gold);
}
.btn-gold:hover {
  background: var(--color-gold-l);
  border-color: var(--color-gold-l);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,164,92,.35);
}
.btn-outline {
  background: transparent;
  color: var(--color-white) !important;
  border-color: var(--color-white);
}
.btn-outline:hover {
  background: var(--color-white);
  color: var(--color-bg) !important;
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--color-bg);
  color: var(--color-cream) !important;
  border-color: var(--color-bg);
}
.btn-dark:hover {
  background: var(--color-bg-warm);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.2);
}

/* ========================================================
   TICKER / MARQUEE (Kallskänken style)
   ======================================================== */
.ticker-wrap {
  background: var(--color-gold);
  overflow: hidden;
  white-space: nowrap;
  padding: .7rem 0;
}
.ticker-track {
  display: inline-flex;
  animation: ticker 40s linear infinite;
}
.ticker-track span {
  padding: 0 2rem;
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-bg);
}

/* ========================================================
   SECTION HELPERS
   ======================================================== */
.section { padding: 5.5rem 0; }
.section-dark  { background: var(--color-bg); color: var(--color-cream); }
.section-warm  { background: var(--color-bg-warm); color: var(--color-cream); }
.section-cream { background: var(--color-cream); }
.section-paper { background: #faf7f1; overflow-x: hidden; }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  color: var(--color-gold);
}
.section-dark .section-header h2,
.section-warm .section-header h2 {
  color: var(--color-gold-l);
}
.section-header .divider {
  width: 60px;
  height: 3px;
  background: var(--color-gold);
  margin: 1rem auto 0;
  transform-origin: center;
}
.section-header .subtitle {
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: .95rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
}
.section-dark .section-header .subtitle,
.section-warm .section-header .subtitle {
  color: rgba(245,240,230,.6);
}

/* ========================================================
   FEATURE CARDS (Kallskänken-style grid)
   ======================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.2rem;
}
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }

.feature-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: var(--color-white);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.feature-card .card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .6s var(--ease);
  z-index: 0;
}
.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15,13,11,.85) 0%,
    rgba(15,13,11,.3) 50%,
    transparent 100%
  );
  z-index: 1;
  transition: background .4s;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.feature-card:hover .card-bg {
  transform: scale(1.06);
}
.feature-card:hover::after {
  background: linear-gradient(
    to top,
    rgba(15,13,11,.9) 0%,
    rgba(15,13,11,.45) 50%,
    rgba(15,13,11,.15) 100%
  );
}

.card-content {
  position: relative;
  z-index: 2;
  padding: 2rem 1.5rem;
}
.card-content h3 {
  font-size: 1.35rem;
  margin-bottom: .3rem;
}
.card-content .card-link {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-gold-l);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: gap .3s;
}
.feature-card:hover .card-link { gap: .7rem; }
.card-link-arrow {
  display: inline-block;
  transition: transform .3s;
}
.feature-card:hover .card-link-arrow { transform: translateX(3px); }

/* ========================================================
   ABOUT / INTRO TEXT BLOCK (Florentine style)
   ======================================================== */
.intro-block {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.intro-block h2 {
  color: var(--color-gold);
  margin-bottom: 1.5rem;
}
.intro-block p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-muted);
}
.intro-block p + p { margin-top: 1rem; }

/* ========================================================
   HOURS SECTION
   ======================================================== */
.hours-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.hours-item {
  text-align: center;
  padding: 2.5rem 2.5rem;
  border: 2px solid rgba(200,164,92,.25);
  border-radius: var(--radius-lg);
  min-width: 200px;
  transition: all .4s var(--ease);
}
.hours-item:hover {
  border-color: var(--color-gold);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(200,164,92,.15);
}
.section-dark .hours-item {
  border-color: rgba(200,164,92,.2);
  background: rgba(255,255,255,.04);
}
.section-dark .hours-item:hover {
  border-color: var(--color-gold);
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
}
.hours-item h3 {
  color: var(--color-gold);
  margin-bottom: .6rem;
  font-size: 1rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 700;
}
.hours-item .time {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text);
}
.section-dark .hours-item .time { color: var(--color-cream); }

/* ========================================================
   MENU PAGE
   ======================================================== */
.page-hero {
  position: relative;
  background: url('/assets/Meeting.jpg') center/cover no-repeat;
  background-attachment: fixed;
  padding: 10rem 0 4.5rem;
  text-align: center;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15,13,11,.5) 0%,
    rgba(15,13,11,.75) 100%
  );
  z-index: 0;
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  color: var(--color-cream);
  animation: fadeUp .8s var(--ease) both;
}
.page-hero .page-subtitle {
  color: var(--color-gold-l);
  font-size: .95rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-top: .6rem;
  animation: fadeUp .8s var(--ease) .15s both;
}

.menu-category { margin-bottom: 3rem; }
.menu-category h2 {
  color: var(--color-gold-d);
  margin-bottom: 1.5rem;
  padding-bottom: .75rem;
  border-bottom: 2px solid rgba(200,164,92,.2);
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid rgba(200,164,92,.12);
  transition: all .3s var(--ease);
}
.menu-item:hover {
  padding-left: .8rem;
  background: rgba(200,164,92,.04);
  border-radius: var(--radius);
}
.menu-item:last-child { border-bottom: none; }
.menu-item-info h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: .25rem;
}
.menu-item-info p {
  color: var(--color-muted);
  font-size: .9rem;
}
.menu-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-gold);
  white-space: nowrap;
}

/* ========================================================
   CONTACT PAGE
   ======================================================== */
.section-contact .contact-container {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 3rem;
}
@media (max-width: 768px) {
  .section-contact .contact-container { padding: 0 1.2rem; width: 100%; }
}
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 900px) {
  .contact-info-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .contact-info-grid { grid-template-columns: 1fr; }
}
.info-card-email {
  grid-column: 1 / -1;
  margin-top: 1.5rem;
  padding: 2rem 3rem;
  min-width: 0;
  overflow: hidden;
}
.info-card-email-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  justify-content: center;
  align-items: center;
  min-width: 0;
}
.info-card-email-list a {
  word-break: break-all;
  overflow-wrap: anywhere;
  font-size: 0.95rem;
  min-width: 0;
  max-width: 100%;
}
.contact-info-grid > * { min-width: 0; }
.info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  border: 1px solid rgba(200,164,92,.15);
  transition: all .35s var(--ease);
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(200,164,92,.12);
  border-color: var(--color-gold);
}
.info-card h3 {
  color: var(--color-gold-d);
  margin-bottom: .6rem;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: .08em;
}
.info-card p { color: var(--color-muted); font-size: .95rem; }
.info-card a {
  text-decoration: none;
  color: var(--color-gold-d);
  font-weight: 600;
  transition: color .3s;
  word-break: break-all;
}
.info-card a:hover { color: var(--color-gold); }

.form-block h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-gold-d);
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s, opacity .2s;
}
.social-links a:hover { transform: scale(1.1); opacity: .9; }
.social-icon { vertical-align: middle; }

.info-card .social-links { flex-direction: row; margin-top: 0.5rem; }
.site-footer .footer-inner .social-links { justify-content: flex-start; margin-top: 0.5rem; }

.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .04em;
  color: var(--color-text);
  margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid rgba(200,164,92,.25);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color .3s, box-shadow .3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(200,164,92,.15);
}

.alert-success {
  background: rgba(200,164,92,.1);
  color: var(--color-gold-d);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 2rem;
  border: 1px solid rgba(200,164,92,.3);
  font-weight: 500;
}

/* ========================================================
   ABOUT PAGE
   ======================================================== */
.about-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.about-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-muted);
}
.about-content p + p { margin-top: 1.2rem; }

/* ========================================================
   FIND-US / BOTTOM SECTION
   ======================================================== */
.find-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  text-align: center;
}
.find-grid h3 {
  color: var(--color-gold-l);
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .9rem;
  margin-bottom: .6rem;
}
.find-grid p {
  color: rgba(245,240,230,.7);
  font-size: .95rem;
}
.find-grid > div { min-width: 0; }
.find-grid a { word-break: break-all; }
.find-grid a {
  color: var(--color-gold-l);
  text-decoration: none;
  transition: color .3s;
}
.find-grid a:hover { color: var(--color-white); }

/* ========================================================
   FOOTER
   ======================================================== */
.site-footer {
  background: var(--color-bg);
  color: var(--color-cream);
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid rgba(200,164,92,.1);
}
.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  align-items: flex-start;
}
.site-footer .footer-inner > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 140px;
  text-align: left;
}
.site-footer .footer-inner h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: .6rem;
}
.site-footer .footer-inner p {
  color: rgba(245,240,230,.65);
  font-size: .9rem;
  margin: .2rem 0;
}
.site-footer .footer-inner a {
  color: var(--color-gold-l);
  text-decoration: none;
  transition: color .3s;
}
.site-footer .footer-inner a:hover { color: var(--color-white); }

/* ========================================================
   RESPONSIVE
   ======================================================== */
@media (max-width: 900px) {
  .card-grid, .card-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }

  .site-nav {
    position: fixed;
    top: 0; right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.8rem;
    transition: right .4s var(--ease);
    box-shadow: -8px 0 30px rgba(0,0,0,.4);
    z-index: 200;
  }
  .site-nav.open { right: 0; }
  .site-nav a { font-size: 1.05rem; }

  .hero-content { padding: 5rem 1.5rem 3rem; }
  .hero-content h1 { font-size: 2rem; }

  .card-grid, .card-grid-3 { grid-template-columns: 1fr; }
  .feature-card { min-height: 260px; }

  .hours-row { gap: 1.2rem; }
  .hours-item { min-width: unset; flex: 1; padding: 1.8rem 1.5rem; }

  .section { padding: 3.5rem 0; }
  .container { padding: 0 1.2rem; }
  .site-footer .footer-inner { padding: 0 1.2rem; }


  .site-logo { height: 195px; }
  .find-grid { grid-template-columns: 1fr; }

  .menu-item { flex-direction: column; gap: .5rem; }

  /* Parallax disabled on mobile (iOS doesn't support fixed bg) */
  .hero-bg,
  .page-hero {
    background-attachment: scroll;
  }
}
