/* ============================================
   Eirmond — Style Sheet
   Palette: Slate Grey + Deep Blue
   ============================================ */

:root {
  --slate: #4A5568;
  --slate-dark: #2D3748;
  --slate-light: #718096;
  --blue: #2B6CB0;
  --blue-dark: #1A4971;
  --blue-light: #3B82C4;
  --white: #FFFFFF;
  --off-white: #F7FAFC;
  --light-grey: #EDF2F7;
  --text: #1A202C;
  --text-muted: #718096;
  --font: 'Inter', sans-serif;
  --nav-height: 72px;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --transition: 0.3s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- Utilities ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--slate-dark);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ---------- Fade-in animation ---------- */
/* Hidden state applied by JS only — content stays visible if JS fails */
.fade-in.fade-in--ready {
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.fade-in--ready.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: var(--white);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo img {
  height: 42px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate);
  transition: color var(--transition);
}

.nav__links a:hover {
  color: var(--blue);
}

.nav__cta {
  background: var(--blue);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background var(--transition);
}

.nav__cta:hover {
  background: var(--blue-dark);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--slate-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--slate-dark) 0%, #1a2332 50%, var(--blue-dark) 100%);
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

/* Subtle grid / circuit-line pattern */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30h20M40 30h20M30 0v20M30 40v20' stroke='%23ffffff' stroke-width='.5' opacity='.07' fill='none'/%3E%3Ccircle cx='30' cy='30' r='2' fill='%23ffffff' opacity='.05'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
}

/* Glow orb */
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(43, 108, 176, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 80px 0;
}

.hero__tagline {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero__tagline span {
  color: var(--blue-light);
}

.hero__subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--transition), transform var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--blue-light);
}

.btn .material-icons {
  font-size: 20px;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 100px 0;
  background: var(--white);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.about__text h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--slate-dark);
  margin-bottom: 20px;
}

.about__text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

.about__badges {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.badge-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--light-grey);
  transition: box-shadow var(--transition), transform var(--transition);
}

.badge-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.badge-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
}

.badge-card__icon .material-icons {
  font-size: 24px;
}

.badge-card__content h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-dark);
  margin-bottom: 4px;
}

.badge-card__content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 100px 0;
  background: var(--off-white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--light-grey);
  transition: box-shadow var(--transition), transform var(--transition);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(43, 108, 176, 0.1);
  color: var(--blue);
  margin-bottom: 20px;
}

.service-card__icon .material-icons {
  font-size: 28px;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-dark);
  line-height: 1.4;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--slate-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__brand img {
  height: 36px;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.footer__brand p {
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer__col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}

.footer__col li {
  margin-bottom: 10px;
}

.footer__col a,
.footer__col p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer__col a:hover {
  color: var(--white);
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer__contact-item .material-icons {
  font-size: 18px;
  color: var(--blue-light);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__back-top {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--transition);
}

.footer__back-top:hover {
  color: var(--white);
}

.footer__back-top .material-icons {
  font-size: 18px;
}

/* ============================================
   PRIVACY POLICY PAGE
   ============================================ */
.policy {
  padding-top: calc(var(--nav-height) + 60px);
  padding-bottom: 100px;
  background: var(--white);
}

.policy__header {
  margin-bottom: 48px;
}

.policy__title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--slate-dark);
  margin-bottom: 8px;
}

.policy__meta {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.policy__body {
  max-width: 800px;
}

.policy__intro {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--light-grey);
}

.policy__intro p,
.policy__section p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 12px;
}

.policy__section {
  margin-bottom: 40px;
}

.policy__section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--slate-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--blue);
  display: inline-block;
}

.policy__section ul {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.policy__section ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
}

.policy__section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.policy__section a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.policy__section a:hover {
  color: var(--blue-dark);
}

.policy__card {
  background: var(--off-white);
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 16px 0;
}

.policy__card p {
  margin-bottom: 4px !important;
  font-size: 0.95rem !important;
}

/* Table */
.policy__table-wrap {
  overflow-x: auto;
  margin: 16px 0;
  border-radius: var(--radius);
  border: 1px solid var(--light-grey);
}

.policy__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.policy__table th,
.policy__table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--light-grey);
}

.policy__table th {
  background: var(--off-white);
  font-weight: 600;
  color: var(--slate-dark);
}

.policy__table tr:last-child td {
  border-bottom: none;
}

/* Rights grid */
.policy__rights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.policy__right {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: var(--off-white);
  border-radius: var(--radius);
  border: 1px solid var(--light-grey);
}

.policy__right > .material-icons {
  font-size: 24px;
  color: var(--blue);
  margin-top: 2px;
  flex-shrink: 0;
}

.policy__right h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-dark);
  margin-bottom: 4px;
}

.policy__right p {
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  line-height: 1.5 !important;
  margin-bottom: 0 !important;
}

/* Legal reference footer */
.policy__legal-ref {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 48px;
  padding: 20px 24px;
  background: rgba(43, 108, 176, 0.06);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.policy__legal-ref .material-icons {
  font-size: 22px;
  color: var(--blue);
  margin-top: 2px;
  flex-shrink: 0;
}

.policy__legal-ref p {
  font-size: 0.9rem !important;
  color: var(--text-muted) !important;
  line-height: 1.6 !important;
  margin-bottom: 0 !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
  .nav__links {
    position: fixed;
    top: var(--nav-height);
    right: -100%;
    width: 280px;
    height: calc(100vh - var(--nav-height));
    background: var(--white);
    flex-direction: column;
    padding: 32px 24px;
    gap: 24px;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
  }

  .nav__links.active {
    right: 0;
  }

  .nav__hamburger {
    display: flex;
  }

  .nav__hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero__tagline {
    font-size: 2.2rem;
  }

  .hero__subtitle {
    font-size: 1.05rem;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .policy__rights-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero__tagline {
    font-size: 1.8rem;
  }

  .hero__content {
    padding: 48px 0;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .about {
    padding: 64px 0;
  }

  .services {
    padding: 64px 0;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .policy__title {
    font-size: 1.8rem;
  }

  .policy__section h2 {
    font-size: 1.15rem;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
