/* Choctawhatchee Trading Company — public site, SharePoint-like Fluent styling */
@font-face {
  font-family: "CT Sans";
  src: url("../fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --theme: #0b5e62;
  --theme-hover: #08484b;
  --theme-pressed: #06383b;
  --theme-ink: #062e31;
  --theme-soft: #e7f3f3;
  --theme-mid: #b7d6d6;
  --suite: #062e31;
  --suite-text: #e8f2f2;
  --ink: #201f1e;
  --ink-secondary: #323130;
  --muted: #605e5c;
  --subtle: #8a8886;
  --line: #edebe9;
  --line-strong: #d2d0ce;
  --canvas: #f3f2f1;
  --surface: #ffffff;
  --warning-bg: #fff4ce;
  --warning-ink: #6d4c00;
  --warning-border: #f0d36c;
  --shadow-sm: 0 1px 2px rgba(16, 24, 32, 0.06), 0 0 1px rgba(16, 24, 32, 0.1);
  --shadow-md: 0 4px 14px rgba(16, 24, 32, 0.1), 0 1px 4px rgba(16, 24, 32, 0.06);
  --radius: 4px;
  --radius-tile: 2px;
  --header-h: 108px;
  --suite-h: 40px;
  --gutter: 32px;
  --canvas-max: 1204px;
  --font: "Segoe UI", "Segoe UI Variable Text", "Segoe UI Web (West European)", "CT Sans", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --focus: 2px solid var(--theme);
}

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

html { scroll-behavior: smooth; }
#site-setup,
#copilot-readiness,
#main [id] { scroll-margin-top: 80px; }

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

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--theme); text-underline-offset: 2px; }
a:hover { color: var(--theme-hover); }
:focus { outline: none; }
:focus-visible { outline: var(--focus); outline-offset: 2px; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 1000;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.skip-link:focus { top: 8px; }

/* ----- Suite bar ----- */
.suite-bar {
  height: var(--suite-h);
  background: var(--suite);
  color: var(--suite-text);
  display: flex;
  align-items: center;
  padding: 0 var(--gutter);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}
.suite-bar-inner {
  width: 100%;
  max-width: var(--canvas-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.suite-brand {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suite-brand:hover { color: #fff; }
.suite-meta {
  color: rgba(232, 242, 242, 0.75);
  white-space: nowrap;
}

/* ----- Site header + nav (SharePoint communication site style) ----- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header-inner {
  max-width: var(--canvas-max);
  margin: 0 auto;
  padding: 12px var(--gutter) 0;
}
.site-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
  flex: 1;
}
.site-logo:hover { color: var(--ink); }
.site-logo-tile {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--theme);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}
.site-name {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-secondary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--canvas); }
.nav-toggle-bars {
  width: 16px;
  height: 10px;
  display: block;
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 0 4.25px / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) 0 8.5px / 100% 1.5px no-repeat;
}

.site-nav {
  display: flex;
  align-items: stretch;
  gap: 4px;
  margin: 4px 0 0;
  padding: 0 0 0 60px; /* line up under the site name, past the logo tile */
}
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  border-radius: var(--radius) var(--radius) 0 0;
  white-space: nowrap;
}
.site-nav a:hover {
  background: var(--canvas);
  color: var(--ink);
}
.site-nav a[aria-current="page"] {
  font-weight: 600;
  color: var(--ink);
}
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  background: var(--theme);
  border-radius: 1px 1px 0 0;
}

/* ----- Page canvas ----- */
.page {
  flex: 1 0 auto;
}
.section {
  padding: 28px var(--gutter);
}
.section-inner {
  max-width: var(--canvas-max);
  margin: 0 auto;
}
.section--tight { padding-top: 16px; }
.section--hero {
  padding-top: 16px;
  padding-bottom: 8px;
}
.webpart-title {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.webpart-title a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.webpart-title a:hover { text-decoration: underline; }

.page-title {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
}
.lead {
  margin: 0 0 16px;
  font-size: 18px;
  color: var(--ink-secondary);
  max-width: 46rem;
}
.prose p { margin: 0 0 12px; max-width: 46rem; }
.prose p:last-child { margin-bottom: 0; }

/* ----- Hero web part (4 tiles) ----- */
.hero {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: repeat(3, 1fr);
  gap: 8px;
  min-height: 392px;
  height: 392px;
}
.hero-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: var(--radius-tile);
  color: #fff;
  text-decoration: none;
  min-height: 0;
  background: var(--theme-ink) center / cover no-repeat;
  isolation: isolate;
}
.hero-tile:focus-visible { outline-offset: 3px; }
.hero-tile--main {
  grid-row: 1 / -1;
}
.hero-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 20, 22, 0.78) 0%, rgba(6, 20, 22, 0.28) 48%, rgba(6, 20, 22, 0.08) 100%);
  z-index: 1;
  transition: background-color 0.2s ease;
}
.hero-tile:hover::before,
.hero-tile:focus-visible::before {
  background:
    linear-gradient(to top, rgba(6, 20, 22, 0.86) 0%, rgba(6, 20, 22, 0.36) 50%, rgba(6, 20, 22, 0.12) 100%);
}
.hero-tile--photo::before {
  background:
    linear-gradient(to top, rgba(6, 16, 18, 0.92) 0%, rgba(6, 16, 18, 0.62) 46%, rgba(6, 16, 18, 0.22) 100%);
}
.hero-tile--photo:hover::before,
.hero-tile--photo:focus-visible::before {
  background:
    linear-gradient(to top, rgba(6, 16, 18, 0.95) 0%, rgba(6, 16, 18, 0.7) 50%, rgba(6, 16, 18, 0.3) 100%);
}
.hero-tile p { overflow-wrap: break-word; }
.hero-tile-body {
  position: relative;
  z-index: 2;
  padding: 20px 22px;
}
.hero-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.hero-tile h2,
.hero-tile h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.hero-tile--main h2 { font-size: 28px; max-width: 18ch; }
.hero-tile h3 { font-size: 16px; }
.hero-tile p {
  margin: 8px 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.92);
  max-width: 36ch;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 14px;
  height: 32px;
  padding: 0 16px;
  background: var(--theme);
  color: #fff;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  pointer-events: none;
}
.hero-tile:hover .hero-cta { background: var(--theme-hover); }

