/* Sytta Consulting — shared styles
   Palette: deep jade (#1F4B43) for trust/health, warm brass (#B8874B) as the
   single accent, soft parchment (#F7F5F0) background. Serif for display
   (Noto Serif SC) to read as considered and credentialed; clean sans body
   (Noto Sans SC) for legibility across zh/en copy. */

:root {
  /* Text — darkest to lightest */
  --ink: #2C1B12;/* body text, near-black warm espresso */
  --ink-soft: #6B5140; /* secondary text, captions, meta */
  --accent-2: #C1552F;
  --brass: #f0d05a;
  --jade-soft: #F0DFC8;

  --jade-deep: #4A3525;
  --jade:#7A3423;
  --paper: #FBF3E7;  /* main page background */
  --paper-alt: #F3E7D6;  /* alternating section bg */
  --line: #E4D2B8;  /* borders, dividers */
  --white: #FFFDF8;  /* cards, header bg */

  --max: 1080px;
  --radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Barlow Semi Condensed", "STKaiti", "KaiTi", sans-serif;
  font-size: 21px;
  line-height: 1.75;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .eyebrow {
  font-family: "Barlow Semi Condensed", "STKaiti", "KaiTi", sans-serif;
  color: var(--jade-deep);
  letter-spacing: 0.03em;
}

h1 { font-size: clamp(2.2rem, 4.4vw, 3.1rem); line-height: 1.25; margin: 0 0 0.6em; font-weight: 700;color:var(--white) }
h2 { font-size: clamp(1.8rem, 2.6vw, 2rem); line-height: 1.35; margin: 0.4em 0 0.7em; font-weight: 700; }
h3 { font-size: 1.7rem; margin: 0 0 0.4em; font-weight: 700; }

p { margin: 0 0 1em; }
a { color: var(--jade-deep); margin: 0 0 0em; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

img { max-width: 100%; display: block; border-radius: var(--radius); }

.wrap { /* this defines the area? */
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 30px;
}

/* Header */
.site-header {
  /*border-bottom: 1px solid var(--line);*/
  /*background: linear-gradient(180deg, var(--jade) 70%, rgba(77, 62, 25, 0.6) 100%);*/
  background: var(--ink-soft);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
  flex-wrap: wrap;
}
.brand { /* brand is just the text, excluding the section area around it*/
  font-family: "Barlow Semi Condensed", sans-serif; /*"Noto Serif SC"*/
  font-weight: 800;
  font-size: 1.75rem;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.03em;
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 1.25rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--paper);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  border-bottom-color: var(--brass);
  color: var(--paper);
}

/* Hero */
.hero {
  background: var(--paper);
  color: var(--jade);
  padding: 56px 0 48px;
}
.eyebrow { /* eyebrow refers to the text, not the area*/
  display: inline-block;
  font-size: 1.0 rem;
  letter-spacing: 0.14em;
  color: var(--brass);
  text-transform: uppercase;
  margin-bottom: 14px;
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 700;
}
.hero p.lede {
  font-family: "sans-serif";
  font-size: 2.0rem;
  color: var(--white);
  max-width: 58 em;
  
}

/* Pricing table */
table.pricing {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  font-family: "Barlow Semi Condensed", "Noto Sans SC", sans-serif; /* [!code focus] */
}
table.pricing th, table.pricing td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 1.0 rem;
}
table.pricing th {
  background: var(--jade-soft);
  color: var(--jade-deep);
  font-size: 1.3 rem;
  font-weight: 700; /* Makes headers stand out cleanly */ /* [!code focus] */
}
table.pricing tr:last-child td { border-bottom: none; }
.table-note { font-size: 0.95rem; color: #6b7570; margin-top: 8px; }


/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--jade-deep);
  color: var(--white);
  text-decoration: none;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  border: 1px solid var(--jade);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--jade-deep); transform: translateY(-1px); }
.btn.outline {
  background: transparent;
  color: var(--jade-deep);
  border-color: var(--jade-deep);
}
.btn.outline:hover { background: var(--jade-soft); }

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { max-width: 42em; margin-bottom: 36px; }

