/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'Inter', Roboto, sans-serif; font-weight: 400; line-height: 1.6; color: #1A1A1A; background: #E0E0E0; -webkit-font-smoothing: antialiased; }
:root {
  --primary: #1A2A3A;
  --accent: #FF6B35;
  --bg: #E0E0E0;
  --text-primary: #1A1A1A;
  --text-secondary: #4A4A4A;
  --border: #C0C0C0;
  --overlay: rgba(26,42,58,0.8);
  --success: #27AE60;
  --warning: #F39C12;
  --font-headings: 'Oswald', Impact, sans-serif;
  --font-body: 'Inter', Roboto, sans-serif;
  --scale: 1.25;
  --max-width: 1280px;
  --header-h: 72px;
  --nav-toggle-size: 28px;
}

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 { font-family: var(--font-headings); font-weight: 700; line-height: 1.2; color: var(--text-primary); }
h1 { font-size: calc(1rem * var(--scale) * var(--scale) * var(--scale) * var(--scale)); }
h2 { font-size: calc(1rem * var(--scale) * var(--scale) * var(--scale)); }
h3 { font-size: calc(1rem * var(--scale) * var(--scale)); }
h4 { font-size: calc(1rem * var(--scale)); }
p { margin-bottom: 0.75rem; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover, a:focus-visible { color: #E55B2A; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; display: block; }

/* ── Skip link ── */
.skip-link { position: absolute; top: -1000px; left: 0; background: var(--primary); color: #fff; padding: 0.5rem 1rem; z-index: 1000; }
.skip-link:focus { top: 0; }

/* ── Scroll Progress ── */
.scroll-progress { position: fixed; top: 0; left: 0; width: 0%; height: 4px; background: var(--accent); z-index: 9999; transition: width 0.1s; pointer-events: none; }

/* ── Site Header ── */
.site-header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: transparent; transition: background 0.4s, box-shadow 0.4s; height: var(--header-h); }
.site-header.scrolled { background: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; height: 100%; }
.site-logo { display: flex; align-items: baseline; text-decoration: none; color: #fff; font-family: var(--font-headings); letter-spacing: 1px; }
.logo-icon { font-size: 1.6rem; font-weight: 700; background: var(--accent); color: var(--primary); padding: 0.15rem 0.4rem; border-radius: 2px; }
.logo-text { font-size: 1.4rem; margin-left: 0.3rem; }
.site-nav .nav-list { display: flex; list-style: none; gap: 0; }
.site-nav a { display: block; padding: 0.75rem 1rem; color: #fff; font-size: 0.95rem; font-weight: 500; letter-spacing: 0.5px; border-bottom: 2px solid transparent; transition: border-color 0.2s; }
.site-nav a:hover, .site-nav a:focus-visible { border-bottom-color: var(--accent); color: var(--accent); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent); }

/* ── CTA button in header ── */
.header-cta { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; padding: 0.5rem 1.2rem; border-radius: 4px; font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; transition: background 0.2s, transform 0.2s; }
.header-cta:hover { background: #E55B2A; transform: scale(1.03); }

/* ── Nav toggle (mobile) ── */
.nav-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; width: var(--nav-toggle-size); height: var(--nav-toggle-size); background: none; border: none; cursor: pointer; padding: 0; gap: 5px; }
.nav-toggle-line { display: block; width: 100%; height: 3px; background: #fff; border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Site Footer ── */
.site-footer { background: var(--primary); color: #fff; padding: 3rem 1.5rem 1.5rem; margin-top: 4rem; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .footer-logo { font-family: var(--font-headings); font-size: 1.5rem; color: var(--accent); text-decoration: none; }
.footer-tagline { color: #ccc; font-size: 0.9rem; margin-top: 0.5rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: #ccc; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-contact { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.9rem; color: #ccc; }
.footer-contact address { font-style: normal; }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.5rem; margin-top: 1.5rem; font-size: 0.85rem; color: #aaa; }

/* ── Generic Button ── */
.btn { display: inline-block; padding: 0.65rem 1.5rem; border: none; border-radius: 4px; font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; text-align: center; cursor: pointer; transition: background 0.2s, transform 0.2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: #0F1F2F; transform: scale(1.02); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #E55B2A; transform: scale(1.02); }

/* ── Breadcrumbs ── */
.breadcrumbs { padding: 0.5rem 0; font-size: 0.85rem; color: var(--text-secondary); }
.breadcrumbs a { color: var(--accent); }
.breadcrumbs span { margin: 0 0.3rem; }

/* ── Content Container ── */
.content-container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ── Cards ── */
.card { background: #fff; border-radius: 6px; border: 1px solid var(--border); padding: 1.5rem; box-shadow: 0 2px 4px rgba(0,0,0,0.05); transition: box-shadow 0.2s; }
.card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.12); }
.card__title { font-family: var(--font-headings); font-size: 1.1rem; margin-bottom: 0.5rem; }
.card__body { font-size: 0.95rem; color: var(--text-secondary); }

/* ── Grid ── */
.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Dividers ── */
.divider { height: 1px; background: var(--border); margin: 2rem 0; }
.divider--diagonal { position: relative; height: 4px; background: transparent; overflow: hidden; }
.divider--diagonal::before { content: ''; position: absolute; top: 0; left: -20%; width: 140%; height: 100%; background: linear-gradient(135deg, var(--primary), var(--accent)); transform: skewX(-25deg); }

/* ── Image Placeholder ── */
.image-placeholder { background: var(--border); border-radius: 4px; aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; color: var(--text-secondary); font-size: 0.9rem; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .site-header { background: var(--primary); }
  .site-header[data-open] { background: var(--primary); }
  .header-inner { padding: 0 1rem; }
  .site-nav { position: fixed; top: var(--header-h); left: 0; width: 100%; background: var(--primary); max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
  .site-nav[data-open] { max-height: 500px; }
  .nav-list { flex-direction: column; padding: 0.5rem 0; }
  .nav-list a { padding: 0.8rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .header-inner { padding: 0 0.75rem; }
  .site-logo .logo-icon { font-size: 1.3rem; }
  .site-logo .logo-text { font-size: 1.1rem; }
}

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

/* ── Focus-visible global ── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
