/*
Theme Name: ARU Simple
Theme URI: https://aru.net.au
Author: ARU
Author URI: https://aru.net.au
Description: A simple WordPress theme for ARU restaurant - converted from Sage/Blade theme
Version: 1.0.0
Requires at least: 5.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: aru-simple
*/

/* ========================================
   CSS Custom Properties (from Tailwind config)
   ======================================== */
:root {
  /* Colors */
  --aru-dark: #0d100c;
  --aru-darker: #0a0c09;
  --aru-light: #ebe7dd;
  --aru-primary: #9c7054;
  --aru-secondary: #4a5568;
  --aru-page: rgba(13, 16, 12, 0.5);
  --aru-page-trans: rgba(13, 16, 12, 0.85);

  /* Fonts */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'DM Mono', monospace;

  /* Spacing */
  --spacing-unit: 1rem;

  /* Max widths */
  --max-w-aru: 640px;
  --max-w-lg: 860px;
  --max-w-bigger: 1100px;
  --max-w-fuller: 1400px;
  --max-w-full: 100%;
}

/* ========================================
   Base Styles
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-serif);
  background-color: var(--aru-dark);
  color: var(--aru-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Typography
   ======================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 300;
  margin: 0 0 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
  letter-spacing: 0.1em;
}

h2 {
  font-size: 2.25rem;
  letter-spacing: 0.05em;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--aru-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--aru-primary);
}

/* ========================================
   Layout
   ======================================== */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: var(--max-w-bigger);
  margin: 0 auto;
  padding: 0 1rem;
}

.content-block {
  padding: 2rem 1rem;
}

@media (min-width: 768px) {
  .content-block {
    padding: 4rem 2rem;
  }
}

/* Max width variants */
.max-w-aru { max-width: var(--max-w-aru); margin-left: auto; margin-right: auto; }
.max-w-lg { max-width: var(--max-w-lg); margin-left: auto; margin-right: auto; }
.max-w-bigger { max-width: var(--max-w-bigger); margin-left: auto; margin-right: auto; }
.max-w-fuller { max-width: var(--max-w-fuller); margin-left: auto; margin-right: auto; }

/* ========================================
   Header
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem;
  transition: background-color 0.3s ease;
}

.site-header.scrolled {
  background-color: var(--aru-page-trans);
}

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

.site-logo {
  width: 80px;
  height: auto;
}

.site-logo img {
  width: 100%;
  height: auto;
}

/* ========================================
   Navigation
   ======================================== */
.main-nav {
  display: none;
}

@media (min-width: 1024px) {
  .main-nav {
    display: block;
  }
}

.main-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Mobile menu toggle */
.menu-toggle {
  display: block;
  background: none;
  border: none;
  color: var(--aru-light);
  cursor: pointer;
  padding: 0.5rem;
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--aru-dark);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-menu li {
  margin: 1.5rem 0;
}

.mobile-menu a {
  font-family: var(--font-serif);
  font-size: 2rem;
  letter-spacing: 0.1em;
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--aru-light);
  font-size: 2rem;
  cursor: pointer;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background-color: var(--aru-darker);
  padding: 3rem 1rem;
}

.footer-inner {
  max-width: var(--max-w-bigger);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-section h3 {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  color: var(--aru-primary);
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin: 0.5rem 0;
}

.footer-copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(235, 231, 221, 0.1);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(235, 231, 221, 0.5);
}

/* ========================================
   Buttons
   ======================================== */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem 2rem;
  border: 1px solid var(--aru-light);
  background: transparent;
  color: var(--aru-light);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn:hover {
  background-color: var(--aru-light);
  color: var(--aru-dark);
}

.btn-primary {
  background-color: var(--aru-primary);
  border-color: var(--aru-primary);
}

.btn-primary:hover {
  background-color: var(--aru-light);
  border-color: var(--aru-light);
  color: var(--aru-dark);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-background img,
.hero-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(13, 16, 12, 0.3), rgba(13, 16, 12, 0.7));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem;
}

.hero-logo {
  width: 200px;
  max-width: 80%;
  margin: 0 auto 2rem;
}

.hero-logo img {
  width: 100%;
  height: auto;
}

.hero-tagline {
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

/* ========================================
   Content & Gallery Component
   ======================================== */
.content-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .content-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .content-gallery.reverse {
    direction: rtl;
  }

  .content-gallery.reverse > * {
    direction: ltr;
  }
}

.content-gallery-text {
  padding: 2rem 0;
}

.content-gallery-text h2 {
  margin-bottom: 1.5rem;
}

.content-gallery-images {
  position: relative;
}

/* ========================================
   Gallery / Carousel
   ======================================== */
.gallery {
  width: 100%;
}

.gallery-main {
  margin-bottom: 1rem;
}

