/* ============================================================
   ARCS BrickWorks — styles.css (FRESH / COMPLETE)
   Fixes: focus-visible, scroll-margin, btn consistency,
          placeholder fallback, print styles
   ============================================================ */

/* ---------- 0. GOOGLE FONTS (IMPORT) ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@600;700;800&display=swap');

/* ---------- 1. ROOT VARIABLES ---------- */
:root {
  --maroon: #6B1F2A;
  --maroon-light: #8E3A44;
  --gray-dark: #3A3A3A;
  --gray: #6E6E6E;
  --gray-light: #F2F0EE;
  --white: #FFFFFF;
  --accent: #C9A227;

  --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);

  --container: 1140px;
  --header-height: 72px;
  --transition: 0.25s ease;
}

/* ---------- 2. RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--gray-dark);
  background: var(--gray-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body > main,
body > .page-hero,
body > .section {
  flex-shrink: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--maroon);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--maroon-light);
}

/* Accessibility: visible focus indicator */
:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 3px;
  border-radius: 3px;
}
:focus:not(:focus-visible) {
  outline: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--gray-dark);
  line-height: 1.25;
  font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul { list-style: none; }

/* ---------- 3. LAYOUT HELPERS ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4.5rem 0;
}

.center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon);
  margin-bottom: 0.65rem;
}

/* Anchor offset for sticky header */
[id] {
  scroll-margin-top: var(--header-height);
}

/* ---------- 4. BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}
.btn:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--maroon);
  color: var(--white);
  border-color: var(--maroon);
}
.btn-primary:hover {
  background: var(--maroon-light);
  border-color: var(--maroon-light);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--maroon);
  border-color: var(--maroon);
}
.btn-outline:hover {
  background: var(--maroon);
  color: var(--white);
}

/* ---------- 5. HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--maroon);
}
.logo-mark {
  background: var(--maroon);
  color: var(--white);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}
.logo-text {
  color: var(--gray-dark);
  font-weight: 600;
}

/* ---------- 6. NAVIGATION ---------- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.main-nav a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gray-dark);
  position: relative;
  padding: 0.35rem 0;
}
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--maroon);
  transition: width var(--transition);
}
.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}
.main-nav a.active {
  color: var(--maroon);
}

/* ---------- 7. HEADER ACTIONS ---------- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-toggle {
  background: transparent;
  border: 1.5px solid var(--maroon);
  color: var(--maroon);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition);
}
.lang-toggle:hover {
  background: var(--maroon);
  color: var(--white);
}
.lang-toggle:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 3px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
}
.menu-toggle:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 3px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 8. PAGE HERO ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-light) 100%);
  color: var(--white);
  padding: 4rem 0 3.5rem;
  text-align: center;
}
.page-hero .eyebrow {
  color: var(--accent);
}
.page-hero h1 {
  color: var(--white);
  max-width: 760px;
  margin: 0 auto 1rem;
}
.page-hero-sub {
  max-width: 680px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
}

/* ---------- 9. STORY SECTION ---------- */
.story-section {
  background: var(--white);
}
.story-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.story-text h2 {
  margin-bottom: 1.25rem;
}
.story-text p {
  color: var(--gray);
  margin-bottom: 1.1rem;
}
.story-image {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}
.image-placeholder {
  background: linear-gradient(135deg, var(--gray-light) 0%, #e5e1dc 100%);
  border: 2px dashed rgba(107, 31, 42, 0.25);
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 1rem;
  text-align: center;
}

/* ---------- 10. TIMELINE ---------- */
.timeline-section {
  background: var(--gray-light);
}
.timeline-section h2 {
  margin-bottom: 3rem;
}

.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--maroon), rgba(107, 31, 42, 0.15));
}

.timeline-item {
  position: relative;
  padding-bottom: 2.25rem;
}
.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--maroon);
  box-shadow: 0 0 0 4px var(--gray-light);
}

.timeline-year {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--maroon);
  background: rgba(107, 31, 42, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}
.timeline-content h3 {
  margin-bottom: 0.35rem;
}
.timeline-content p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ---------- 11. TEAM ---------- */
.team-section {
  background: var(--white);
}
.team-section h2 {
  margin-bottom: 3rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all var(--transition);
  border: 1px solid transparent;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(107, 31, 42, 0.12);
}

.team-avatar {
  width: 76px;
  height: 76px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  flex-shrink: 0;
}

.team-card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}
.team-role {
  color: var(--maroon);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- 12. COMMITMENT ---------- */
.commitment-section {
  background: var(--gray-light);
}
.commitment-section h2 {
  margin-bottom: 3rem;
}

.commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.commitment-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  border-top: 4px solid var(--maroon);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.commitment-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.commitment-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(107, 31, 42, 0.08);
  color: var(--maroon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.1rem;
}

.commitment-card h3 {
  margin-bottom: 0.6rem;
}
.commitment-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ---------- 13. CTA STRIP ---------- */
.cta-strip {
  background: var(--maroon);
  color: var(--white);
  padding: 3.5rem 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-strip h2 {
  color: var(--white);
  margin-bottom: 0.35rem;
}
.cta-strip p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}
.cta-strip .btn-primary {
  background: var(--white);
  color: var(--maroon);
  border-color: var(--white);
}
.cta-strip .btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--gray-dark);
}

/* ---------- 14. FOOTER ---------- */
.site-footer {
  background: var(--gray-dark);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 3.5rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.78);
}
.site-footer a:hover {
  color: var(--accent);
}
.site-footer ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.site-footer p {
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- 15. RESPONSIVE ---------- */
@media (max-width: 900px) {
  .story-grid {
    grid-template-columns: 1fr;
  }
  .story-image {
    position: static;
    max-width: 420px;
    margin: 0 auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
  .page-hero {
    padding: 3rem 0 2.5rem;
  }

  .menu-toggle {
    display: flex;
  }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    padding: 1rem 1.25rem;
    gap: 0.25rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: var(--shadow-md);
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a {
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  .main-nav a::after {
    display: none;
  }

  .cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .cta-inner .btn {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
  .timeline {
    padding-left: 1.5rem;
  }
  .timeline-dot {
    left: -1.5rem;
  }
  .header-inner {
    min-height: 64px;
  }
  .logo {
    font-size: 1.05rem;
  }
  .btn {
    width: 100%;
  }
}

/* ---------- 16. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 17. PRINT ---------- */
@media print {
  .site-header,
  .site-footer,
  .cta-strip,
  .lang-toggle,
  .menu-toggle {
    display: none !important;
  }
  body {
    background: var(--white);
    color: black;
  }
  a {
    color: black;
    text-decoration: underline;
  }
}