/*
Theme Name:   AlvaMadani
Theme URI:    https://www.ahmadmadani.id
Description:  Child theme untuk website personal branding Ahmad Madani. Dibangun di atas GeneratePress. Brand color: #E8192C. Font: Sora + Nunito.
Author:       Ahmad Madani
Author URI:   https://www.ahmadmadani.id
Template:     generatepress
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  alvamadani
Tags:         personal-brand, vokasi, sales, marketing
*/

/* ============================================================
   DESIGN TOKENS — Ahmad Madani Brand System
   ============================================================ */
:root {
  /* ── Brand Colors ── */
  --red:      #E8192C;
  --red-h:    #C9121F;
  --red-lt:   #FFF0F1;
  --red-md:   #FFD5D8;

  /* ── Neutrals ── */
  --dark:     #0D0E12;
  --dark2:    #1E2028;
  --body:     #3D3F4A;
  --muted:    #8A8E9E;
  --border:   #E8EAEF;
  --bg:       #FAFBFF;
  --white:    #FFFFFF;

  /* ── Typography ── */
  --fs: 'Sora', sans-serif;
  --fb: 'Nunito', sans-serif;

  /* ── Spacing & Shape ── */
  --max:  1160px;
  --r:    16px;
  --r-sm: 10px;
}

/* ============================================================
   BASE OVERRIDES — GeneratePress defaults
   ============================================================ */
body {
  font-family: var(--fb) !important;
  background-color: var(--bg) !important;
  color: var(--dark) !important;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--fs) !important;
  color: var(--dark) !important;
  letter-spacing: -0.03em;
}

p {
  font-family: var(--fb);
  color: var(--body);
  line-height: 1.75;
}

a {
  color: var(--red);
  transition: color 0.15s ease;
}
a:hover { color: var(--red-h); }

/* ============================================================
   GENERATEPRESS HEADER OVERRIDES
   ============================================================ */
.site-header {
  background-color: rgba(250, 251, 255, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border) !important;
  box-shadow: none !important;
}

/* Logo text */
.site-title a,
.site-title {
  font-family: var(--fs) !important;
  font-weight: 700 !important;
  font-size: 17px !important;
  color: var(--dark) !important;
  letter-spacing: -0.03em !important;
}
.site-title a:hover { color: var(--red) !important; }

/* ── Navigation ── */
.main-navigation a {
  font-family: var(--fs) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--body) !important;
  padding: 7px 14px !important;
  border-radius: 8px !important;
  transition: all 0.15s !important;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
  background-color: var(--red-lt) !important;
  color: var(--red) !important;
}

