/*
Theme Name: China Is Made In China
Theme URI: https://chinaismadinchina.com
Author: China Is Made In China
Author URI: https://chinaismadinchina.com
Description: A one-page WordPress theme about China's technological advancements and projects in Africa. Features Chinese red and gold color scheme, responsive layout, video sections, and smooth scroll navigation.
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: china-made-in-china
Tags: one-page, custom-colors, custom-menu, featured-images, full-width-template, responsive-layout, translation-ready
*/

/* ===================================
   CSS CUSTOM PROPERTIES
=================================== */
:root {
  --red: #C0001D;
  --red-dark: #8B0015;
  --red-light: #E8002A;
  --gold: #FFD700;
  --gold-dark: #C8A800;
  --gold-deep: #8B7300;
  --black: #0A0A0A;
  --black-soft: #0f0f0f;
  --off-white: #FFF8E7;
  --cream: #FFF3D0;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Barlow', 'Segoe UI', Arial, sans-serif;
  background: var(--black);
  color: var(--off-white);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ===================================
   GOOGLE FONTS (loaded via functions.php)
=================================== */

/* ===================================
   NAVIGATION
=================================== */
#site-navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(10, 10, 10, 0.93);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
}

.site-logo a {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.site-logo a span {
  color: var(--red-light);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu li a {
  color: rgba(255, 248, 231, 0.75);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s ease;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

.nav-menu li a:hover,
.nav-menu li.current-menu-item a {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 215, 0, 0.4);
  color: var(--gold);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

/* ===================================
   HERO SECTION
=================================== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #5C0010;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0A0A0A 0%, #5C0010 45%, #C0001D 100%);
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 68% 50%, rgba(192, 0, 29, 0.35) 0%, transparent 65%);
}

.hero-stars {
  position: absolute;
  top: 80px;
  right: 7%;
  z-index: 1;
  opacity: 0.9;
  user-select: none;
}

.hero-stars .star-big {
  font-size: 5.5rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  text-align: center;
  text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.hero-stars .stars-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.hero-stars .star-sm {
  font-size: 1.7rem;
  color: var(--gold);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 5% 60px;
  max-width: 680px;
  animation: heroFadeUp 1s ease both;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0.1s both;
}

.hero-eyebrow::before {
  content: '';
  width: 32px;
  height: 2px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0.25s both;
}

.hero-title em {
  font-style: normal;
  color: var(--gold);
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.85;
  color: rgba(255, 248, 231, 0.8);
  max-width: 510px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0.4s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeUp 0.8s ease 0.55s both;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 215, 0, 0.45);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* ===================================
   BUTTONS
=================================== */
.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  color: var(--black);
}

.btn-outline {
  display: inline-block;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9rem 2.5rem;
  transition: all 0.2s;
  cursor: pointer;
  background: transparent;
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--black);
}

.btn-dark {
  display: inline-block;
  background: var(--black);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  transition: background 0.2s;
  cursor: pointer;
  border: none;
}

.btn-dark:hover {
  background: var(--red-dark);
  color: var(--gold);
}

/* ===================================
   SECTION COMMON STYLES
=================================== */
.site-section {
  padding: 6rem 5%;
}

.section-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1.25rem;
}

.gold-line {
  width: 55px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 2.5rem;
}

/* ===================================
   ABOUT SECTION
=================================== */
#about {
  background: var(--black-soft);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text p {
  font-size: 0.98rem;
  line-height: 1.9;
  color: rgba(255, 248, 231, 0.72);
  margin-bottom: 1.4rem;
  font-weight: 300;
}

.about-text p:last-child { margin-bottom: 0; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.stat-box {
  background: var(--red-dark);
  border: 1px solid rgba(255, 215, 0, 0.18);
  padding: 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s;
}

.stat-box:hover {
  border-color: rgba(255, 215, 0, 0.5);
}

.stat-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--gold);
}

.stat-number {
  font-family: 'Noto Serif SC', serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.78rem;
  color: rgba(255, 248, 231, 0.6);
  font-weight: 400;
  line-height: 1.45;
}

