/* =========================================================
   Garden Cathay Resort — Modern Stylesheet
   Palette: nature greens + warm cream + gold accent
   System fonts only (offline-friendly, fast, accessible)
   ========================================================= */

:root {
  --green-900: #1f4d2d;
  --green-700: #2e6b3f;
  --green-600: #3b7d4e;
  --green-100: #e7f0e8;
  --gold: #c9a227;
  --gold-dark: #a5821d;
  --cream: #faf6ee;
  --cream-2: #f4eddd;
  --ink: #2f2f2b;
  --muted: #6b6b63;
  --line: #e4dcc9;
  --white: #ffffff;
  --shadow: 0 10px 28px rgba(31, 77, 45, .12);
  --radius: 14px;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--green-900); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  color: var(--green-900);
  margin: 0 0 .6em;
  font-weight: 700;
}
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--green-900);
  color: #e9f2ea;
  font-size: .85rem;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  justify-content: space-between;
  padding-top: 8px;
  padding-bottom: 8px;
}
.topbar a { color: #f3e6b9; }
.topbar a:hover { color: #fff; }
.topbar .nav-util { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0; padding: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img.logo { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; }
.brand-name { font-family: var(--font-head); font-weight: 700; color: var(--green-900); line-height: 1.05; font-size: 1.15rem; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .72rem; letter-spacing: .04em; }

.nav-toggle {
  display: none;
  background: var(--green-700);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 1rem;
  cursor: pointer;
}
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
  align-items: center;
}
.main-nav a {
  display: block;
  padding: 8px 11px;
  border-radius: 7px;
  color: var(--ink);
  font-size: .92rem;
  font-weight: 500;
}
.main-nav a:hover { background: var(--green-100); color: var(--green-900); text-decoration: none; }
.main-nav a.active { background: var(--green-900); color: #fff; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
  }
  .main-nav.open { max-height: 80vh; overflow-y: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 10px; }
  .main-nav a { padding: 11px 14px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--green-900); color: #fff; overflow: hidden; }
.hero-media img { width: 100%; height: clamp(300px, 46vw, 520px); object-fit: cover; opacity: .55; }
.hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 40px 22px;
}
.hero-inner h1 { color: #fff; font-size: clamp(2rem, 5.5vw, 3.6rem); text-shadow: 0 3px 14px rgba(0,0,0,.55); margin-bottom: .4em; }
.hero-inner p.lede { color: #f4ecd2; font-size: clamp(1rem, 2.2vw, 1.3rem); max-width: 720px; margin: 0 auto 24px; text-shadow: 0 2px 8px rgba(0,0,0,.5); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 9px;
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  transition: transform .12s ease, box-shadow .12s ease, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: #2a2403; }
.btn-primary:hover { background: var(--gold-dark); color: #fff; text-decoration: none; box-shadow: 0 6px 16px rgba(0,0,0,.22); }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--green-900); text-decoration: none; }
.btn-green { background: var(--green-700); color: #fff; }
.btn-green:hover { background: var(--green-900); color: #fff; text-decoration: none; box-shadow: 0 6px 16px rgba(31,77,45,.3); }

/* ---------- Sections ---------- */
.section { padding: 64px 22px; }
.section.alt { background: var(--white); }
.section.tint { background: var(--cream-2); }
.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}
.kicker {
  display: inline-block;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .8rem;
  font-weight: 700;
  color: var(--gold-dark);
  margin-bottom: 8px;
}
.section-head p { color: var(--muted); }

/* ---------- Grid / cards ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(31,77,45,.07);
  transition: transform .15s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card img.service-img { width: 100%; height: 190px; object-fit: cover; }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .4em; font-size: 1.22rem; }
.card-body p { color: var(--muted); flex: 1; }
.card-body .btn { align-self: flex-start; margin-top: 12px; font-size: .92rem; padding: 9px 18px; }

/* ---------- Feature rows ---------- */
.rows { display: grid; gap: 34px; align-items: center; }
.row-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 760px) { .row-2 { grid-template-columns: 1fr; } }
.feature-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: 340px; object-fit: cover; }
.feature-text h2 { margin-bottom: .5em; }
.feature-text ul { padding-left: 20px; }
.feature-text li { margin-bottom: .5em; }

/* ---------- Stats / trust ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 20px;
  text-align: center;
}
.stat .num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--green-700); }
.stat .lbl { color: var(--muted); font-size: .92rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; }
.gallery img { border-radius: 12px; width: 100%; height: 200px; object-fit: cover; box-shadow: 0 3px 10px rgba(0,0,0,.12); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--green-700);
  color: #fff;
  padding: 66px 22px;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #e8f0e8; max-width: 640px; margin: 0 auto 24px; }
.cta-band .btn-primary { font-size: 1.05rem; padding: 14px 30px; }

/* ---------- FAQ ---------- */
.faq-list details { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 12px; }
.faq-list summary { cursor: pointer; font-weight: 600; color: var(--green-900); font-size: 1.03rem; }
.faq-list details p { color: var(--muted); margin: 12px 0 0; }

/* ---------- Contact / forms ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 38px; align-items: start; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.info-card h3 { margin-top: 0; }
.info-line { margin-bottom: 12px; }
.info-line b { display: block; color: var(--green-700); font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 3px 12px rgba(31,77,45,.07); }
.form-row { margin-bottom: 15px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--green-600); outline-offset: 0; border-color: var(--green-600); }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.pricing { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: 0 3px 12px rgba(31,77,45,.07); }
table.pricing th, table.pricing td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.pricing thead th { background: var(--green-900); color: #fff; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .85rem; color: var(--muted); padding: 14px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 6px; color: #b6ab8f; }
.breadcrumb a { color: var(--green-700); }
.breadcrumb [aria-current] { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #dfe9df; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 34px; padding-bottom: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 14px; }
.site-footer a { color: #cfe3d2; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 18px 0; font-size: .82rem; color: #b7ccba; text-align: center; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.muted { color: var(--muted); }
.mt-2 { margin-top: 40px; }
.mt-3 { margin-top: 64px; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: #fff; color: var(--green-900); padding: 8px 14px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
