/*
Theme Name: SynthEdge Collective
Theme URI: https://synthedgecollective.example
Author: SynthEdge Collective
Description: Modern WordPress theme with dynamic ID-based links (no slugs), breadcrumbs, and custom logo in header/footer.
Version: 1.0.0
Requires PHP: 8.2
Text Domain: synthedge
*/

/* Base styles (shared across templates) */
:root {
  --brand-primary: #06b6d4; /* cyan */
  --brand-secondary: #7c3aed; /* purple */
  --brand-accent: #22d3ee;

  --bg: #f9fafb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e5e7eb;

  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
}

[data-theme="dark"] {
  --bg: #0b1220;
  --card: #0f172a;
  --text: #e5e7eb;
  --muted: #b3c0d6;
  --border: #1f2937;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Global */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.container { max-width: 1080px; margin: 0 auto; padding: 2rem 1rem 4rem; }

/* Header */
.site-header {
  position: sticky; top: 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; justify-content: initial;
  column-gap: 0.75rem; padding: 0.75rem 1rem; backdrop-filter: saturate(180%) blur(8px);
  background: linear-gradient(90deg, rgba(124,58,237,0.10), rgba(6,182,212,0.10)); border-bottom: 1px solid var(--border);
  z-index: 50;
}
.header-bar { grid-column: 1; display: flex; align-items: center; justify-content: flex-start; gap: 0.5rem; }
.header-primary { grid-column: 2; display: flex; align-items: center; justify-content: center; gap: 0.5rem; position: relative; }
.header-tools { grid-column: 3; display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; }
.brand { display: flex; align-items: center; gap: 0.4rem; text-decoration: none; color: var(--text); }
.brand-name { font-weight: 700; letter-spacing: 0.2px; color: var(--text); }
.custom-logo { height: 32px; width: 32px; object-fit: contain; border-radius: 6px; }
/* Enlarged logo specifically in header */
.site-header .custom-logo { height: 150px; width: 150px; }

/* Theme switch UI */
.theme-switch { display: grid; grid-template-rows: auto auto; align-items: center; justify-items: center; gap: 0.25rem; }
.theme-label { font-size: 0.8rem; color: var(--muted); }

.nav { display: flex; gap: 0.5rem; justify-content: center; }
.nav-link { color: var(--text); text-decoration: none; padding: 0.35rem 0.55rem; border-radius: 8px; font-size: 0.9rem; }
.nav-link:hover { color: var(--text); background: rgba(124,58,237,0.1); }
.nav-link.active { color: var(--text); background: rgba(6,182,212,0.15); }

/* Hamburger (mobile nav toggle) */
.hamburger {
  display: none; height: 36px; width: 36px; border: 1px solid var(--border);
  border-radius: 10px; background: var(--card); align-items: center; justify-content: center;
}
.hamburger img { display: block; width: 22px; height: 22px; }

/* Header Businesses strip */
.header-businesses { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; width: 100%; padding-top: 0.5rem; }
.biz-badge { display: inline-flex; align-items: center; padding: 0.3rem 0.6rem; border-radius: 999px; border: 1px solid var(--border); background: rgba(6,182,212,0.15); color: var(--text); text-decoration: none; font-size: 0.85rem; }
.biz-badge:hover { background: rgba(124,58,237,0.2); }

/* Breadcrumbs */
.breadcrumbs { margin-top: 0.75rem; color: var(--muted); font-size: 0.95rem; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs .sep { margin: 0 0.4rem; color: var(--muted); }

/* Hero */
.hero { text-align: center; padding: 3rem 1rem; }
.hero h1 { font-size: 2.5rem; margin: 0; }
.hero p { margin: 0.75rem auto 1.25rem; max-width: 800px; color: var(--muted); }
.hero-actions { display: flex; gap: 0.8rem; justify-content: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.6rem 1rem; border-radius: 10px; border: 1px solid var(--border); text-decoration: none; color: var(--text); background: var(--card); box-shadow: var(--shadow); }
.btn.primary { background: linear-gradient(90deg, var(--brand-secondary), var(--brand-primary)); color: white; border: none; }
.btn.ghost { background: transparent; }

/* Sections */
.section { margin-top: 2rem; }
.section h2, .section h1 { margin-bottom: 1rem; }
.section.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.section-subtitle { color: var(--muted); }

/* Accordion */
.accordion details { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 0.8rem; background: var(--card); box-shadow: var(--shadow); }
.accordion summary { cursor: pointer; padding: 1rem; font-weight: 600; list-style: none; background: linear-gradient(90deg, rgba(124,58,237,0.12), rgba(6,182,212,0.12)); }
.accordion .details-content { padding: 1rem; color: var(--muted); }
.bullet-list { margin: 0.5rem 0 0.25rem; padding-left: 1.1rem; }
.bullet-list li { margin: 0.4rem 0; }

/* Cards & Grid */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1rem; box-shadow: var(--shadow); }
.grid { display: grid; gap: 1rem; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid.two, .grid.three { grid-template-columns: 1fr; } }

/* Founder */
.founder-hero { display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 1rem; }
.founder-photo { width: 160px; height: 160px; object-fit: cover; border-radius: 16px; border: 2px solid var(--brand-secondary); }

/* Contact */
.contact-form { display: grid; gap: 0.9rem; margin-top: 1rem; }
.form-row { display: grid; gap: 0.35rem; }
.form-row input, .form-row select, .form-row textarea { padding: 0.7rem 0.8rem; border: 1px solid var(--border); border-radius: 10px; background: var(--card); color: var(--text); }
.form-actions { display: flex; gap: 0.8rem; }
.contact-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1rem; }
@media (max-width: 800px) { .contact-meta { grid-template-columns: 1fr; } }