/* ===================================
   SECTORS / TECHNOLOGY SECTION
=================================== */
#sectors {
  background: var(--black);
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 215, 0, 0.1);
  border: 1px solid rgba(255, 215, 0, 0.1);
  margin-top: 0;
}

.sector-card {
  background: var(--black-soft);
  padding: 2.5rem 2rem;
  transition: background 0.25s ease;
}

.sector-card:hover {
  background: var(--red-dark);
}

.sector-icon {
  font-size: 2.5rem;
  margin-bottom: 1.25rem;
  display: block;
}

.sector-card h3 {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.sector-card p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(255, 248, 231, 0.62);
  font-weight: 300;
}

/* ===================================
   AFRICA PROJECTS SECTION
=================================== */
#africa {
  background: var(--red-dark);
}

.africa-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}

.africa-projects {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0;
}

.project-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.22);
  border-left: 3px solid var(--gold);
  transition: background 0.2s;
}

.project-item:hover {
  background: rgba(0, 0, 0, 0.4);
}

.project-num {
  font-family: 'Noto Serif SC', serif;
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--gold);
  opacity: 0.4;
  min-width: 2.5rem;
  flex-shrink: 0;
}

.project-info h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.3rem;
}

.project-info p {
  font-size: 0.82rem;
  color: rgba(255, 248, 231, 0.58);
  font-weight: 300;
  line-height: 1.5;
}

.africa-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 215, 0, 0.18);
  font-size: 7rem;
  opacity: 0.65;
}

/* ===================================
   VIDEOS SECTION
=================================== */
#videos {
  background: var(--black-soft);
}

.videos-intro {
  max-width: 580px;
  margin-bottom: 3rem;
}

.videos-intro p {
  color: rgba(255, 248, 231, 0.65);
  font-weight: 300;
  line-height: 1.8;
  font-size: 0.98rem;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.video-embed {
  background: #1a1a1a;
  border: 1px solid rgba(255, 215, 0, 0.14);
  overflow: hidden;
}

.video-embed iframe,
.video-embed video {
  width: 100%;
  aspect-ratio: 16/9;
  display: block;
  border: 0;
}

.video-caption {
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  color: rgba(255, 248, 231, 0.5);
  border-top: 1px solid rgba(255, 215, 0, 0.1);
}

/* WordPress oEmbed / YouTube block override */
.video-grid .wp-block-embed,
.video-grid .wp-block-embed__wrapper {
  margin: 0;
}

/* ===================================
   CTA BANNER
=================================== */
#contact-banner {
  background: var(--gold);
  padding: 5rem 5%;
  text-align: center;
}

#contact-banner h2 {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--red-dark);
  margin-bottom: 1rem;
}

#contact-banner p {
  color: var(--red-dark);
  font-size: 1rem;
  opacity: 0.75;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* ===================================
   FOOTER
=================================== */
#colophon {
  background: #050505;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
  padding: 2.5rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Noto Serif SC', serif;
  font-size: 1rem;
  font-weight: 900;
  color: var(--gold);
}

.footer-logo span { color: var(--red-light); }

.site-info {
  font-size: 0.78rem;
  color: rgba(255, 248, 231, 0.3);
}

/* ===================================
   WORDPRESS CORE ALIGNMENT
=================================== */
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8rem; color: rgba(255,248,231,0.5); margin-top: 0.4rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ===================================
   RESPONSIVE
=================================== */
@media (max-width: 960px) {
  #about {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .africa-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .africa-visual { display: none; }
  .sectors-grid {
    grid-template-columns: 1fr 1fr;
  }
  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .site-section { padding: 4rem 5%; }
  #about { padding: 4rem 5%; }
  #africa { padding: 4rem 5%; }
  #sectors { padding: 4rem 5%; }
  #videos { padding: 4rem 5%; }

  .sectors-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }

  .nav-menu {
    display: none;
    position: fixed;
    top: 65px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.97);
    flex-direction: column;
    padding: 2rem 5%;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
  }
  .nav-menu.is-open { display: flex; }
  .menu-toggle { display: block; }

  .hero-stars { display: none; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .hero-cta .btn-outline { margin-left: 0; }

  #colophon { flex-direction: column; text-align: center; }
}

@media (max-width: 400px) {
  .about-stats { grid-template-columns: 1fr; }
}
