/* ============================================
   First City FlowMation — Stylesheet
   ============================================ */

:root {
  --ink: #14181b;
  --slate-900: #1c2226;
  --slate-700: #3d474d;
  --slate-600: #4b565c;
  --slate-500: #5b6770;
  --slate-400: #808c92;
  --slate-300: #a9b2b7;
  --slate-200: #d3d8da;
  --slate-100: #e7eaec;
  --slate-50: #f4f5f6;
  --paper: #ffffff;
  --paper-alt: #f6f7f6;
  --accent: #2b4c5c;
  --accent-dark: #1d3540;
  --accent-light: #eaf1f2;
  --accent-line: #c7d6d9;

  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --max-width: 1180px;
  --radius: 4px;
  --shadow-sm: 0 1px 2px rgba(20, 24, 27, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 24, 27, 0.08);
  --shadow-lg: 0 20px 48px rgba(20, 24, 27, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  font-size: 16.5px;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--slate-900);
}

h1 { font-size: clamp(2.4rem, 4.6vw, 3.75rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; color: var(--slate-600); }

.lede {
  font-size: 1.2rem;
  color: var(--slate-600);
  max-width: 620px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

section { position: relative; }

.section {
  padding: 96px 0;
}

.section--tight { padding: 64px 0; }

.section--alt { background: var(--paper-alt); }

.section--dark {
  background: var(--slate-900);
  color: var(--slate-100);
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: var(--slate-300); }

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-outline {
  background: transparent;
  border-color: var(--slate-300);
  color: var(--slate-900);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

.btn-light {
  background: #fff;
  color: var(--accent-dark);
}
.btn-light:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-100);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { height: 40px; width: auto; }

.brand-word {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--slate-900);
  line-height: 1.1;
}
.brand-word span {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--slate-600);
  position: relative;
  padding: 6px 0;
  transition: color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: 24px; }

.header-phone {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-700);
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 84px 0 0 0;
  background: #fff;
  z-index: 99;
  padding: 32px 28px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.mobile-nav a {
  padding: 16px 4px;
  font-size: 1.15rem;
  font-weight: 500;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-800, var(--slate-900));
}
.mobile-nav .btn { margin-top: 20px; }

body.nav-open .mobile-nav { display: flex; }
body.nav-open { overflow: hidden; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links, .header-phone { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .header-actions { gap: 12px; }
  .header-actions .btn-primary { display: none; }
  .brand-word span { display: none; }
  .brand-word { font-size: 0.95rem; }
  .site-header .container { height: 68px; }
  .mobile-nav { inset: 68px 0 0 0; }
}

@media (max-width: 360px) {
  .brand-word { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  padding: 84px 0 100px;
  background:
    radial-gradient(circle at 82% 8%, var(--accent-light) 0%, transparent 45%),
    var(--paper);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 34px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--slate-100);
}
.hero-trust-item { display: flex; flex-direction: column; }
.hero-trust-item strong { font-family: var(--font-serif); font-size: 1.6rem; color: var(--slate-900); }
.hero-trust-item span { font-size: 0.8rem; color: var(--slate-500); }

.hero-card {
  background: var(--slate-900);
  border-radius: 10px;
  padding: 40px;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-card .eyebrow { color: var(--slate-300); }
.hero-card .eyebrow::before { background: var(--slate-400); }
.hero-card h3 { color: #fff; margin-bottom: 18px; }
.hero-card ul { margin: 0 0 26px; padding: 0; list-style: none; }
.hero-card li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--slate-200);
  font-size: 0.95rem;
}
.hero-card li:first-child { border-top: none; }
.hero-card li .tick {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  margin-top: 2px;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 64px; }
}

/* ---------- Logo strip / problem section ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.problem-card {
  background: var(--paper);
  border: 1px solid var(--slate-100);
  border-radius: 8px;
  padding: 28px 24px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.problem-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.problem-card .num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}
.problem-card h4 { margin-bottom: 8px; }
.problem-card p { font-size: 0.92rem; margin-bottom: 0; }

@media (max-width: 900px) {
  .problem-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .problem-grid { grid-template-columns: 1fr; }
}

/* ---------- Services / offers ---------- */

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
  align-items: stretch;
}

