/*
Theme Name: Ghazi Catering
Theme URI: https://ghazicatering.example.com
Author: Ghazi Catering
Author URI: https://ghazicatering.example.com
Description: A clean, easy-to-edit WordPress theme replicating the Ghazi Catering operations dashboard. Edit colors, business info, menu items, and content directly from the WordPress admin (Appearance → Customize and Theme Settings).
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
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: ghazi-catering
Tags: business, food-and-drink, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ========================================================================
   GHAZI CATERING THEME — All visual styles live here.
   To change colors, edit the CSS variables in the :root block below
   OR use Appearance → Customize → Colors in the WordPress admin.
   ======================================================================== */

:root {
  --gc-bg: #f8f7f2;
  --gc-fg: #1a2a22;
  --gc-card: #ffffff;
  --gc-muted: #6b7a72;
  --gc-border: #e6e4dc;
  --gc-primary: #2f4f3e;        /* dark green */
  --gc-primary-foreground: #fbfaf3;
  --gc-accent: #d4a73a;          /* gold/brand accent */
  --gc-success: #3a8a5f;
  --gc-warning: #d49b2a;
  --gc-info: #3a78c8;
  --gc-danger: #c0432f;
  --gc-sidebar: #243a30;
  --gc-sidebar-fg: #e8e6dc;
  --gc-sidebar-muted: #9aaba2;
  --gc-radius: 12px;
  --gc-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
  --gc-font-display: 'Playfair Display', Georgia, serif;
  --gc-font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--gc-font-body);
  background: var(--gc-bg);
  color: var(--gc-fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: var(--gc-font-display); font-weight: 700; line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }
a { color: var(--gc-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* Layout */
.gc-container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.gc-shell { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
@media (max-width: 900px) { .gc-shell { grid-template-columns: 1fr; } }

/* Sidebar */
.gc-sidebar {
  background: var(--gc-sidebar);
  color: var(--gc-sidebar-fg);
  padding: 1.5rem 1rem;
  position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto;
}
@media (max-width: 900px) { .gc-sidebar { position: static; height: auto; } }
.gc-brand { display: flex; align-items: center; gap: 0.75rem; padding: 0 0.5rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 1rem; }
.gc-brand-logo { width: 40px; height: 40px; border-radius: 10px; background: var(--gc-accent); color: var(--gc-sidebar); display: grid; place-items: center; font-family: var(--gc-font-display); font-weight: 700; font-size: 1.25rem; }
.gc-brand-name { font-family: var(--gc-font-display); font-size: 1.15rem; font-weight: 700; color: #fff; }
.gc-brand-sub { font-size: 0.75rem; color: var(--gc-sidebar-muted); }
.gc-nav { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.gc-nav a { display: flex; align-items: center; gap: 0.75rem; padding: 0.65rem 0.85rem; border-radius: 8px; color: var(--gc-sidebar-fg); font-size: 0.92rem; transition: background 0.15s; }
.gc-nav a:hover, .gc-nav .current-menu-item > a, .gc-nav a.active { background: rgba(255,255,255,0.08); text-decoration: none; }
.gc-nav-icon { width: 18px; height: 18px; opacity: 0.85; }

/* Main */
.gc-main { display: flex; flex-direction: column; min-width: 0; }
.gc-header { background: var(--gc-card); border-bottom: 1px solid var(--gc-border); padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.gc-header-title { font-family: var(--gc-font-display); font-size: 1.35rem; margin: 0; }
.gc-header-actions { display: flex; gap: 0.5rem; align-items: center; }
.gc-content { padding: 1.5rem; flex: 1; }

/* Cards & components */
.gc-card { background: var(--gc-card); border: 1px solid var(--gc-border); border-radius: var(--gc-radius); padding: 1.25rem; box-shadow: var(--gc-shadow); }
.gc-grid { display: grid; gap: 1rem; }
.gc-grid-4 { grid-template-columns: repeat(4, 1fr); }
.gc-grid-3 { grid-template-columns: repeat(3, 1fr); }
.gc-grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1000px) { .gc-grid-4 { grid-template-columns: repeat(2, 1fr); } .gc-grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .gc-grid-4, .gc-grid-2 { grid-template-columns: 1fr; } }

.gc-stat-label { font-size: 0.8rem; color: var(--gc-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.gc-stat-value { font-family: var(--gc-font-display); font-size: 1.75rem; font-weight: 700; margin-top: 0.25rem; }
.gc-stat-delta { font-size: 0.8rem; color: var(--gc-success); margin-top: 0.25rem; }

.gc-btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.1rem; border-radius: 8px; background: var(--gc-primary); color: var(--gc-primary-foreground); font-weight: 500; border: 0; cursor: pointer; font-size: 0.9rem; transition: opacity 0.15s; }
.gc-btn:hover { opacity: 0.9; text-decoration: none; color: var(--gc-primary-foreground); }
.gc-btn-outline { background: transparent; border: 1px solid var(--gc-border); color: var(--gc-fg); }
.gc-btn-accent { background: var(--gc-accent); color: var(--gc-sidebar); }

.gc-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 500; }
.gc-badge-pending { background: #fff4d6; color: #8a6a14; }
.gc-badge-confirmed { background: #d6e6f7; color: #1d4a82; }
.gc-badge-delivered { background: #d6efe0; color: #1f5e3c; }

.gc-table { width: 100%; border-collapse: collapse; }
.gc-table th, .gc-table td { padding: 0.75rem 0.85rem; text-align: left; border-bottom: 1px solid var(--gc-border); font-size: 0.9rem; }
.gc-table th { color: var(--gc-muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* Hero (front page) */
.gc-hero { background: linear-gradient(135deg, var(--gc-primary), #1d2f25); color: #fff; padding: 4rem 1.5rem; text-align: center; border-radius: var(--gc-radius); }
.gc-hero h1 { color: #fff; }
.gc-hero p { color: rgba(255,255,255,0.85); max-width: 640px; margin: 0 auto 1.5rem; font-size: 1.1rem; }

/* Menu */
.gc-menu-section { margin-top: 2rem; }
.gc-menu-section h2 { border-left: 4px solid var(--gc-accent); padding-left: 0.75rem; }
.gc-menu-item { display: flex; justify-content: space-between; padding: 0.85rem 0; border-bottom: 1px dashed var(--gc-border); }
.gc-menu-item-name { font-weight: 500; }
.gc-menu-item-price { color: var(--gc-primary); font-weight: 600; }

/* Footer */
.gc-footer { background: var(--gc-sidebar); color: var(--gc-sidebar-fg); padding: 2rem 1.5rem; text-align: center; font-size: 0.9rem; }
.gc-footer a { color: var(--gc-accent); }

/* Mobile menu toggle */
.gc-menu-toggle { display: none; background: transparent; border: 1px solid var(--gc-border); padding: 0.5rem 0.75rem; border-radius: 8px; cursor: pointer; }
@media (max-width: 900px) {
  .gc-menu-toggle { display: inline-flex; }
  .gc-sidebar { display: none; }
  .gc-sidebar.is-open { display: block; }
}

/* WordPress core compat */
.alignleft { float: left; margin-right: 1rem; }
.alignright { float: right; margin-left: 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute; left: -9999px; }
.wp-block-image img { border-radius: var(--gc-radius); }
