/* ============================================================
   Ocean Fish Bar & Restaurant — Design System
   LocalWebsCoder CMS
   ============================================================ */

/* --- Fonts ------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;600;700&display=swap');

/* ============================================================
   1. CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Colour palette */
  --orange:       #B8962E;
  --orange-dark:  #9A7D24;
  --orange-light: #D4AF37;
  --orange-pale:  rgba(184,150,46,.08);
  --navy:         #1a2744;
  --navy-light:   #263a5e;
  --navy-dark:    #111b30;
  --white:        #ffffff;
  --grey-50:      #f8f9fa;
  --grey-100:     #f1f3f5;
  --grey-200:     #e9ecef;
  --grey-300:     #dee2e6;
  --grey-500:     #adb5bd;
  --grey-700:     #495057;
  --grey-900:     #212529;

  /* Semantic tokens */
  --bg:           var(--white);
  --bg-alt:       var(--grey-50);
  --card:         var(--white);
  --border:       var(--grey-200);
  --accent:       var(--orange);
  --accent-hover: var(--orange-dark);
  --text:         var(--grey-900);
  --text-muted:   var(--grey-700);
  --text-light:   var(--grey-500);
  --heading:      var(--navy);

  /* Typography */
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;

  /* Layout */
  --container-max: 1200px;
  --container-pad: 1.5rem;
  --radius:        8px;
  --radius-lg:     16px;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,.08);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.12);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover {
  color: var(--accent-hover);
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
}

.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }

/* ============================================================
   4. LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.section {
  padding: 4rem 0;
}

.section-alt {
  padding: 4rem 0;
  background-color: var(--bg-alt);
}

/* Flex helpers */
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.flex-wrap   { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1  { gap: 0.5rem; }
.gap-2  { gap: 1rem; }
.gap-3  { gap: 1.5rem; }
.gap-4  { gap: 2rem; }

/* Grid */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   5. COMPONENTS — Nav
   ============================================================ */
.nav {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 0;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
}

.nav-brand span {
  color: var(--orange);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: rgba(255,255,255,.85);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .2s;
}
.nav-links a:hover {
  color: var(--orange);
}

/* ============================================================
   6. COMPONENTS — Hero
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.hero p {
  color: rgba(255,255,255,.8);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ============================================================
   7. COMPONENTS — Cards
   ============================================================ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--orange-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--orange);
}

/* ============================================================
   8. COMPONENTS — Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--orange-dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover {
  background: var(--grey-100);
  color: var(--navy);
}

/* ============================================================
   9. COMPONENTS — Footer
   ============================================================ */
.footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.7);
  padding: 3rem 0 1.5rem;
}

.footer a {
  color: rgba(255,255,255,.7);
}
.footer a:hover {
  color: var(--orange);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,.4);
}

/* ============================================================
   10. COMPONENTS — Forms
   ============================================================ */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-pale);
}

/* ============================================================
   11. UTILITIES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

/* ============================================================
   12. COMPONENTS — About Section
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-content p {
  color: var(--text-muted);
  line-height: 1.8;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .about-image {
    order: -1;
  }
}

/* ============================================================
   13. COMPONENTS — Reviews
   ============================================================ */
.review-stars {
  color: var(--orange);
  font-size: 1.2rem;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.review-author {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-light);
  margin: 0;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--grey-100);
}

#reviews .card {
  display: flex;
  flex-direction: column;
}

/* ============================================================
   14. COMPONENTS — Offers & Promotions
   ============================================================ */
.offer-card {
  position: relative;
  background: var(--card);
  border: 2px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.offer-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(0,0,0,.1);
  transform: translateY(-4px);
}
.offer-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: .3rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}
.offer-title {
  color: var(--heading);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin: .75rem 0 .5rem;
}
.offer-desc {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}
.offer-price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ============================================================
   15. COMPONENTS — Facebook Feed & Social
   ============================================================ */
/* Social two-column grid */
.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) {
  .social-grid { grid-template-columns: 1fr; }
}

.social-info p { font-size: .95rem; line-height: 1.7; }

.social-links-list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.social-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow .2s, border-color .2s;
}
.social-link-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.social-link-card strong { display: block; font-size: .95rem; }
.social-link-card small { color: var(--text-muted); font-size: .8rem; }
.social-link-icon {
  width: 44px; height: 44px;
  background: #1877F2;
  color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.social-cta { margin-top: .5rem; }

/* Facebook feed embed */
.fb-feed-wrap {
  display: flex;
  justify-content: center;
}
.fb-feed-wrap .fb-page,
.fb-feed-wrap .fb-page span,
.fb-feed-wrap .fb-page iframe {
  width: 100% !important;
}

/* ============================================================
   14. COMPONENTS — Mobile Nav Toggle
   ============================================================ */
.nav-toggle {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 768px) {
  .nav-links.nav-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.1);
    box-shadow: var(--shadow-lg);
    z-index: 100;
  }
  .nav-links.nav-open li {
    padding: 0.5rem 0;
  }
  .nav .container {
    position: relative;
  }
}

/* ============================================================
   13. COMPONENTS — Contact Form
   ============================================================ */
.contact-form .grid-2 {
  gap: 1rem;
}

/* ============================================================
   14. COMPONENTS — Alerts
   ============================================================ */
.alert {
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.alert-success {
  background: rgba(34, 197, 94, .08);
  border: 1px solid rgba(34, 197, 94, .2);
  color: #15803d;
}

.alert-error {
  background: rgba(239, 68, 68, .08);
  border: 1px solid rgba(239, 68, 68, .2);
  color: #b91c1c;
}

/* ============================================================
   15. UTILITIES (continued)
   ============================================================ */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
