/* style.css — HC Racing
   Sleek & premium motorsport theme
   Carbon black + platinum + racing red
*/

:root,
[data-theme='light'] {
  /* Surfaces — warm off-white */
  --color-bg: #f5f4f1;
  --color-surface: #ffffff;
  --color-surface-2: #efede9;
  --color-surface-offset: #e8e6e1;
  --color-surface-offset-2: #dddad4;
  --color-surface-dynamic: #d4d1cb;
  --color-divider: #d8d5d0;
  --color-border: #c9c6c0;

  /* Text — charcoal */
  --color-text: #1a1a1a;
  --color-text-muted: #6a6864;
  --color-text-faint: #a5a39e;
  --color-text-inverse: #f5f4f1;

  /* Primary Accent — Racing Red */
  --color-primary: #e10600;
  --color-primary-hover: #b80500;
  --color-primary-active: #9a0400;
  --color-primary-highlight: #fce8e6;

  /* Secondary Accent — Turquoise/Cyan (from Sparco suit) */
  --color-secondary: #00b8d4;
  --color-secondary-hover: #009ba8;
  --color-secondary-highlight: #e0f7fa;

  /* Secondary — platinum/silver */
  --color-accent: #8a8a8a;
  --color-accent-hover: #6a6a6a;

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

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

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.15);

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

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Inter', sans-serif;
  --font-body: 'General Sans', 'Inter', sans-serif;

  /* 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, 8rem);

  /* 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;
}

[data-theme='dark'] {
  --color-bg: #0a0a0a;
  --color-surface: #121212;
  --color-surface-2: #161616;
  --color-surface-offset: #1a1a1a;
  --color-surface-offset-2: #1e1e1e;
  --color-surface-dynamic: #2a2a2a;
  --color-divider: #1e1e1e;
  --color-border: #2a2a2a;

  --color-text: #e8e6e3;
  --color-text-muted: #8a8884;
  --color-text-faint: #555350;
  --color-text-inverse: #0a0a0a;

  --color-primary: #e10600;
  --color-primary-hover: #ff1a14;
  --color-primary-active: #c00a04;
  --color-primary-highlight: #2a1514;

  --color-secondary: #00d4e8;
  --color-secondary-hover: #00b8d4;
  --color-secondary-highlight: #0a2a30;

  --color-accent: #8a8a8a;
  --color-accent-hover: #aaaaaa;

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

/* System dark mode fallback */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0a0a0a;
    --color-surface: #121212;
    --color-surface-2: #161616;
    --color-surface-offset: #1a1a1a;
    --color-surface-offset-2: #1e1e1e;
    --color-surface-dynamic: #2a2a2a;
    --color-divider: #1e1e1e;
    --color-border: #2a2a2a;
    --color-text: #e8e6e3;
    --color-text-muted: #8a8884;
    --color-text-faint: #555350;
    --color-text-inverse: #0a0a0a;
    --color-primary: #e10600;
    --color-primary-hover: #ff1a14;
    --color-primary-active: #c00a04;
    --color-primary-highlight: #2a1514;
    --color-secondary: #00d4e8;
    --color-secondary-hover: #00b8d4;
    --color-secondary-highlight: #0a2a30;
    --color-accent: #8a8a8a;
    --color-accent-hover: #aaaaaa;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  }
}

/* === LAYOUT === */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-12));
}

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

/* === HEADER === */
.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-text) l c h / 0.08);
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-12));
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

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

.header__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
}

.header__logo-text span {
  color: var(--color-primary);
}

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

.nav__links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.nav__link {
  text-decoration: none;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--transition-interactive);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--color-text);
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-5);
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition:
    background var(--transition-interactive),
    transform var(--transition-interactive);
}

.nav__cta:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

.nav__cta:active {
  transform: translateY(0);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition-interactive);
}

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

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

@media (max-width: 768px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav--open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--color-surface);
    padding: var(--space-6) var(--space-4);
    gap: var(--space-4);
    border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
    box-shadow: var(--shadow-lg);
  }

  .nav--open .nav__cta {
    display: inline-flex;
    margin-top: var(--space-2);
  }
}

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

.hero__content {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-12));
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
  z-index: 2;
}

@media (min-width: 900px) {
  .hero__content {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-12);
    min-height: 80vh;
  }
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding-block: var(--space-20);
}

@media (min-width: 900px) {
  .hero__text {
    padding-block: var(--space-16);
  }
}

.hero__image-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Atmospheric glow behind the cut-out driver */
.hero__image-wrap::before {
  content: "";
  position: absolute;
  inset: -12% -6% -4%;
  background:
    radial-gradient(58% 52% at 50% 42%, oklch(from var(--color-primary) l c h / 0.28), transparent 70%),
    radial-gradient(70% 60% at 50% 62%, oklch(65% 0.12 205 / 0.16), transparent 72%);
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 899px) {
  .hero__image-wrap {
    order: -1;
    margin-bottom: var(--space-4);
  }
}

.hero__image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 30px 60px oklch(0% 0 0 / 0.7));
  /* soften the bottom crop so the driver melts into the dark */
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}

@media (max-width: 899px) {
  .hero__image {
    max-width: 26rem;
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: oklch(from var(--color-primary) l c h / 0.15);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 8px var(--color-primary);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  max-width: 14ch;
}

.hero__title span {
  color: var(--color-primary);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 50ch;
  margin-bottom: var(--space-8);
}

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

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.hero__meta-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-faint);
  font-weight: 600;
}

.hero__meta-value {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}

/* === SECTION COMMON === */
.section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

