/* Fi² Engineering — fi2.ca — Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300;400;600;700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --navy:   #1a2340;
  --steel:  #2e3f5c;
  --blue:   #3a6ea8;
  --accent: #c8a84b;
  --light:  #f4f5f7;
  --white:  #ffffff;
  --text:   #222831;
  --muted:  #6b7a8d;
  --border: #dde2ea;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', Georgia, serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

/* ── HEADER ── */
header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-link { display: flex; align-items: center; gap: 1rem; text-decoration: none; }

.logo-link img { height: 44px; width: auto; }

.logo-tagline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  display: none;
}

/* ── NAV ── */
nav ul { list-style: none; display: flex; gap: 0; }

nav ul li { position: relative; }

nav ul li a {
  display: block;
  padding: 0.5rem 1.1rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
}

nav ul li a:hover,
nav ul li.active > a {
  color: var(--accent);
  background: rgba(255,255,255,0.05);
}

/* dropdown */
nav ul li ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--steel);
  min-width: 240px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  flex-direction: column;
  gap: 0;
}

nav ul li:hover > ul { display: flex; }

nav ul li ul li a {
  font-size: 0.85rem;
  padding: 0.6rem 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.75);
}

nav ul li ul li a:hover { color: var(--accent); background: rgba(255,255,255,0.06); }

/* hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: white; margin: 5px 0; transition: 0.3s; }

/* ── HERO SLIDER ── */
.hero {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
  background: var(--navy);
}

.hero-slides { display: flex; height: 100%; }

.hero-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.75;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26,35,64,0.85) 40%, transparent);
  display: flex;
  align-items: center;
  padding: 3rem 5%;
}

.hero-text h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-text h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-text p {
  margin-top: 1rem;
  font-size: 1.05rem;
  color: rgba(255,255,255,0.85);
  max-width: 480px;
  font-family: 'Lora', serif;
}

.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
}

.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}

.hero-dot.active { background: var(--accent); }

/* ── PAGE INTRO BAR ── */
.page-intro {
  background: var(--light);
  border-bottom: 3px solid var(--accent);
  padding: 0.6rem 0;
}

.page-intro .container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.page-intro .breadcrumb {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.page-intro h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
}

/* ── CONTAINER ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── MAIN CONTENT ── */
.main-content { padding: 3.5rem 0; }

.intro-block {
  background: var(--white);
  border-left: 4px solid var(--accent);
  padding: 2rem 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}

.intro-block p {
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.8;
}

/* ── SERVICE CARDS ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--blue);
  padding: 1.8rem;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.card:hover {
  box-shadow: 0 8px 28px rgba(58,110,168,0.15);
  transform: translateY(-3px);
}

.card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.card p { font-size: 0.95rem; color: var(--muted); line-height: 1.6; }

.card .card-arrow {
  display: inline-block;
  margin-top: 1rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ── ABOUT / BIO ── */
.bio-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.bio-photo {
  width: 100%;
  border: 3px solid var(--border);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.bio-text h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.bio-text .title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.bio-text p { margin-bottom: 1rem; font-size: 0.97rem; }

/* ── CONTACT ── */
.contact-block {
  background: var(--light);
  border: 1px solid var(--border);
  padding: 2.5rem;
  max-width: 560px;
}

.contact-block h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1rem;
}

.contact-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  min-width: 80px;
  padding-top: 0.1rem;
}

.contact-value { color: var(--text); }

.contact-value a { color: var(--blue); text-decoration: none; }
.contact-value a:hover { text-decoration: underline; }

/* ── TOOLS PAGE ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  padding: 1.8rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.2s, transform 0.2s;
}

.tool-card:hover {
  box-shadow: 0 8px 28px rgba(200,168,75,0.15);
  transform: translateY(-3px);
}

.tool-card h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

.tool-card p { font-size: 0.93rem; color: var(--muted); }

.tool-tag {
  display: inline-block;
  margin-top: 1rem;
  background: var(--navy);
  color: var(--accent);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
}

/* ── SECTION HEADING ── */
.section-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border);
}

.section-heading span { color: var(--accent); }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand img { height: 36px; opacity: 0.85; margin-bottom: 0.75rem; }

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 320px;
  font-family: 'Lora', serif;
}

.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }

.footer-nav ul li a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav ul li a:hover { color: var(--accent); }

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
  display: flex;
  justify-content: space-between;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .header-inner { padding: 0 1rem; }
  .nav-toggle { display: block; }
  nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--navy); }
  nav.open { display: block; }
  nav ul { flex-direction: column; padding: 1rem 0; }
  nav ul li ul { position: static; display: none; box-shadow: none; background: rgba(0,0,0,0.2); }
  nav ul li.open > ul { display: flex; }
  .hero { height: 320px; }
  .bio-grid { grid-template-columns: 1fr; }
  .bio-photo { max-width: 200px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; }
  .logo-tagline { display: none; }
}

@media (min-width: 900px) {
  .logo-tagline { display: block; }
}
