/* style.css — ConEng Systems and Smart Solutions
   Art Direction: Modern Luxury
   Deep navy/charcoal dark theme, gold accents, elegant serif headings
   Fonts: Instrument Serif (display) + Work Sans (body)
*/

/* === Design Tokens === */
:root,
[data-theme='light'] {
  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);
  --text-hero: clamp(3rem, 0.5rem + 7vw, 7rem);

  /* 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;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Instrument Serif', Georgia, serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content Widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Light Mode Colors — Warm Ivory + Navy + Gold */
  --color-bg: #f7f5f1;
  --color-surface: #efede8;
  --color-surface-2: #e8e5df;
  --color-surface-offset: #f2f0eb;
  --color-surface-dynamic: #ddd9d1;
  --color-divider: #d4d0c8;
  --color-border: #c9c4ba;

  --color-text: #1a1d24;
  --color-text-muted: #5a5d66;
  --color-text-faint: #9a9da6;
  --color-text-inverse: #f7f5f1;

  --color-navy: #162444;
  --color-navy-hover: #0d1a35;
  --color-navy-active: #08122a;

  --color-accent: #b8923a;
  --color-accent-hover: #9a7a2e;
  --color-accent-active: #806524;
  --color-accent-highlight: #ede4cd;

  --shadow-sm: 0 1px 3px oklch(0.2 0.01 80 / 0.06);
  --shadow-md: 0 4px 16px oklch(0.2 0.01 80 / 0.08);
  --shadow-lg: 0 12px 40px oklch(0.2 0.01 80 / 0.12);
}

/* Dark Mode — Primary (Modern Luxury) */
[data-theme='dark'] {
  --color-bg: #0a0d14;
  --color-surface: #111722;
  --color-surface-2: #161e2b;
  --color-surface-offset: #0d111a;
  --color-surface-dynamic: #1e2738;
  --color-divider: #1e2738;
  --color-border: #2a3548;

  --color-text: #e8e4dc;
  --color-text-muted: #8a8d96;
  --color-text-faint: #5a5d66;
  --color-text-inverse: #0a0d14;

  --color-navy: #2a3a5c;
  --color-navy-hover: #3a4f7a;
  --color-navy-active: #456190;

  --color-accent: #c9a55c;
  --color-accent-hover: #d4b06a;
  --color-accent-active: #b8904a;
  --color-accent-highlight: #2a2820;

  --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.3);
  --shadow-md: 0 4px 16px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 12px 40px oklch(0 0 0 / 0.5);
}

/* System dark mode fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0a0d14;
    --color-surface: #111722;
    --color-surface-2: #161e2b;
    --color-surface-offset: #0d111a;
    --color-surface-dynamic: #1e2738;
    --color-divider: #1e2738;
    --color-border: #2a3548;
    --color-text: #e8e4dc;
    --color-text-muted: #8a8d96;
    --color-text-faint: #5a5d66;
    --color-text-inverse: #0a0d14;
    --color-navy: #2a3a5c;
    --color-navy-hover: #3a4f7a;
    --color-navy-active: #456190;
    --color-accent: #c9a55c;
    --color-accent-hover: #d4b06a;
    --color-accent-active: #b8904a;
    --color-accent-highlight: #2a2820;
    --shadow-sm: 0 1px 3px oklch(0 0 0 / 0.3);
    --shadow-md: 0 4px 16px oklch(0 0 0 / 0.4);
    --shadow-lg: 0 12px 40px oklch(0 0 0 / 0.5);
  }
}

/* === Layout Utilities === */
.container {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container-wide {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container-narrow {
  max-width: var(--content-narrow);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-32));
}

.section-sm {
  padding-block: clamp(var(--space-8), 5vw, var(--space-16));
}

/* === Header / Navigation === */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid oklch(from var(--color-border) l c h / 0.5);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.header--hidden {
  transform: translateY(-100%);
}

.header-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 72px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.header-logo svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.header-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.header-logo-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.header-logo-tag {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}

.nav-link {
  display: block;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-md);
  letter-spacing: 0.02em;
  font-weight: 500;
}

.nav-link:hover,
.nav-link[aria-current='page'] {
  color: var(--color-text);
}

.nav-link[aria-current='page'] {
  color: var(--color-accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-list {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-bg);
    padding: var(--space-4);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    border-top: 1px solid var(--color-border);
  }

  .nav-list--open {
    transform: translateX(0);
  }

  .nav-link {
    padding: var(--space-4);
    font-size: var(--text-base);
    border-bottom: 1px solid oklch(from var(--color-border) l c h / 0.5);
    border-radius: 0;
  }

  .header-actions .btn {
    display: none;
  }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  border-radius: var(--radius-md);
  letter-spacing: 0.02em;
  min-height: 44px;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-bg);
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}

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

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

.btn-navy {
  background: var(--color-navy);
  color: var(--color-text-inverse);
  border-color: var(--color-navy);
}

[data-theme='dark'] .btn-navy {
  color: #e8e4dc;
}

.btn-navy:hover {
  background: var(--color-navy-hover);
  border-color: var(--color-navy-hover);
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    oklch(from var(--color-bg) l c h / 0.6) 0%,
    oklch(from var(--color-bg) l c h / 0.85) 60%,
    var(--color-bg) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
  padding-block: var(--space-20);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--color-accent);
}

.hero-title {
  font-size: var(--text-hero);
  font-family: var(--font-display);
  line-height: 1.05;
  margin-bottom: var(--space-6);
  max-width: 14ch;
  color: var(--color-text);
}