/* ----- Quick links ----- */
.quick-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 4px;
}
.quick-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 16px 6px 6px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  min-width: 200px;
  flex: 1 1 200px;
  max-width: 280px;
}
.quick-links a:hover { background: #eaeaea; color: var(--ink); }
.ql-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--theme-soft);
  color: var(--theme);
  display: grid;
  place-items: center;
  flex: 0 0 32px;
}
.ql-icon svg { width: 16px; height: 16px; display: block; }

/* ----- Text + two-up intro ----- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 48px;
  align-items: start;
}
.intro-grid h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.muted { color: var(--muted); }
.fine-print { font-size: 13px; color: var(--muted); }

/* ----- Service preview cards ----- */
.package-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.package-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.package-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
}
.package-card .price-line {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
}
.package-card p { margin: 0 0 16px; }
.package-card .btn { margin-top: auto; align-self: flex-start; }

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 8px;
  align-items: stretch;
}
.tier-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tier-card header { margin-bottom: 12px; }
.tier-name {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--theme);
}
.tier-price {
  margin: 0;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}
.tier-delivery {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.tier-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}
.tier-card li {
  position: relative;
  padding: 8px 0 8px 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-secondary);
}
.tier-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--theme-mid);
}
.section-heading {
  margin: 8px 0 8px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.also-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.also-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 14px;
}
.also-list strong { display: block; font-size: 15px; margin-bottom: 2px; }

