/* ===== Sparkle Hua Hin — styles ===== */
:root {
  --teal-900: #06343a;
  --teal-700: #0d6470;
  --teal-500: #12909f;
  --teal-300: #5fc6d2;
  --teal-50:  #eafafb;
  --sand:     #fdf8f1;
  --sun:      #ffb547;
  --ink:      #102a2e;
  --muted:    #5a7176;
  --line:     #e2ecee;
  --white:    #ffffff;
  --radius:   18px;
  --radius-sm:12px;
  --shadow:   0 18px 40px -18px rgba(6, 52, 58, 0.35);
  --shadow-sm:0 8px 24px -12px rgba(6, 52, 58, 0.3);
  --maxw:     1140px;
  --font:     'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Cabinet Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* Headings carry the display face */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; }

/* ===== Icons ===== */
.ico {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
  display: inline-block; vertical-align: -.18em;
}

/* Keyboard focus — applied site-wide */
:focus-visible { outline: 3px solid var(--teal-500); outline-offset: 2px; border-radius: 6px; }
a:focus-visible, .btn:focus-visible, button:focus-visible { outline-offset: 3px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--teal-500); color: #fff; font-weight: 700; font-family: inherit;
  font-size: .98rem; border: 0; cursor: pointer;
  padding: .72em 1.4em; border-radius: 999px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 10px 22px -10px rgba(18, 144, 159, .8);
}
.btn:hover { background: var(--teal-700); transform: translateY(-2px); }
.btn-lg { padding: .95em 1.8em; font-size: 1.05rem; }
.btn-sm { padding: .55em 1.1em; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-ghost {
  background: transparent; color: var(--teal-700);
  box-shadow: inset 0 0 0 2px var(--teal-300);
}
.btn-ghost:hover { background: var(--teal-50); color: var(--teal-900); }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .5em; font-size: 1.3rem; letter-spacing: -.01em; }
.brand-text { font-family: var(--font-display); font-weight: 600; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-300));
  color: #fff; border-radius: 10px; font-size: 1rem;
  box-shadow: var(--shadow-sm);
}
.brand-accent { color: var(--teal-500); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { font-weight: 600; color: var(--ink); font-size: .96rem; transition: color .15s; }
.nav-links a:not(.btn):hover { color: var(--teal-500); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(95, 198, 210, .35), transparent 60%),
    linear-gradient(180deg, var(--teal-50), var(--sand));
  padding: clamp(48px, 7vw, 96px) 0 120px;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700;
  color: var(--teal-700); margin-bottom: .9rem;
}
.eyebrow::before {
  content: "✦"; color: var(--sun); font-size: .95em; line-height: 1;
}
.section-head .eyebrow { justify-content: center; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 3.8rem); line-height: 1.02; letter-spacing: -.02em;
  font-weight: 600; color: var(--teal-900);
}
.title-spark { display: block; margin-top: .8rem; }
.spark-row { width: 92px; height: 24px; color: var(--sun); fill: currentColor; }
.lead { margin-top: 1.2rem; font-size: 1.12rem; color: var(--muted); max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }
.hero-trust {
  list-style: none; display: grid; gap: .75rem; margin-top: 2.2rem;
  color: var(--ink); font-size: .98rem; font-weight: 600;
}
.hero-trust li { display: flex; align-items: center; gap: .7em; }
.hero-trust .ico { width: 20px; height: 20px; color: var(--teal-500); }

.hero-card {
  position: relative;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 6px; border: 1px solid var(--line);
}
.hero-mascot {
  position: absolute; top: 0; right: -5px; width: 138px; height: auto;
  transform: translateY(-72%); pointer-events: none;
}
@media (max-width: 920px) {
  .hero-mascot { width: 104px; right: 10px; transform: translateY(-64%); }
}
.hero-card-inner { padding: 24px; }
.hero-card h3 { font-size: 1.3rem; color: var(--teal-900); }
.hero-card p { color: var(--muted); font-size: .94rem; margin-top: .3rem; }
.quote-steps { list-style: none; display: grid; gap: 1.1rem; margin: 1.4rem 0; }
.quote-steps li { display: flex; align-items: flex-start; gap: .9rem; }
.step-num {
  flex: none; font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  width: 2rem; height: 2rem; display: grid; place-items: center;
  color: var(--teal-700); background: var(--teal-50); border-radius: 999px;
}
.step-txt { display: grid; gap: .15rem; font-size: .92rem; color: var(--muted); }
.step-txt strong { color: var(--teal-900); font-size: .98rem; font-weight: 700; }
.hero-card-note { margin-top: .9rem; text-align: center; font-size: .85rem; color: var(--muted); }

