/* =========================================================
   EpicWorks — SHELL STYLESHEET (FIXED)
   This file styles ONLY the outer document (index.html)
   It does NOT attempt to style iframe contents.
   ========================================================= */


/* =========================================================
   1. Design tokens
   ========================================================= */
:root {
  --bg: #fbfbfa;
  --surface: #ffffff;

  --text: #141414;
  --text-muted: #4b4b4b;

  --line: rgba(20,20,20,0.12);

  --accent: #1f3a5f;

  --container: 1120px;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;

  --radius: 16px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}


/* =========================================================
   2. Base
   ========================================================= */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
}

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

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


/* =========================================================
   3. Accessibility
   ========================================================= */
.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  z-index: 1000;
}

.skip-link:focus {
  top: 12px;
}


/* =========================================================
   4. Layout helpers
   ========================================================= */
.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}


/* =========================================================
   5. Header & Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,251,250,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-sm) 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand__logo {
  width: 24px;
  height: 24px;
}

.brand__name {
  font-weight: 600;
}

.nav {
  display: flex;
  gap: var(--space-sm);
}

.nav__link {
  font-size: 14px;
  color: var(--text-muted);
}

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

.nav__cta {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px;
}


/* =========================================================
   6. IFRAME SECTION STACK
   ========================================================= */
.section-frame {
  display: block;
  width: 100%;
  border: none;

  /* This creates visual rhythm between sections */
  margin-block: var(--space-lg);
  
  /* Loading skeleton animation */
  background: linear-gradient(90deg, var(--surface) 25%, rgba(255,255,255,0.5) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer-load 2s infinite;
  min-height: 300px;
}

@keyframes shimmer-load {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* =========================================================
   7. Footer
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-lg) 0 var(--space-md);
  background: var(--surface);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
}

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

.footer__nav a {
  font-size: 14px;
  color: var(--text-muted);
}

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

.footer__bottom {
  margin-top: var(--space-md);
  font-size: 13px;
  color: var(--text-muted);
}


/* =========================================================
   8. Mobile
   ========================================================= */
.nav__cta--mobile {
  display: none;
}

@media (max-width: 720px) {
  .nav {
    display: none;
  }

  .nav__cta--mobile {
    display: inline-flex;
  }

  .footer__inner {
    flex-direction: column;
  }
}
/* =========================================================
   End of stylesheet
   ========================================================= */