/* CentsSense — minimalist stylesheet (charcoal + CentsSense green accent) */

:root {
  --ink: #1a1a1a;
  --ink-soft: #4a483f;
  --muted: #767669;
  --line: #d9d8d0;
  --page: #eae9e3;    /* warm light-grey page background, matching intelisea.com */
  --header-bg: rgba(234, 233, 227, 0.92);
  --bg: #ffffff;      /* cards / panels sit white on the grey */
  --bg-soft: #f1f0ea; /* subtle banding, a touch lighter than the page */
  --accent: #7937db;        /* Palikea purple — brand / primary */
  --btn: #7f57ba;           /* muted purple — button resting state (hover uses --accent-hover) */
  --accent-dark: #8680ab;
  --accent-hover: #5f2bb0;  /* darker purple — button hover, dark text */
  --accent-tint: #f1e9fb;   /* pale purple — pill fill, ghost hover */
  --accent-tint-border: #ddc9f5;
  --menu-accent: #7937db;   /* purple — logo + menu hover/active underline */
  --max: 1080px;
  --radius: 10px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- Header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;          /* sticky on desktop, like intelisea.com */
  top: 0;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(8px);
  z-index: 10;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  font-family: 'Roboto';
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand .logo-mark {
  font-family: 'Indie Flower', cursive;
  color: var(--menu-accent);
  font-size: 38px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-7px);   /* lift the glyph so it lines up with "Palikea" */
}

.brand .brand-tm {
  font-size: 10px;
  font-weight: 600;
  vertical-align: super;
  color: var(--muted);
  margin-left: 1px;
}

.brand:hover { text-decoration: none; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 15px;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s linear, border-color .2s linear;  /* matches intelisea's fade */
}

.nav-links a:hover { color: var(--ink); text-decoration: none; border-bottom-color: var(--menu-accent); }
.nav-links a.active { color: var(--ink); border-bottom-color: var(--menu-accent); }

/* Mobile nav toggle (CSS-only, Avada-classic style) */
.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;              /* revealed at the mobile breakpoint */
  width: 30px;
  height: 22px;
  cursor: pointer;
  font-size: 0;              /* hide the ☰ fallback glyph; draw bars instead */
  /* three horizontal bars */
  background-image:
    linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink)),
    linear-gradient(var(--ink), var(--ink));
  background-size: 100% 2.5px;
  background-repeat: no-repeat;
  background-position: 0 3px, 0 10px, 0 17px;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 88px 0 72px;
}

h1 {
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  font-weight: 700;
}

h2 {
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  font-weight: 700;
  color: var(--ink-soft);
}

h3 { font-size: 18px; margin: 0 0 8px; font-weight: 600; }


.lead { font-size: 19px; color: var(--ink-soft); margin: 0 0 28px; }

p { margin: 0 0 18px; color: var(--ink-soft); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 14px;
}

/* small status pill, e.g. "In development" */
.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent-hover);
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint-border);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--ink);
}

.btn-primary {
  background: var(--btn);
  color: #fff;
  border-color: var(--btn);
  transition: background .18s ease, box-shadow .18s ease, transform .04s ease;
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 4px 14px rgba(121, 55, 219, 0.30);
  text-decoration: none;
}
.btn-primary:active { transform: translateY(1px); box-shadow: none; }

.btn-ghost {
  background: transparent;
  color: var(--btn);
  border-color: var(--btn);
  margin-left: 10px;
  transition: background .18s ease, color .18s ease;
}
.btn-ghost:hover { background: var(--accent-tint); color: var(--accent-hover); text-decoration: none; }

/* ---------- Cards / grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: var(--bg);
}

.card .num {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 12px;
}

.soft-panel {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(60, 58, 48, 0.06);
}

/* ---------- Contact form ---------- */
.form-field { margin-bottom: 18px; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

input:focus, textarea:focus { outline: 2px solid var(--ink); border-color: var(--ink); }
textarea { min-height: 140px; resize: vertical; }

/* ---------- Legal / prose ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 40px; }
.prose ul { color: var(--ink-soft); padding-left: 20px; }
.prose li { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  margin-top: 40px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 56px 0 48px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; gap: 28px; }
  h1 { font-size: 34px; }

  /* intelisea/Avada: header is not sticky on mobile */
  .site-header { position: static; }

  .nav { position: relative; }
  .nav-toggle-label { display: block; }

  /* Avada "classic" mobile menu: full-width vertical list that
     toggles open below the header, matching the page background */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: -24px;
    right: -24px;
    flex-direction: column;
    gap: 0;
    background: var(--page);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 0;
    box-shadow: 0 8px 16px rgba(60, 58, 48, 0.10);
  }
  .nav-links a {
    display: block;
    padding: 15px 24px;
    font-size: 16px;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
    border-left: 3px solid transparent;   /* "bar" highlight, Avada-style */
  }
  .nav-links li:last-child a { border-bottom: none; }
  .nav-links a:hover,
  .nav-links a.active {
    color: var(--ink);
    border-bottom-color: var(--line);
    border-left-color: var(--menu-accent);
    background: rgba(121, 55, 219, 0.07);
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
}