.offer-card {
  background: var(--paper);
  border: 1px solid var(--slate-100);
  border-radius: 10px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.offer-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.offer-card.is-featured {
  background: var(--slate-900);
  color: #fff;
  border-color: var(--slate-900);
}
.offer-card.is-featured h3,
.offer-card.is-featured h4 { color: #fff; }
.offer-card.is-featured p { color: var(--slate-300); }
.offer-card.is-featured .offer-list li { border-top-color: rgba(255,255,255,0.12); color: var(--slate-200); }
.offer-card.is-featured .offer-list li strong { color: #fff; }
.offer-card.is-featured .offer-price { color: #fff; }
.offer-card.is-featured .offer-price span { color: var(--slate-400); }

.offer-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent-dark);
  margin-bottom: 18px;
}
.offer-card.is-featured .offer-tag { background: var(--accent); color: #fff; }

.offer-card h3 { margin-bottom: 10px; }
.offer-card > p { margin-bottom: 22px; }

.offer-price {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--slate-900);
  margin-bottom: 22px;
}
.offer-price span { font-family: var(--font-sans); font-size: 0.85rem; color: var(--slate-500); font-weight: 500; }

.offer-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex-grow: 1;
}
.offer-list li {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--slate-100);
  font-size: 0.95rem;
  color: var(--slate-600);
}
.offer-list li:first-child { border-top: none; }
.offer-list li .tick {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
  margin-top: 2px;
}
.offer-card.is-featured .offer-list li .tick { background: rgba(255,255,255,0.14); color: #fff; }

.offer-guarantee {
  font-size: 0.86rem;
  padding: 16px 18px;
  border-radius: 8px;
  background: var(--paper-alt);
  color: var(--slate-600);
  margin-bottom: 24px;
  border-left: 3px solid var(--accent);
}
.offer-card.is-featured .offer-guarantee {
  background: rgba(255,255,255,0.06);
  color: var(--slate-200);
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Process steps ---------- */

.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
  margin-top: 48px;
}
.process-step { position: relative; padding-top: 8px; }
.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-serif);
  font-size: 2.1rem;
  color: var(--accent-line);
  display: block;
  margin-bottom: 14px;
}
.process-step h4 { margin-bottom: 8px; }
.process-step p { font-size: 0.92rem; }

@media (max-width: 900px) {
  .process-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .process-list { grid-template-columns: 1fr; }
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.about-portrait {
  background: var(--slate-900);
  border-radius: 10px;
  padding: 48px 36px;
  color: #fff;
  position: sticky;
  top: 110px;
}
.about-portrait img { height: 56px; width: auto; margin-bottom: 24px; }
.about-portrait .portrait-photo {
  height: 140px;
  width: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 30%;
  border: 3px solid rgba(255, 255, 255, 0.14);
  box-shadow: var(--shadow-md);
}
.about-portrait h3 { color: #fff; margin-bottom: 4px; }
.about-portrait .role { color: var(--slate-300); font-size: 0.9rem; margin-bottom: 24px; }
.about-portrait ul { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid rgba(255,255,255,0.12); }
.about-portrait li { display: flex; justify-content: space-between; padding: 9px 0; font-size: 0.85rem; color: var(--slate-300); }
.about-portrait li strong { color: #fff; font-weight: 500; }

.about-body h3 { margin-top: 40px; }
.about-body h3:first-child { margin-top: 0; }

.credentials-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 8px;
}
.credential-chip {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--slate-200);
  color: var(--slate-600);
}

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { position: static; }
}

/* ---------- Values / mission cards ---------- */

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.value-card { padding: 8px; }
.value-card h4 { margin-bottom: 8px; }
.value-card p { font-size: 0.94rem; }

@media (max-width: 900px) {
  .value-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: var(--slate-900);
  border-radius: 14px;
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  color: #fff;
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: var(--slate-300); margin-bottom: 0; max-width: 460px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

@media (max-width: 700px) {
  .cta-banner { padding: 40px 28px; text-align: center; justify-content: center; flex-direction: column; }
  .cta-banner p { max-width: 100%; }
  .cta-actions { justify-content: center; }
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.contact-info-card {
  background: var(--paper-alt);
  border-radius: 10px;
  padding: 40px;
}
.contact-info-card h3 { margin-bottom: 24px; }
.contact-line {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--slate-200);
}
.contact-line:first-of-type { border-top: none; }
.contact-line .icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}
.contact-line strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate-500); margin-bottom: 3px; }
.contact-line a, .contact-line span.value { font-size: 1rem; color: var(--slate-900); font-weight: 500; }

.contact-form-card {
  background: var(--paper);
  border: 1px solid var(--slate-100);
  border-radius: 10px;
  padding: 44px;
  box-shadow: var(--shadow-sm);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--slate-500); margin-top: 14px; }

.form-success {
  display: none;
  background: var(--accent-light);
  border: 1px solid var(--accent-line);
  color: var(--accent-dark);
  padding: 18px 20px;
  border-radius: 8px;
  font-size: 0.92rem;
  margin-bottom: 22px;
}
.form-success.is-visible { display: block; }

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ---------- Map / location strip ---------- */

.location-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--slate-500);
  font-size: 0.9rem;
  margin-top: 28px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--slate-300);
  padding: 72px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img { height: 34px; margin-bottom: 16px; }
.footer-brand p { color: var(--slate-400); font-size: 0.9rem; max-width: 280px; }

.footer-col h4 { color: #fff; font-family: var(--font-sans); font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--slate-300); font-size: 0.92rem; transition: color 0.25s var(--ease); }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 0.82rem;
  color: var(--slate-500);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Page header (inner pages) ---------- */

.page-header {
  padding: 64px 0 56px;
  background: var(--paper-alt);
  border-bottom: 1px solid var(--slate-100);
}
.page-header .lede { margin-bottom: 0; }

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Misc ---------- */

.divider { height: 1px; background: var(--slate-100); border: none; margin: 0; }

::selection { background: var(--accent-light); color: var(--accent-dark); }
