/* =========================================================
   Advisory Tax Path — Stylesheet
   Palette: fjord teal + vermilion on frost white
   Fonts: Urbanist (headings), Hanken Grotesk (body)
   ========================================================= */
:root {
  --teal: #115e67;
  --teal-2: #0b434a;
  --teal-3: #17737e;
  --teal-soft: #e6f2f2;
  --verm: #e4572e;
  --verm-2: #c8431c;
  --verm-soft: #fdece6;
  --frost: #f3f8f8;
  --ink: #10262a;
  --text: #4d5f62;
  --line: #dce8e8;
  --white: #ffffff;
  --radius: 6px;
  --shadow: 0 16px 40px rgba(16, 38, 42, .10);
  --shadow-sm: 0 6px 18px rgba(16, 38, 42, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Urbanist", "Hanken Grotesk", sans-serif;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.2;
}
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--verm); }
img { max-width: 100%; display: block; }

.section { padding: 100px 0; }
.section-sm { padding: 70px 0; }
.bg-frost { background: var(--frost); }
.bg-teal { background: var(--teal-2); color: rgba(255,255,255,.8); }
.bg-teal h2, .bg-teal h3, .bg-teal h4 { color: var(--white); }

.sec-title {
  font-size: clamp(1.9rem, 3.3vw, 2.7rem);
  margin-bottom: 18px;
  padding-left: 18px;
  border-left: 5px solid var(--verm);
}
.text-center .sec-title { padding-left: 0; border-left: 0; display: inline-block; padding-bottom: 12px; border-bottom: 4px solid var(--verm); }
.sec-intro { max-width: 660px; margin: 0 auto; font-size: 1.07rem; }
.bg-teal .sec-intro { color: rgba(255,255,255,.78); }

/* ---------- Logo ---------- */
.atp-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Urbanist", sans-serif;
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--white);
  white-space: nowrap;
}
.atp-logo:hover { color: var(--white); }
.atp-logo .mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--verm);
  color: var(--white);
  display: grid; place-items: center;
  font-size: 1.1rem;
}

/* ---------- Header (solid teal) ---------- */
.atp-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: var(--teal);
  transition: background .25s, box-shadow .25s;
}
.atp-header.scrolled { background: var(--teal-2); box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.atp-header .navbar { padding: 16px 0; }
.atp-header .nav-link {
  font-weight: 600;
  color: rgba(255,255,255,.85);
  padding: 8px 14px !important;
  position: relative;
}
.atp-header .nav-link:hover { color: var(--white); }
.atp-header .nav-link.active { color: var(--white); }
.atp-header .nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 3px;
  background: var(--verm);
}
.atp-header .phone-link { color: var(--white); font-weight: 700; }
.atp-header .phone-link i { color: var(--verm); margin-right: 6px; }
.navbar-toggler { border: 1px solid rgba(255,255,255,.4); padding: 6px 10px; font-size: 1.5rem; color: var(--white); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(228,87,46,.4); }

/* ---------- Buttons ---------- */
.btn { font-weight: 700; border-radius: var(--radius); padding: 13px 28px; transition: all .2s; letter-spacing: .01em; }
.btn-sm { padding: 8px 18px; font-size: .9rem; }
.btn-verm { background: var(--verm); color: var(--white); border: 2px solid var(--verm); }
.btn-verm:hover, .btn-verm:focus { background: var(--verm-2); border-color: var(--verm-2); color: var(--white); }
.btn-teal { background: var(--teal); color: var(--white); border: 2px solid var(--teal); }
.btn-teal:hover, .btn-teal:focus { background: var(--teal-2); border-color: var(--teal-2); color: var(--white); }
.btn-outline-teal { background: transparent; color: var(--teal); border: 2px solid var(--teal); }
.btn-outline-teal:hover { background: var(--teal); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.65); }
.btn-ghost:hover { background: var(--white); color: var(--teal); }