/* Cards / grid */
.grid {
  display: grid;
  gap: 36px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card img { margin-bottom: 14px; aspect-ratio: 16/10; object-fit: cover; }
.card h3 { color: var(--jade-deep); }
.card p { margin-bottom: 0; color: #4a564f; font-size: 1.2rem; }

/* Two-up feature */
.split {
  display: grid;
  grid-template-columns: 1.3fr 1.3fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step .num {
  font-family: "Noto Serif SC", serif;
  color: var(--brass);
  font-size: 1.1 rem;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: block;
}


/* Team */
.team-card { display: flex; gap: 20px; align-items: flex-start; }
.team-card img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.team-card .bio { font-size: 1.1rem; color: var(--paper); }
.team-card a.linkedin { font-size: 1.0rem; font-weight: 600; color: var(--paper); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq-item .q { font-weight: 700; color: var(--jade-deep); margin-bottom: 6px; }
.faq-item .q .qnum { color: var(--jade); font-family: "Noto Serif SC", serif; margin-right: 8px; }

/* Testimonials */
.testimonial {
  
  border-left: 3px solid var(--brass);
  padding: 20px 24px;
  border-radius: var(--radius);
}
.testimonial p { font-style: italic; color: var(--paper); margin-bottom: 10px; }
.testimonial cite { font-style: normal; font-size: 1.1rem; color: var(--paper); font-weight: 600; }

/* CTA band */
/* ✅ Keep this optimized structure */
.cta-band {
  background: var(--white);
  color: var(--jade);
  padding: 48px 0;
  /* text-align: center has been safely removed */
}
.cta-band h2 { color: var(--jade); }
.cta-band p { color: var(--jade); max-width: 34em; margin-left: auto; margin-right: auto; }

/* Blog section background — matches the hero gradient */
.blog-section {
  background: var(--paper);
  padding: 36px 0;
}

/* Blog card grid — auto-fits available posts, no empty gaps */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 0.5fr));
  gap: 68px;
}

/* Blog cards — no border, no padding box, larger borderless image */
.blog-card {
  display: block;
  text-decoration: none;
  color: inherit;
}
.blog-card img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin-bottom: 12px;
}
.blog-card h3 {
  color: var(--jade-deep);
  margin-bottom: 4px;
}
.blog-card .post-meta { margin-bottom: 0; }



/* Footer */
.site-footer {
  border-top: 1px solid var(--jade);
  background: var(--paper);
  color: var(--jade);
  padding: 44px 0 30px;
}
.site-footer h3 { color: var(--jade-deep); }
.site-footer a { color: var(--jade-deep); }
.site-footer .foot-meta { font-size: 1.0rem; color: #8fa69d; margin-top: 24px; }

@media (max-width: 600px) {
  section { padding: 40px 0; }
  .hero { padding: 48px 0 40px; }
}

/* Custom Hero Overrides */
.hero-eyebrow {
  line-height: 1.5; /* Prevents long string overlapping if it wraps */
  margin-bottom: 18px;
}

.hero-action-block {
  margin-top: 32px; 
  align-items: center;
}

.hero-qr {
  max-width: 150px; /* Marginally smaller footprint for a cleaner visual weight balancing buttons */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01); /* Adds a premium subtle depth lift on soft background layouts */
}

/* Fix mobile alignment issues for the CTA group layout */
@media (max-width: 760px) {
  .hero-action-block {
    grid-template-columns: 1fr; /* Inherited layout framework stack toggle */
    justify-items: center; /* Horizontally centers both the button and QR code on mobile */
    text-align: center;
    gap: 20px;
  }
}
/* Asymmetrical Hero Layout with Background Image Fade */
.hero-with-bg {
  position: relative;
  /* 1. Add your image asset path here */
  background-image: url(../assets/images/eyebrow-section-background.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 60px 0;
  z-index: 1;
}

/* Semi-transparent overlay to fade the background image out */
.hero-with-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Mixes a soft parchment tone backdrop with 60% opacity to fade out the image */
  
  background: rgba(100, 83, 66, 0.6);
  z-index: -1; /* Pushes the tint overlay behind your text layers */
}

.hero-split-container {
  display: grid;
  /* 2.33 frames to 1 frame splits the 1080px max-width into exactly 70% and 30% columns */
  grid-template-columns: 3fr 1.5fr; /* [!code focus] */
  gap: 88px;
  align-items: center;
}

/* Right Column Layout Box */
.hero-qr-side {
  display: flex;
  flex-direction: column;
  align-items: center;    /* Centers the barcode and text inside the narrower 30% space */
  justify-content: center;
  text-align: center;
}

/* 50% Width Direct Barcode styling */
.hero-qr-direct {
  width: 100%;             /* Still dictates exactly 100% width of the narrower right column */
  height: auto;           
  display: block;
  margin: 0 auto 0px;    
  border-radius: var(--radius);
  filter: drop-shadow(0 4px 10px rgba(22, 36, 31, 0.1)); 
}

/* Direct Text Styling below the Barcode */
.qr-caption-direct {
  font-family: "Noto Serif SC", serif;
  color: var(--paper);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 0;
  letter-spacing: 0.05em;
}

/* 📱 Responsive Adjustments for Mobile Viewports */
@media (max-width: 860px) {
  .hero-split-container {
    grid-template-columns: 1fr; /* Stacks vertically on tablets and mobile screens */
    text-align: center;
    gap: 36px;
  }
}

/* Add this helper class to your stylesheet text centered */
.text-center h1, 
.text-center h2, 
.text-center h3 {
    text-align: center;
}

/* Creates a specific class for an alternate background color */
.bg-parchment {
  background-color: var(--ink-soft) ! important;
  color: var(--paper);

  /* This automatically applies to h1, h2, and h3 inside .bg-parchment */
  & h1, & h2, & h3, & p {
    color: var(--white) !important;
  }
}

