﻿/*
Theme Name: Citir Cafe
Description: Citir Cafe icin ozel hafif tema. Menu urunleri panelden yonetilir.
Version: 1.0
Author: Citir Cafe
Text Domain: citircafe
*/

/* ============================================================
   Citir Cafe - base stylesheet
   Mobile-first, breakpoint at 768px, no frameworks.
   ============================================================ */

/* ---------- design tokens ---------- */
:root {
  --bg: #FAF7F2;
  --text: #1E1B16;
  --accent: #C4622D;
  --muted: #8A8378;

  /* derived tones, all rooted in the tokens above */
  --accent-hover: #A94F1F;
  --overlay-bg: #1E1B16;
  --on-accent: #FAF7F2;
  --on-dark: #FAF7F2;

  /* header height is fixed so the hero can fill the rest of the viewport */
  --header-h: 148px;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "CitirDisplay", Georgia, serif;
}

/* display font skeleton - font files will be added later */
@font-face {
  font-family: "CitirDisplay";
  src: url("assets/fonts/citir-display.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* handwritten font matching the logo lettering, self-hosted */
@font-face {
  font-family: "CitirScript";
  src: url("assets/fonts/amatic-sc-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "CitirScript";
  src: url("assets/fonts/amatic-sc-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

a {
  color: var(--text);
}

button {
  font: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

.muted {
  color: var(--muted);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  height: var(--header-h);
  display: flex;
  align-items: center;
  /* logo sits right next to the centered menu, edge to edge */
  justify-content: center;
  gap: 0.75rem;
  position: relative;
  padding: 0 1.25rem;
  /* keep the overhanging logo above the content below */
  z-index: 10;
}

.logo {
  /* text styles kept as fallback if the logo image fails to load */
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.35em;
  text-decoration: none;
}

/* decorative branch, hidden on small screens */
.filiz {
  display: none;
  position: absolute;
  pointer-events: none;
}

.logo img {
  display: block;
  /* logo spans the full header strip, page content starts right below it */
  height: calc(var(--header-h) - 4px);
  width: auto;
}

/* hamburger button - visible on mobile only */
.nav-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.nav-toggle-bar {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
}

/* nav: fullscreen overlay on mobile */
.site-nav {
  display: none;
}

.site-nav.is-open {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--overlay-bg);
  align-items: center;
  justify-content: center;
}

.site-nav.is-open .nav-list {
  flex-direction: column;
  text-align: center;
  gap: 1.5rem;
}

.site-nav.is-open .nav-list a {
  color: var(--on-dark);
  font-size: 1.25rem;
}

.nav-close {
  display: none;
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  color: var(--on-dark);
  font-size: 1.75rem;
  width: 44px;
  height: 44px;
}

.site-nav.is-open .nav-close {
  display: block;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
}

.nav-list a {
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
}

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

/* current page marker */
.nav-list a.is-active {
  color: var(--accent);
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero {
  height: calc(100vh - var(--header-h));
  min-height: 320px;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* dark stage behind letterboxed photos */
  background: var(--overlay-bg);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.slide.is-active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  /* show the whole photo, no cropping */
  object-fit: contain;
}

/* blurred copy of the same photo fills the empty edges */
.slide .slide-bg {
  object-fit: cover;
  filter: blur(24px) brightness(0.85);
  /* oversize slightly so blur does not reveal transparent edges */
  transform: scale(1.1);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  font-size: 2rem;
  line-height: 1;
  color: var(--on-dark);
  background: transparent;
}

.slider-arrow:hover,
.slider-arrow:focus {
  color: var(--accent);
}

.slider-arrow-prev {
  left: 0.5rem;
}

.slider-arrow-next {
  right: 0.5rem;
}

.slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.6rem;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--on-dark);
  background: transparent;
  padding: 0;
}

.slider-dot.is-active {
  background: var(--on-dark);
}

.slider-dot:hover,
.slider-dot:focus {
  border-color: var(--accent);
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.location,
.hours,
.cta,
.social {
  text-align: center;
  padding: 2.5rem 1rem;
}

.location h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.25em;
  margin-right: -0.25em;
  margin-bottom: 0.75rem;
}

.hours-line {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0.5rem 0;
}

.hours-label {
  font-family: var(--font-display);
  font-weight: 700;
}

.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  letter-spacing: 0.15em;
  padding: 1rem 2.5rem;
  transition: background 0.2s ease;
}

.btn-cta:hover,
.btn-cta:focus {
  background: var(--accent-hover);
}

/* ---------- subpage layout ---------- */
.page-section {
  text-align: center;
  padding: 3rem 1rem 4.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.page-title {
  text-transform: uppercase;
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.25em;
  margin-right: -0.25em;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.2em;
  margin: 3rem 0 1.25rem;
}

.prose {
  text-align: left;
  margin-bottom: 1.25rem;
}

.btn-row {
  margin: 2rem 0;
}

/* stacked action buttons, side by side on wide screens */
.btn-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* channel not live yet: dimmed button with a coming-soon tag */
.btn-soon,
.btn-soon:hover,
.btn-soon:focus {
  background: var(--muted);
  cursor: default;
  text-align: center;
}

.soon-tag {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  margin-top: 0.25rem;
  opacity: 0.85;
}

/* highlighted note block on the events page */
.event-note {
  border: 1px solid var(--accent);
  padding: 1.75rem 1.5rem 0.75rem;
  margin: 2.5rem 0 2rem;
}

.event-note .section-subtitle {
  margin: 0 0 1rem;
  color: var(--accent);
}

/* ---------- faq accordion ---------- */
.faq {
  text-align: left;
}

.faq details {
  border-bottom: 1px solid var(--muted);
  padding: 0.75rem 0;
}

.faq summary {
  cursor: pointer;
  letter-spacing: 0.04em;
}

.faq summary:hover,
.faq summary:focus {
  color: var(--accent);
}

.faq details p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.menu-intro {
  max-width: 560px;
  margin: 0 auto 1.5rem;
}
/* ---------- menu list ---------- */
.menu-category {
  margin-top: 2.5rem;
  text-align: left;
}

.menu-category-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.2em;
  text-align: center;
  margin-bottom: 1.25rem;
}

.menu-item {
  margin-bottom: 1.25rem;
}

.menu-item-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.menu-item-name {
  letter-spacing: 0.04em;
}

/* dotted leader between name and price */
.menu-item-dots {
  flex: 1;
  border-bottom: 1px dotted var(--muted);
  transform: translateY(-0.3em);
}

.menu-item-price {
  white-space: nowrap;
}

.menu-item-desc {
  font-size: 0.85rem;
}

/* ---------- whatsapp reservation button ---------- */
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.map-link {
  color: var(--accent);
}

.social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social a {
  color: var(--text);
  display: inline-flex;
  padding: 0.5rem;
}

.social a:hover,
.social a:focus {
  color: var(--accent);
}

/* mobile-only quick nav on the homepage, below the location block */
.home-nav {
  display: none;
  text-align: center;
  padding: 0.5rem 1rem 1rem;
}

.home-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.home-nav-list a {
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.15em;
}

.home-nav-list a.is-active {
  color: var(--accent);
}

@media (max-width: 767px) {
  .home-nav {
    display: block;
  }
}
/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  text-align: center;
  padding: 2.5rem 1rem;
  border-top: 1px solid var(--muted);
}

.site-footer p {
  margin: 0.4rem 0;
}

.site-footer a {
  color: var(--accent);
}

.footer-bottom {
  margin-top: 1.25rem;
  font-size: 0.85rem;
}

/* branch along the left edge of the menu content, wide screens only */
@media (min-width: 1024px) {
  .page-section .filiz {
    display: block;
    top: 1.5rem;
    left: -170px;
    width: 150px;
    /* branch runs to the bottom of the section, excess is cropped */
    max-height: calc(100% - 3rem);
    object-fit: cover;
    object-position: top center;
  }
}

/* ============================================================
   DESKTOP - 768px and up
   ============================================================ */
@media (min-width: 768px) {
  :root {
    --header-h: 192px;
  }

  .logo {
    font-size: 2.25rem;
  }

  /* logo stays on the left, menu is pulled down to the lower
     part of the header and starts where the hero photo starts */
  .site-header {
    justify-content: flex-start;
  }

  .logo {
    margin-left: 110px;
  }

  .site-nav {
    position: absolute;
    bottom: 24px;
    left: max(1.25rem, calc(50% - (100vh - var(--header-h)) * 0.75));
    right: 1.25rem;
  }

  .nav-list {
    justify-content: flex-start;
  }

  .page-section {
    position: relative;
  }

  .nav-toggle {
    display: none;
  }

  /* nav is a plain horizontal row on desktop */
  .site-nav {
    display: block;
  }

  .location h1 {
    font-size: 2.75rem;
  }

  .hours-line {
    font-size: 1.15rem;
  }

  .page-title {
    font-size: 2.25rem;
  }

  .btn-group {
    flex-direction: row;
    justify-content: center;
  }
}