/* ── Nav Logo ── */
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo-link {
  display: flex;
  align-items: center;
  font-family: var(--fs, 'Sora', sans-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--dark, #0D0E12);
  letter-spacing: -0.03em;
  text-decoration: none;
  transition: opacity 0.15s;
  white-space: nowrap;
}
.nav-logo-link:hover { opacity: 0.85; color: var(--dark, #0D0E12); }
.nav-logo-img {
  height: 40px;
  width: auto;
  display: block;
}

/* ── Nav Inner layout ── */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 40px;
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

/* ── Nav Links — handle wp_nav_menu (ul>li>a) dan fallback (nav>a) ── */
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.nav-links li {
  list-style: none;
  display: flex;
}
.nav-links a,
.nav-links li > a {
  font-family: var(--fs, 'Sora', sans-serif);
  font-size: 13px;
  font-weight: 500;
  color: var(--body, #3D3F4A);
  padding: 7px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links li > a:hover {
  background: var(--red-lt, #FFF0F1);
  color: var(--red, #E8192C);
}
/* Active state merah */
.nav-links a.active,
.nav-links li.current-menu-item > a,
.nav-links li.current_page_item > a,
.nav-links li.current-menu-ancestor > a {
  color: var(--red, #E8192C) !important;
  font-weight: 600 !important;
  background: var(--red-lt, #FFF0F1) !important;
}

/* Dropdown */
.main-navigation ul ul {
  border: 1px solid var(--border) !important;
  border-radius: var(--r-sm) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.08) !important;
}
.main-navigation ul ul a {
  font-size: 13px !important;
  color: var(--body) !important;
}
.main-navigation ul ul a:hover { color: var(--red) !important; }

/* Mobile menu toggle */
button.menu-toggle {
  color: var(--dark) !important;
  font-family: var(--fs) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* ============================================================
   GENERATEPRESS BUTTONS
   ============================================================ */
.button,
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.wp-block-button__link {
  font-family: var(--fs) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  background-color: var(--red) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 13px 26px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  box-shadow: 0 4px 20px rgba(232, 25, 44, 0.22) !important;
  letter-spacing: -0.01em !important;
}
.button:hover,
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  background-color: var(--red-h) !important;
  transform: translateY(-1px) !important;
}

/* Secondary / outline button */
.button.secondary,
.wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent !important;
  color: var(--dark) !important;
  border: 1.5px solid var(--border) !important;
  box-shadow: none !important;
}
.button.secondary:hover,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: var(--red-lt) !important;
  border-color: var(--red) !important;
  color: var(--red) !important;
  transform: none !important;
}

/* ============================================================
   GENERATEPRESS CONTENT AREA
   ============================================================ */
.site-content,
.entry-content,
.page-content {
  font-family: var(--fb) !important;
}

/* Entry title */
.entry-title,
.page-title {
  font-family: var(--fs) !important;
  font-weight: 800 !important;
  color: var(--dark) !important;
  letter-spacing: -0.04em !important;
  line-height: 1.15 !important;
}
.entry-title a { color: var(--dark) !important; }
.entry-title a:hover { color: var(--red) !important; }

/* Entry meta */
.entry-meta,
.entry-meta a {
  font-family: var(--fs) !important;
  font-size: 12px !important;
  color: var(--muted) !important;
}

/* Post excerpt */
.entry-summary p {
  font-family: var(--fb) !important;
  color: var(--body) !important;
  line-height: 1.75 !important;
}

/* ── Article / Post body typography ── */
.entry-content p {
  font-family: var(--fb);
  font-size: 17px;
  line-height: 1.85;
  color: var(--body);
  margin-bottom: 22px;
}
.entry-content h2 {
  font-family: var(--fs);
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.03em;
  margin: 44px 0 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.entry-content h3 {
  font-family: var(--fs);
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin: 28px 0 10px;
}
.entry-content a {
  color: var(--red);
  border-bottom: 1px solid var(--red-md);
  text-decoration: none;
  transition: border-color 0.15s;
}
.entry-content a:hover { border-color: var(--red); }
.entry-content blockquote {
  border-left: 3px solid var(--red) !important;
  padding: 4px 0 4px 20px !important;
  margin: 28px 0 !important;
  font-family: var(--fs) !important;
  font-style: italic !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  color: var(--dark) !important;
  background: transparent !important;
}
.entry-content ul li,
.entry-content ol li {
  font-family: var(--fb);
  font-size: 16px;
  color: var(--body);
  line-height: 1.7;
  margin-bottom: 6px;
}

/* ============================================================
   GENERATEPRESS SIDEBAR
   ============================================================ */
.widget-title {
  font-family: var(--fs) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--dark) !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  border-bottom: 2px solid var(--red) !important;
  padding-bottom: 8px !important;
  margin-bottom: 16px !important;
}
.widget {
  font-family: var(--fb) !important;
}
.widget ul li a {
  font-family: var(--fb) !important;
  color: var(--body) !important;
  font-size: 14px !important;
}
.widget ul li a:hover { color: var(--red) !important; }

/* ============================================================
   GENERATEPRESS FOOTER
   ============================================================ */
.site-footer {
  background-color: var(--dark) !important;
  color: rgba(255, 255, 255, 0.4) !important;
  border-top: none !important;
}
.site-footer a {
  color: rgba(255, 255, 255, 0.5) !important;
}
.site-footer a:hover { color: #fff !important; }
.copyright,
.site-info {
  font-family: var(--fb) !important;
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.2) !important;
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="search"],
textarea,
select {
  font-family: var(--fb) !important;
  font-size: 14px !important;
  color: var(--dark) !important;
  background-color: var(--white) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 10px !important;
  padding: 11px 14px !important;
  transition: border-color 0.15s !important;
  outline: none !important;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(232, 25, 44, 0.08) !important;
}

/* Search form */
.search-form input[type="search"] {
  border-radius: 10px 0 0 10px !important;
}
.search-form input[type="submit"] {
  border-radius: 0 10px 10px 0 !important;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination .page-numbers,
.post-navigation a {
  font-family: var(--fs) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 10px !important;
  color: var(--muted) !important;
  padding: 8px 14px !important;
  background: var(--white) !important;
  transition: all 0.15s !important;
}
.pagination .page-numbers:hover,
.post-navigation a:hover {
  border-color: var(--red) !important;
  color: var(--red) !important;
}
.pagination .page-numbers.current {
  background: var(--dark) !important;
  border-color: var(--dark) !important;
  color: #fff !important;
}

/* ============================================================
   AURORA BLOB UTILITY CLASSES
   (dipakai di Page Builder / GP Blocks)
   ============================================================ */
.aurora {
  position: relative;
  overflow: hidden;
}
.aurora > * { position: relative; z-index: 1; }
.aurora-blobs {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.am-blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0;
}
/* Warna blob */
.am-blob-red    { background: rgba(232, 25, 44, 0.12); }
.am-blob-blue   { background: rgba(56, 130, 246, 0.10); }
.am-blob-green  { background: rgba(16, 185, 129, 0.09); }
.am-blob-peach  { background: rgba(251, 146, 60, 0.09); }
.am-blob-purple { background: rgba(139, 92, 246, 0.07); }
/* Ukuran blob */
.am-blob-xl  { width: 860px; height: 860px; }
.am-blob-lg  { width: 680px; height: 680px; }
.am-blob-md  { width: 500px; height: 500px; }
.am-blob-sm  { width: 360px; height: 360px; }

@keyframes am-blob-appear {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes am-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -20px) scale(1.03); }
  66%       { transform: translate(-15px, 10px) scale(0.97); }
}
@keyframes am-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-25px, 15px) scale(0.98); }
  66%       { transform: translate(10px, -20px) scale(1.02); }
}
@keyframes am-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(15px, 25px) scale(1.04); }
}