.gallery-main img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

.gallery-thumb {
  flex: 0 0 80px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.gallery-thumb:hover,
.gallery-thumb.active {
  opacity: 1;
}

.gallery-thumb img {
  width: 100%;
  height: 60px;
  object-fit: cover;
}

/* Flickity overrides */
.flickity-enabled {
  outline: none;
}

.flickity-viewport {
  overflow: hidden;
}

.flickity-slider {
  position: absolute;
  width: 100%;
  height: 100%;
}

.flickity-page-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  list-style: none;
  padding: 0;
}

.flickity-page-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(235, 231, 221, 0.3);
  cursor: pointer;
}

.flickity-page-dots .dot.is-selected {
  background-color: var(--aru-light);
}

/* ========================================
   Menu Component
   ======================================== */
.menu-section {
  margin-bottom: 3rem;
}

.menu-section-title {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--aru-primary);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(235, 231, 221, 0.2);
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  gap: 1rem;
}

.menu-item-name {
  font-size: 1.125rem;
}

.menu-item-description {
  font-size: 0.875rem;
  color: rgba(235, 231, 221, 0.7);
  margin-top: 0.25rem;
}

.menu-item-price {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  white-space: nowrap;
}

/* ========================================
   Events Component
   ======================================== */
.events-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .events-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.event-card {
  background-color: rgba(235, 231, 221, 0.05);
  padding: 1.5rem;
}

.event-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--aru-primary);
  margin-bottom: 0.5rem;
}

.event-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.event-excerpt {
  font-size: 0.9rem;
  color: rgba(235, 231, 221, 0.8);
  margin-bottom: 1rem;
}

/* ========================================
   Subscribe Component
   ======================================== */
.subscribe {
  background-color: var(--aru-darker);
  padding: 2rem;
  text-align: center;
}

.subscribe h3 {
  margin-bottom: 1rem;
}

.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .subscribe-form {
    flex-direction: row;
  }
}

.subscribe-form input[type="email"] {
  flex: 1;
  padding: 1rem;
  border: 1px solid rgba(235, 231, 221, 0.3);
  background: transparent;
  color: var(--aru-light);
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.subscribe-form input[type="email"]::placeholder {
  color: rgba(235, 231, 221, 0.5);
}

/* SevenRooms widget container */
#sr-subscription-root {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ========================================
   Contact / Reservation
   ======================================== */
.contact-section {
  text-align: center;
}

.contact-info {
  margin-bottom: 2rem;
}

.contact-info p {
  margin: 0.5rem 0;
}

.contact-hours {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.reservation-widget {
  margin: 2rem 0;
}

/* ========================================
   Popup / Modal
   ======================================== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--aru-page-trans);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-content {
  background-color: var(--aru-dark);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  position: relative;
}

.popup-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--aru-light);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ========================================
   Announcement Banner
   ======================================== */
.announcement {
  background-color: var(--aru-primary);
  color: var(--aru-light);
  padding: 1rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.announcement a {
  text-decoration: underline;
}

/* ========================================
   Paragraph Sections
   ======================================== */
.paragraph-sections {
  max-width: var(--max-w-lg);
  margin: 0 auto;
}

.paragraph-section {
  margin-bottom: 3rem;
}

.paragraph-section h3 {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--aru-primary);
  margin-bottom: 1rem;
}

.paragraph-section-content {
  line-height: 1.8;
}

.paragraph-section-content p {
  margin-bottom: 1rem;
}

/* ========================================
   Simple Page Content
   ======================================== */
.simple-page {
  max-width: var(--max-w-aru);
  margin: 0 auto;
  padding: 4rem 1rem;
}

.simple-page h1 {
  text-align: center;
  margin-bottom: 2rem;
}

.simple-page-content {
  line-height: 1.8;
}

.simple-page-content p {
  margin-bottom: 1.5rem;
}

/* ========================================
   Sub Navigation
   ======================================== */
.sub-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
  flex-wrap: wrap;
}

.sub-nav a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.sub-nav a:hover,
.sub-nav a.active {
  border-color: var(--aru-light);
}

/* ========================================
   Full Gallery (Masonry-style)
   ======================================== */
.full-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .full-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .full-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}

.full-gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
}

.full-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.full-gallery-item:hover img {
  transform: scale(1.05);
}

/* ========================================
   404 Page
   ======================================== */
.error-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.error-404 h1 {
  font-size: 6rem;
  margin-bottom: 1rem;
}

.error-404 p {
  margin-bottom: 2rem;
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-4 { padding: 1rem; }
.p-8 { padding: 2rem; }

.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

.m-0 { margin: 0; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.overflow-hidden { overflow: hidden; }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

.transition { transition: all 0.3s ease; }

.cursor-pointer { cursor: pointer; }

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
