/*
Theme Name: ANHLT Personal Brand
Theme URI: https://anhlt.vn
Author: Le Tuan Anh
Author URI: https://anhlt.vn
Description: Personal branding theme với Earth tones - mệnh Thổ. Minimal, warm & professional.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: anhlt-theme
*/

/* ============================================================
   DESIGN TOKENS — WARM EDITORIAL (inspired by hoangeagle.com)
   Forest Green · Terracotta · Cream Neutrals
   ============================================================ */
:root {
  /* Primary — Forest Green */
  --color-gold:        #3D5A3D;  /* Forest green — accent chính */
  --color-gold-light:  #7aa07a;  /* Green nhạt */
  --color-gold-dark:   #2d4530;  /* Green đậm — hover */

  /* Secondary — Terracotta */
  --color-accent:      #C4642B;  /* Terracotta */
  --color-accent-soft: #F4E4D6;  /* Terracotta tint */

  /* Neutrals */
  --color-brown:       #5b5b58;  /* Ink soft */
  --color-brown-dark:  #1a1a1a;  /* Ink đậm — heading */
  --color-cream:       #FAFAF7;  /* Nền chính — warm off-white */
  --color-cream-mid:   #F1EBE0;  /* Nền alt — linen/cream */
  --color-white:       #FFFFFF;
  --color-footer:      #14140e;  /* Footer near-black ấm */
  --color-line:        #E5E0D5;  /* Border/divider */

  /* Text */
  --text-primary:      #1a1a1a;  /* Ink — tương phản cao */
  --text-secondary:    #5b5b58;  /* Ink soft — dễ đọc */
  --text-muted:        #8b8b86;  /* Ink faded — meta */
  --text-on-dark:      #FAFAF7;

  /* Typography */
  --font-heading:      'Cormorant Garamond', Georgia, serif;
  --font-body:         'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs:   0.5rem;
  --space-sm:   1rem;
  --space-md:   1.5rem;
  --space-lg:   2.5rem;
  --space-xl:   4rem;
  --space-xxl:  clamp(4.375rem, 10vw, 6.875rem); /* 70px–110px */

  /* Layout */
  --container-max:  1180px;
  --container-wide: 1280px;
  --radius-sm:  999px;   /* pill buttons */
  --radius-md:  14px;    /* cards */
  --radius-lg:  22px;    /* large cards */

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(20, 20, 20, 0.06);
  --shadow-md:  0 8px 24px rgba(20, 20, 20, 0.08);
  --shadow-lg:  0 12px 40px rgba(20, 20, 20, 0.14);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.25s var(--ease);
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--color-cream);
}

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-gold-dark);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-gold);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-brown-dark);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }

p { margin-bottom: var(--space-sm); }

.lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.container--wide {
  max-width: var(--container-wide);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-line);
  padding: var(--space-sm) 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.site-logo:hover {
  opacity: 0.85;
  color: inherit;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--color-gold-dark);
  color: #ffffff;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.logo-name {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-brown-dark);
  letter-spacing: -0.02em;
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.site-nav a {
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0;
  transition: color var(--transition), font-weight var(--transition);
}

.site-nav a:hover,
.site-nav .current-menu-item a {
  color: var(--text-primary);
  font-weight: 600;
}

.nav-cta,
.nav-cta > a {
  background: var(--color-gold) !important;
  color: var(--color-white) !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition) !important;
  text-decoration: none !important;
}

.nav-cta:hover,
.nav-cta > a:hover {
  background: var(--color-gold-dark) !important;
  color: var(--color-white) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(61, 90, 61, 0.25) !important;
  font-weight: 600 !important;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-primary);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
  border-radius: 999px;
}

.btn--primary:hover {
  background: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(61, 90, 61, 0.25);
}

.btn--outline {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
  border-radius: 999px;
}

.btn--outline:hover {
  background: var(--color-gold);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}

.btn--ghost:hover {
  color: var(--color-gold);
}

.btn--ghost::after {
  content: '→';
  transition: transform var(--transition);
}

.btn--ghost:hover::after {
  transform: translateX(4px);
}

/* ============================================================
   SECTION BASE
   ============================================================ */
.section {
  padding: var(--space-xxl) 0;
}

.section--sm {
  padding: var(--space-xl) 0;
}

.section--dark {
  background: var(--color-footer);
  color: var(--text-on-dark);
}

.section--warm {
  background: var(--color-cream-mid);
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.section-title {
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.section-desc {
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: var(--space-lg);
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: none;
  border: 1px solid var(--color-line);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.card-title {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-brown-dark);
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-footer);
  color: rgba(250, 250, 247, 0.7);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand .site-logo {
  color: var(--text-on-dark);
}

.footer-tagline {
  margin-top: var(--space-xs);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  opacity: 0.6;
}

.footer-bio {
  margin-top: var(--space-sm);
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(250, 250, 247, 0.55);
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: var(--space-md);
}

.footer-social__link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(250, 250, 247, 0.08);
  color: rgba(250, 250, 247, 0.55);
  transition: background var(--transition), color var(--transition);
  border: 1px solid rgba(250, 250, 247, 0.1);
}

.footer-social__link:hover {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.footer-links h4 {
  color: var(--color-gold-light);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(253, 250, 244, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--color-gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(253, 250, 244, 0.1);
  padding-top: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .nav-toggle { display: block; }

  .footer-top { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
}

@media (max-width: 480px) {
  .footer-links { grid-template-columns: 1fr; }
}