/* Forms */
label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--ink); }
input, select, textarea {
  font-family: inherit; font-size: .95rem; color: var(--ink);
  padding: .7em .85em; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--sand); transition: border .15s, box-shadow .15s; width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--teal-300);
  box-shadow: 0 0 0 4px rgba(95, 198, 210, .25); background: #fff;
}
textarea { resize: vertical; }

.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; line-height: 0;
}
.hero-wave svg { width: 100%; height: 100%; display: block; fill: var(--white); }

/* ===== Badges ===== */
.badges { background: var(--white); padding: 22px 0; }
.badges-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 1.6rem;
  color: var(--teal-700); font-weight: 600; font-size: .92rem;
}
.badges-row span { display: inline-flex; align-items: center; gap: .5em; white-space: nowrap; }
.badges-row .ico { width: 19px; height: 19px; color: var(--teal-500); }
/* Below the one-line threshold, cap the width so it wraps to balanced rows
   instead of dropping a single badge onto its own line. */
@media (max-width: 1160px) {
  .badges-row { max-width: 680px; margin-left: auto; margin-right: auto; }
}

/* ===== Sections ===== */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--sand); }
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head h2, .why-copy h2, .contact-copy h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); letter-spacing: -.01em; color: var(--teal-900);
  line-height: 1.08; font-weight: 600;
}
.section-sub { margin-top: .9rem; color: var(--muted); font-size: 1.06rem; }

.grid { display: grid; gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}

/* Services */
.services-grid { grid-template-columns: repeat(3, 1fr); }
.service { transition: transform .18s ease, box-shadow .18s ease; }
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-ico {
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--teal-50); border-radius: 14px; margin-bottom: 1rem;
  color: var(--teal-700);
}
.service-ico .ico { width: 26px; height: 26px; }
.service h3 { font-size: 1.18rem; color: var(--teal-900); }
.service p { color: var(--muted); margin-top: .5rem; font-size: .97rem; }

/* Why */
.why-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.check-list { list-style: none; margin: 1.6rem 0; display: grid; gap: 1rem; }
.check-list li { position: relative; padding-left: 2rem; color: var(--muted); }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 1.4rem; height: 1.4rem; display: grid; place-items: center;
  background: var(--teal-500); color: #fff; border-radius: 50%; font-size: .8rem; font-weight: 800;
}
.check-list strong { color: var(--ink); }
.why-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.stat {
  background: linear-gradient(160deg, var(--teal-700), var(--teal-900));
  color: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm);
}
.stat-num { display: block; font-family: var(--font-display); font-size: 2.3rem; font-weight: 600; letter-spacing: -.01em; }
.stat-label { color: rgba(255, 255, 255, .8); font-size: .92rem; }

/* Areas */
.areas-wrap { max-width: 820px; margin: 0 auto; text-align: center; }
.areas-list {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem;
}
.areas-list li {
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: .6em 1.2em; font-weight: 600; color: var(--teal-700);
  box-shadow: var(--shadow-sm); transition: .15s;
}
.areas-list li:hover { border-color: var(--teal-300); color: var(--teal-900); transform: translateY(-2px); }
.areas-note { margin-top: 1.6rem; color: var(--muted); }
.areas-note a { color: var(--teal-500); font-weight: 700; }

