/*
Theme Name: Magnitude Elementor
Theme URI: https://magnitude-loudspeakers.dk
Author: Magnitude Loudspeakers — Gert Christensen
Description: Premium Elementor-compatible WordPress theme for Magnitude Loudspeakers. Install this theme, then import the included Elementor template to get the full homepage design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: magnitude-elementor
Tags: dark, luxury, audio, premium, elementor
*/

/* ── GOOGLE FONTS ───────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS VARIABLES ──────────────────────────────────────────── */
:root {
  --gold:          #c8a96e;
  --gold-light:    #dfc08a;
  --gold-dark:     #a08550;
  --gold-muted:    rgba(200,169,110,0.08);
  --gold-border:   rgba(200,169,110,0.25);

  --bg-deep:       #0a0a0a;
  --bg-primary:    #0d0d0d;
  --bg-secondary:  #111111;
  --bg-elevated:   #161616;
  --bg-card:       #131313;
  --bg-surface:    #1a1a1a;

  --text-primary:   #f0ece4;
  --text-secondary: #b8b0a4;
  --text-muted:     #6a6560;

  --border-subtle:  rgba(255,255,255,0.05);
  --border-light:   rgba(255,255,255,0.10);

  --font-sans:  'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;

  --nav-height: 80px;
  --container-max: 1280px;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-full: 9999px;

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ── PAGE WRAPPER ───────────────────────────────────────────── */
#page-wrapper {
  min-height: 100vh;
}

/* Elementor pages: remove top padding that some themes add */
.elementor-page .site-content,
.elementor-page #content,
.elementor-page .entry-content {
  padding: 0;
  margin: 0;
}

/* ── NAVIGATION ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  height: var(--nav-height);
  transition: background var(--transition-base), border-color var(--transition-base), backdrop-filter var(--transition-base);
}
.site-header.scrolled {
  background: rgba(10,10,10,0.96);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-logo-name {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
}
.nav-logo-sub {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu li { margin: 0; }
.nav-menu a {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  text-decoration: none;
}
.nav-menu a:hover { color: var(--gold); }
.nav-cta { flex-shrink: 0; }
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  background: var(--gold);
  color: #0a0a0a;
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.nav-btn:hover {
  background: var(--gold-light);
  box-shadow: 0 8px 32px rgba(200,169,110,0.35);
  transform: translateY(-2px);
  color: #0a0a0a;
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
  border-radius: 2px;
}
/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  text-decoration: none;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu-close {
  position: absolute;
  top: 32px;
  right: 32px;
  background: none;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  color: var(--text-primary);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
  padding: 80px 0 32px;
  font-family: var(--font-sans);
}
.footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer-brand-desc {
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 16px 0;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: var(--text-muted);
  text-decoration: none;
}
.footer-social-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-deep);
}
.footer-social-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.footer-col-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  text-decoration: none;
}
.footer-links a:hover { color: var(--gold); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.footer-contact-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
  fill: none;
  flex-shrink: 0;
  margin-top: 2px;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copyright {
  font-size: 11px;
  color: var(--text-muted);
  margin: 0;
}
.footer-bottom-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-bottom-links a {
  font-size: 11px;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  text-decoration: none;
}
.footer-bottom-links a:hover { color: var(--gold); }

/* ── ELEMENTOR OVERRIDES ─────────────────────────────────────── */
/* Ensure Elementor sections go full-width */
.elementor-section.elementor-section-full_width .elementor-container {
  max-width: 100%;
}
/* Remove default margins on Elementor pages */
.elementor-page article.page {
  padding: 0;
}
/* Elementor canvas template: no header/footer */
.elementor-template-canvas .site-header,
.elementor-template-canvas .site-footer {
  display: none;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .nav-inner { padding: 0 20px; }
  .nav-menu, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-inner { padding: 0 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
