/*
Theme Name:   Astra Child — Hello Hoi An
Theme URI:    https://hellohoian.com
Description:  Astra child theme for hellohoian.com
Author:       Hello Hoi An
Template:     astra
Version:      1.0.0
*/

/* ═══════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════ */
:root {
  --navy:      #163F58;
  --teal:      #244A5D;
  --forest:    #1B3D2F;
  --gold:      #FAD02B;
  --amber:     #FFC759;
  --cream-bg:  #FFF9EE;
  --cream-light: #FFFDF7;
  --text:      #1A1A1A;
  --text-muted:#6B7280;
  --border:    #E5E7EB;
  --white:     #FFFFFF;

  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  20px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.13);

  --wrap: 1200px;
  --nav-h: 72px;
}

/* ═══════════════════════════════════════
   BASE RESET & TYPOGRAPHY
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter Tight', 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', 'Source Serif 4', serif;
  line-height: 1.25;
  color: var(--navy);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ═══════════════════════════════════════
   FONTS
═══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;0,8..60,700;1,8..60,400;1,8..60,700&family=Inter+Tight:wght@400;500;600;700&subset=vietnamese&display=swap');

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--r-md);
  font-family: 'Inter Tight', sans-serif;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .2s;
  text-decoration: none;
}
.btn-navy    { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--teal); }
.btn-gold    { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--amber); }
.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: #fff; }

/* ═══════════════════════════════════════
   TAGS
═══════════════════════════════════════ */
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--navy);
  color: #fff;
}
.tag-outline {
  background: transparent;
  color: var(--teal);
  border: 1px solid var(--teal);
}

/* ═══════════════════════════════════════
   SECTION HEADERS
═══════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border);
}
.section-header h2 {
  font-size: 1.5rem;
}
.section-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.see-all-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--teal);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}
.see-all-link:hover { color: var(--navy); }

/* ═══════════════════════════════════════
   CARDS — Standard 3-col grid
═══════════════════════════════════════ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .card-grid { grid-template-columns: 1fr; } }

.card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  transition: box-shadow .22s, transform .22s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.card-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  overflow: hidden;
  flex-shrink: 0;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  color: var(--text-muted);
}
.card-title {
  font-family: 'Playfair Display', 'Source Serif 4', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}
.card:hover .card-title { color: var(--teal); }
.card-excerpt {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

/* ═══════════════════════════════════════
   HUB PAGE — HERO
═══════════════════════════════════════ */
.hub-hero {
  background: linear-gradient(135deg, var(--forest) 0%, var(--navy) 60%, var(--teal) 100%);
  padding: 72px 0 56px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/wp-content/themes/astra-child/assets/pattern-dots.svg') repeat;
  opacity: .06;
}
.hub-hero .wrap { position: relative; z-index: 1; }
.hub-hero-breadcrumb {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.hub-hero-breadcrumb a { color: rgba(255,255,255,.6); }
.hub-hero-breadcrumb a:hover { color: var(--gold); }
.hub-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.hub-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.82);
  max-width: 620px;
  line-height: 1.7;
}
.hub-hero-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 24px;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
}
.hub-hero-meta span { display: flex; align-items: center; gap: 5px; }

/* ═══════════════════════════════════════
   HUB PAGE — FEATURED BLOCK (first sub-hub)
═══════════════════════════════════════ */
.hub-featured {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
@media (max-width: 900px) { .hub-featured { grid-template-columns: 1fr; } }

.hub-featured-img {
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  min-height: 280px;
}
.hub-featured-img img { width: 100%; height: 100%; object-fit: cover; }
.hub-featured-body {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.hub-featured-body h3 {
  font-size: 1.4rem;
  font-weight: 700;
}
.hub-featured-body p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.hub-featured-body .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--teal);
  margin-top: 4px;
}
.hub-featured-body .read-more:hover { color: var(--navy); }

/* ═══════════════════════════════════════
   HUB PAGE — SUB-SECTION
═══════════════════════════════════════ */
.hub-section { padding: 56px 0; }
.hub-section + .hub-section { border-top: 1px solid var(--border); }

/* ═══════════════════════════════════════
   NEWSLETTER
═══════════════════════════════════════ */
.newsletter-section {
  padding: 64px 0;
  background: var(--navy);
  text-align: center;
  color: #fff;
}
.newsletter-section h2 { color: #fff; font-size: 1.8rem; margin-bottom: 10px; }
.newsletter-section p { color: rgba(255,255,255,.75); margin-bottom: 28px; }
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
}
.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: .9rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.45); }
@media (max-width: 560px) { .newsletter-form { flex-direction: column; } }

/* ═══════════════════════════════════════
   CONTACT PROMO (B2B)
═══════════════════════════════════════ */
.contact-promo {
  padding: 80px 0;
  background: var(--cream-bg);
  border-top: 1px solid var(--border);
}
.cp-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .cp-inner { grid-template-columns: 1fr; gap: 36px; }
  .cp-img-frame { aspect-ratio: 16/9; }
}
.cp-img-frame {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--forest) 0%, var(--navy) 60%, var(--teal) 100%);
}
.cp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.cp-eyebrow::before {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.cp-content h2 { font-size: 1.7rem; margin-bottom: 14px; }
.cp-content p  { color: var(--text-muted); margin-bottom: 10px; font-size: .93rem; line-height: 1.7; }
.cp-services {
  display: flex;
  gap: 16px;
  margin: 20px 0 28px;
  flex-wrap: wrap;
}
.cp-service {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--r-md);
}
.cp-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ═══════════════════════════════════════
   REVEAL ANIMATION
═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