/* ============================================================
   SECTION EYEBROW / LABEL UTILITY
   ============================================================ */
.am-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--fs); font-size: 13px; font-weight: 600;
  color: var(--red); margin-bottom: 12px;
}
.am-eyebrow::before {
  content: ''; width: 16px; height: 2px;
  background: var(--red); border-radius: 2px;
}

/* ============================================================
   CARDS UTILITY
   ============================================================ */
.am-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 28px 24px;
  transition: all 0.2s;
}
.am-card:hover {
  border-color: var(--red-md);
  box-shadow: 0 8px 32px rgba(232, 25, 44, 0.08);
  transform: translateY(-2px);
}

/* ============================================================
   GENERATEPRESS GP BLOCKS / PAGE HERO UTILITY
   ============================================================ */
/* Digunakan saat membangun halaman di GP Blocks */
.gp-hero-section {
  padding: 80px 0 72px;
  min-height: 60vh;
  display: flex;
  align-items: center;
}
.gp-section-dark  { background: var(--dark2) !important; }
.gp-section-white { background: var(--white) !important; }
.gp-section-bg    { background: var(--bg) !important; }
.gp-section-red   { background: var(--red) !important; }

/* CTA Card merah */
.am-cta-card {
  background: var(--red);
  border-radius: 24px;
  padding: 60px;
  position: relative;
  overflow: hidden;
}
.am-cta-card::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

/* ── Footer Brand (no AM dot) ── */
.footer-brand-name { font-family: var(--fs, 'Sora', sans-serif); font-size: 17px; font-weight: 800; color: #fff; letter-spacing: -0.03em; margin-bottom: 8px; display: block; }
.footer-brand-name a { color: inherit; text-decoration: none; }
.footer-brand-dot { display: none; }

/* ── Footer Social List (icon + teks) ── */
.footer-social-list a { display: inline-flex; align-items: center; gap: 7px; }
.footer-social-list svg { flex-shrink: 0; opacity: .55; }

/* ============================================================
   WOOCOMMERCE (jika diperlukan di masa depan)
   ============================================================ */
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  font-family: var(--fs) !important;
  background-color: var(--red) !important;
  color: #fff !important;
  border-radius: 12px !important;
}

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 768px) {
  h1 { font-size: clamp(28px, 8vw, 48px) !important; }
  h2 { font-size: clamp(22px, 6vw, 36px) !important; }
  .am-cta-card { padding: 36px 24px !important; }
}

/* ── Mobile Nav Hamburger ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  border-radius: 8px;
  transition: background .15s;
}
.nav-hamburger:hover { background: var(--red-lt, #FFF0F1); }
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark, #0D0E12);
  border-radius: 2px;
  transition: all .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu dropdown */
.nav-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(250,251,255,.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border, #E8EAEF);
  padding: 12px 20px 16px;
  flex-direction: column;
  gap: 4px;
  z-index: 999;
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-family: var(--fs, 'Sora', sans-serif);
  font-size: 15px;
  font-weight: 500;
  color: var(--body, #3D3F4A);
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: all .15s;
}
.nav-mobile-menu a:hover,
.nav-mobile-menu a.active { background: var(--red-lt, #FFF0F1); color: var(--red, #E8192C); }

@media (max-width: 768px) {
  .nav { position: relative; }
  .nav-links { display: none !important; }
  .nav-hamburger { display: flex; }
  .wrap { padding: 0 20px; }

  /* Footer mobile — hide kontak (duplikasi sosmed) */
  .footer-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .footer-brand-desc { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }
  .footer-bottom-links { justify-content: center; }

  /* Testimoni carousel 1 kolom — gap=0 supaya pixel shift akurat */
  .am-testi-cols-3 .am-testi-track {
    gap: 0 !important;
  }
  .am-testi-cols-3 .am-testi-track .am-testi-card,
  .am-testi-cols-3 .am-testi-track:hover .am-testi-card,
  .am-testi-cols-3 .am-testi-track .am-testi-card:hover {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-height: none !important;
  }
  .am-testi-text { max-height: none !important; }
  .am-testi-fade { display: none !important; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
}

/* ============================================================
   STICKY HEADER SCROLL EFFECT
   (ditambahkan via GP Customize > Additional CSS)
   ============================================================ */
.site-header.scrolled {
  background: rgba(250, 251, 255, 0.97) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06) !important;
}
