/* ========================================
   BIES — www.buildinelsalvador.com
   Brand-kit driven static site styles
   ======================================== */

/* --- Fonts --- */
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Formula Narrow';
  src: url('/assets/fonts/PPFormula-NarrowBold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* --- Custom properties --- */
:root {
  --color-primary: #0047AB;
  --color-secondary: #FF5B00;
  --color-accent: #003682;
  --color-neutral: #0A192F;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8F9FA;
  --color-bg-muted: #F1F5F9;
  --color-text: #0F172A;
  --color-text-muted: #64748B;
  --color-border: #E2E8F0;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-heading: 'PP Formula Narrow', 'Inter', sans-serif;
  --radius: 0.5rem;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--color-neutral);
}
h1 { font-size: 3rem; }
h2 { font-size: 2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; }
p + p { margin-top: 1rem; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
section {
  padding: 5rem 0;
}
section.alt {
  background: var(--color-bg-alt);
}

/* --- Nav --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.site-nav .logo img {
  height: 2rem;
  width: auto;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--color-primary);
  text-decoration: none;
}

/* Hamburger */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: var(--color-neutral);
  height: 2px;
  width: 28px;
  border-radius: 2px;
  position: absolute;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle-label span { top: 9px; }
.nav-toggle-label span::before { content: ''; top: -7px; }
.nav-toggle-label span::after { content: ''; top: 7px; }
.nav-toggle:checked ~ .nav-toggle-label span { background: transparent; }
.nav-toggle:checked ~ .nav-toggle-label span::before { top: 0; transform: rotate(45deg); background: var(--color-neutral); }
.nav-toggle:checked ~ .nav-toggle-label span::after { top: 0; transform: rotate(-45deg); background: var(--color-neutral); }

/* --- Hero --- */
.hero {
  background: var(--color-neutral);
  color: #fff;
  text-align: center;
  padding: 8rem 1.5rem 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}
.hero .logo-hero {
  height: 4rem;
  width: auto;
  margin-bottom: 2.5rem;
}
.hero h1 {
  color: #fff;
  font-size: 3.5rem;
  margin-bottom: 1.25rem;
  max-width: 700px;
}
.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.15rem;
  max-width: 560px;
  margin-bottom: 2.5rem;
}
.hero .btn {
  font-size: 1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--color-secondary);
  color: #fff;
}
.btn-primary:hover { background: #e65200; }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: #fff; }
.btn-blue {
  background: var(--color-primary);
  color: #fff;
}
.btn-blue:hover { background: #003a8c; }
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Section headings --- */
.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-heading h2 {
  display: inline-block;
  position: relative;
}
.section-heading h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-secondary);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

/* --- About --- */
.about-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--color-text);
}

/* --- Embed sections --- */
.embed-wrapper {
  max-width: 720px;
  margin: 0 auto;
}
.embed-wrapper iframe {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.embed-intro {
  max-width: 720px;
  margin: 0 auto 2rem;
  text-align: center;
  color: var(--color-text-muted);
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.contact-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}
.contact-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.contact-card .detail {
  color: var(--color-text);
  font-weight: 500;
}
.contact-card .btn {
  margin-top: 1.25rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-neutral);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 3rem 1.5rem;
  font-size: 0.875rem;
}
.site-footer .logo-footer {
  height: 1.75rem;
  width: auto;
  margin: 0 auto 1rem;
  opacity: 0.85;
}
.site-footer a {
  color: rgba(255,255,255,0.8);
}
.site-footer a:hover {
  color: #fff;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  section { padding: 3.5rem 0; }

  /* Mobile nav */
  .nav-toggle-label { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 4rem;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }
  .nav-links li { border-top: 1px solid var(--color-border); }
  .nav-links a {
    display: block;
    padding: 1rem 1.5rem;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }

  /* Hero */
  .hero {
    min-height: 70vh;
    padding: 5rem 1.5rem 4rem;
  }
  .hero h1 { font-size: 2.25rem; }
  .hero p { font-size: 1rem; }
  .hero .logo-hero { height: 3rem; }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
