/* Tipton Digital — site styles */
:root {
  --navy: #110D46;
  --navy-2: #1E1A5C;
  --teal: #64BFB3;
  --teal-ink: #1F7A6E;   /* teal dark enough for text on white */
  --teal-soft: #E3F4F1;
  --teal-light: #9FDCD3; /* teal for text on navy */
  --ink: #110D46;
  --body: #3E3B63;
  --muted: #4A4868;
  --on-dark: #D4D2E8;
  --line: #E4E7EF;
  --field: #C9CDDB;
  --soft: #F3F5F9;
  --white: #FFFFFF;
  --error: #B42318;
  --radius: 16px;
  --display: Montserrat, system-ui, sans-serif;
  --text: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--text); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--white); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); color: inherit; margin: 0; }
p { margin: 0; }
a { color: var(--teal-ink); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 12px 16px; z-index: 10; }
.skip:focus { left: 16px; top: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand img { height: 52px; width: auto; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 26px; font-family: var(--display); font-size: 15px; font-weight: 600; }
.nav-links a:not(.btn) { color: var(--ink); text-decoration: none; padding: 10px 0; display: inline-block; }
.nav-links a:not(.btn):hover { color: var(--teal-ink); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 24px; border-radius: 8px; font-family: var(--display); font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); color: #fff; }
.btn-light { background: #fff; color: var(--navy); border-color: var(--field); }
.btn-light:hover { border-color: var(--navy); color: var(--navy); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* Sections */
.section { padding: 96px 0; }
.band-soft { background: var(--soft); }
.band-dark { background: var(--navy); color: #fff; }
.eyebrow { font-family: var(--display); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); margin-bottom: 12px; }
.eyebrow-light { color: var(--teal-light); }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; font-weight: 700; max-width: 760px; margin-bottom: 16px; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.3; }
.intro { color: var(--body); max-width: 720px; margin-bottom: 48px; }
.band-dark .intro { color: var(--on-dark); }

/* Hero */
.hero { padding: 88px 0 96px; }
.hero-grid { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 1 1 520px; min-width: 0; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 24px; }
.lede { font-size: 20px; color: var(--body); max-width: 600px; margin-bottom: 36px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-panel { flex: 1 1 400px; min-width: 0; background: var(--navy); color: #fff; border-radius: 20px; padding: 32px; }
.panel-label { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-light); margin-bottom: 18px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tiles span { background: var(--navy-2); border-radius: 12px; padding: 16px; font-weight: 600; }
.arrow { color: var(--teal); margin: 14px auto; }
.outcome { background: var(--teal); color: var(--navy); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.outcome strong { font-family: var(--display); font-size: 17px; }
.outcome span { font-size: 16px; }

/* Cards & grids */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.band-soft .card { border-color: transparent; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--body); }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--teal-soft); display: grid; place-items: center; margin-bottom: 20px; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.teal { color: var(--teal-ink); }
.list { margin: 6px 0 0; padding-left: 20px; color: var(--body); display: flex; flex-direction: column; gap: 8px; }

/* Services */
.service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.service.featured { border: 2px solid var(--navy); }
.service h3 { font-size: 23px; }
.service p { color: var(--body); }
.service .promise { color: var(--teal-ink); font-weight: 600; }
.service ul { margin: 0; padding-left: 20px; color: var(--body); }
.service-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.tag { font-family: var(--display); font-size: 13px; font-weight: 700; color: #fff; background: var(--navy); padding: 4px 10px; border-radius: 999px; }

/* Approach */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.steps li { border-top: 3px solid var(--teal); padding-top: 24px; }
.steps .num { display: block; font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--teal-light); margin-bottom: 8px; }
.steps h3 { font-size: 21px; margin-bottom: 10px; }
.steps p { color: var(--on-dark); }

/* Why */
.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > * { flex: 1 1 420px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 28px; margin-top: 16px; }
.stack h3 { margin-bottom: 6px; }
.stack p { color: var(--body); }
.panel-soft { background: var(--soft); border-radius: 20px; padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.mini-card { background: #fff; border-radius: 12px; padding: 24px; }
.mini-card strong { font-family: var(--display); display: block; margin-bottom: 6px; }
.mini-card p { color: var(--body); font-size: 17px; }

/* Contact */
.contact-list { margin: 0; display: flex; flex-direction: column; gap: 10px; color: var(--body); }
.contact-list div { display: flex; flex-wrap: wrap; gap: 6px; }
.contact-list dt { font-weight: 600; color: var(--ink); }
.contact-list dt::after { content: ":"; }
.contact-list dd { margin: 0; }
.lead-form { background: var(--soft); border-radius: 20px; padding: 40px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; }
.req { color: var(--error); }
.field input, .field textarea, .field select { font: inherit; font-size: 17px; color: var(--ink); padding: 12px 14px; border: 1px solid var(--field); border-radius: 8px; background: #fff; width: 100%; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--navy); outline: 3px solid var(--teal-soft); outline-offset: 0; }
.field textarea { resize: vertical; min-height: 130px; }
.field select { appearance: auto; min-height: 48px; }
.optional { font-weight: 400; color: var(--muted); }
.field [aria-invalid="true"] { border-color: var(--error); }
.lead-form .btn { align-self: flex-start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--error); font-weight: 600; }
.fine { font-size: 14px; color: var(--muted); }
.form-success { background: var(--teal-soft); color: var(--teal-ink); border-radius: 20px; padding: 40px; font-weight: 600; font-size: 20px; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-dark); font-size: 15px; }
.site-footer a { color: var(--teal-light); }
.site-footer strong { font-family: var(--display); color: #fff; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 40px; padding-bottom: 40px; }

/* About */
.about { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.about-photo { flex: 0 0 280px; }
.about-photo img, .avatar { width: 280px; height: 280px; border-radius: 24px; object-fit: cover; }
.avatar { display: grid; place-items: center; background: var(--navy); color: var(--teal); font-family: var(--display); font-weight: 700; font-size: 88px; letter-spacing: .02em; }
.about-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.about-copy h2 { margin-bottom: 0; }
.about-copy p { color: var(--body); max-width: 680px; }
.about-copy .lede-sm { font-size: 20px; color: var(--ink); font-weight: 500; }
@media (max-width: 640px) { .about-photo, .about-photo img, .avatar { width: 200px; height: 200px; flex-basis: 200px; } .avatar { font-size: 64px; } }

/* Keep headings visible below the sticky header when jumping to a section */
section[id] { scroll-margin-top: 88px; }
#contact .intro { margin-bottom: 20px; }

/* Call-to-action notes */
.cta-note { margin-top: 14px; font-size: 16px; color: var(--muted); }
.call-list { margin: 0 0 32px; }

/* Links to service pages */
.title-link { color: inherit; text-decoration: none; }
.title-link:hover { color: var(--teal-ink); text-decoration: underline; }
.more { font-family: var(--display); font-weight: 600; font-size: 15px; margin-top: auto; padding-top: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* FAQ */
.faq { max-width: 860px; display: flex; flex-direction: column; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 0 24px; }
.faq summary { cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 18px; padding: 20px 28px 20px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 16px; font-size: 24px; color: var(--teal-ink); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--body); padding-bottom: 20px; }
.band-soft .lead-form { background: #fff; }

/* Service pages */
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 20px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--field); }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.1; letter-spacing: -.01em; margin-bottom: 20px; max-width: 900px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.facts span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; font-weight: 600; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 48px; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: minmax(0, 1fr); } .sticky-cta { position: static; } }
.detail-grid h2 { font-size: 28px; margin-top: 8px; }
.detail-grid h2 + p, .detail-grid h2 + ul { margin-bottom: 36px; }
.detail-grid .list { margin-bottom: 36px; }
.sticky-cta { position: sticky; top: 110px; align-self: start; }
.related { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

/* Collapsible menu (phones and tablets) */
.nav-toggle, .nav-cta-mobile { display: none; }
.nav-toggle { width: 48px; height: 48px; padding: 0; border: 1px solid var(--field); border-radius: 10px; background: #fff; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .nav-toggle .bar { transition: none; } }

@media (max-width: 900px) {
  .nav { flex-wrap: nowrap; position: relative; }
  .nav-cta-mobile { display: inline-flex; margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; padding: 4px 24px 16px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(17,13,70,.08); font-size: 17px; }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links li:nth-last-child(2) a:not(.btn) { border-bottom: 0; } /* last visible link (the CTA item is hidden) */
  .nav-links .nav-cta { display: none; } /* the "Free call" button stays visible in the bar instead */
}

/* Small screens */
@media (max-width: 640px) {
  body { font-size: 17px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .container { padding: 0 16px; }
  .nav { padding-top: 12px; padding-bottom: 12px; } /* keep header spacing; .container above resets padding */
  .brand img { height: 40px; }
  .nav-links { padding: 4px 16px 16px; }
  .nav-cta-mobile { padding: 10px 14px; }
  .card, .service, .lead-form, .panel-soft, .hero-panel { padding: 24px; }
  .lead-form .btn { align-self: stretch; }
}

/* Coming-soon page */
.cs-body { background: var(--soft); }
.cs { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 24px 24px; gap: 24px; }
.cs-card { width: 100%; max-width: 760px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 56px; display: flex; flex-direction: column; gap: 18px; }
.cs-logo { height: 72px; width: auto; align-self: flex-start; margin-bottom: 8px; }
.cs-card .eyebrow { margin-bottom: 0; }
.cs-card h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.1; letter-spacing: -.02em; }
.cs-lede { color: var(--body); font-size: 19px; }
.cs-form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; padding: 24px; background: var(--soft); border-radius: 16px; }
.cs-form label { font-weight: 600; }
.cs-row { display: flex; flex-wrap: wrap; gap: 10px; }
.cs-row input { flex: 1 1 260px; min-width: 0; font: inherit; font-size: 17px; color: var(--ink); padding: 12px 14px; min-height: 48px; border: 1px solid var(--field); border-radius: 8px; background: #fff; }
.cs-row input:focus { border-color: var(--navy); outline: 3px solid var(--teal-soft); outline-offset: 0; }
.cs-row input[aria-invalid="true"] { border-color: var(--error); }
.cs-row .btn { flex: 0 0 auto; }
.cs-card .form-success { font-size: 18px; padding: 24px; margin-top: 10px; }
.cs-services { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cs-services li { font-size: 14px; font-weight: 600; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 6px 12px; }
.cs-footer { font-size: 15px; color: var(--muted); }
@media (max-width: 640px) {
  .cs { padding: 24px 16px 16px; justify-content: flex-start; }
  .cs-card { padding: 28px 20px; border-radius: 20px; }
  .cs-logo { height: 56px; }
  .cs-lede { font-size: 17px; }
  .cs-form { padding: 18px; }
  .cs-row .btn { flex: 1 1 100%; }
}

/* Privacy page */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 16px; }
.prose h2 { font-size: 24px; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--body); }
.prose p + p { margin-top: 12px; }
