/*
Theme Name: Sent Ones Global Network
Theme URI: https://sent-ones-global-network.kdrobinson7.chatgpt.site
Author: Sent Ones Global Network
Description: Dark and gold theme for Sent Ones Global Network. Header and footer are built in; all page content is edited with Elementor (import the included page templates). Colors can be adjusted in the variables at the top of this file.
Version: 1.1.0
Requires at least: 5.8
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: sent-ones
*/

:root {
  --bg: #121211;
  --bg-alt: #1a1a18;
  --text: #ece8df;
  --muted: #a9a496;
  --gold: #c9a24b;
  --gold-soft: #e0c07a;
  --line: rgba(201, 162, 75, .25);
  --max: 1100px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Helvetica Neue", Arial, sans-serif; line-height: 1.7; font-size: 17px;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-soft); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; line-height: 1.2; color: #fff; }
h1 { font-size: clamp(2.6rem, 7vw, 5rem); margin: .3em 0; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 2em 0 .5em; }
h3 { font-size: 1.35rem; margin: 1.6em 0 .4em; color: var(--gold-soft); }
em { color: var(--gold); }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 10px; top: 10px; background: var(--gold); color: #000; padding: 8px 12px; z-index: 100; }

.topbar { text-align: center; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 8px 16px; border-bottom: 1px solid var(--line); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(18,18,17,.95); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header-inner { max-width: var(--max); margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; font-family: Georgia, serif; letter-spacing: .15em; font-size: .95rem; }
.brand img { height: 44px; width: auto; }
.brand small { display: block; color: var(--gold); letter-spacing: .3em; font-size: .7rem; }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; }
.main-nav a { color: var(--text); font-size: .9rem; }
.main-nav a:hover { color: var(--gold); text-decoration: none; }
.btn, .header-cta { display: inline-block; padding: 10px 22px; border: 1px solid var(--gold); color: var(--gold); border-radius: 2px; }
.btn:hover, .header-cta:hover { background: var(--gold); color: #000; text-decoration: none; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); padding: 8px 12px; cursor: pointer; }

.site-main { max-width: var(--max); margin: 0 auto; padding: 40px 20px 80px; }
.page-title { text-align: center; margin-top: 1em; }
.entry-content > p, .entry-content li { max-width: 760px; }
.entry-content ul { padding-left: 1.2em; }
.entry-content blockquote { border-left: 3px solid var(--gold); margin: 2em 0; padding: 10px 24px; font-family: Georgia, serif; font-size: 1.3rem; color: var(--gold-soft); background: var(--bg-alt); }
.entry-content figure { margin: 1.5em 0; }
.entry-content img { border: 1px solid var(--line); }

/* Gallery and flyer grids */
.page-gallery .entry-content, .page-events .entry-content { }
.page-gallery figure.wp-block-image, .page-events figure.wp-block-image { display: inline-block; width: calc(33.333% - 12px); margin: 6px; vertical-align: top; }
.page-gallery figure.wp-block-image img, .page-events figure.wp-block-image img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.page-events figure.wp-block-image img { aspect-ratio: auto; }

.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 40px 20px; text-align: center; color: var(--muted); font-size: .9rem; }
.footer-links a { margin: 0 10px; }

@media (max-width: 800px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; width: 100%; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 10px; padding: 12px 0; }
  .header-cta { display: none; }
  .page-gallery figure.wp-block-image, .page-events figure.wp-block-image { width: calc(50% - 12px); }
}

/* ---------- Elementor compatibility ---------- */
[id] { scroll-margin-top: 90px; }
.elementor-page .site-main { max-width: none; padding: 0; }
.elementor-button:hover, .elementor-button:focus { text-decoration: none; }
.elementor-widget-text-editor a { color: var(--gold); }
.elementor-widget-text-editor a:hover { color: var(--gold-soft); }
.elementor-widget-image img { height: auto; }

/* Gallery page: square thumbnails. Events page: keep flyer proportions. */
.page-gallery .elementor-widget-image-gallery .gallery-item img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.page-events .elementor-widget-image-gallery .gallery-item img { aspect-ratio: auto; width: 100%; height: auto; }
.elementor-widget-image-gallery .gallery-item img { border: 1px solid var(--line); }
