﻿/* Havard Solutions — site styles
   Palette follows the logo: deep navy, royal blue, bright blue, with charcoal text and silver neutrals. */

:root {
  --navy-900: #071634;
  --navy-800: #0b1f4d;
  --navy-700: #12306f;
  --blue-600: #0a5fd1;
  --blue-500: #1479e6;
  --blue-400: #20a4f3;
  --charcoal: #1f2733;
  --text: #2b3442;
  --muted: #5b6676;
  --silver-100: #f4f6f9;
  --silver-200: #e7ebf0;
  --silver-300: #d3d9e1;
  --white: #ffffff;
  --success: #17803d;
  --error: #b42318;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(7, 22, 52, .06), 0 8px 24px rgba(7, 22, 52, .08);
  --max: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-600); text-underline-offset: 3px; }
a:hover { color: var(--navy-700); }

h1, h2, h3, h4 { color: var(--navy-800); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: .35em; }

:focus-visible { outline: 3px solid var(--blue-400); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy-800); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; color: var(--white); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--silver-200);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-800); }
.brand img { width: 44px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: .08em; }
.brand-sub { font-size: .66rem; letter-spacing: .38em; color: var(--blue-500); font-weight: 600; margin-top: 4px; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--silver-300); border-radius: var(--radius);
  padding: 8px 12px; font: inherit; font-weight: 600; color: var(--navy-800); cursor: pointer;
}
.nav-toggle-bars { display: inline-block; width: 18px; height: 2px; background: currentColor; position: relative; vertical-align: middle; margin-right: 8px; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.site-nav li { margin: 0; }
.site-nav a.nav-link {
  display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none;
  color: var(--charcoal); font-weight: 500; font-size: .97rem;
}
.site-nav a.nav-link:hover { background: var(--silver-100); color: var(--navy-800); }
.site-nav a.nav-link[aria-current="page"] { color: var(--blue-600); font-weight: 650; }
.nav-actions { display: flex; gap: 8px; margin-left: 10px; }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 8px;
    background: var(--white); border-bottom: 1px solid var(--silver-200);
    padding: 12px 20px 20px; box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav a.nav-link { padding: 12px; font-size: 1.05rem; }
  .nav-actions { margin: 8px 0 0; flex-direction: column; }
  .nav-actions .btn { width: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius); border: 2px solid transparent;
  font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn-sm { padding: 9px 16px; font-size: .93rem; }
.btn-primary { background: var(--blue-600); color: var(--white); }
.btn-primary:hover { background: var(--navy-700); color: var(--white); }
.btn-secondary { background: var(--white); color: var(--navy-800); border-color: var(--navy-800); }
.btn-secondary:hover { background: var(--navy-800); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy-800); border-color: var(--silver-300); }
.btn-ghost:hover { border-color: var(--navy-800); color: var(--navy-800); }
.btn-light { background: var(--white); color: var(--navy-800); }
.btn-light:hover { background: var(--silver-200); color: var(--navy-900); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: var(--white); border-color: var(--white); }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-alt { background: var(--silver-100); }
.section-dark { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #dfe7f3; }
.section-dark h2, .section-dark h3 { color: var(--white); }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 10px;
}
.section-dark .eyebrow { color: var(--blue-400); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.lead { font-size: 1.18rem; color: var(--muted); }
.section-dark .lead { color: #c4d1e4; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(32,164,243,.14), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(10,95,209,.08), transparent 60%),
    var(--white);
  padding: 72px 0 80px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-login { margin-top: 22px; font-size: .95rem; color: var(--muted); }
.hero-logo { justify-self: center; width: min(420px, 100%); filter: drop-shadow(0 18px 40px rgba(11,31,77,.18)); }

@media (max-width: 860px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-logo { width: min(260px, 70%); order: -1; }
}

.page-hero {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #d5e0f0; padding: 64px 0 56px;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero .lead { color: #c4d1e4; max-width: 720px; margin: 0; }
.page-hero .eyebrow { color: var(--blue-400); }
.breadcrumb { font-size: .9rem; margin-bottom: 14px; color: #a9b9d1; }
.breadcrumb a { color: #cfe0f7; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--silver-200); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.card .card-link { margin-top: auto; font-weight: 650; text-decoration: none; }
.card .card-link::after { content: " \2192"; }
.card-hover { transition: transform .15s, box-shadow .15s, border-color .15s; }
.card-hover:hover { transform: translateY(-3px); border-color: var(--blue-400); box-shadow: 0 12px 32px rgba(7,22,52,.12); }

.icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-500)); color: var(--white);
}
.icon svg { width: 26px; height: 26px; }

.tag {
  display: inline-block; font-size: .78rem; font-weight: 650; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px; background: #e6f1fd; color: var(--blue-600); margin-bottom: 12px; align-self: flex-start;
}
.tag-new { background: #e8f7ee; color: var(--success); }

.check-list { list-style: none; padding: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-600) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- Process steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.steps li { margin: 0; counter-increment: step; position: relative; padding: 24px 20px; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--silver-200); }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy-800); color: var(--white); font-weight: 700; margin-bottom: 14px;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { font-size: .95rem; color: var(--muted); margin: 0; }
.section-dark .steps li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.section-dark .steps li::before { background: var(--blue-500); }
.section-dark .steps p { color: #c4d1e4; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.split-form { grid-template-columns: 1.4fr .9fr; }
@media (max-width: 860px) { .split, .split-form { grid-template-columns: 1fr; gap: 32px; } }

.panel { background: var(--silver-100); border: 1px solid var(--silver-200); border-radius: var(--radius-lg); padding: 28px; }
.panel h3 { margin-bottom: 12px; }

.notice {
  border-left: 4px solid var(--blue-500); background: #eef5fe; padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0; color: var(--charcoal); font-size: .98rem;
}

/* ---------- Portfolio ---------- */
.portfolio-card .thumb {
  aspect-ratio: 4 / 3; border-radius: var(--radius); margin: -8px -8px 20px;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-500));
  display: grid; place-items: center; color: rgba(255,255,255,.92);
}
.portfolio-card .thumb svg { width: 56px; height: 56px; opacity: .9; }
.portfolio-card .thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.meta { font-size: .9rem; color: var(--muted); margin-bottom: 8px; }
.meta strong { color: var(--charcoal); }

