/* ============================================================
   CJL Media — style.css
   ============================================================ */

/* 1. CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Colors */
  --bg:           #0d0d0d;
  --bg-surface:   #141414;
  --bg-surface-2: #1c1c1c;
  --border:       #2a2a2a;
  --border-hover: #3a3a3a;
  --accent:       #e8a020;
  --accent-dim:   rgba(232, 160, 32, 0.12);
  --accent-glow:  rgba(232, 160, 32, 0.18);
  --text:         #f0f0f0;
  --text-muted:   #888;
  --text-dim:     #555;
  --error:        #f05050;
  --error-dim:    rgba(240, 80, 80, 0.1);
  --success:      #22c55e;

  /* Typography */
  --font-display: 'Montserrat', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --container: 1160px;
  --gutter:    clamp(1.25rem, 5vw, 2.5rem);
  --nav-h:     72px;

  /* Radii */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 32px var(--accent-glow);

  /* Transitions */
  --t:      200ms ease;
  --t-slow: 400ms ease;
}

/* 2. RESET
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
input, select, textarea { font: inherit; }

/* 3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--text);
}

.text-accent { color: var(--accent); }

/* 4. LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-24);
}

/* 5. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: all var(--t);
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #000;
}
.btn--primary:hover {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}
.btn--primary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--outline {
  background: transparent;
  border-color: var(--border-hover);
  color: var(--text);
}
.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
}
.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

/* 6. CARD
   ============================================================ */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-8);
  transition: border-color var(--t-slow), box-shadow var(--t-slow), transform var(--t-slow);
}

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

/* 7. NAV
   ============================================================ */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--t), backdrop-filter var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-mark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.nav__link {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--t);
  text-decoration: none;
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--text);
}

.nav__link--cta {
  background: var(--accent);
  color: #000;
  padding: 0.5rem 1.25rem;
  border-radius: var(--r-full);
  font-weight: 700;
}

.nav__link--cta:hover {
  background: transparent;
  color: var(--accent);
  outline: 2px solid var(--accent);
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  z-index: 110;
}

.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t), width var(--t);
  transform-origin: center;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* 8. FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--space-12);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer__brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--space-3);
  max-width: 280px;
}

.footer__nav {
  display: flex;
  gap: var(--space-8);
}

.footer__nav a {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--t);
}

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

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-6);
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* ============================================================
   SECTIONS
   ============================================================ */

/* 9. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Subtle noise/gradient bg */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 65% 50%, rgba(232, 160, 32, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 10% 20%, rgba(26, 140, 255, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
  padding-block: var(--space-20);
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__heading {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
}

.hero__subhead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.hero__services-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  font-size: 0.8125rem;
  color: var(--text-dim);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.divider-dot { color: var(--accent); }

/* Hero Visual (CSS art) */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__visual-inner {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
}

.hero__visual-box {
  position: absolute;
  border-radius: var(--r-lg);
  opacity: 0.9;
}

.hero__visual-box--1 {
  inset: 15% 10% 30% 5%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border: 1px solid rgba(26, 140, 255, 0.2);
  box-shadow: 0 8px 40px rgba(26, 140, 255, 0.15);
}

.hero__visual-box--2 {
  inset: 35% 5% 10% 25%;
  background: linear-gradient(135deg, #1a0f00 0%, #2d1a00 50%, #3d2400 100%);
  border: 1px solid rgba(232, 160, 32, 0.25);
  box-shadow: 0 8px 40px rgba(232, 160, 32, 0.12);
}

.hero__visual-box--3 {
  inset: 5% 30% 55% 45%;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
}

.hero__visual-ring {
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  border: 1px solid rgba(232, 160, 32, 0.15);
  box-shadow: inset 0 0 60px rgba(232, 160, 32, 0.05);
}

/* Scroll hint */
.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-dim), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* 10. ABOUT
   ============================================================ */
.about {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.about__layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--space-16);
  align-items: start;
}

.about__left {
  position: sticky;
  top: calc(var(--nav-h) + var(--space-8));
}

.about__left .section-title {
  margin-top: 0;
}

.about__description {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-10);
  max-width: 560px;
}

.about__serves {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.about__serve-card {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--space-6);
  transition: border-color var(--t);
}