.section--offset {
  background: var(--color-surface);
}

.section__header {
  margin-bottom: var(--space-12);
}

.section__label {
  display: inline-block;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

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

@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-16);
  }
}

.about__text p {
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
}

.about__text p:first-child {
  color: var(--color-text);
  font-size: var(--text-lg);
  font-weight: 500;
}

.about__image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

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

/* === STATS === */
.stats {
  position: relative;
  overflow: hidden;
}

.stats__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: 0;
}

.stats__bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, var(--color-bg) 0%, oklch(from var(--color-bg) l c h / 0.85) 100%);
}

.stats__content {
  position: relative;
  z-index: 2;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .stats__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
}

.stat-card {
  padding: var(--space-8) var(--space-6);
  background: oklch(from var(--color-surface) l c h / 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-lg);
  text-align: left;
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-2);
}

.stat-card:nth-child(even) .stat-card__value {
  color: var(--color-secondary);
}

.stat-card__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* === NEWS === */
.news__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .news__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .news__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: oklch(from var(--color-primary) l c h / 0.3);
}

.news-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-card__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card__date {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-3);
}

.news-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
  line-height: 1.3;
}

.news-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  flex: 1;
}

.news-card__tag {
  display: inline-block;
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-card:nth-child(even) .news-card__tag {
  color: var(--color-secondary);
}

.news-card:nth-child(even):hover {
  border-color: oklch(from var(--color-secondary) l c h / 0.3);
}

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

@media (min-width: 768px) {
  .contact__grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: var(--space-16);
  }
}

.contact__info p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.contact__socials {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-8);
}

.contact__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1px solid oklch(from var(--color-text) l c h / 0.12);
  color: var(--color-text-muted);
  text-decoration: none;
  transition:
    color var(--transition-interactive),
    border-color var(--transition-interactive),
    background var(--transition-interactive);
}

.contact__social:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: oklch(from var(--color-primary) l c h / 0.08);
}

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

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

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

.form-field input,
.form-field textarea {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.12);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  font-family: var(--font-body);
  transition:
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive);
}

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

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

.btn-submit {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-8);
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition:
    background var(--transition-interactive),
    transform var(--transition-interactive);
}

.btn-submit:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
}

/* === FOOTER === */
.footer {
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
  padding-block: var(--space-12) var(--space-8);
}

.footer__inner {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-12));
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
}

.footer__logo span {
  color: var(--color-primary);
}

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

/* === SCROLL REVEALS === */
.reveal {
  opacity: 1;
}

@supports (animation-timeline: view()) {
  .reveal {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}

@keyframes reveal-fade {
  to {
    opacity: 1;
  }
}

.reveal-clip {
  opacity: 1;
}

@supports (animation-timeline: view()) {
  .reveal-clip {
    clip-path: inset(100% 0 0 0);
    animation: reveal-clip linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}

@keyframes reveal-clip {
  to {
    clip-path: inset(0 0 0 0);
  }
}

/* === SVG LOGO === */
.logo-svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.logo-svg path,
.logo-svg rect {
  stroke: currentColor;
}

/* === HERO INSTAGRAM LINK === */
.hero__instagram {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background var(--transition-interactive), transform var(--transition-interactive);
  margin-top: var(--space-2);
  align-self: flex-start;
  justify-content: center;
}

.hero__instagram:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
}

.hero__instagram:active {
  transform: translateY(0);
}

/* === SIMPLIFIED CONTACT === */
.contact__intro {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  margin-bottom: var(--space-12);
  max-width: 56ch;
  margin-inline: auto;
}

.contact-form {
  max-width: 560px;
  margin-inline: auto;
}

.contact__instagram-link {
  text-align: center;
  margin-top: var(--space-12);
  padding-top: var(--space-12);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
}

.contact__instagram-link p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
}

.instagram-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: background var(--transition-interactive), color var(--transition-interactive), transform var(--transition-interactive);
}

.instagram-cta:hover {
  background: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.instagram-cta:active {
  transform: translateY(0);
}

/* === FOOTER INSTAGRAM === */
.footer__instagram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive);
}

.footer__instagram:hover {
  color: var(--color-primary);
}

@media (min-width: 640px) {
  .footer__inner {
    gap: var(--space-4);
  }
}

/* === FORCE DARK THEME === */
html[data-theme='dark'] body {
  background-color: #0a0a0a;
  color: #e8e6e3;
}

/* === REMOVE LOGO SVG === */
.header__logo {
  text-decoration: none;
  color: var(--color-text);
}

.header__logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-lg);
  letter-spacing: -0.02em;
  color: var(--color-text);
}

/* === INSTAGRAM FEED === */
.instagram-feed {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

@media (min-width: 768px) {
  .instagram-feed {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
}

.instagram-feed__loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-20) var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.instagram-feed__error {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--space-16) var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.instagram-feed__error a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.instagram-feed__error a:hover {
  text-decoration: underline;
}

.ig-post {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}

.ig-post:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.ig-post__link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.ig-post__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.ig-post:hover .ig-post__image {
  transform: scale(1.05);
}

.ig-post__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: var(--space-3);
  background: linear-gradient(
    to bottom,
    transparent 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  opacity: 0;
  transition: opacity var(--transition-interactive);
}

.ig-post:hover .ig-post__overlay {
  opacity: 1;
}

.ig-post__caption {
  font-size: var(--text-xs);
  color: #fff;
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.ig-post__icon {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-full);
  color: #fff;
  opacity: 0;
  transition: opacity var(--transition-interactive);
}

.ig-post:hover .ig-post__icon {
  opacity: 1;
}