.hero-title em {
  font-style: italic;
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-bottom: var(--space-8);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* === Section Headings === */
.section-header {
  margin-bottom: var(--space-12);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--color-accent);
}

.section-title {
  font-size: var(--text-2xl);
  font-family: var(--font-display);
  line-height: 1.1;
  margin-bottom: var(--space-4);
  max-width: 20ch;
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.6;
}

/* === Department Cards === */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: var(--space-4);
}

.dept-card {
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid oklch(from var(--color-border) l c h / 0.5);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.dept-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
}

.dept-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-surface-2);
}

.dept-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dept-card:hover .dept-card-img img {
  transform: scale(1.05);
}

.dept-card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.dept-card-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.dept-card-logo svg {
  width: 28px;
  height: 28px;
  color: var(--color-accent);
}

.dept-card-name {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
}

.dept-card-title {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  color: var(--color-text);
}

.dept-card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
}

.dept-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 600;
  margin-top: var(--space-2);
}

.dept-card-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-interactive);
}

.dept-card:hover .dept-card-link svg {
  transform: translateX(4px);
}

/* === Stats === */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: var(--space-8);
  border-top: 1px solid oklch(from var(--color-border) l c h / 0.5);
  border-bottom: 1px solid oklch(from var(--color-border) l c h / 0.5);
  padding-block: var(--space-12);
}

.stat {
  text-align: left;
}

.stat-value {
  font-size: var(--text-2xl);
  font-family: var(--font-display);
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

/* === About / Values === */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: var(--space-6);
}

.value-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-border) l c h / 0.3);
}

.value-icon {
  width: 40px;
  height: 40px;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.value-title {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  margin-bottom: var(--space-2);
}

.value-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* === Two-Column Layout === */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 768px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.split-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.split-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === Projects Gallery === */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
  gap: var(--space-4);
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-border) l c h / 0.3);
  text-decoration: none;
  color: inherit;
}

.project-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-card-img img {
  transform: scale(1.05);
}

.project-card-body {
  padding: var(--space-5);
}

.project-card-tag {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.project-card-title {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  color: var(--color-text);
}

/* === Services Detail === */
.service-section {
  padding-block: clamp(var(--space-12), 5vw, var(--space-20));
  border-bottom: 1px solid oklch(from var(--color-border) l c h / 0.3);
}

.service-section:last-child {
  border-bottom: none;
}

.service-header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.service-logo {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  color: var(--color-accent);
}

.service-name {
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.service-title {
  font-size: var(--text-xl);
  font-family: var(--font-display);
  margin-bottom: var(--space-3);
}

.service-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 65ch;
}

.service-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.service-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid oklch(from var(--color-border) l c h / 0.3);
}

.service-feature svg {
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.service-feature-text {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.5;
}

/* === Contact === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.contact-item svg {
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item-label {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-1);
}

.contact-item-value {
  font-size: var(--text-base);
  color: var(--color-text);
}

.contact-item-value a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid oklch(from var(--color-accent) l c h / 0.3);
}

.contact-item-value a:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--color-surface);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-border) l c h / 0.3);
}

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

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.form-input,
.form-select,
.form-textarea {
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-family: var(--font-body);
  color: var(--color-text);
  min-height: 44px;
}

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

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px oklch(from var(--color-accent) l c h / 0.15);
}

/* === HR / Careers === */
.careers-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.career-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-border) l c h / 0.3);
  transition: border-color var(--transition-interactive);
}

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

.career-info {
  flex: 1;
}

.career-title {
  font-size: var(--text-lg);
  font-family: var(--font-display);
  margin-bottom: var(--space-1);
}

.career-meta {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.career-meta span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

@media (max-width: 640px) {
  .career-card {
    flex-direction: column;
    align-items: stretch;
  }
}

/* === CTA Section === */
.cta-section {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--color-bg) 0%, oklch(from var(--color-bg) l c h / 0.9) 50%, var(--color-bg) 100%);
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-narrow);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.cta-title {
  font-size: var(--text-2xl);
  font-family: var(--font-display);
  margin-bottom: var(--space-4);
}

.cta-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 52ch;
  margin-inline: auto;
}

.cta-actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* === Footer === */
.footer {
  background: var(--color-surface-offset);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-16) var(--space-8);
}

.footer-inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-brand-logo svg {
  width: 36px;
  height: 36px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.footer-brand-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 40ch;
  line-height: 1.6;
}

.footer-col-title {
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-list a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}

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

.footer-bottom {
  border-top: 1px solid oklch(from var(--color-border) l c h / 0.5);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
}

.footer-social a:hover {
  color: var(--color-accent);
  background: var(--color-surface);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

/* === Page Hero === */
.page-hero {
  padding-block: clamp(var(--space-12), 6vw, var(--space-24));
  border-bottom: 1px solid oklch(from var(--color-border) l c h / 0.3);
}

.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.page-hero-eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--color-accent);
}

.page-hero-title {
  font-size: var(--text-2xl);
  font-family: var(--font-display);
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.page-hero-subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 60ch;
  line-height: 1.5;
}

/* === Animations === */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
}

.reveal.visible {
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* === Utility === */
.text-center {
  text-align: center;
}

.mx-auto {
  margin-inline: auto;
}

.mt-8 {
  margin-top: var(--space-8);
}

.mt-12 {
  margin-top: var(--space-12);
}

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

.full-bleed {
  max-width: var(--content-full);
  width: 100%;
}

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