/*
Theme Name: Jomtien Social Club
Theme URI: https://jomtiensocialclub.com
Author: Jomtien Social Club
Description: Custom homepage theme for Jomtien Social Club.
Version: 1.0
Text Domain: jomtien-social-club
*/

:root {
  --sand: #F6EFDD;
  --sand-deep: #EEE3C8;
  --ink: #1B3A3A;
  --ink-soft: #2E5150;
  --teal: #1F6F6B;
  --teal-deep: #164F4C;
  --coral: #E8703A;
  --coral-deep: #C85A28;
  --gold: #E8A93B;
  --paper: #FFFDF8;
  --line: rgba(27,58,58,0.16);
  --text-body: #33403F;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sand: #17231F;
    --sand-deep: #1E2D28;
    --paper: #1C2A26;
    --ink: #F3ECDA;
    --ink-soft: #D8CFB6;
    --text-body: #D9E1DD;
    --line: rgba(243,236,218,0.14);
    --teal: #4FA39D;
    --teal-deep: #2E6B67;
    --coral: #F0885A;
    --coral-deep: #E8703A;
    --gold: #E8A93B;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--sand);
  color: var(--text-body);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); margin: 0; font-weight: 600; }
p { margin: 0; }

/* placeholder photo blocks — replace with real <img> tags */
.ph {
  position: relative;
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  color: var(--sand);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 140px;
}
.ph.warm { background: linear-gradient(135deg, var(--coral-deep), var(--gold)); }
.ph.dark { background: linear-gradient(135deg, var(--ink), var(--ink-soft)); }
.ph img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ph::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.06) 0 2px, transparent 2px 14px);
}
.ph .ph-label {
  position: relative;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 10px 12px;
  background: rgba(20,30,28,0.35);
  width: 100%;
  z-index: 1;
}

/* header */
header.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 28px; }
.logo { font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-mark { width: 28px; height: 28px; border-radius: 50%; background: var(--coral); display: inline-block; }
.main-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; font-size: 15px; font-weight: 500; }
.main-nav a { text-decoration: none; color: var(--ink-soft); }
.main-nav a:hover { color: var(--coral); }
.btn { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 14px; padding: 11px 20px; border-radius: 3px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 14px; }

/* hero */
.hero { padding: 64px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 46px; line-height: 1.08; letter-spacing: -0.01em; }
.hero-sub { margin-top: 20px; font-size: 18px; max-width: 42ch; color: var(--text-body); }
.hero-ctas { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 26px; font-size: 14px; color: var(--ink-soft); display: flex; gap: 22px; }
.hero-collage { display: grid; grid-template-columns: 1.1fr 0.9fr; grid-template-rows: 120px 150px; gap: 14px; }
.hero-collage .ph:nth-child(1) { grid-row: 1 / 3; }

/* ticker */
.ticker { background: var(--teal); color: var(--sand); padding: 14px 0; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker .wrap { display: flex; align-items: center; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.ticker .wrap::-webkit-scrollbar { display: none; }
.ticker-label { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 15px; white-space: nowrap; padding-right: 18px; border-right: 1px solid rgba(255,255,255,0.3); flex-shrink: 0; }
.ticker-item { white-space: nowrap; font-size: 14px; display: flex; gap: 8px; align-items: baseline; flex-shrink: 0; }
.ticker-item .date { font-weight: 700; color: var(--gold); }
.ticker-sep { opacity: 0.4; flex-shrink: 0; }

/* sections */
section { padding: 76px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { font-size: 32px; max-width: 22ch; }
.section-head .kicker-line { font-size: 15px; color: var(--ink-soft); max-width: 34ch; }

/* activities */
.activities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.activity-card { background: var(--paper); border: 1px solid var(--line); border-radius: 2px; position: relative; padding-top: 8px; }
.activity-card::before { content: ""; position: absolute; top: -8px; left: 20px; width: 34px; height: 16px; background: var(--gold); opacity: 0.85; transform: rotate(-3deg); }
.activity-card .ph { min-height: 130px; margin: 0 14px; margin-top: 10px; }
.activity-card-body { padding: 18px 20px 22px; }
.activity-card h3 { font-size: 20px; margin-bottom: 8px; }
.activity-card p { font-size: 14.5px; color: var(--text-body); }
.activity-count { display: inline-block; margin-top: 14px; font-size: 12.5px; font-weight: 600; color: var(--teal-deep); }

/* feature */
.feature { background: var(--ink); color: var(--sand); }
.feature .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.feature h2 { color: var(--sand); font-size: 30px; max-width: 16ch; }
.feature p { color: rgba(246,239,221,0.78); margin-top: 16px; font-size: 16px; max-width: 42ch; }
.feature .ph { min-height: 260px; }
.feature .btn-primary { margin-top: 22px; }

/* quote */
.quote-block { text-align: left; max-width: 720px; }
.quote-block blockquote { font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 1.4; color: var(--ink); margin: 0; font-weight: 500; }
.quote-block cite { display: block; margin-top: 18px; font-style: normal; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.quote-rule { width: 46px; height: 3px; background: var(--coral); margin-bottom: 24px; }

/* gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 130px; gap: 12px; }
.gallery-grid .ph:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-grid .ph:nth-child(4) { grid-row: span 2; }

/* join banner */
.join-banner { background: var(--coral); color: #fff; text-align: left; padding: 68px 0; }
.join-banner h2 { color: #fff; font-size: 34px; max-width: 20ch; }
.join-banner p { color: rgba(255,255,255,0.88); margin-top: 14px; font-size: 16px; max-width: 46ch; }
.join-form { display: flex; gap: 8px; margin-top: 22px; max-width: 420px; flex-wrap: wrap; }
.join-form input[type="email"] { flex: 1; min-width: 200px; padding: 11px 14px; border-radius: 3px; border: 1px solid rgba(255,255,255,0.4); background: rgba(255,255,255,0.12); color: #fff; font-family: var(--sans); font-size: 14px; }
.join-form input::placeholder { color: rgba(255,255,255,0.75); }
.join-form .btn-primary { background: var(--ink); }
.join-form .btn-primary:hover { background: var(--ink-soft); }

/* footer */
footer.site-footer { background: var(--ink); color: rgba(246,239,221,0.75); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { color: var(--sand); font-size: 14px; margin-bottom: 14px; font-family: var(--sans); font-weight: 600; }
.site-footer .logo { color: var(--sand); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--sand); }
.footer-sub-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.footer-sub-row input { flex: 1; min-width: 140px; padding: 10px 12px; border-radius: 3px; border: 1px solid rgba(246,239,221,0.25); background: rgba(246,239,221,0.06); color: var(--sand); font-family: var(--sans); font-size: 13.5px; }
.footer-sub-row input::placeholder { color: rgba(246,239,221,0.5); }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(246,239,221,0.14); font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* responsive */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .activities-grid { grid-template-columns: 1fr 1fr; }
  .feature .wrap { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 28px; }
  .activities-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 100px; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
}

:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
