/*
Theme Name: Avanzar Enterprise
Theme URI: https://avanzarenterprise.com
Author: Avanzar Enterprise
Author URI: https://avanzarenterprise.com
Description: Professional WordPress theme for Avanzar Enterprise - Industrial Wiping Rags Manufacturer & Exporter.
Version: 2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: avanzar
*/

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

:root {
  --primary: #0e2a47;
  --primary-light: #1a3a5c;
  --secondary: #1a5276;
  --secondary-light: #2980b9;
  --accent: #e67e22;
  --bg: #f8f9fb;
  --bg-card: #ffffff;
  --text: #0e2a47;
  --text-muted: #5a6d80;
  --border: #dfe6ed;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', 'Inter', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

/* ===== LAYOUT ===== */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }

/* ===== HEADER / NAVBAR ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 72px;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.site-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem; font-weight: 700;
  color: var(--primary);
}
.site-logo:hover { color: var(--secondary); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-size: 0.9rem; font-weight: 500; color: var(--text);
  transition: color var(--transition);
  position: relative;
}
.main-nav a:hover, .main-nav a.active { color: var(--secondary); }
.main-nav a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--secondary); border-radius: 1px;
}

.btn {
  display: inline-block; padding: 10px 24px;
  font-size: 0.9rem; font-weight: 600;
  border-radius: var(--radius); cursor: pointer;
  transition: all var(--transition); border: none;
  text-align: center;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-light); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: var(--secondary-light); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--secondary); color: var(--secondary); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: #f0f0f0; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-full { width: 100%; }

/* Mobile menu */
.mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; position: relative;
}
.mobile-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text); margin: 0 auto;
  transition: all var(--transition);
}
.mobile-toggle span + span { margin-top: 6px; }
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

.mobile-nav {
  display: none; position: fixed; top: 72px; left: 0; right: 0;
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 16px 20px; z-index: 999;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 12px 0; font-size: 0.95rem;
  font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-of-type { border-bottom: none; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--secondary); }
.mobile-nav .btn { margin-top: 12px; }

/* ===== HERO SECTIONS ===== */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center;
  margin-top: 72px;
}
.hero-inner { position: relative; min-height: 50vh; display: flex; align-items: center; margin-top: 72px; }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(14, 42, 71, 0.82);
}
.hero .container, .hero-inner .container { position: relative; z-index: 1; }
.hero-content { max-width: 640px; }
.hero h1 { font-size: 2.75rem; color: var(--white); margin-bottom: 20px; }
.hero p, .hero-inner p { font-size: 1.15rem; color: rgba(255,255,255,0.85); margin-bottom: 32px; line-height: 1.7; }
.hero-inner h1 { font-size: 2.5rem; color: var(--white); margin-bottom: 16px; }
.hero-inner .container { text-align: center; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== SECTION HEADINGS ===== */
.section-heading { text-align: center; margin-bottom: 48px; }
.section-heading h2 { font-size: 2rem; color: var(--text); margin-bottom: 12px; }
.section-heading p { color: var(--text-muted); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

/* ===== CARDS ===== */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: box-shadow var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 24px; }
.card-img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.card-img-landscape { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ===== GRIDS ===== */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.grid-2-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; align-items: center; }

/* ===== ICON BOX ===== */
.icon-box {
  text-align: center; padding: 32px 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.icon-box svg { margin: 0 auto 12px; color: var(--secondary); }
.icon-box h3 { font-size: 1rem; font-weight: 600; }
.icon-box p { font-size: 0.9rem; color: var(--text-muted); margin-top: 8px; }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: var(--primary); padding: 80px 0; text-align: center;
}
.cta-banner h2 { font-size: 2rem; color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 28px; }

/* ===== FEATURE LIST ===== */
.check-list { list-style: none; padding: 0; }
.check-list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 0; color: var(--text-muted);
}
.check-list li svg { color: var(--secondary); flex-shrink: 0; margin-top: 3px; }

/* ===== FOOTER ===== */
.site-footer { background: var(--primary); color: var(--white); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-col h4 {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; margin-bottom: 16px; opacity: 1;
}
.footer-col p, .footer-col li, .footer-col a {
  font-size: 0.9rem; opacity: 0.8; line-height: 1.8;
}
.footer-col a:hover { opacity: 1; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { display: flex; align-items: flex-start; gap: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 48px; padding: 24px 0;
  text-align: center; font-size: 0.85rem; opacity: 0.6;
}

/* ===== CONTACT FORM ===== */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  margin-bottom: 6px; color: var(--text);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 0.95rem; font-family: inherit; color: var(--text);
  background: var(--white); transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(26,82,118,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info-item { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.contact-info-item svg { color: var(--secondary); flex-shrink: 0; margin-top: 4px; }
.contact-info-item h4 { font-size: 1rem; font-weight: 600; margin-bottom: 2px; }
.contact-info-item p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== MAP ===== */
.map-wrap {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); aspect-ratio: 16/10;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ===== BG VARIANTS ===== */
.bg-card { background: var(--bg-card); }
.bg-default { background: var(--bg); }
.bg-primary { background: var(--primary); }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; }
.rounded { border-radius: var(--radius); overflow: hidden; }
.img-cover { width: 100%; height: 100%; object-fit: cover; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .main-nav { display: none; }
  .mobile-toggle { display: flex; flex-direction: column; justify-content: center; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2-col { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 2.25rem; }
}
@media (max-width: 768px) {
  .section-padding { padding: 56px 0; }
  .hero h1 { font-size: 2rem; }
  .hero-inner h1 { font-size: 1.75rem; }
  .section-heading h2 { font-size: 1.6rem; }
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; }
}