/* Pricing */
.pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: start; }
.price { position: relative; display: flex; flex-direction: column; }
.price h3 { font-size: 1.2rem; color: var(--teal-900); }
.price-tag { font-size: 1.1rem; color: var(--muted); margin: .7rem 0 1.2rem; }
.price-tag span { font-family: var(--font-display); font-size: 2.8rem; font-weight: 600; color: var(--teal-700); letter-spacing: -.01em; }
.price-tag .price-from {
  display: block; font-family: var(--font); font-size: .78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
  margin-bottom: .2rem;
}
.price-tag small { font-size: .9rem; }
.price ul { list-style: none; display: grid; gap: .65rem; margin-bottom: 1.6rem; }
.price ul li { padding-left: 1.6rem; position: relative; color: var(--muted); font-size: .96rem; }
.price ul li::before { content: "✦"; position: absolute; left: 0; color: var(--teal-300); }
.price .btn { margin-top: auto; }
.price-featured {
  border: 2px solid var(--teal-300);
  box-shadow: var(--shadow); transform: translateY(-8px);
}
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--sun); color: var(--teal-900); font-weight: 800; font-size: .78rem;
  padding: .4em 1em; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.price-foot { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 1.8rem; }

/* Gallery */
.gallery-grid {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 200px;
}
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(6, 52, 58, .78));
  color: #fff; font-weight: 700; font-size: .98rem;
  padding: 1.4rem .9rem .8rem;
}
.gallery-tall { grid-row: span 2; }
.gallery-wide { grid-column: span 2; }

/* Reviews */
.reviews-grid { grid-template-columns: repeat(3, 1fr); }
.review { display: flex; flex-direction: column; gap: 1rem; }
.stars { color: var(--sun); font-size: 1.1rem; letter-spacing: .1em; }
.review blockquote {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.18rem; color: var(--teal-900); line-height: 1.4; letter-spacing: -.01em;
}
.review figcaption { color: var(--muted); font-size: .9rem; margin-top: auto; }
.review figcaption strong { color: var(--teal-900); }