/* Alerts */
.alert { border: 1px solid var(--border); border-radius: 10px; padding: 0.75rem 1rem; margin-top: 1rem; background: var(--card); box-shadow: var(--shadow); }
.alert.success { border-color: #16a34a; background: rgba(22, 163, 74, 0.12); color: #14532d; }
.alert.error { border-color: #ef4444; background: rgba(239, 68, 68, 0.12); color: #7f1d1d; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 1.25rem 1rem; text-align: center; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 0.5rem; }
.footer-logo { display: inline-flex; align-items: center; gap: 0.5rem; justify-content: center; }

/* Responsive images */
img { max-width: 100%; height: auto; }

/* Responsive */
@media (min-width: 1025px) {
  /* Desktop breakpoint */
  .nav { gap: 0.6rem; }
  .nav-link { padding: 0.5rem 0.75rem; font-size: 1rem; }
}

@media (max-width: 1024px) {
  .container { padding: 1.5rem 1rem 3rem; }
  .hero h1 { font-size: 2.25rem; }
  .nav { gap: 0.6rem; }
  .nav-link { padding: 0.45rem 0.65rem; font-size: 0.95rem; }
  .section h1 { font-size: 2.1rem; }
  .section .section-subtitle { font-size: 1rem; }
}

@media (max-width: 768px) {
  /* Mobile breakpoint: tools row (hamburger left, toggle right), nav overlay, logo below */
  .site-header { display: flex; flex-direction: column; }
  .header-tools { order: 1; width: 100%; display: flex; align-items: center; justify-content: space-between; }
  .header-primary { order: 2; width: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
  .header-bar { order: 3; width: 100%; display: flex; justify-content: center; }
  /* Mobile dropdown: slide in from left */
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 60;
    display: grid; gap: 0.5rem;
    background: var(--card);
    padding: 0.75rem 1rem; border-bottom: 1px solid var(--border);
    transform: translateX(-100%);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform 250ms ease, opacity 200ms ease, visibility 0s linear 250ms;
  }
  body[data-menu="open"] .nav {
    transform: translateX(0);
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: transform 250ms ease, opacity 200ms ease;
  }
  .hamburger { display: inline-flex; }
  .theme-switch { margin-top: 0; }
  .theme-switch { margin-top: 0.5rem; }
  .section.narrow { max-width: 100%; }
  .hero h1 { font-size: 2rem; }
  .founder-hero { grid-template-columns: 1fr; text-align: center; }
  .founder-photo { margin: 0 auto; }
}

@media (max-width: 560px) {
  .brand-name { display: none; }
  .hero { padding: 2rem 1rem; }
  .btn { padding: 0.5rem 0.8rem; }
}