/* ==========================================================================
   UEH LYDTEKNIKK AS — Professional Sound Engineering & Acoustic Consultancy
   Established Architecture & Technical Design System (Human Crafted)
   ========================================================================== */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Georgia", Cambria, "Times New Roman", Times, serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --color-primary: #0f172a;       /* Deep Slate Navy */
  --color-primary-light: #1e293b; /* Medium Slate */
  --color-accent: #c28e46;        /* Acoustic Amber Bronze */
  --color-accent-hover: #a37232;
  --color-accent-subtle: #fbf7ee;
  --color-accent-border: #e9d8b4;
  --color-secondary: #334155;     /* Dark Charcoal Text */
  --color-muted: #64748b;         /* Neutral Gray Text */
  --color-light-bg: #f8fafc;      /* Clean background */
  --color-card-bg: #ffffff;
  --color-border: #e2e8f0;
  --color-border-dark: #cbd5e1;
  --color-success: #15803d;
  --color-success-bg: #f0fdf4;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  --container-max: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-secondary);
  background-color: var(--color-light-bg);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--color-accent-hover);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   Notice Bar (Compliance & Information Hub Header)
   ========================================================================== */
.top-notice-bar {
  background-color: #0f172a;
  color: #cbd5e1;
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #1e293b;
  text-align: center;
}

.top-notice-bar a {
  color: #f8fafc;
  text-decoration: underline;
  font-weight: 500;
  margin-left: 0.35rem;
}

.top-notice-bar a:hover {
  color: var(--color-accent);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.75rem;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-emblem {
  width: 2.75rem;
  height: 2.75rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--color-secondary);
  padding: 0.4rem 0.2rem;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.nav-cta-btn {
  background-color: var(--color-primary);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-primary);
  transition: all 0.2s ease;
}

.nav-cta-btn:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--color-primary);
  cursor: pointer;
}

.mobile-menu-drawer {
  display: none;
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
  padding: 1rem 1.5rem;
}

.mobile-menu-drawer.open {
  display: block;
}

.mobile-menu-drawer a {
  display: block;
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary);
  border-bottom: 1px solid #f1f5f9;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 70%, #090d16 100%);
  color: #ffffff;
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background-color: rgba(194, 142, 70, 0.15);
  border: 1px solid rgba(194, 142, 70, 0.4);
  color: #f1d8a7;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.hero-title {
  color: #ffffff;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--color-accent);
}

.hero-lead {
  font-size: 1.125rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-accent);
  color: #ffffff !important;
}

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(194, 142, 70, 0.3);
}

.btn-outline {
  background-color: transparent;
  border-color: #475569;
  color: #ffffff !important;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #94a3b8;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-mono);
}

.metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.hero-visual-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-xl);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

/* Audio Visualizer Simulator */
.audio-spectrum-display {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 110px;
  background-color: #090d16;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid #1e293b;
  margin-bottom: 1.25rem;
}

.spectrum-bar {
  flex: 1;
  background: linear-gradient(to top, #0284c7, #c28e46, #ef4444);
  border-radius: 2px;
  transition: height 0.3s ease;
  min-height: 8px;
}

.spectrum-legend {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #64748b;
  font-family: var(--font-mono);
  margin-bottom: 1rem;
}

/* ==========================================================================
   Section Styles & Components
   ========================================================================== */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-kicker {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.6;
}

/* Feature & Discipline Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.tech-card {
  background-color: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent-border);
}

.tech-card-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  background-color: var(--color-accent-subtle);
  border: 1px solid var(--color-accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--color-accent);
  margin-bottom: 1.25rem;
}

.tech-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.tech-card p {
  color: var(--color-muted);
  font-size: 0.925rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.tech-spec-list {
  list-style: none;
  border-top: 1px solid #f1f5f9;
  padding-top: 1rem;
  margin-top: auto;
}

.tech-spec-list li {
  font-size: 0.8125rem;
  color: var(--color-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.tech-spec-list li::before {
  content: '✓';
  color: var(--color-accent);
  font-weight: bold;
}

/* ==========================================================================
   Interactive Calculator / Sound Tool Widget
   ========================================================================== */
.calculator-box {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin: 2rem 0;
}

.calc-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calc-body {
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.925rem;
  color: var(--color-primary);
  background-color: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(194, 142, 70, 0.15);
}

.calc-results-panel {
  background-color: var(--color-light-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-result-metric {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.calc-result-metric .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-mono);
}

.calc-result-metric .unit {
  font-size: 1rem;
  color: var(--color-accent);
  font-weight: 600;
}

/* ==========================================================================
   Engineering Standards & Authority Block
   ========================================================================== */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.standard-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border-top: 3px solid var(--color-accent);
}

.standard-code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.standard-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.standard-desc {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* ==========================================================================
   Accordion (FAQ & Specifications)
   ========================================================================== */
.faq-list {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: var(--color-accent);
}

.faq-button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
  color: var(--color-accent);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  display: none;
  padding: 0 1.5rem 1.5rem;
  color: var(--color-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  border-top: 1px solid #f8fafc;
}

.faq-item.active .faq-content {
  display: block;
}

/* ==========================================================================
   Content / Legal / Policy Pages
   ========================================================================== */
.policy-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 3.5rem 0;
  border-bottom: 1px solid #334155;
}

.policy-header h1 {
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.85rem;
  color: #cbd5e1;
}

.policy-content-wrapper {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin: 3rem auto;
  max-width: 960px;
  box-shadow: var(--shadow-sm);
}

.policy-content-wrapper h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.policy-content-wrapper h3 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.policy-content-wrapper ul, .policy-content-wrapper ol {
  margin-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.policy-content-wrapper li {
  margin-bottom: 0.4rem;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}

.legal-table th, .legal-table td {
  border: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  text-align: left;
}

.legal-table th {
  background-color: var(--color-light-bg);
  color: var(--color-primary);
  font-weight: 700;
}

.legal-badge-card {
  background-color: var(--color-accent-subtle);
  border: 1px solid var(--color-accent-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin: 1.5rem 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #0b1120;
  color: #94a3b8;
  padding-top: 4.5rem;
  border-top: 1px solid #1e293b;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}

.footer-col h4 {
  color: #f8fafc;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 0.65rem;
}

.footer-col ul a {
  color: #94a3b8;
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: #f8fafc;
}

.footer-company-desc {
  line-height: 1.6;
  margin-bottom: 1.25rem;
  color: #94a3b8;
}

.footer-registry-badge {
  display: inline-block;
  background-color: #1e293b;
  border: 1px solid #334155;
  color: #e2e8f0;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding: 1.75rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: #64748b;
}

.footer-disclaimer-text {
  max-width: 900px;
  margin: 0 auto 1rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #64748b;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .calc-body {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .standards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .policy-content-wrapper {
    padding: 1.5rem;
  }
  .standards-grid {
    grid-template-columns: 1fr;
  }
}