/* ----- News cards ----- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.news-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid transparent;
  transition: box-shadow 0.15s ease;
}
.news-card:hover {
  box-shadow: var(--shadow-md);
  color: inherit;
}
.news-card-image {
  aspect-ratio: 16 / 9;
  background: var(--theme-ink) center / cover no-repeat;
}
.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}
.news-card-body { padding: 12px 16px 16px; }
.news-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.news-meta {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 32px;
  padding: 0 16px;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--theme);
  color: #fff;
}
.btn-primary:hover { background: var(--theme-hover); color: #fff; }
.btn-primary:active { background: var(--theme-pressed); color: #fff; }
.btn-secondary {
  background: var(--surface);
  color: var(--ink-secondary);
  border-color: var(--line-strong);
}
.btn-secondary:hover { background: var(--canvas); color: var(--ink); }
.btn-lg { height: 40px; padding: 0 20px; font-size: 15px; }

/* ----- Placeholder copy ----- */
.placeholder {
  background: var(--warning-bg);
  border: 1px dashed var(--warning-border);
  color: var(--warning-ink);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin: 0 0 12px;
  max-width: 46rem;
}
.placeholder-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.placeholder p { margin: 0; max-width: none; }

/* ----- Contact ----- */
.contact-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 28px;
  max-width: 36rem;
}
.contact-panel h2 { margin: 0 0 8px; font-size: 20px; }
.contact-email {
  font-size: 18px;
  font-weight: 600;
  word-break: break-word;
}
.contact-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  font-size: 14px;
  color: var(--ink-secondary);
}
.contact-list li { margin: 0 0 6px; }

/* ----- Demo feature ----- */
.demo-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.demo-feature-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  min-height: 240px;
}
.demo-feature-body { padding: 24px 24px 28px 8px; }
.demo-badge {
  display: inline-block;
  background: #c9a227;
  color: #1b1400;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 3px;
  margin-bottom: 10px;
}
.demo-feature-body h2 { margin: 0 0 8px; font-size: 22px; }
.demo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.note-box {
  background: var(--theme-soft);
  border-left: 3px solid var(--theme);
  padding: 12px 14px;
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--ink-secondary);
  max-width: 46rem;
}

/* ----- Footer ----- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  margin-top: auto;
  padding: 28px var(--gutter) 32px;
  color: var(--muted);
  font-size: 13px;
}
.site-footer-inner {
  max-width: var(--canvas-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}
.site-footer h2 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.site-footer p, .site-footer ul { margin: 0; }
.site-footer p.footer-legal { margin-top: 12px; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin: 0 0 4px; }
.site-footer a { color: var(--ink-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--theme); text-decoration: underline; }
.footer-legal { margin-top: 8px; color: var(--subtle); }

/* ----- 404 ----- */
.empty-state {
  text-align: left;
  padding: 48px 0 72px;
  max-width: 36rem;
}

/* ----- Responsive ----- */
@media (max-width: 980px) {
  :root { --gutter: 24px; }
  .hero {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 160px 160px;
    height: auto;
    min-height: 0;
  }
  .hero-tile--main { grid-column: 1 / -1; grid-row: 1; }
  .hero-tile--main h2 { font-size: 24px; max-width: none; }
  .intro-grid,
  .package-grid,
  .demo-feature,
  .site-footer-inner { grid-template-columns: 1fr; }
  .demo-feature-body { padding: 20px 20px 24px; }
  .tier-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --gutter: 16px; --header-h: auto; }
  .suite-meta { display: none; }
  .site-name { font-size: 17px; }
  .site-logo-tile { width: 40px; height: 40px; flex-basis: 40px; font-size: 15px; }
  .nav-toggle { display: inline-flex; }
  .site-header-inner { padding-top: 8px; padding-bottom: 8px; }
  .site-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px 0 12px;
    margin: 8px 0 0;
    border-top: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a {
    height: 44px;
    border-radius: var(--radius);
  }
  .site-nav a[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 10px;
    bottom: 10px;
    width: 3px;
    height: auto;
    border-radius: 0 2px 2px 0;
  }
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }
  .hero-tile--main { grid-column: auto; min-height: 240px; }
  .hero-tile { min-height: 148px; }
  .hero-tile--main h2 { font-size: 22px; }
  .hero-tile-body { padding: 16px; }
  .quick-links a { max-width: none; flex-basis: 100%; }
  .news-grid,
  .also-list { grid-template-columns: 1fr; }
  .page-title { font-size: 24px; }
  .lead { font-size: 17px; }
  .section { padding: 20px var(--gutter); }
}

@media (min-width: 1400px) {
  :root { --canvas-max: 1280px; }
}