/* ---------- Hero (image background) ---------- */
.hero {
  position: relative;
  padding: 140px 0 130px;
  background-size: cover;
  background-position: center;
  color: rgba(255,255,255,.88);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,67,74,.96) 0%, rgba(11,67,74,.85) 45%, rgba(11,67,74,.35) 100%);
}
.hero .container { position: relative; }
.hero h1 { color: var(--white); font-size: clamp(2.4rem, 5vw, 3.9rem); margin-bottom: 22px; max-width: 680px; }
.hero h1 span { color: #ff9a7a; }
.hero .lead { font-size: 1.15rem; max-width: 560px; margin-bottom: 34px; }
.hero-ticks { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 14px 30px; }
.hero-ticks li { font-weight: 600; display: flex; align-items: center; gap: 8px; }
.hero-ticks i { color: #ff9a7a; font-size: 1.15rem; }

/* ---------- Service cards ---------- */
.svc-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.svc-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.svc-card .svc-img { position: relative; }
.svc-card .svc-img img { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.svc-card .svc-ico {
  position: absolute;
  right: 22px; bottom: -28px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--verm);
  color: var(--white);
  border: 4px solid var(--white);
  display: grid; place-items: center;
  font-size: 1.35rem;
}
.svc-card .svc-body { padding: 34px 26px 28px; display: flex; flex-direction: column; flex-grow: 1; }
.svc-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.svc-card p { font-size: .97rem; flex-grow: 1; margin-bottom: 20px; }
.svc-card .btn { align-self: flex-start; }

/* ---------- About ---------- */
.about-pic { position: relative; padding: 0 0 26px 26px; }
.about-pic::before {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 55%; height: 60%;
  background: var(--verm);
  border-radius: var(--radius);
}
.about-pic img { position: relative; width: 100%; height: 470px; object-fit: cover; border-radius: var(--radius); }
.dot-list { list-style: none; padding: 0; margin: 22px 0 30px; }
.dot-list li { padding-left: 30px; position: relative; margin-bottom: 12px; font-weight: 600; color: var(--ink); }
.dot-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 7px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 4px solid var(--verm);
}

/* ---------- Estimated tax planner ---------- */
.est-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; border-top: 6px solid var(--verm); }
.est-in { padding: 42px; }
.est-in .form-label, .est-in .range-label label { font-weight: 700; color: var(--ink); }
.range-label { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.range-label output { background: var(--verm-soft); color: var(--verm-2); font-weight: 800; padding: 2px 12px; border-radius: 4px; }
.form-range::-webkit-slider-thumb { background: var(--verm); }
.form-range::-moz-range-thumb { background: var(--verm); }
.est-out { background: var(--teal-soft); padding: 42px; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.est-out .main small { display: block; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .06em; font-size: .78rem; }
.est-out .main strong { display: block; font-family: "Urbanist", sans-serif; font-size: 2.8rem; color: var(--teal-2); line-height: 1.1; margin: 4px 0 18px; }
.est-out .line { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px dashed #b9d4d4; }
.est-out .line strong { color: var(--ink); }
.est-out .msg { font-size: .94rem; margin: 16px 0; }

/* ---------- Alaska notes ---------- */
.note-card {
  display: flex; gap: 18px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  height: 100%;
  box-shadow: var(--shadow-sm);
}
.note-card i {
  flex: 0 0 52px; height: 52px;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--white);
  display: grid; place-items: center;
  font-size: 1.3rem;
}
.note-card h4 { font-size: 1.12rem; margin-bottom: 6px; }
.note-card p { margin: 0; font-size: .95rem; }

/* ---------- Steps ---------- */
.step-card {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 30px 26px;
  height: 100%;
  position: relative;
  transition: background .25s;
}
.step-card:hover { background: rgba(255,255,255,.05); }
.step-card .lbl { color: #ff9a7a; font-weight: 800; font-family: "Urbanist", sans-serif; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
.step-card i { font-size: 2rem; color: var(--white); display: block; margin: 12px 0 14px; }
.step-card h4 { font-size: 1.2rem; margin-bottom: 8px; }
.step-card p { margin: 0; font-size: .95rem; }

/* ---------- Testimonials ---------- */
.review {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 30px 28px;
  height: 100%;
  border-bottom: 4px solid var(--teal);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.review .bi-quote { position: absolute; right: 24px; top: 14px; font-size: 3rem; color: var(--verm-soft); line-height: 1; }
.review .stars { color: var(--verm); letter-spacing: 2px; margin-bottom: 12px; }
.review p { color: var(--ink); position: relative; }
.review h5 { font-size: 1rem; margin: 0; color: var(--teal); }

/* ---------- Blog cards ---------- */
.blog-tile { height: 100%; display: flex; flex-direction: column; }
.blog-tile .bt-img { display: block; overflow: hidden; border-radius: var(--radius); }
.blog-tile .bt-img img { width: 100%; height: 240px; object-fit: cover; transition: transform .5s; }
.blog-tile:hover .bt-img img { transform: scale(1.05); }
.blog-tile .bt-body { padding: 22px 4px 0; display: flex; flex-direction: column; flex-grow: 1; }
.blog-tile h3 { font-size: 1.25rem; margin-bottom: 10px; }
.blog-tile h3 a { color: var(--ink); }
.blog-tile h3 a:hover { color: var(--teal); }
.blog-tile p { font-size: .97rem; flex-grow: 1; }
.go-link { font-weight: 800; color: var(--verm); display: inline-flex; align-items: center; gap: 6px; }
.go-link:hover { color: var(--teal); gap: 10px; }

/* ---------- FAQ ---------- */
.faq .accordion-item { border: 0; border-bottom: 1px solid var(--line); background: transparent; }
.faq .accordion-button { font-family: "Urbanist", sans-serif; font-weight: 800; font-size: 1.08rem; color: var(--ink); padding: 20px 4px; background: transparent; }
.faq .accordion-button:not(.collapsed) { color: var(--verm); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: none; }
.faq .accordion-body { padding: 0 4px 20px; }

/* ---------- Newsletter band ---------- */
.news-band {
  background: linear-gradient(120deg, var(--teal) 0%, var(--teal-2) 100%);
  color: rgba(255,255,255,.85);
  padding: 70px 0;
}
.news-band h2 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta-field { display: flex; gap: 10px; }
.cta-field .form-control { border: 0; border-radius: var(--radius); padding: 14px 18px; }
.cta-field.is-invalid .form-control { box-shadow: 0 0 0 2px #ffb4a3; }
.news-band .invalid-feedback { color: #ffd2c6; font-weight: 600; }

/* ---------- Page top ---------- */
.page-top {
  background: var(--teal-2);
  padding: 80px 0 70px;
  color: rgba(255,255,255,.8);
  position: relative;
  overflow: hidden;
}
.page-top::before {
  content: "";
  position: absolute;
  right: -40px; bottom: -40px;
  width: 0; height: 0;
  border-left: 260px solid transparent;
  border-bottom: 260px solid rgba(228,87,46,.18);
}
.page-top .container { position: relative; }
.page-top h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); max-width: 820px; }
.page-top p { max-width: 640px; margin-bottom: 0; }
.page-top .breadcrumb { margin: 20px 0 0; }
.page-top .breadcrumb-item, .page-top .breadcrumb-item a { color: rgba(255,255,255,.75); font-weight: 600; }
.page-top .breadcrumb-item a:hover { color: #ff9a7a; }
.page-top .breadcrumb-item.active { color: #ff9a7a; }
.page-top .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ---------- About page ---------- */
.val-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  height: 100%;
  border-top: 4px solid var(--teal);
}
.val-card i { font-size: 1.8rem; color: var(--verm); display: block; margin-bottom: 12px; }
.val-card h3 { font-size: 1.2rem; margin-bottom: 8px; }

/* ---------- Single post ---------- */
.post-hero { width: 100%; height: 440px; object-fit: cover; border-radius: var(--radius); margin-bottom: 36px; }
.post-body p { font-size: 1.07rem; margin-bottom: 20px; }
.post-body h2 { font-size: 1.6rem; margin: 34px 0 14px; }
.key-point {
  background: var(--teal-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 28px 0;
  display: flex; gap: 14px;
  color: var(--teal-2);
  font-weight: 700;
}
.key-point i { color: var(--verm); font-size: 1.4rem; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 26px; }
.side-card h4 { font-size: 1.15rem; margin-bottom: 18px; }
.side-card.teal { background: var(--teal); border-color: var(--teal); color: rgba(255,255,255,.85); }
.side-card.teal h4 { color: var(--white); }
.side-post { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.side-post:last-child { margin-bottom: 0; }
.side-post img { width: 80px; height: 64px; object-fit: cover; border-radius: var(--radius); flex: 0 0 80px; }
.side-post a { color: var(--ink); font-weight: 700; font-size: .95rem; line-height: 1.4; }
.side-post a:hover { color: var(--teal); }
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { border-bottom: 1px solid var(--line); }
.side-list li:last-child { border-bottom: 0; }
.side-list a { display: block; padding: 10px 0; color: var(--text); font-weight: 600; }
.side-list a:hover { color: var(--verm); }
.post-pager { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 36px; }

/* ---------- Contact ---------- */
.reach {
  display: flex; gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.reach:first-child { padding-top: 0; }
.reach i {
  flex: 0 0 50px; height: 50px;
  border-radius: 50%;
  background: var(--verm-soft);
  color: var(--verm);
  display: grid; place-items: center;
  font-size: 1.2rem;
}
.reach h5 { font-size: 1.02rem; margin-bottom: 2px; }
.reach p, .reach a { margin: 0; font-size: .96rem; word-break: break-word; }
.form-wrap { background: var(--frost); border-radius: var(--radius); padding: 42px; }
.form-wrap .form-label, .nl-body .form-label { font-weight: 700; color: var(--ink); font-size: .94rem; }
.form-control, .form-select { border-radius: var(--radius); padding: 12px 14px; border-color: var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(17,94,103,.14); }
.form-check-input:checked { background-color: var(--teal); border-color: var(--teal); }
.map-wrap { border-radius: var(--radius); overflow: hidden; }
.map-wrap iframe { width: 100%; height: 400px; border: 0; display: block; }
.form-alert { display: none; margin-top: 16px; border-radius: var(--radius); padding: 12px 16px; font-weight: 600; }
.form-alert.show { display: block; }

/* ---------- Newsletter pages ---------- */
.nl-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.nl-img { height: 100%; min-height: 300px; }
.nl-img img { width: 100%; height: 100%; object-fit: cover; }
.nl-body { padding: 46px; }

/* ---------- Legal ---------- */
.legal h2 { font-size: 1.4rem; margin: 34px 0 12px; }
.legal .updated { display: inline-block; background: var(--teal-soft); color: var(--teal-2); font-weight: 700; padding: 6px 14px; border-radius: 4px; margin-bottom: 20px; font-size: .9rem; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.atp-footer { background: var(--ink); color: rgba(255,255,255,.7); border-top: 6px solid var(--verm); }
.atp-footer .ft-main { padding: 80px 0 50px; }
.atp-footer h5 { color: var(--white); font-size: 1.1rem; margin-bottom: 20px; }
.atp-footer a { color: rgba(255,255,255,.7); }
.atp-footer a:hover { color: #ff9a7a; }
.ft-list { list-style: none; padding: 0; margin: 0; }
.ft-list li { margin-bottom: 10px; }
.ft-contact li { display: flex; gap: 10px; }
.ft-contact i { color: var(--verm); margin-top: 3px; }
.ft-social { display: flex; gap: 10px; margin-top: 20px; }
.ft-social a { width: 40px; height: 40px; border-radius: var(--radius); background: rgba(255,255,255,.08); display: grid; place-items: center; }
.ft-social a:hover { background: var(--verm); color: var(--white); }
.ft-news .form-control { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); color: var(--white); }
.ft-news .form-control::placeholder { color: rgba(255,255,255,.5); }
.ft-news .invalid-feedback { color: #ffb4a3; }
.ft-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: .9rem; }
.ft-bottom a { margin-left: 18px; }
.ft-bottom a:first-child { margin-left: 0; }

/* ---------- Back to top ---------- */
.atp-top {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--verm);
  color: var(--white);
  border: 0;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: all .25s;
  z-index: 1040;
}
.atp-top.show { opacity: 1; visibility: visible; transform: none; }
.atp-top:hover { background: var(--teal); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .section { padding: 76px 0; }
  .hero { padding: 100px 0 90px; }
  .hero::before { background: rgba(11,67,74,.88); }
  .about-pic img { height: 380px; }
  .atp-header .navbar-collapse { padding: 14px 0 8px; }
  .atp-header .nav-link.active::after { display: none; }
  .est-in, .est-out { padding: 30px; }
}
@media (max-width: 767.98px) {
  .form-wrap, .nl-body { padding: 28px 22px; }
  .post-hero { height: 280px; }
  .ft-bottom a { margin: 0 8px; }
  .nl-img { min-height: 220px; }
  .cta-field { flex-direction: column; }
}
@media (max-width: 575.98px) {
  .atp-logo { font-size: 1.22rem; }
  .atp-logo .mark { width: 36px; height: 36px; }
  .est-out .main strong { font-size: 2.2rem; }
}
