/*
Theme Name: Cedar Line Media
Theme URI: https://cedarlinemedia.com
Description: Corporate theme for Cedar Line Media — a digital media and communications company.
Version: 1.0.0
Author: Cedar Line Media
Author URI: https://cedarlinemedia.com
License: Private
Text Domain: clm
*/

/* ══════════════════════════════════════════
   VARIABLES & RESET
   ══════════════════════════════════════════ */
:root {
  --c-bg: #0c0f0e;
  --c-surface: #131917;
  --c-surface-2: #1a201e;
  --c-border: rgba(255,255,255,0.06);
  --c-border-light: rgba(255,255,255,0.1);
  --c-cedar: #2d5a45;
  --c-cedar-light: #3d7a5e;
  --c-brass: #b8976a;
  --c-brass-light: #d4b98a;
  --c-text: rgba(255,255,255,0.85);
  --c-text-dim: rgba(255,255,255,0.45);
  --c-text-muted: rgba(255,255,255,0.25);
  --c-white: #f0ede8;
  --f-display: 'EB Garamond', Georgia, serif;
  --f-body: 'Outfit', -apple-system, sans-serif;
  --max-w: 1200px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.7;
}

::selection { background: var(--c-cedar); color: var(--c-white); }

/* Noise overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }

/* ══════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(12,15,14,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--c-white);
}

.nav-logo-mark {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--c-brass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-brass);
}

.nav-logo-text {
  font-family: var(--f-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-text);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-text-dim);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--c-brass);
  transition: width 0.3s var(--ease);
}

.nav-links a:hover { color: var(--c-white); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: var(--c-text-dim); margin: 5px 0; transition: 0.3s; }

/* ══════════════════════════════════════════
   HERO
   ══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 48px 100px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(45,90,69,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border-light) 20%, var(--c-border-light) 80%, transparent);
}

.hero-content {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero-rule {
  width: 48px;
  height: 1px;
  background: var(--c-brass);
  margin-bottom: 32px;
  animation: fadeUp 1s var(--ease) both;
}

.hero h1 {
  font-family: var(--f-display);
  font-size: clamp(48px, 7vw, 96px);
  font-weight: 400;
  line-height: 1.05;
  color: var(--c-white);
  max-width: 800px;
  letter-spacing: -1px;
  animation: fadeUp 1s 0.1s var(--ease) both;
}

.hero h1 em {
  font-style: italic;
  color: var(--c-brass-light);
}

.hero-desc {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--c-text-dim);
  max-width: 520px;
  margin-top: 36px;
  animation: fadeUp 1s 0.25s var(--ease) both;
}

.hero-line {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, var(--c-brass), transparent);
  margin-top: 60px;
  animation: fadeUp 1s 0.45s var(--ease) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════ */
.section {
  padding: 120px 48px;
  position: relative;
}

.section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-border-light) 20%, var(--c-border-light) 80%, transparent);
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--c-brass);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--c-brass);
}

.section h2 {
  font-family: var(--f-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 400;
  color: var(--c-white);
  line-height: 1.15;
  max-width: 600px;
  margin-bottom: 32px;
}

.section p.lead {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--c-text-dim);
  max-width: 600px;
}

/* About grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 64px;
}

.about-stat {
  padding: 32px 0;
  border-top: 1px solid var(--c-border);
}

.about-stat-num {
  font-family: var(--f-display);
  font-size: 48px;
  font-weight: 400;
  color: var(--c-brass-light);
  margin-bottom: 8px;
}

.about-stat-label {
  font-size: 13px;
  font-weight: 300;
  color: var(--c-text-dim);
  letter-spacing: 0.5px;
}

/* Capabilities grid */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--c-border);
  margin-top: 64px;
}

.cap-card {
  background: var(--c-bg);
  padding: 48px 40px;
  transition: background 0.4s var(--ease);
}

.cap-card:hover { background: var(--c-surface); }

.cap-num {
  font-family: var(--f-display);
  font-size: 14px;
  color: var(--c-brass);
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.cap-card h3 {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--c-white);
  margin-bottom: 16px;
}

.cap-card p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--c-text-dim);
}

/* Principles */
.principles-list {
  margin-top: 64px;
}

.principle {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding: 36px 0;
  border-top: 1px solid var(--c-border);
}

.principle-label {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--c-white);
}

.principle-text {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  color: var(--c-text-dim);
}

/* Contact */
.contact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 48px;
}

.contact-method {
  padding: 32px 0;
  border-top: 1px solid var(--c-border);
}

.contact-method-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 12px;
}

.contact-method a {
  font-family: var(--f-display);
  font-size: 20px;
  color: var(--c-white);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-method a:hover { color: var(--c-brass-light); }

/* ══════════════════════════════════════════
   LEGAL PAGES
   ══════════════════════════════════════════ */
.legal-content { max-width: 800px; margin: 0 auto; }

.legal-content h1 {
  font-family: var(--f-display);
  font-size: 42px;
  font-weight: 400;
  color: var(--c-white);
  margin-bottom: 12px;
}

.legal-meta {
  font-size: 12px;
  color: var(--c-text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--c-border);
}

.legal-content h2 {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--c-white);
  margin: 48px 0 16px;
}

.legal-content h2:first-of-type { margin-top: 0; }

.legal-content p {
  font-size: 14px;
  font-weight: 300;
  line-height: 2;
  color: var(--c-text-dim);
  margin-bottom: 16px;
}

.legal-content ul {
  margin: 12px 0 20px 20px;
  list-style: none;
}

.legal-content li {
  font-size: 14px;
  font-weight: 300;
  line-height: 2;
  color: var(--c-text-dim);
  position: relative;
  padding-left: 16px;
}

.legal-content li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--c-brass);
}

/* ══════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════ */
.footer {
  padding: 60px 48px;
  border-top: 1px solid var(--c-border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-mark {
  width: 24px;
  height: 24px;
  border: 1px solid var(--c-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  font-size: 11px;
  color: var(--c-text-muted);
}

.footer-logo-text {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--c-text-muted);
}

.footer-copy {
  font-size: 11px;
  color: var(--c-text-muted);
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-text-muted);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover { color: var(--c-text); }

/* ══════════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════ */
@media (max-width: 900px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(12,15,14,0.98);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--c-border);
  }
  .hero, .section { padding-left: 24px; padding-right: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .cap-grid { grid-template-columns: 1fr; }
  .principle { grid-template-columns: 1fr; gap: 12px; }
  .contact-row { grid-template-columns: 1fr; gap: 40px; }
  .footer { padding: 40px 24px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
}
