/* Next Flowhub Financial Advisory — contemporary structured elegance */
:root {
  --bg: #eef3ea;
  --bg-deep: #dfe8d8;
  --surface: #f7faf5;
  --ink: #1c2b20;
  --ink-soft: #4a5c4f;
  --muted: #6b7d6f;
  --line: #c5d2c0;
  --primary: #2d5a3d;
  --primary-dark: #1f3f2b;
  --accent: #b8923e;
  --accent-soft: #e8d9a8;
  --success: #2f6b45;
  --error: #9b3b2e;
  --radius: 4px;
  --radius-lg: 18px;
  --shadow: 0 18px 40px rgba(28, 43, 32, 0.08);
  --font-display: "Bai Jamjuree", "Sarabun", sans-serif;
  --font-body: "Sarabun", sans-serif;
  --header-h: 4.5rem;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::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:
    radial-gradient(1200px 600px at 10% -10%, rgba(184, 146, 62, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(45, 90, 61, 0.1), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  min-height: 100vh;
}

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

a {
  color: var(--primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--primary-dark);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; color: var(--ink-soft); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(247, 250, 245, 0.88);
  border-bottom: 1px solid rgba(197, 210, 192, 0.7);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  background:
    linear-gradient(145deg, var(--primary) 0%, #3f7a52 55%, var(--accent) 120%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0.55rem 0.45rem auto auto;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent-soft);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}

.brand-sub {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.15rem 1rem;
  flex-wrap: wrap;
}

.nav-list a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.35rem 0;
  transition: color 0.2s var(--ease);
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: var(--primary);
}

.nav-cta {
  background: var(--primary);
  color: #f7faf5 !important;
  padding: 0.55rem 0.95rem !important;
  border-radius: 999px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.8rem 1.35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--primary);
  color: #f7faf5;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-accent {
  background: var(--accent);
  color: #1c2b20;
}
.btn-accent:hover { background: #a67f2f; color: #fff; }

.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f7faf5;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s var(--ease) infinite alternate;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 36, 26, 0.82) 0%, rgba(20, 36, 26, 0.45) 48%, rgba(20, 36, 26, 0.25) 100%),
    linear-gradient(0deg, rgba(20, 36, 26, 0.75) 0%, transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 4.5rem 0 4rem;
  max-width: 38rem;
  animation: riseIn 0.9s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  margin: 0 0 1rem;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero h1 {
  color: #fff;
  font-weight: 500;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  margin-bottom: 1rem;
}

.hero p {
  color: rgba(247, 250, 245, 0.9);
  font-size: 1.08rem;
  max-width: 32rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
  animation: riseIn 0.7s var(--ease) both;
}

.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.media-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: auto -8% -8% auto;
  width: 42%;
  height: 42%;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0.55;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.offer-item {
  background: rgba(247, 250, 245, 0.72);
  border: 1px solid rgba(197, 210, 192, 0.85);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  animation: riseIn 0.8s var(--ease) both;
}

.offer-item:nth-child(2) { animation-delay: 0.08s; }
.offer-item:nth-child(3) { animation-delay: 0.16s; }
.offer-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.offer-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.offer-body {
  padding: 1.25rem 1.2rem 1.4rem;
}

.offer-body h3 { margin-bottom: 0.45rem; }
.offer-body p { font-size: 0.98rem; margin-bottom: 0.9rem; }

.quote-panel {
  background: linear-gradient(135deg, #243f2e 0%, #2d5a3d 55%, #3a6d48 100%);
  color: #f7faf5;
  border-radius: calc(var(--radius-lg) + 4px);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.quote-panel p,
.quote-panel h2 {
  color: #f7faf5;
}

.quote-panel cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  color: var(--accent-soft);
  font-family: var(--font-display);
  font-size: 0.95rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step {
  padding: 1.25rem;
  border-top: 2px solid var(--accent);
  background: rgba(247, 250, 245, 0.55);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
}

.page-hero {
  padding: 3.5rem 0 2rem;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(247, 250, 245, 0.65), transparent);
}

.page-hero .wrap {
  display: grid;
  gap: 1rem;
  max-width: 44rem;
}

.page-hero.with-media {
  max-width: none;
}

.page-hero.with-media .wrap {
  max-width: var(--max);
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 2rem;
}

.page-hero.with-media img {
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  box-shadow: var(--shadow);
}

.prose {
  max-width: 46rem;
}

.prose h2 { margin-top: 2.25rem; }
.prose ul, .prose ol { color: var(--ink-soft); padding-left: 1.2rem; }
.prose li { margin-bottom: 0.45rem; }

.rate-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(247, 250, 245, 0.8);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.rate-table th,
.rate-table td {
  text-align: left;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.rate-table th {
  background: var(--primary);
  color: #f7faf5;
  font-family: var(--font-display);
  font-weight: 600;
}

.rate-note {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--accent);
  background: rgba(232, 217, 168, 0.28);
}

.review-list {
  display: grid;
  gap: 1.25rem;
}

.review {
  background: rgba(247, 250, 245, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.35rem;
}

.review p:last-child { margin-bottom: 0; }

.review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: var(--primary);
}

.story {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  margin-top: 2rem;
  align-items: stretch;
}

.story img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: rgba(247, 250, 245, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s var(--ease);
}

.blog-card:hover { transform: translateY(-4px); }
.blog-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}
.blog-card .offer-body { flex: 1; }
.blog-card h3 { color: var(--ink); }
.blog-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-card {
  background: rgba(247, 250, 245, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.contact-card dt {
  font-family: var(--font-display);
  font-weight: 600;
  margin-top: 0.9rem;
}
.contact-card dd {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
}

.form {
  display: grid;
  gap: 1rem;
  background: rgba(247, 250, 245, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 0.35rem;
}

.form-row.two {
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(45, 90, 61, 0.35);
  border-color: var(--primary);
}

.field-error {
  color: var(--error);
  font-size: 0.88rem;
  min-height: 1.2em;
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(47, 107, 69, 0.12);
  color: var(--success);
  border: 1px solid rgba(47, 107, 69, 0.3);
}

.form-status.error {
  display: block;
  background: rgba(155, 59, 46, 0.1);
  color: var(--error);
  border: 1px solid rgba(155, 59, 46, 0.28);
}

.inline-error {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: rgba(155, 59, 46, 0.1);
  color: var(--error);
  border-radius: var(--radius);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.team-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 0.9rem;
}

.area-map-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.area-item {
  padding: 1.15rem 1.2rem;
  background: rgba(247, 250, 245, 0.78);
  border-left: 3px solid var(--primary);
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1.25rem 0;
}

.cookie-table th,
.cookie-table td {
  border: 1px solid var(--line);
  padding: 0.75rem;
  text-align: left;
  vertical-align: top;
  background: rgba(247, 250, 245, 0.7);
}

.cookie-table th {
  background: var(--bg-deep);
  font-family: var(--font-display);
}

.site-footer {
  margin-top: 3rem;
  background: #1c2b20;
  color: rgba(247, 250, 245, 0.86);
  padding: 3rem 0 2rem;
}

.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.footer-tag { color: var(--accent-soft); }

.footer-cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.footer-col h2 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 0.75rem;
}

.footer-col p,
.footer-col li,
.footer-col a {
  color: rgba(247, 250, 245, 0.78);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--accent-soft); }

.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  font-size: 0.9rem;
  color: rgba(247, 250, 245, 0.55);
  margin: 0;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 720px;
  margin-inline: auto;
  background: rgba(247, 250, 245, 0.97);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.2rem;
}

.cookie-banner[hidden] { display: none !important; }

.cookie-banner-inner {
  display: grid;
  gap: 0.9rem;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1rem;
}

.error-page .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

@media (max-width: 960px) {
  .offer-grid,
  .blog-grid,
  .team-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .split,
  .quote-panel,
  .story,
  .contact-grid,
  .page-hero.with-media .wrap,
  .footer-cols {
    grid-template-columns: 1fr;
  }
  .split.reverse { direction: ltr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(247, 250, 245, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1.1rem;
    display: none;
  }
  .site-nav.is-open { display: block; }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }
  .nav-cta {
    text-align: center;
    justify-content: center;
  }
  .offer-grid,
  .blog-grid,
  .team-grid,
  .steps,
  .area-map-list,
  .form-row.two {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 78vh; }
  .hero-content { padding-bottom: 3rem; }
}
