/*
Theme Name: ShadowBird
Theme URI: https://shadow-bird.com
Author: ShadowBird
Description: Custom theme for Shadow Bird restaurant.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: shadowbird
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --color-bg:       #f8f2dc;
  --color-text:     #1a1208;
  --color-muted:    rgba(26, 18, 8, 0.5);
  --color-white:    #ffffff;
  --font-primary:   'Barlow Condensed', sans-serif;
  --font-weight-bold: 700;
  --font-weight-semi: 600;
  --radius-card:    14px;
  --spacing-xs:     0.5rem;
  --spacing-sm:     1rem;
  --spacing-md:     2rem;
  --spacing-lg:     3.5rem;
  --max-width:      720px;
}

/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 4vw, 2rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.5rem); }

p {
  margin-bottom: var(--spacing-sm);
  color: var(--color-text);
}

a {
  color: var(--color-text);
  text-decoration: none;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

a:hover {
  opacity: 0.5;
}

/* ============================================================
   LAYOUT - used by page.php / single.php
   ============================================================ */
.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--spacing-lg) var(--spacing-md);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-muted);
  padding: var(--spacing-sm) var(--spacing-md);
}

.site-header .header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .header-logo {
  width: clamp(60px, 15vw, 80px);
  height: auto;
  display: block;
}

.main-navigation ul {
  list-style: none;
  display: flex;
  gap: var(--spacing-md);
}

.main-navigation a {
  font-size: 0.85rem;
  letter-spacing: 0.3em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-muted);
  padding: var(--spacing-md);
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ============================================================
   POSTS & PAGES
   ============================================================ */
.entry-title {
  margin-bottom: var(--spacing-md);
}

.entry-content {
  font-size: 1rem;
}

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin-bottom: var(--spacing-sm);
}

/* ============================================================
   BLOCK EDITOR OVERRIDES
   Forces Gutenberg blocks to respect brand colours & font
   ============================================================ */
.wp-block-paragraph,
.wp-block-heading,
.wp-block-list,
.wp-block-quote {
  font-family: var(--font-primary);
  color: var(--color-text);
}

.wp-block-button__link {
  background-color: var(--color-text) !important;
  color: var(--color-bg) !important;
  font-family: var(--font-primary);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border-radius: var(--radius-card);
}

.wp-block-button__link:hover {
  opacity: 0.8;
}

/* ============================================================
   HOMEPAGE (front-page.php)
   ============================================================ */
body.home {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.home-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-logo {
  width: clamp(80px, 20vw, 110px);
  height: auto;
  margin-bottom: clamp(32px, 6vw, 56px);
  display: block;
}

.carousel {
  width: clamp(220px, 70vw, 280px);
  height: clamp(275px, 87.5vw, 350px);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: clamp(32px, 6vw, 56px);
  position: relative;
}

.carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.carousel img.active {
  opacity: 1;
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.carousel-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: background 0.4s ease;
}

.carousel-dots span.active {
  background: rgba(255,255,255,0.95);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.7);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: background 0.2s ease;
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.95);
}

.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

@media (max-width: 600px) {
  .carousel-btn { display: none; }
}

.home-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.home-links a {
  font-size: clamp(0.8rem, 2.5vw, 0.95rem);
}
