/* ============== CORE THEME ============== */
:root {
  --red: #c0161c;
  --blue: #012a63;
  --white: #ffffff;
  --card-bg: #fffdf5;
  --text-main: #111827;
  --text-muted: #6b7280;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.2);
  --radius-lg: 1.25rem;
  --container-width: 1120px;
}

/* ============== RESET ============== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

/* ============== FULL PAGE BACKGROUND ============== */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  background: linear-gradient(
    90deg,
    var(--red) 0%,
    var(--red) 50%,
    var(--blue) 50%,
    var(--blue) 100%
  );
  color: var(--text-main);
  line-height: 1.6;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============== HEADER ============== */
.site-header {
  padding: 0.9rem 0 0.4rem;
  animation: fadeInHeader 0.8s ease-in-out;
}

/* Header card (slimmer + rounded) */
.site-header > .container {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 1.8rem;
  box-shadow: var(--shadow-soft);
  padding: 0.55rem 1rem;
}

/* NAV entire block */
.nav {
  display: flex;
  flex-direction: column; /* stack brand, subtitle, nav links */
  align-items: center;
  gap: 0.45rem;
  text-align: center;
}

/* ===== BRAND (LOGO + TITLE ON SAME LINE) ===== */
.brand {
  display: flex;
  flex-direction: row; /* logo + title on same line */
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  text-decoration: none;
  color: inherit;
}

/* Logo glow animation */
@keyframes logoGlow {
  0%   { box-shadow: 0 0 10px rgba(255,255,255,0.25); }
  50%  { box-shadow: 0 0 20px rgba(255,255,255,0.55); }
  100% { box-shadow: 0 0 10px rgba(255,255,255,0.25); }
}

/* Logo */
.brand-logo {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--red));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 900;
  font-size: 2rem;
  animation: logoGlow 3.2s infinite ease-in-out;
  transition: transform 0.25s ease;
}

.brand-logo:hover {
  transform: scale(1.08);
}

/* Title + subtitle stacked */
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: center;
}

/* Title */
.brand-title {
  font-weight: 900;
  font-size: 1.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #111827;
  margin-bottom: 0.15rem;
}

/* Subtitle with underline */
.brand-sub {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 0.35rem;
}

.brand-sub::after {
  content: "";
  width: 70%;
  height: 2px;
  background: var(--blue);
  position: absolute;
  bottom: 0;
  left: 15%;
  border-radius: 2px;
  opacity: 0.65;
}

/* ===== NAV LINKS (LINE 3) ===== */
.nav-links {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0;
  background: transparent;
  box-shadow: none;
  position: static;
}

/* Nav links */
.nav a {
  position: relative;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: var(--blue);
  transition: all 0.2s ease;
}

.nav a:hover {
  background: rgba(255,255,255,0.95);
  color: var(--red);
  box-shadow: 0 0 12px rgba(255,255,255,0.9);
}

/* Call-to-action */
.nav-cta {
  background: var(--blue);
  color: var(--white) !important;
  font-weight: 800;
}

.nav-cta:hover {
  background: var(--red);
}

/* Mobile menu button (not used in this layout) */
.nav-toggle {
  display: none;
}

/* Header fade-in animation */
@keyframes fadeInHeader {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============== HERO ============== */
.hero {
  padding: 2.8rem 0 3.5rem;
}

.hero > .container {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2rem 1.6rem 2.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.4rem;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0.9rem;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--red);
}

.hero h1 {
  font-size: 2.7rem;
  font-weight: 900;
  margin-bottom: 0.6rem;
  color: var(--blue);
}

.hero-tagline {
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

.hero p {
  margin-bottom: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1.1rem 0 1.5rem;
}

.btn-primary,
.btn-outline {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
}

/* Primary button */
.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red);
}

/* Outline button */
.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: rgba(15, 23, 42, 0.25);
}

.btn-outline:hover {
  background: rgba(15, 23, 42, 0.06);
}

.btn-block {
  width: 100%;
}

/* Hero meta */
.hero-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-meta strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
}

/* Hero illustrations */
.hero-illustrations {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-illustration {
  padding: 1rem;
  border-radius: var(--radius-lg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-illustration-red {
  background: var(--red);
}

.hero-illustration-blue {
  background: var(--blue);
}

.hero-label {
  color: white;
  font-weight: 700;
  text-align: center;
}

/* ============== SECTIONS ============== */
.section {
  padding: 2.8rem 0;
}

.section > .container {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2rem 1.6rem 2.3rem;
}

.section-header {
  text-align: center;
  margin-bottom: 1.9rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.2rem;
}

.card {
  background: white;
  border-radius: 1rem;
  padding: 1.2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.08);
  font-size: 0.9rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  color: var(--text-main);
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

/* ============== CONTACT / FORM CARD ============== */
.hero-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid #d1d5db;
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  font-size: 0.9rem;
}

.hero-card h3 {
  margin: 0 0 0.5rem;
}

.hero-card p {
  margin: 0 0 0.8rem;
}

.hero-form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

.hero-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: var(--text-main);
}

.hero-form input,
.hero-form textarea {
  border-radius: 0.55rem;
  border: 1px solid #cbd5e1;
  padding: 0.45rem 0.6rem;
  font-size: 0.85rem;
  color: var(--text-main);
}

.hero-form textarea {
  resize: vertical;
}

.hero-form input:focus,
.hero-form textarea:focus {
  outline: 1px solid var(--blue);
  border-color: var(--blue);
}

/* ============== FOOTER ============== */
footer {
  padding: 1.8rem 0 2.2rem;
}

footer > .container {
  background: rgba(255, 255, 255, 0.97);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.4rem;
  box-shadow: var(--shadow-soft);
  text-align: center;
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  color: var(--text-muted);
}

/* ============== RESPONSIVE ============== */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.4fr 1fr;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .hero-illustrations {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.2rem;
  }
}
