/* ============================================================
   The Accounting API — Koh Phangan
   Palette: sea teal, sand, warm coral, deep palm green
   ============================================================ */

:root {
  --teal: #2E7D74;
  --teal-dark: #1F5B54;
  --teal-soft: #4FA69B;
  --palm: #1F3B36;
  --sand: #EFF7F8;      /* light sea blue (site background) */
  --sand-deep: #D8EAEE; /* deeper sea-blue tint (borders, accents) */
  --sea-pale: #C9E5EB;
  --coral: #E8A87C;
  --coral-deep: #D98B5F;
  --ink: #2B3634;
  --ink-soft: #5C6B67;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(31, 59, 54, 0.08);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.7;
  font-size: 16.5px;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--palm); line-height: 1.25; font-weight: 600; }

h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin-bottom: 1rem; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header / Nav ---------- */

.site-header {
  background: rgba(239, 247, 248, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--sand-deep);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.logo img, .logo svg { height: 52px; width: auto; }

.main-nav { display: flex; gap: 28px; align-items: center; }

.main-nav a {
  color: var(--palm);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.main-nav a:hover, .main-nav a.active { color: var(--teal); border-bottom-color: var(--coral); }

.nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 9px 20px !important;
  border-radius: 999px;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--teal-dark); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--palm); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--sand) 0%, #DCEEF2 55%, var(--sea-pale) 100%);
  padding: 90px 0 70px;
}

.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }

.hero .eyebrow {
  display: inline-block;
  background: var(--white);
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 34em; margin: 20px 0 32px; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.97rem;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--teal); color: var(--white); box-shadow: 0 4px 14px rgba(46, 125, 116, 0.35); }
.btn-primary:hover { background: var(--teal-dark); color: var(--white); }

.btn-secondary { background: var(--white); color: var(--teal); border: 1.5px solid var(--teal); margin-left: 12px; }
.btn-secondary:hover { background: var(--teal); color: var(--white); }

.hero-art { text-align: center; }
.hero-art svg { max-width: 380px; width: 100%; height: auto; filter: drop-shadow(0 12px 32px rgba(31, 59, 54, 0.12)); }
.hero-art img {
  width: 100%;
  max-width: 460px;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(31, 59, 54, 0.22);
  border: 5px solid var(--white);
  margin: 0 auto;
}

/* ---------- Sections ---------- */

section { padding: 72px 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head .kicker {
  color: var(--coral-deep);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 10px;
}
.section-head p { color: var(--ink-soft); margin-top: 12px; }

.alt-bg { background: var(--white); }

/* ---------- Cards ---------- */

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--sand-deep);
  transition: transform 0.2s, box-shadow 0.2s;
}
.alt-bg .card { background: var(--sand); }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(31, 59, 54, 0.12); }

.card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-soft), var(--teal));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Values band ---------- */

.values-band {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  color: var(--white);
  border-radius: var(--radius);
  padding: 56px 48px;
}
.values-band h2 { color: var(--white); margin-bottom: 16px; }
.values-band p { color: rgba(255, 255, 255, 0.88); max-width: 46em; }
.values-band .btn-light { background: var(--white); color: var(--teal-dark); margin-top: 12px; }
.values-band .btn-light:hover { background: var(--sand); }

/* ---------- Two-column split ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .art svg { width: 100%; height: auto; max-width: 420px; }

.checklist { list-style: none; margin: 20px 0; }
.checklist li { padding-left: 34px; position: relative; margin-bottom: 14px; color: var(--ink-soft); }
.checklist li strong { color: var(--palm); }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  background: var(--coral);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ---------- Blog ---------- */

.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--sand-deep);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); }

.post-card .post-banner { height: 130px; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; }
.banner-teal { background: linear-gradient(135deg, #DDEBE6, #BFDCD4); }
.banner-coral { background: linear-gradient(135deg, #FBEADC, #F3CFB3); }
.banner-sand { background: linear-gradient(135deg, #F3ECDD, #E6D9BF); }

.post-card .post-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.post-card .post-meta { font-size: 0.8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.post-card h3 a { color: var(--palm); }
.post-card h3 a:hover { color: var(--teal); }
.post-card p { color: var(--ink-soft); font-size: 0.94rem; flex: 1; }
.post-card .read-more { font-weight: 600; font-size: 0.9rem; }

/* ---------- Article ---------- */

.article { max-width: 720px; margin: 0 auto; padding: 64px 24px 80px; }
.article .post-meta { color: var(--ink-soft); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.article h1 { margin-bottom: 28px; }
.article h2 { margin: 40px 0 14px; font-size: 1.5rem; }
.article ul, .article ol { margin: 0 0 1rem 1.4rem; color: var(--ink); }
.article li { margin-bottom: 8px; }
.article blockquote {
  border-left: 4px solid var(--coral);
  background: var(--white);
  padding: 18px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 24px 0;
  color: var(--ink-soft);
  font-style: italic;
}
.article .back-link { display: inline-block; margin-bottom: 28px; font-weight: 600; font-size: 0.9rem; }
.disclaimer {
  background: var(--sand-deep);
  border-radius: var(--radius);
  padding: 18px 24px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 48px;
}

/* ---------- Forms ---------- */

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }

.contact-info .info-item { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-info .info-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--white);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow);
}
.contact-info h4 { margin-bottom: 2px; font-size: 1rem; }
.contact-info p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--sand-deep);
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

label { display: block; font-weight: 600; font-size: 0.88rem; margin: 0 0 6px; color: var(--palm); }

input, textarea, select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--sand-deep);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--sand);
  color: var(--ink);
  margin-bottom: 20px;
  transition: border-color 0.2s, background 0.2s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--teal); background: var(--white); }
textarea { resize: vertical; min-height: 140px; }

.contact-form .btn { border: none; cursor: pointer; width: 100%; font-family: var(--font-body); }

/* ---------- Footer ---------- */

.site-footer { background: var(--palm); color: rgba(255, 255, 255, 0.75); padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.site-footer a { color: rgba(255, 255, 255, 0.75); display: block; margin-bottom: 8px; font-size: 0.92rem; }
.site-footer a:hover { color: var(--coral); }
.site-footer p { font-size: 0.92rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 24px; text-align: center; font-size: 0.83rem; }
.footer-logo { font-family: var(--font-head); font-size: 1.3rem; color: var(--white); margin-bottom: 12px; }
.footer-logo span { color: var(--coral); }

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
  background: linear-gradient(160deg, var(--sand) 0%, #DCEEF2 60%, var(--sea-pale) 100%);
  padding: 64px 0 48px;
  text-align: center;
}

/* ---------- About portrait ---------- */

.about-photo {
  width: 100%;
  max-width: 240px;
  border-radius: 24px;
  border: 6px solid var(--white);
  box-shadow: 0 16px 40px rgba(31, 59, 54, 0.2);
  margin: 0 auto;
}
.page-hero p { color: var(--ink-soft); max-width: 40em; margin: 14px auto 0; }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .hero-inner, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { max-width: 260px; }
  .card-grid { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--sand);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--sand-deep);
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .values-band { padding: 40px 28px; }
}
