/* ═══════════════════════════════════════════════════════════════
   OneStopEnergy — Main Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --ose-sky:        #0C4A6E;
  --ose-sky-mid:    #0369A1;
  --ose-sky-light:  #E0F2FE;
  --ose-sky-50:     #F0F9FF;
  --ose-sun:        #F59E0B;
  --ose-sun-light:  #FEF3C7;
  --ose-sun-dark:   #D97706;
  --ose-leaf:       #15803D;
  --ose-leaf-light: #DCFCE7;
  --ose-dark:       #1E293B;
  --ose-slate:      #334155;
  --ose-mid:        #64748B;
  --ose-light:      #F1F5F9;
  --ose-border:     #E2E8F0;
  --ose-white:      #FFFFFF;
  --ose-font-display: 'Manrope', sans-serif;
  --ose-font-body:    'Noto Sans', sans-serif;
  --ose-section-y:  80px;
  --ose-gap:        24px;
  --ose-radius:     12px;
  --ose-radius-sm:  8px;
  --ose-max-w:      1140px;
}

/* ── Global reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--ose-font-body);
  color: var(--ose-slate);
  line-height: 1.6;
  background: var(--ose-white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ose-sky-mid); text-decoration: none; }
a:hover { color: var(--ose-sky); }

/* ── Header / Nav ──────────────────────────────────────────── */
.ose-header {
  background: var(--ose-white);
  border-bottom: 1px solid var(--ose-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.ose-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.ose-header__logo {
  font-family: var(--ose-font-display);
  font-size: 1.15rem;
  color: var(--ose-sky);
  text-decoration: none;
}

.ose-header__nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}

.ose-header__nav a {
  font-family: var(--ose-font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ose-slate);
  text-decoration: none;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.ose-header__nav a:hover,
.ose-header__nav .current-menu-item a {
  color: var(--ose-sky);
  border-bottom-color: var(--ose-sun);
}

/* Mobile toggle */
.ose-header__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.ose-header__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ose-slate);
  border-radius: 2px;
  transition: 0.2s;
}

/* ── Layout ────────────────────────────────────────────────── */
.ose-container {
  max-width: var(--ose-max-w);
  margin: 0 auto;
  padding: 0 var(--ose-gap);
}

.ose-section { padding: var(--ose-section-y) 0; }
.ose-section--alt { background: var(--ose-sky-50); }
.ose-section--dark { background: var(--ose-sky); color: var(--ose-white); }

/* ── Typography ────────────────────────────────────────────── */
.ose-page h1, .ose-page h2, .ose-page h3, .ose-page h4 {
  font-family: var(--ose-font-display);
  font-weight: 700;
  color: var(--ose-dark);
  line-height: 1.2;
  margin: 0 0 16px 0;
}
.ose-page h1 { font-size: 2.5rem; font-weight: 800; }
.ose-page h2 { font-size: 1.75rem; }
.ose-page h3 { font-size: 1.25rem; }
.ose-page p { margin: 0 0 16px 0; font-size: 1rem; }

.ose-accent { color: var(--ose-sun); }
.ose-blue { color: var(--ose-sky); }
.ose-lead { font-size: 1.15rem; color: var(--ose-mid); max-width: 640px; }

.ose-tag {
  display: inline-block;
  background: var(--ose-sky);
  color: var(--ose-white);
  font-family: var(--ose-font-display);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.ose-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ose-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--ose-radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}
.ose-btn--primary { background: var(--ose-sun); color: var(--ose-dark); }
.ose-btn--primary:hover { background: var(--ose-sun-dark); color: var(--ose-white); transform: translateY(-1px); }
.ose-btn--outline { background: transparent; color: var(--ose-sky); border: 2px solid var(--ose-sky); }
.ose-btn--outline:hover { background: var(--ose-sky); color: var(--ose-white); }
.ose-btn--white { background: var(--ose-white); color: var(--ose-sky); }
.ose-btn--white:hover { background: var(--ose-sky-light); }

/* ── Cards ─────────────────────────────────────────────────── */
.ose-card {
  background: var(--ose-white);
  border: 1px solid var(--ose-border);
  border-radius: var(--ose-radius);
  padding: 28px 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ose-card:hover { border-color: var(--ose-sun); box-shadow: 0 4px 20px rgba(0,0,0,0.06); }
.ose-card__icon {
  width: 48px; height: 48px;
  background: var(--ose-sky-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.ose-card__title { font-family: var(--ose-font-display); font-weight: 700; font-size: 1.1rem; color: var(--ose-sky); margin-bottom: 8px; }
.ose-card__text { font-size: 0.9rem; color: var(--ose-mid); line-height: 1.5; }
.ose-card__status {
  display: inline-block;
  font-family: var(--ose-font-display);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 4px;
  margin-top: 12px;
}
.ose-card__status--done { background: var(--ose-leaf-light); color: var(--ose-leaf); }
.ose-card__status--progress { background: var(--ose-sun-light); color: var(--ose-sun-dark); }
.ose-card__status--planned { background: var(--ose-light); color: var(--ose-mid); }

/* ── Grids ─────────────────────────────────────────────────── */
.ose-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ose-gap); }
.ose-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ose-gap); }