/* Creates a specific background color for testimoney area*/
.bg-testimony {
  /* Creates a specific class for an alternate background color */
  background-image: url(../assets/images/testi-background.jpeg);
}

/* ==========================================================================
   Horizontal CTA Section Fix — Asymmetrical Twin Card Grid
   ========================================================================== */

#contact.cta-band .cta-split-container {
  display: grid !important;
  /* 3. Shifts layout weight: 1.4fr for spacious text, 1fr for tighter action boxes */
  grid-template-columns: 1.6fr 1fr !important; 
  gap: 48px !important;
  align-items: center !important;
  text-align: left !important; 
}

/* Left Text Column Rules */
.cta-text-side {
  text-align: left !important;
}

.cta-text-side h2 {
  text-align: left !important;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  color: var(--jade) !important;
}

.cta-lead-text {
  color: var(--jade) !important;
  line-height: 1.6 !important;
  font-size: 1.3 rem !important;
  margin-bottom: 24px !important;
}

.cta-requirements-list {
  list-style: none !important; 
  padding: 0 !important;
  margin: 0 !important;
}

.cta-requirements-list li {
  color: var(--jade) !important;
  font-size: 1.1 rem !important;
  margin-bottom: 12px !important;
  line-height: 1.6 !important;
  text-align: left !important;
}

.cta-requirements-list li strong {
  color: var(--jade) !important; 
}

/* Right Side Channels Container Row */
.cta-channels-side {
  display: flex !important;
  flex-direction: row !important;      
  align-items: stretch !important;     /* Forces twin cards to be identical heights */
  justify-content: flex-start !important;
  gap: 36px !important;                 
  width: 100% !important;
  flex-shrink: 0 !important;            
}

/* Base Twin Box Frame Settings */
.cta-wechat-wrapper,
.cta-email-box-wrapper {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important; 
  background: #c99c380a !important; 
  border: 2px solid rgba(53, 60, 81, 0.15) !important;
  border-radius: calc(var(--radius) * 2) !important;
  padding: 24px 16px !important; /* Adjusted horizontal padding slightly for compact desktop split */
  width: 200px !important;       /* Scaled card container down cleanly to fit the 1fr column allocation */
  flex-shrink: 0 !important;            
  margin: 0 !important;
}

/* 1. Both Badges Unified into Solid Brand Brass Text Color */
.cta-badge,
.cta-email-badge {
  font-family: "Barlow Semi Condensed", "Noto Sans SC", sans-serif !important;
  font-size: 1.0 rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  display: inline-block !important;
  margin-bottom: 14px !important; 
  color: var(--accent-2) !important; /* Forces uniform brass highlight text on both columns */
}

/* WeChat Graphics Sizing */
.cta-qr-image {
  width: 100% !important;
  max-width: 110px !important;
  height: auto !important;
  margin: 0 auto 12px !important;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2)) !important;
}

/* 2. Re-engineered Clickable Circular Envelope Button Highlighted in Brass */
.cta-email-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 2.2rem !important;        /* Clear envelope emoji sizing */
  line-height: 1 !important;
  background: var(--brass) !important;   /* Solid highlight fill block */
  width: 76px !important;               /* Creates a geometric clickable circle shape */
  height: 76px !important;
  border-radius: 50% !important;        /* Smooth mathematical circle curve */
  text-decoration: none !important;
  margin: 12px auto !important;
  box-shadow: 0 4px 14px rgba(184, 135, 75, 0.3) !important; /* Soft brass depth shadow glow */
  transition: transform 0.15s ease, background-color 0.15s ease !important;
}

/* Tactile user pointer indicators */
.cta-email-action-btn:hover {
  background: var(--brass-soft) !important;
  transform: translateY(-2px) !important; /* Subtle premium floating interactive response lift */
}

/* Card Bottom Text Metrics */
.cta-qr-caption,
.cta-email-caption {
  font-size: 0.9rem !important;
  color: var(--accent-2) !important;
  font-weight: 600 !important;
  margin: 0 !important;
  text-align: center !important;
}

/* 📱 Mobile and Tablet Viewport Breakdown Refits */
@media (max-width: 1100px) {
  #contact.cta-band .cta-split-container {
    grid-template-columns: 1fr !important; /* outer split defaults to standard single-column stack */
    text-align: center !important;
    gap: 40px !important;
  }

  .cta-text-side, .cta-text-side h2, .cta-requirements-list li {
    text-align: center !important; 
  }

  .cta-requirements-list {
    display: inline-block !important;
    text-align: left !important; 
    max-width: 440px !important;
  }

  /* Inner elements shift from a side-by-side row into a single column stack on tablet models */
  .cta-channels-side {
    flex-direction: column !important;
    align-items: center !important;
    gap: 20px !important;
  }

  .cta-wechat-wrapper, .cta-email-box-wrapper {
    width: 100% !important;
    max-width: 240px !important;
    padding: 24px !important;
  }
}
