/*
Theme Name: 456win SEO Studio
Theme URI: https://456win.asia/
Author: OpenAI
Description: Lightweight, responsive WordPress classic theme with semantic HTML, accessible navigation, and a clean editorial layout.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 456win-seo-studio
Tags: blog, custom-logo, custom-menu, featured-images, one-column, two-columns, translation-ready
*/

:root {
  --brand: #176b43;
  --brand-dark: #104b30;
  --brand-soft: #eaf4ee;
  --ink: #17221b;
  --muted: #5c6a61;
  --line: #dce7df;
  --paper: #ffffff;
  --surface: #f5f8f6;
  --radius: 18px;
  --shadow: 0 16px 44px rgba(18, 48, 31, .08);
  --content: 760px;
  --wide: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--brand-dark); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #e7b84b; outline-offset: 3px;
}
button, input { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 2.5rem), var(--wide)); margin-inline: auto; }
.content-width { width: min(calc(100% - 2.5rem), var(--content)); margin-inline: auto; }
.skip-link {
  position: absolute; top: .5rem; left: .5rem; z-index: 1000;
  transform: translateY(-160%); padding: .7rem 1rem; color: white; background: var(--brand);
  border-radius: 10px;
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  position: relative; z-index: 20; background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 2rem; }
.site-branding { display: flex; align-items: center; gap: .8rem; min-width: 0; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { width: auto; max-height: 48px; }
.site-title { margin: 0; font-size: 1.3rem; line-height: 1.2; font-weight: 850; letter-spacing: -.04em; }
.site-title a { color: var(--ink); text-decoration: none; }
.site-description { margin: .15rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.primary-navigation { display: flex; align-items: center; gap: 1.5rem; }
.primary-navigation ul { display: flex; align-items: center; gap: 1.35rem; list-style: none; padding: 0; margin: 0; }
.primary-navigation a { color: var(--ink); text-decoration: none; font-weight: 650; font-size: .93rem; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a { color: var(--brand); }
.menu-toggle {
  display: none; border: 1px solid var(--line); background: white; color: var(--ink);
  border-radius: 12px; padding: .55rem .8rem; font-weight: 700;
}
.header-cta, .button, .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border: 0; border-radius: 999px; padding: .78rem 1.15rem; background: var(--brand);
  color: #fff; font-weight: 750; text-decoration: none; line-height: 1.25;
  transition: transform .18s ease, background .18s ease;
}
.header-cta:hover, .button:hover, .wp-block-button__link:hover { color: #fff; background: var(--brand-dark); transform: translateY(-1px); }
.hero {
  position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 7.2rem) 0;
  background: radial-gradient(ellipse at 85% 15%, rgba(23,107,67,.11), transparent 34%), linear-gradient(180deg, #fbfdfb 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 1rem;
  color: var(--brand); font-size: .76rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 2px; background: currentColor; }
.hero h1, .entry-title, .page-title {
  margin: 0; color: var(--ink); font-size: clamp(2.4rem, 5.2vw, 4.6rem);
  line-height: 1.06; letter-spacing: -.055em; font-weight: 850; text-wrap: balance;
}
.hero-copy { max-width: 650px; margin: 1.4rem 0 0; color: var(--muted); font-size: clamp(1.03rem, 1.7vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.button-secondary { background: white; border: 1px solid var(--line); color: var(--ink); }
.button-secondary:hover { background: var(--surface); color: var(--ink); }
.hero-panel {
  padding: clamp(1.3rem, 3vw, 2rem); background: rgba(255,255,255,.9);
  border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow);
}
.panel-mark {
  display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 1.2rem;
  border-radius: 18px; background: var(--brand); color: white; font-size: 1.15rem; font-weight: 900;
}
.hero-panel h2 { margin: 0 0 .55rem; font-size: 1.2rem; letter-spacing: -.025em; }
.hero-panel p { margin: 0; color: var(--muted); font-size: .95rem; }
.section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-muted { background: var(--surface); border-block: 1px solid var(--line); }
.section-heading { max-width: 720px; margin-bottom: 2rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.15; letter-spacing: -.045em; }
.section-heading p { margin: .8rem 0 0; color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.feature-card, .post-card {
  min-width: 0; padding: 1.5rem; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: 0 4px 18px rgba(18,48,31,.025);
}
.feature-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1.2rem; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-weight: 900; }
.feature-card h3, .post-card h2 { margin: 0 0 .55rem; font-size: 1.15rem; line-height: 1.35; letter-spacing: -.02em; }
.feature-card p, .post-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.feature-card a { font-weight: 750; }
.prose { font-size: 1.04rem; }
.prose > * { max-width: 100%; }
.prose h2 { margin-top: 2.4rem; margin-bottom: .7rem; font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.25; letter-spacing: -.035em; }
.prose h3 { margin-top: 1.8rem; font-size: 1.3rem; line-height: 1.3; }
.prose p, .prose ul, .prose ol { color: #344239; }
.prose blockquote { margin-inline: 0; padding: .5rem 1.2rem; border-left: 4px solid var(--brand); color: var(--muted); background: var(--surface); }
.prose figure { margin-inline: 0; }
.prose img { border-radius: 14px; }
.faq-list { max-width: 850px; }
.faq-list details { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; font-weight: 750; }
.faq-list details p { margin-bottom: 0; color: var(--muted); }
.page-intro { padding: clamp(2.8rem, 6vw, 5rem) 0 2rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.page-intro .entry-title, .page-intro .page-title { font-size: clamp(2.1rem, 4.8vw, 3.8rem); }
.entry-meta { margin-top: .8rem; color: var(--muted); font-size: .88rem; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 3rem; align-items: start; }
.post-thumbnail { margin: 1.5rem 0; }
.post-thumbnail img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.post-card .entry-meta { margin: 0 0 .65rem; }
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.page-numbers { display: inline-flex; padding: .55rem .85rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.page-numbers.current { background: var(--brand); color: white; border-color: var(--brand); }
.search-form { display: flex; gap: .5rem; max-width: 600px; }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 48px; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; }
.search-submit { border: 0; border-radius: 12px; padding: .7rem 1rem; color: white; background: var(--brand); font-weight: 750; }
.site-footer { padding: 2.5rem 0; background: #14251b; color: #e7efe9; }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; }
.footer-title { margin: 0; color: #fff; font-size: 1.2rem; font-weight: 850; }
.footer-copy { max-width: 520px; color: #c4d2c8; font-size: .9rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-nav a { color: #e7efe9; font-size: .9rem; }
.footer-bottom { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.15); color: #c4d2c8; font-size: .8rem; }
.not-found { padding: 5rem 0; text-align: center; }
.not-found h1 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.1; }
.alignwide { max-width: var(--wide); margin-inline: auto; }
.alignfull { width: 100%; max-width: none; }
.wp-block-image img, .wp-block-cover { border-radius: 14px; }
.wp-block-button__link { border-radius: 999px; }
hr, .wp-block-separator { border: 0; border-top: 1px solid var(--line); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { max-width: 620px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-layout { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .container, .content-width { width: min(calc(100% - 1.5rem), var(--wide)); }
  .header-inner { min-height: 70px; gap: .8rem; }
  .menu-toggle { display: inline-flex; align-items: center; gap: .5rem; }
  .primary-navigation { display: none; width: 100%; padding: 0 0 1rem; }
  .primary-navigation.is-open { display: block; }
  .primary-navigation ul { align-items: stretch; flex-direction: column; gap: 0; }
  .primary-navigation li a { display: block; padding: .75rem 0; border-top: 1px solid var(--line); }
  .header-inner { flex-wrap: wrap; }
  .card-grid, .post-list { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
  .hero h1 { font-size: clamp(2.2rem, 11vw, 3.4rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* 456win homepage hero/banner update */
.site-header,
header.site-header,
.site-header .header-inner {
  background: #176b43;
  color: #fff;
}
.site-header a,
header.site-header a,
.site-header .site-title,
.site-header .site-description,
.site-header .primary-navigation a {
  color: #fff;
}
.site-header .custom-logo-link img,
.custom-logo-link img {
  max-height: 64px;
  width: auto;
  object-fit: contain;
}
.home .hero,
.home .home-hero,
.home .hero-section,
.home .front-hero {
  background: linear-gradient(120deg, #123d2c 0%, #176b43 58%, #20865a 100%);
  color: #fff;
  border-radius: 0 0 28px 28px;
}
.home .hero h1,
.home .home-hero h1,
.home .hero-section h1,
.home .front-hero h1,
.home .hero p,
.home .home-hero p,
.home .hero-section p,
.home .front-hero p {
  color: #fff;
}
.home .hero a,
.home .home-hero a,
.home .hero-section a,
.home .front-hero a {
  border-radius: 999px;
}
