/* ============================================================
   TicTie — shared stylesheet
   Plain hand-written CSS. No frameworks, no build step.
   Fonts: Cormorant Garamond (display serif) + Inter (body).
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg:        #faf7f1;   /* warm paper */
  --bg-soft:   #f2ece1;   /* soft cream for alternating sections */
  --card:      #ffffff;
  --ink:       #211b13;   /* near-black warm */
  --muted:     #6f6557;   /* warm gray for secondary text */
  --peach:     #e8a06b;   /* accent — italic serif highlights */
  --peach-deep:#c07a3f;   /* darker peach, readable at small sizes */
  --dark:      #1e1811;   /* CTA band / footer background */
  --dark-ink:  #f6f1e7;   /* text on dark */
  --line:      #e6dccb;   /* hairline borders */
  --radius:    14px;
  --shadow:    0 18px 45px -22px rgba(33, 27, 19, .28);
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 .6em;
  letter-spacing: .01em;
}

p { margin: 0 0 1.1em; }

a { color: inherit; }

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

/* Visible keyboard focus for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--peach);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Peach italic accent used on key headline phrases */
.accent {
  font-style: italic;
  color: var(--peach-deep);
}

/* Accent words that act as links (the Squarespace pattern) */
a.accent-link {
  text-decoration: underline dotted;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}
a.accent-link:hover {
  text-decoration-style: solid;
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: min(var(--maxw), 100% - 3rem);
  margin-inline: auto;
}

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section.soft { background: var(--bg-soft); }

.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--peach-deep);
  margin: 0 0 1rem;
}

.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--muted);
  max-width: 62ch;
}

.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  background: var(--dark); color: var(--dark-ink);
  padding: .6rem 1.1rem; border-radius: 8px;
  z-index: 200; transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0; z-index: 100;
  background: rgba(250, 247, 241, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -18px rgba(33, 27, 19, .35);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
}
.brand em { font-style: italic; color: var(--peach-deep); }

.nav-links {
  display: flex; align-items: center; gap: 2rem;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-size: .95rem; font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink);
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--peach); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--peach-deep); }

/* Mobile menu button */
.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line);
  border-radius: 10px; padding: .55rem .7rem;
  cursor: pointer; color: var(--ink);
}
.nav-toggle svg { display: block; width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .95rem; font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  padding: .95rem 2.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-dark  { background: var(--dark); color: var(--dark-ink); }
.btn-dark:hover { background: #33291c; }

.btn-peach { background: var(--peach); color: var(--dark); }
.btn-peach:hover { background: #f2b483; }

.btn-outline {
  background: transparent; color: var(--dark-ink);
  border-color: rgba(246, 241, 231, .55);
}
.btn-outline:hover { border-color: var(--peach); color: var(--peach); }

/* ---------- Hero (shared) ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(380px, 52vw, 560px);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero img.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(20, 15, 9, .25) 0%,
    rgba(20, 15, 9, .55) 70%,
    rgba(20, 15, 9, .78) 100%);
}
.hero-inner { padding: 4rem 0 3.5rem; max-width: 900px; margin-inline: auto; text-align: center; }
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  margin: 0 0 .5rem;
  text-wrap: balance;
}
.hero .accent { color: var(--peach); } /* brighter peach on dark */
.hero p {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: rgba(255,255,255,.88);
  max-width: 56ch; margin: 0;
}

/* Plain (typographic) hero for pages without a photo */
.hero-plain {
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.hero-plain h1 {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  text-wrap: balance;
}
.hero-plain .lede { margin-inline: auto; }

/* ---------- Landing page (index.html) : minimal full-screen hero ---------- */
.landing {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  color: #fff;
  text-align: center;
  padding: 2rem;
}
.landing img.landing-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  z-index: -2;
}
.landing::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,15,9,.45), rgba(20,15,9,.72));
}
.landing-brand {
  position: absolute; top: 1.6rem; left: 2rem;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
  letter-spacing: .05em; text-decoration: none; color: #fff;
}
.landing h1 {
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  max-width: 16ch;
  margin: 0 auto 2.2rem;
  text-wrap: balance;
}
.landing h1 .accent { color: var(--peach); }
.landing-enter {
  display: inline-block;
  color: #fff; text-decoration: none;
  font-size: .9rem; font-weight: 600;
  letter-spacing: .28em; text-transform: uppercase;
  border-bottom: 1px solid var(--peach);
  padding-bottom: .5rem;
  transition: color .18s, border-color .18s;
}
.landing-enter:hover { color: var(--peach); border-color: #fff; }

/* ---------- Pillars line (Home: Strategy | Finance | Accounting) ---------- */
.pillars-line {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 500;
  margin: 2.5rem 0 0;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: clamp(1rem, 3vw, 2rem);
  flex-wrap: wrap;
}
.pillars-line .div {
  color: var(--peach-deep);
  font-style: italic;
}

/* ---------- Feature rows (About page) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row.flip > :first-child { order: 2; }
.feature-row img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.feature-row h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.feature-row p { color: var(--muted); }

/* ---------- Pull quotes ---------- */
.pull-quote {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(1rem, 3vw, 2rem) 0;
}
.pull-quote blockquote {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-style: italic;
  line-height: 1.4;
  text-wrap: balance;
}
.pull-quote blockquote::before {
  content: "“"; display: block;
  font-size: 3.2rem; line-height: .6;
  color: var(--peach); margin-bottom: .9rem;
  font-style: normal;
}
.pull-quote cite {
  font-style: normal;
  font-size: .85rem; font-weight: 600;
  letter-spacing: .24em; text-transform: uppercase;
  color: var(--peach-deep);
}

/* ---------- Dark CTA band ---------- */
.cta-band {
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(232,160,107,.16), transparent 60%),
    var(--dark);
  color: var(--dark-ink);
  text-align: center;
  padding: clamp(4rem, 9vw, 6.5rem) 1.5rem;
}
.cta-band h2 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  margin-bottom: 1.75rem;
  text-wrap: balance;
}
.cta-band h2 .accent { color: var(--peach); }