/* ── Hero ──────────────────────────────────────────────────── */
.ose-hero {
  padding: 100px 0 80px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(245,158,11,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(3,105,161,0.06) 0%, transparent 50%),
    linear-gradient(175deg, var(--ose-white) 0%, var(--ose-sky-50) 100%);
}
.ose-hero__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.ose-hero h1 { font-size: 2.75rem; margin-bottom: 20px; }
.ose-hero__actions { display: flex; gap: 12px; margin-top: 24px; }

/* ── Footer ────────────────────────────────────────────────── */
.ose-footer { background: var(--ose-sky); color: var(--ose-white); padding: 40px 0; }
.ose-footer__inner { display: flex; justify-content: space-between; align-items: center; }
.ose-footer a { color: var(--ose-sun-light); text-decoration: none; }
.ose-footer a:hover { color: var(--ose-sun); }
.ose-footer__small { font-size: 0.8rem; opacity: 0.7; }

/* ── Forms ──────────────────────────────────────────────────── */
.ose-form-group { margin-bottom: 20px; }
.ose-form-group label {
  display: block;
  font-family: var(--ose-font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ose-dark);
  margin-bottom: 6px;
}
.ose-form-group input,
.ose-form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--ose-border);
  border-radius: var(--ose-radius-sm);
  font-family: var(--ose-font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.ose-form-group input:focus,
.ose-form-group textarea:focus {
  outline: none;
  border-color: var(--ose-sky-mid);
  box-shadow: 0 0 0 3px rgba(3,105,161,0.1);
}
.ose-form-group textarea { min-height: 120px; resize: vertical; }

/* ── FAQ Accordion ─────────────────────────────────────────── */
.ose-page .ose-faq-category { margin-bottom: 32px; }
.ose-page .ose-faq-category h3 { font-family: var(--ose-font-display); font-weight: 700; font-size: 1.15rem; color: var(--ose-sky); margin-bottom: 16px; }
.ose-page details.ose-faq-item { border: 1px solid var(--ose-border); border-radius: var(--ose-radius-sm); margin-bottom: 8px; overflow: hidden; transition: border-color 0.2s; background: var(--ose-white); }
.ose-page details.ose-faq-item:hover { border-color: var(--ose-sun); }
.ose-page details.ose-faq-item summary.ose-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  background: var(--ose-white);
  font-family: var(--ose-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ose-dark);
  list-style: none;
  list-style-type: none;
  border: none;
  outline: none;
}
.ose-page details.ose-faq-item summary.ose-faq-q::-webkit-details-marker { display: none; }
.ose-page details.ose-faq-item summary.ose-faq-q::marker { display: none; content: ""; }
.ose-page details.ose-faq-item summary.ose-faq-q::after { content: "+"; font-size: 1.3rem; color: var(--ose-mid); transition: transform 0.2s; flex-shrink: 0; margin-left: 16px; }
.ose-page details[open].ose-faq-item summary.ose-faq-q::after { content: "\2212"; }
.ose-page .ose-faq-a { padding: 0 20px 16px; font-size: 0.92rem; color: var(--ose-mid); line-height: 1.65; }
.ose-page .ose-faq-a p { margin-bottom: 10px; }
.ose-page .ose-faq-a ul { margin: 8px 0 12px 20px; list-style: disc; }
.ose-page .ose-faq-a li { margin-bottom: 4px; }
.ose-page .ose-faq-a ol { margin: 8px 0 12px 20px; list-style: decimal; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --ose-section-y: 48px; }
  .ose-page h1 { font-size: 1.75rem; }
  .ose-page h2 { font-size: 1.35rem; }
  .ose-hero__inner { grid-template-columns: 1fr; text-align: center; }
  .ose-hero__actions { justify-content: center; flex-wrap: wrap; }
  .ose-grid-2, .ose-grid-3 { grid-template-columns: 1fr; }
  .ose-footer__inner { flex-direction: column; gap: 16px; text-align: center; }

  /* Mobile nav */
  .ose-header__toggle { display: flex; }
  .ose-header__nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--ose-white);
    border-bottom: 1px solid var(--ose-border);
    padding: 16px var(--ose-gap);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .ose-header__nav.is-open { display: block; }
  .ose-header__nav ul { flex-direction: column; gap: 16px; }
}

/* ── WP admin bar fix ──────────────────────────────────────── */
.admin-bar .ose-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .ose-header { top: 46px; }
}
