/* =========================================================
   BluePixie Digital — modernized static site stylesheet
   ========================================================= */

:root {
  --blue-900: #0d2b4e;
  --blue-800: #123a66;
  --blue-700: #16497f;
  --blue-600: #1c5da0;
  --blue-500: #2478c9;
  --blue-100: #e7f1fb;
  --coral: #ff6a5c;
  --coral-dark: #e6503f;
  --ink: #1c2733;
  --slate: #57667a;
  --slate-light: #8695a7;
  --paper: #ffffff;
  --paper-soft: #f5f8fc;
  --border: #e3e9f2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 43, 78, 0.08);
  --shadow-lg: 0 20px 50px rgba(13, 43, 78, 0.14);
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.5em;
  color: var(--blue-900);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; color: var(--slate); }
a { color: var(--blue-600); text-decoration: none; }
a:hover { color: var(--coral); }
strong { color: var(--blue-900); }
ul, ol { color: var(--slate); }
img { max-width: 100%; display: block; height: auto; }

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

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--soft { background: var(--paper-soft); }
.section--dark { background: linear-gradient(135deg, var(--blue-900), var(--blue-700)); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark p { color: #fff; }

.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}
.lede {
  font-size: 1.2rem;
  color: var(--slate);
  max-width: 640px;
}
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--coral);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 106, 92, 0.35);
}
.btn-primary:hover { background: var(--coral-dark); color: #fff; transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: var(--blue-100);
  color: var(--blue-700);
}
.btn-ghost:hover { background: var(--blue-600); color: #fff; }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 1.25rem; color: var(--blue-900); }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--blue-900); font-weight: 500; font-size: 0.98rem; }
.nav-links a:hover, .nav-links a.active { color: var(--coral); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span { width: 26px; height: 2.5px; background: var(--blue-900); border-radius: 2px; }

.has-dropdown { position: relative; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 10px;
  min-width: 220px;
  display: none;
  border: 1px solid var(--border);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 0.94rem; }
.dropdown a:hover { background: var(--blue-100); }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 80px;
  background: radial-gradient(circle at 80% 20%, var(--blue-100), var(--paper) 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero h1 u { text-decoration-color: var(--coral); text-decoration-thickness: 4px; }
.hero-art img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }

.page-hero {
  padding: 70px 0 60px;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-600));
  color: #fff;
  text-align: center;
}
.page-hero h1, .page-hero p { color: #fff; }
.page-hero .lede { color: rgba(255,255,255,0.85); }

/* ---------- Cards / Icon boxes ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.icon-box .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--blue-100);
  color: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}
.icon-box h3 a { color: var(--blue-900); }
.icon-box p:last-child { margin-bottom: 0; }

.side-box { display: flex; gap: 18px; align-items: flex-start; }
.side-box .icon {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--coral);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ---------- Testimonials ---------- */
.testimonial {
  background: var(--paper-soft);
  border-radius: var(--radius);
  padding: 28px;
  border-left: 4px solid var(--coral);
}
.testimonial p { font-style: italic; color: var(--ink); }
.testimonial .author { font-weight: 700; color: var(--blue-700); font-style: normal; }

/* ---------- Steps list ---------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.steps li {
  position: relative;
  padding-left: 60px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px 22px 76px;
  box-shadow: var(--shadow);
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 20px; top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
}
.steps li h2, .steps li h3 { margin-bottom: 4px; font-size: 1.15rem; }
.steps li p:last-child { margin-bottom: 0; }

/* ---------- Portfolio / Our Work ---------- */
.work-filter { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.work-filter button {
  border: 1px solid var(--border);
  background: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--slate);
}
.work-filter button.active, .work-filter button:hover { background: var(--blue-600); color: #fff; border-color: var(--blue-600); }

.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.work-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.work-card .thumb { aspect-ratio: 4/3; overflow: hidden; background: var(--blue-100); }
.work-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.work-card .body { padding: 20px 22px; }
.work-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.work-card ul { margin: 10px 0 0; padding-left: 18px; font-size: 0.92rem; }
.work-card .visit { margin-top: 12px; display: inline-block; font-weight: 600; font-size: 0.9rem; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.post-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--blue-100); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 22px 24px; flex: 1; display: flex; flex-direction: column; }
.post-card .date { font-size: 0.8rem; color: var(--slate-light); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.post-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.post-card h3 a { color: var(--blue-900); }
.post-card p { font-size: 0.95rem; flex: 1; }
.post-card .readmore { font-weight: 600; margin-top: auto; }

article.post-body { max-width: 760px; margin: 0 auto; }
article.post-body h2 { margin-top: 1.4em; }
article.post-body h3 { margin-top: 1.2em; }
article.post-body blockquote {
  margin: 1.6em 0;
  padding: 20px 26px;
  background: var(--blue-100);
  border-left: 4px solid var(--blue-600);
  border-radius: 0 12px 12px 0;
  font-weight: 600;
  color: var(--blue-800);
}
article.post-body img { border-radius: var(--radius); margin: 1.5em 0; box-shadow: var(--shadow); }
article.post-body ul, article.post-body ol { padding-left: 1.4em; }
article.post-body li { margin-bottom: 0.5em; }
.post-meta { text-align: center; margin-bottom: 10px; color: rgba(255,255,255,0.85); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--border); max-width: 760px; margin-left: auto; margin-right: auto; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 36px; }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--blue-900); font-size: 0.92rem; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 13px 15px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper-soft);
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--blue-500); background: #fff; }
.form-note { font-size: 0.85rem; color: var(--slate-light); margin-top: 10px; }
.form-success, .form-error {
  display: none;
  padding: 16px 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-weight: 600;
}
.form-success { background: #e4f8ec; color: #1e7d46; }
.form-error { background: #fdeceb; color: #b3392c; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: start; }
.contact-details .icon-box { margin-bottom: 22px; }
.contact-details img { border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: rgba(255,255,255,0.75); padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { height: 34px; filter: brightness(0) invert(1); }
.footer-brand span { font-family: "Poppins", sans-serif; font-weight: 700; color: #fff; font-size: 1.15rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 0.94rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
}

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--coral), #ff8b6e); color: #fff; text-align: center; border-radius: 24px; padding: 56px 40px; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band .btn-primary { background: #fff; color: var(--coral-dark); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.cta-band .btn-primary:hover { background: var(--blue-900); color: #fff; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.divider { height: 1px; background: var(--border); margin: 50px 0; border: none; }
.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.list-check li { padding-left: 30px; position: relative; }
.list-check li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--coral);
  font-weight: 700;
}
.badge { display: inline-block; background: var(--blue-100); color: var(--blue-700); font-weight: 700; font-size: 0.78rem; padding: 5px 12px; border-radius: 999px; letter-spacing: 0.04em; text-transform: uppercase; }
table.legal-table { width: 100%; border-collapse: collapse; margin: 1.5em 0; }
table.legal-table td, table.legal-table th { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.legal-body h2 { margin-top: 1.6em; font-size: 1.3rem; }
.legal-body { max-width: 820px; margin: 0 auto; }
.legal-body p { padding-left: 0; }
.back-to-top { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .work-grid, .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  body.nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  body.nav-open .dropdown { position: static; box-shadow: none; border: none; display: block; padding: 6px 0 0 14px; }
  body.nav-open .has-dropdown .dropdown { display: none; }
  body.nav-open .has-dropdown.open .dropdown { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .work-grid, .post-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 52px 0; }
  .hero { padding: 60px 0 50px; }
  .cta-band { padding: 40px 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