/* ---------- Pricing comparison table (Services) ---------- */
.table-scroll {
  overflow-x: auto;
  margin-top: 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.pricing-table {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: .98rem;
}
.pricing-table th,
.pricing-table td {
  padding: 1.05rem 1.25rem;
  text-align: center;
}
.pricing-table thead th {
  vertical-align: bottom;
  border-bottom: 2px solid var(--peach);
  padding-top: 1.75rem;
}
.pricing-table thead th:first-child { text-align: left; }
.pricing-table .t-tier {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 600;
}
.pricing-table .t-price {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--peach-deep);
  margin-top: .15rem;
}
.pricing-table .t-avg {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .45rem;
}
.pricing-table tbody th {
  text-align: left;
  font-weight: 500;
  font-size: .95rem;
}
.pricing-table tbody tr:nth-child(even) { background: rgba(232, 160, 107, .07); }
.pricing-table tbody tr + tr th,
.pricing-table tbody tr + tr td { border-top: 1px solid var(--line); }
.mark-yes { color: var(--peach-deep); font-weight: 700; font-size: 1.2rem; }
.mark-no  { color: #c8bca6; font-size: 1.1rem; }

/* Consulting block */
.consulting {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(2.25rem, 5vw, 3.75rem);
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.consulting .price {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.4rem);
  font-weight: 600; color: var(--peach-deep);
  line-height: 1;
}
.consulting h2 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); margin-bottom: .4rem; }
.consulting ol {
  margin: 1.25rem 0 0; padding: 0;
  list-style: none; display: grid; gap: .65rem;
  counter-reset: sess;
}
.consulting ol li {
  counter-increment: sess;
  padding-left: 2.6rem; position: relative;
  font-size: 1rem;
}
.consulting ol li::before {
  content: counter(sess, decimal-leading-zero);
  position: absolute; left: 0; top: .1em;
  font-family: var(--font-display); font-style: italic;
  color: var(--peach-deep); font-size: 1.05rem;
}
.alacarte {
  margin: 1.4rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--peach-deep);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
  margin-top: 2.5rem;
}
.contact-info h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.contact-line {
  display: flex; align-items: baseline; gap: .9rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1.1rem;
}
.contact-line .label {
  font-size: .78rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--peach-deep); min-width: 5.5rem;
}
.contact-line a { text-decoration: none; border-bottom: 1px solid var(--peach); }
.contact-line a:hover { color: var(--peach-deep); }

.contact-form {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}
.field { margin-bottom: 1.35rem; }
.field label {
  display: block;
  font-size: .82rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .5rem;
}
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .85rem 1rem;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--peach-deep);
  box-shadow: 0 0 0 3px rgba(232, 160, 107, .25);
}

/* ---------- Blog post ---------- */
.prose {
  max-width: 720px;
  margin: 0 auto;
}
.prose p { color: #3d362b; font-size: 1.12rem; }
.post-subhead {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  color: var(--ink);
  margin: 0 0 1.6rem;
}

/* Screen-reader-only text */
.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;
}
.post-meta {
  font-size: .82rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--peach-deep); margin-bottom: 1rem;
}
.post-hero-img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 0 auto 3rem;
  aspect-ratio: 16 / 8;
  object-fit: cover; width: 100%;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: rgba(246, 241, 231, .82);
  padding: clamp(3.5rem, 7vw, 5rem) 0 0;
  margin-top: clamp(3rem, 7vw, 5rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 600;
  color: var(--dark-ink); text-decoration: none;
  letter-spacing: .04em;
}
.footer-brand em { font-style: italic; color: var(--peach); }
.footer-tag { font-size: .95rem; margin-top: .8rem; max-width: 30ch; }
.site-footer h4 {
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--peach); margin: 0 0 1.1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.site-footer ul a { text-decoration: none; font-size: .95rem; }
.site-footer ul a:hover { color: var(--peach); }
.footer-contact li { font-size: .95rem; }
.footer-contact a { text-decoration: none; border-bottom: 1px solid rgba(232,160,107,.5); }
.footer-bottom {
  border-top: 1px solid rgba(246, 241, 231, .14);
  padding: 1.4rem 0;
  font-size: .85rem;
  color: rgba(246, 241, 231, .55);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .feature-row, .consulting, .contact-grid { grid-template-columns: 1fr; }
  .feature-row.flip > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-bar { position: relative; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: .5rem 1.5rem 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    display: block; padding: .85rem 0;
    border-bottom: 1px solid var(--line) !important;
  }
  .nav-links li:last-child a { border-bottom: none !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