/* Contact / CTA */
.section-cta {
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(95, 198, 210, .25), transparent 55%),
    linear-gradient(180deg, var(--sand), var(--teal-50));
}
.contact-inner { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; margin-top: 1.6rem; display: grid; gap: .9rem; }
.contact-list li { display: flex; align-items: center; gap: .8rem; color: var(--muted); }
.contact-list .ico { width: 20px; height: 20px; color: var(--teal-500); }
.contact-list a { color: var(--teal-700); font-weight: 600; }
.contact-form { display: grid; gap: 1rem; scroll-margin-top: 88px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note {
  background: var(--teal-50); border: 1px solid var(--teal-300); color: var(--teal-900);
  padding: .8em 1em; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 600;
}

/* ===== Footer ===== */
.site-footer { background: var(--teal-900); color: rgba(255, 255, 255, .8); padding: 60px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; padding-bottom: 40px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin-top: 1rem; max-width: 32ch; font-size: .95rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-cols h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer-cols a { display: block; padding: .3rem 0; font-size: .92rem; transition: color .15s; }
.footer-cols a:hover { color: var(--teal-300); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .12); padding: 22px;
  font-size: .85rem; color: rgba(255, 255, 255, .6);
}

/* WhatsApp / contact button variants */
.btn-wa { background: #25d366; box-shadow: 0 10px 22px -10px rgba(37, 211, 102, .9); }
.btn-wa:hover { background: #1fb855; }

/* Contact section quick buttons */
.contact-quick { display: grid; gap: .8rem; margin-top: 1.6rem; }
.quick-btn {
  display: flex; align-items: center; gap: .9rem;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: .85em 1.1em; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .15s ease;
}
.quick-btn:hover { transform: translateY(-2px); }
.quick-ico {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  border-radius: 12px; background: var(--teal-50); color: var(--teal-700);
}
.quick-ico .ico { width: 22px; height: 22px; }
.quick-txt { display: grid; line-height: 1.25; }
.quick-txt strong { color: var(--teal-900); font-size: 1.02rem; }
.quick-txt small { color: var(--muted); font-size: .85rem; }
.quick-wa:hover { border-color: #25d366; }
.quick-wa .quick-ico { background: #e7faef; color: #1a9e4b; }
.quick-line:hover { border-color: #06c755; }
.quick-line .quick-ico { background: #e7faef; color: #06c755; }
.quick-call:hover { border-color: var(--teal-300); }

/* Floating contact widget */
.float-contact {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; display: grid; justify-items: end; gap: .6rem;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.float-contact.is-visible { opacity: 1; visibility: visible; transform: none; }
.float-menu {
  display: grid; gap: .5rem; justify-items: end;
  opacity: 0; transform: translateY(12px) scale(.96); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.float-contact.open .float-menu { opacity: 1; transform: none; pointer-events: auto; }
.float-item {
  display: inline-flex; align-items: center; gap: .55em; font-weight: 700; font-size: .92rem;
  background: #fff; color: var(--teal-900); padding: .6em 1em; border-radius: 999px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.float-item:hover { transform: translateY(-2px); }
.float-item .ico { width: 18px; height: 18px; }
.float-wa:hover { border-color: #25d366; }
.float-wa .ico { color: #1a9e4b; }
.float-line:hover { border-color: #06c755; }
.float-line .ico { color: #06c755; }
.float-call .ico { color: var(--teal-700); }
.float-toggle-open { display: inline-flex; align-items: center; gap: .45em; }
.float-toggle .ico { width: 18px; height: 18px; }
.float-toggle {
  background: var(--sun); color: var(--teal-900); font-weight: 800; font-family: inherit;
  border: 0; cursor: pointer; padding: .85em 1.3em; border-radius: 999px;
  box-shadow: var(--shadow); font-size: .95rem; transition: transform .15s;
}
.float-toggle:hover { transform: translateY(-3px); }
.float-toggle-close { display: none; }
.float-contact.open .float-toggle-open { display: none; }
.float-contact.open .float-toggle-close { display: inline; }

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { max-width: 440px; }
  .why-inner, .contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .services-grid, .pricing-grid, .reviews-grid { grid-template-columns: 1fr 1fr; }
  .price-featured { transform: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-tall { grid-row: span 1; }
  .gallery-wide { grid-column: span 1; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 22px; gap: .4rem;
    transform: translateY(-130%); transition: transform .25s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: .7rem .2rem; }
  .nav-links .btn { margin-top: .4rem; }
  .nav-toggle { display: flex; }
  .services-grid, .pricing-grid, .reviews-grid, .why-stats, .form-row { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .gallery-wide { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

/* ===== Hero entrance ===== */
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero h1 .line > span { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow,
  .hero .lead,
  .hero-actions,
  .hero-trust li,
  .title-spark,
  .hero-card { opacity: 0; }
  .hero h1 .line > span { transform: translateY(115%); }

  .hero .eyebrow { animation: heroRise .7s cubic-bezier(.22,.7,.2,1) .08s forwards; }
  .hero h1 .line:nth-child(1) > span { animation: lineUp .85s cubic-bezier(.2,.8,.2,1) .18s forwards; }
  .hero h1 .line:nth-child(2) > span { animation: lineUp .85s cubic-bezier(.2,.8,.2,1) .30s forwards; }
  .title-spark { animation: sparkPop .7s cubic-bezier(.2,.8,.3,1.35) .66s forwards; }
  .hero .lead { animation: heroRise .7s cubic-bezier(.22,.7,.2,1) .46s forwards; }
  .hero-actions { animation: heroRise .7s cubic-bezier(.22,.7,.2,1) .58s forwards; }
  .hero-trust li:nth-child(1) { animation: heroRise .6s cubic-bezier(.22,.7,.2,1) .70s forwards; }
  .hero-trust li:nth-child(2) { animation: heroRise .6s cubic-bezier(.22,.7,.2,1) .78s forwards; }
  .hero-trust li:nth-child(3) { animation: heroRise .6s cubic-bezier(.22,.7,.2,1) .86s forwards; }
  .hero-card { animation: heroCardRise .9s cubic-bezier(.2,.7,.2,1) .40s forwards; }
}

@keyframes heroRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes heroCardRise { from { opacity: 0; transform: translateY(26px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes lineUp { from { transform: translateY(115%); } to { transform: translateY(0); } }
@keyframes sparkPop {
  0%   { opacity: 0; transform: translateY(8px) scale(.5) rotate(-14deg); }
  65%  { opacity: 1; transform: translateY(0) scale(1.12) rotate(4deg); }
  100% { opacity: 1; transform: none; }
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