.about__serve-card:hover {
  border-color: var(--border-hover);
}

.about__serve-card svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

.about__serve-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--text);
}

.about__serve-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* 11. SERVICES
   ============================================================ */
.services__header {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.services__subhead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-top: var(--space-4);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-6);
}

.service-card {
  grid-column: span 2;
}

/* Center the bottom 2 cards under the top 3 */
.service-card:nth-child(4) { grid-column: 2 / 4; }
.service-card:nth-child(5) { grid-column: 4 / 6; }

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  background: var(--accent-dim);
  border: 1px solid rgba(232, 160, 32, 0.2);
  color: var(--accent);
  flex-shrink: 0;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}

.service-card__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-block: var(--space-2);
}

.service-card__list li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-left: var(--space-5);
  position: relative;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.service-card__cta {
  margin-top: auto;
  align-self: flex-start;
}

/* 12. CONTACT
   ============================================================ */
.contact {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.contact__header {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: var(--space-16);
}

.contact__subhead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-top: var(--space-4);
}

.contact__layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--space-12);
  align-items: start;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.form-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.required { color: var(--accent); }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  transition: border-color var(--t), box-shadow var(--t);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-dim);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: var(--border-hover);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 160, 32, 0.12);
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-dim);
}

.form-textarea { resize: vertical; min-height: 130px; }

.form-error {
  font-size: 0.8125rem;
  color: var(--error);
  min-height: 1.2em;
}

/* Custom select */
.form-select-wrapper {
  position: relative;
}

.form-select-wrapper::after {
  content: '';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 6px;
  background: var(--text-dim);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  pointer-events: none;
  transition: background var(--t);
}

.form-select-wrapper:focus-within::after {
  background: var(--accent);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-select option {
  background: var(--bg-surface-2);
  color: var(--text);
}

.form__submit {
  width: 100%;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 0.9375rem;
  margin-top: var(--space-2);
}

.form__disclaimer {
  font-size: 0.8125rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: var(--space-4);
}

/* Contact sidebar */
.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.contact__info-card {
  padding: var(--space-6);
}

.contact__info-card h3 {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: var(--space-4);
  color: var(--text);
}

.contact__info-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.contact__info-card strong { color: var(--accent); }

.contact__info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact__info-list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.contact__info-list svg {
  flex-shrink: 0;
  color: var(--accent);
}

.contact__info-list a {
  color: var(--text-muted);
  transition: color var(--t);
}

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

.contact__steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact__steps li {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.contact__steps li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(232, 160, 32, 0.25);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* 13. SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger for grid children */
.services__grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.services__grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.services__grid .reveal:nth-child(4) { transition-delay: 0.24s; }
.services__grid .reveal:nth-child(5) { transition-delay: 0.32s; }

/* 14. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about__layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .about__left {
    position: static;
  }
}

@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    text-align: center;
  }
  .hero__subhead { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__services-list { justify-content: center; }
  .hero__visual { display: none; }
  .hero__scroll-hint { display: none; }

  .contact__layout {
    grid-template-columns: 1fr;
  }
  .contact__info { order: -1; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .section { padding-block: var(--space-16); }

  /* Mobile nav */
  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(280px, 80vw);
    background: var(--bg-surface);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-6);
    padding: var(--space-12) var(--space-8);
    transform: translateX(100%);
    transition: transform var(--t-slow);
    z-index: 105;
  }

  .nav__links.is-open {
    transform: translateX(0);
  }

  .nav__link {
    font-size: 1rem;
    color: var(--text);
  }

  .nav__link--cta {
    padding: 0.75rem 1.5rem;
  }

  /* Services grid: 2 columns on tablet */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) {
    grid-column: span 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-6);
  }

  .footer__nav {
    flex-wrap: wrap;
    gap: var(--space-4) var(--space-6);
  }
}

@media (max-width: 480px) {
  .hero__heading { font-size: clamp(2rem, 10vw, 2.5rem); }
  .hero__actions { flex-direction: column; align-items: center; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .services__grid { grid-template-columns: 1fr; gap: var(--space-4); }
  .service-card,
  .service-card:nth-child(4),
  .service-card:nth-child(5) { grid-column: 1; }
  .card { padding: var(--space-6); }
}
