/* ===== FARMEY-inspired theme for Catmey ===== */
:root {
  --orange: #f99d1c;
  --orange-dark: #e08600;
  --green: #7ab929;
  --dark: #191919;
  --text: #333333;
  --muted: #888888;
  --border: #eeeeee;
  --grey-bg: #f7f7f7;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Sarabun", "Noto Sans Thai", Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: #fff;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 720px; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 12px; }
h2 { font-size: 1.7rem; letter-spacing: .02em; }
.center { text-align: center; }
.muted { color: var(--muted); }
img { max-width: 100%; display: block; }

/* background watermark words like Farmey */
.bg-word {
  font-size: 3rem; font-weight: 900; color: #f0f0f0;
  letter-spacing: .1em; margin: 0 0 -28px; text-transform: uppercase;
}
.bg-word.center { text-align: center; }
.eyebrow-orange { color: var(--orange); font-weight: 800; font-size: .8rem; letter-spacing: .15em; margin: 0; }

/* topbar */
.topbar { background: var(--dark); color: #ccc; font-size: .8rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 34px; }
.btn-buy { background: var(--green); color: #fff; text-decoration: none; font-weight: 800; font-size: .7rem; padding: 3px 12px; border-radius: 3px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(20,20,20,.92); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { color: #fff; font-weight: 900; font-size: 1.3rem; text-decoration: none; letter-spacing: .05em; }
.logo.light { color: #fff; }
.main-nav { display: flex; gap: 22px; }
.main-nav a { color: #ddd; text-decoration: none; font-size: .8rem; font-weight: 700; letter-spacing: .06em; }
.main-nav a:hover, .main-nav a.active { color: var(--orange); }
.nav-toggle { display: none; background: none; border: 1px solid #555; color: #fff; border-radius: 6px; padding: 4px 10px; font-size: 1.2rem; cursor: pointer; }

/* hero */
.hero {
  position: relative;
  background: #222 url("https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba?w=1600&q=80&auto=format&fit=crop") center/cover no-repeat;
  color: #fff;
  padding: 110px 0;
  min-height: 520px;
  display: flex; align-items: center;
}
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.hero-content { position: relative; z-index: 1; }
.hero-eyebrow { color: var(--orange); letter-spacing: .25em; font-size: .8rem; font-weight: 800; margin: 0 0 8px; }
.hero h1 { font-size: 3rem; font-weight: 900; letter-spacing: .02em; }
.hero-desc { max-width: 520px; color: #eee; }
.btn-outline {
  display: inline-block; margin-top: 16px; padding: 10px 28px;
  border: 1px solid var(--orange); color: var(--orange);
  text-decoration: none; font-weight: 800; font-size: .8rem; letter-spacing: .1em;
}
.btn-outline:hover { background: var(--orange); color: #fff; }
.hero-social { position: absolute; right: 22px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; z-index: 1; }
.hero-social a { color: #fff; text-decoration: none; font-size: .8rem; opacity: .8; border: 1px solid rgba(255,255,255,.4); width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }

/* sections */
.section { padding: 70px 0; scroll-margin-top: 60px; }
.section-grey { background: var(--grey-bg); }

/* welcome */
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.mini-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.mini { display: flex; gap: 10px; }
.mini-icon { font-size: 1.6rem; }
.mini strong { font-size: .9rem; }
.mini p { margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.welcome-img-wrap { position: relative; }
.welcome-img-wrap img { width: 100%; height: 460px; object-fit: cover; }
.values-card { position: absolute; left: -30px; bottom: 30px; background: var(--orange); color: #fff; padding: 20px; max-width: 260px; }
.values-card h4 { margin: 6px 0; }
.values-card p { font-size: .82rem; margin: 0; }
.values-icon { font-size: 1.6rem; }

/* offer grid */
.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.offer-card { background: #fff; border: 1px solid var(--border); padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.offer-icon { background: #fff3e0; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.offer-card h4 { margin: 0 0 4px; font-size: 1rem; }
.offer-card p { margin: 0; font-size: .85rem; color: var(--muted); }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split-img img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; }
.split-text { padding: 70px 60px; background: #fff; }
.timeline { padding-left: 20px; }
.timeline li { margin-bottom: 10px; }
.signature { font-family: cursive; font-size: 1.6rem; margin: 14px 0; }
.btn-solid { display: inline-block; background: var(--orange); color: #fff; text-decoration: none; font-weight: 800; font-size: .8rem; letter-spacing: .08em; padding: 12px 30px; }
.btn-solid:hover { background: var(--orange-dark); }

/* team / stages */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.team-card { position: relative; overflow: hidden; }
.team-card img { width: 100%; height: 340px; object-fit: cover; }
.team-label { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; padding: 40px 16px 14px; }
.team-label strong { display: block; letter-spacing: .08em; }
.team-label span { font-size: .8rem; opacity: .9; }

/* table */
.table-wrap { overflow-x: auto; margin-top: 24px; background: #fff; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; font-size: .92rem; }
thead th { background: var(--dark); color: #fff; font-size: .8rem; letter-spacing: .08em; }
tbody tr:nth-child(even) { background: #fafafa; }

/* testimonial */
.testimonial {
  background: #3a2417 url("https://images.unsplash.com/photo-1506755855567-92ff770e8af6?w=1600&q=80&auto=format&fit=crop") center/cover no-repeat;
  position: relative; color: #fff; text-align: center; padding: 70px 20px;
}
.testimonial::before { content: ""; position: absolute; inset: 0; background: rgba(40,20,5,.78); }
.testimonial .container { position: relative; z-index: 1; }
.testimonial h2 { letter-spacing: .08em; }
.testi-text { max-width: 640px; margin: 12px auto; font-style: italic; color: #f3e6d8; }
.avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin: 16px auto 8px; border: 2px solid var(--orange); }
.testi-name { font-weight: 800; } .testi-name span { font-weight: 400; font-size: .8rem; opacity: .8; }

/* blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.blog-card { background: #fff; border: 1px solid var(--border); }
.blog-img { position: relative; }
.blog-img img { width: 100%; height: 220px; object-fit: cover; }
.date-badge { position: absolute; right: 12px; bottom: -18px; background: var(--orange); color: #fff; font-size: .7rem; font-weight: 800; text-align: center; padding: 8px 12px; line-height: 1.2; }
.blog-card h4 { padding: 26px 18px 0; margin: 0; }
.blog-card p { padding: 0 18px; font-size: .85rem; color: var(--muted); }
.blog-card a { display: block; padding: 0 18px 18px; color: var(--text); font-size: .8rem; font-weight: 800; text-decoration: none; }
.blog-card a:hover { color: var(--orange); }

/* contact form */
.contact-form { margin-top: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid var(--border); background: #fff;
  padding: 12px 14px; margin-bottom: 12px; font-family: inherit; font-size: .9rem;
}
.btn-green { background: #5a9a3b; color: #fff; border: none; padding: 10px 26px; font-weight: 800; font-size: .8rem; letter-spacing: .06em; cursor: pointer; }
.btn-green:hover { background: #4a8330; }
.form-note { font-size: .75rem; color: var(--muted); }

/* footer */
.footer { background: #111; color: #bbb; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 50px 20px; }
.footer h5 { color: var(--orange); font-size: .85rem; letter-spacing: .08em; margin: 0 0 12px; }
.footer-desc { font-size: .85rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul a { color: #bbb; text-decoration: none; font-size: .85rem; }
.footer ul a:hover { color: var(--orange); }
.footer ul li { margin-bottom: 6px; }
.newsletter { display: flex; }
.newsletter input { flex: 1; padding: 10px; border: none; font-size: .85rem; }
.newsletter button { background: #5a9a3b; color: #fff; border: none; padding: 0 16px; font-weight: 800; font-size: .75rem; cursor: pointer; }
.copyright { border-top: 1px solid #222; text-align: center; padding: 16px; font-size: .75rem; color: #777; }

/* responsive */
@media (max-width: 860px) {
  .hero h1 { font-size: 2rem; }
  .hero { padding: 80px 0; min-height: auto; }
  .hero-social { display: none; }
  .welcome-grid, .offer-grid, .split, .team-grid, .blog-grid, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .split-text { padding: 40px 24px; }
  .values-card { left: 12px; }
  .bg-word { font-size: 2rem; margin-bottom: -18px; }
  .main-nav { display: none; flex-direction: column; position: absolute; top: 62px; left: 0; right: 0; background: #111; padding: 10px 20px 18px; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-inner { position: relative; }
  .topbar-inner span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