/* ---------- Packages ---------- */
.package { position: relative; }
.package .price { font-size: 1.6rem; font-weight: 800; color: var(--navy-800); margin: 6px 0 4px; }
.package .price-note { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.package ul { margin-bottom: 24px; }
.package .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--silver-200); }
.faq details { border-bottom: 1px solid var(--silver-200); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-weight: 650; color: var(--navy-800); font-size: 1.07rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--blue-600);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 20px; color: var(--text); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band .lead { margin: 0 auto 28px; max-width: 620px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 650; color: var(--charcoal); font-size: .97rem; }
.field .hint { font-size: .88rem; color: var(--muted); }
.req { color: var(--error); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--charcoal); background: var(--white);
  border: 1.5px solid var(--silver-300); border-radius: var(--radius); padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(20,121,230,.2); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field-error { color: var(--error); font-size: .88rem; font-weight: 600; display: none; }
.field.has-error .field-error { display: block; }
.field label.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; font-weight: 400; }
.checkbox input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; accent-color: var(--blue-600); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 18px; border-radius: var(--radius); font-weight: 600; display: none; }
.form-status.is-success { display: block; background: #e8f7ee; color: var(--success); border: 1px solid #b7e2c6; }
.form-status.is-error { display: block; background: #fdecea; color: var(--error); border: 1px solid #f5c2bd; }

.contact-list { list-style: none; padding: 0; margin: 0 0 8px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-list .icon { width: 42px; height: 42px; margin: 0; border-radius: 10px; flex-shrink: 0; }
.contact-list .icon svg { width: 20px; height: 20px; }
.contact-list .label { display: block; font-size: .85rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.contact-list a { font-weight: 650; font-size: 1.05rem; word-break: break-word; }

/* ---------- Prose (policy pages) ---------- */
.prose h2 { font-size: 1.45rem; margin-top: 2em; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { color: var(--text); }
.updated { color: var(--muted); font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9c6da; padding: 56px 0 28px; font-size: .96rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { color: var(--white); font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #dbe5f3; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 52px; background: var(--white); border-radius: 10px; padding: 6px; }
.footer-brand span { color: var(--white); font-weight: 800; letter-spacing: .08em; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .88rem; color: #93a3bb;
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.stack-sm > * + * { margin-top: 12px; }
