/*
Theme Name: Triple AAA Energy
Theme URI: https://tripleaaaenergy.com
Author: Triple AAA Energy
Author URI: https://tripleaaaenergy.com
Description: Professional corporate theme for Triple AAA Energy – a company specializing in the sale of natural gas and petroleum products. Clean, elegant design in sky blue and white.
Version: 1.0.0
Requires at least: 5.9
Tested up to: 6.5
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: triple-aaa-energy
Tags: corporate, business, energy, oil, gas, professional, blue, white, one-page
*/

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --sky-blue:       #4BA3C7;
  --sky-blue-dark:  #2E86AB;
  --sky-blue-light: #A8D8EA;
  --sky-blue-pale:  #E8F4F8;
  --white:          #FFFFFF;
  --off-white:      #F5F9FC;
  --dark:           #0D2233;
  --dark-mid:       #1A3A52;
  --text-body:      #3A5068;
  --text-muted:     #7A97AE;
  --border:         #D0E8F2;
  --shadow-sm:      0 2px 8px rgba(43,110,152,0.08);
  --shadow-md:      0 6px 24px rgba(43,110,152,0.14);
  --shadow-lg:      0 16px 48px rgba(43,110,152,0.20);
  --radius-sm:      4px;
  --radius-md:      8px;
  --radius-lg:      16px;
  --transition:     0.3s cubic-bezier(0.4,0,0.2,1);
  --font-display:   'Playfair Display', Georgia, serif;
  --font-body:      'Source Sans 3', 'Segoe UI', sans-serif;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text-body); background: var(--white); line-height: 1.7; -webkit-font-smoothing: antialiased; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: var(--sky-blue-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--sky-blue); }
ul   { list-style: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); color: var(--dark); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; }
p  { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }
.text-center { text-align: center; }

/* =============================================
   LAYOUT
   ============================================= */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* =============================================
   SECTION LABELS
   ============================================= */
.section-label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sky-blue); margin-bottom: 16px; }
.section-label::before { content: ''; display: block; width: 28px; height: 2px; background: var(--sky-blue); flex-shrink: 0; }
.section-title    { margin-bottom: 16px; }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 560px; line-height: 1.8; }
.section-header   { margin-bottom: 64px; }

/* =============================================
   BUTTONS
   ============================================= */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; letter-spacing: 0.04em; cursor: pointer; border: 2px solid transparent; transition: all var(--transition); text-transform: uppercase; }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--sky-blue-dark); color: var(--white); border-color: var(--sky-blue-dark); }
.btn-primary:hover { background: var(--dark); border-color: var(--dark); color: var(--white); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.6); }
.btn-outline:hover { background: var(--white); color: var(--sky-blue-dark); border-color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--sky-blue-dark); border-color: var(--sky-blue-dark); }
.btn-outline-dark:hover { background: var(--sky-blue-dark); color: var(--white); }

/* =============================================
   HEADER
   ============================================= */
#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); transition: box-shadow var(--transition); }
#site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.site-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-mark { width: 48px; height: 48px; background: linear-gradient(135deg, var(--sky-blue-dark), var(--sky-blue)); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-mark svg { width: 28px; height: 28px; fill: white; }
.logo-text { line-height: 1.1; }
.logo-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--dark); display: block; }
.logo-tagline { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--sky-blue); font-weight: 600; }
.main-nav ul { display: flex; align-items: center; gap: 8px; }
.main-nav a { display: block; padding: 8px 16px; font-size: 0.88rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dark-mid); border-radius: var(--radius-sm); transition: all var(--transition); }
.main-nav a:hover, .main-nav .current-menu-item a { color: var(--sky-blue-dark); background: var(--sky-blue-pale); }
.header-cta { display: flex; align-items: center; gap: 16px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--dark); transition: all var(--transition); transform-origin: center; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO
   ============================================= */
#hero { min-height: 100vh; background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 40%, var(--sky-blue-dark) 100%); display: flex; align-items: center; position: relative; overflow: hidden; padding-top: 80px; }
.hero-bg-pattern { position: absolute; inset: 0; background-image: radial-gradient(circle at 20% 80%, rgba(75,163,199,0.15) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(75,163,199,0.10) 0%, transparent 50%); }
.hero-grid-lines  { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 60px 60px; }
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(75,163,199,0.2); border: 1px solid rgba(75,163,199,0.4); color: var(--sky-blue-light); padding: 6px 16px; border-radius: 50px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 28px; }
.hero-badge::before { content: ''; width: 8px; height: 8px; background: var(--sky-blue-light); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.4} }
#hero h1 { color: var(--white); margin-bottom: 24px; }
#hero h1 span { color: var(--sky-blue-light); }
.hero-desc { font-size: 1.15rem; color: rgba(255,255,255,0.72); margin-bottom: 40px; line-height: 1.8; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 24px; align-items: flex-end; }
.stat-card { background: rgba(255,255,255,0.08); backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-lg); padding: 28px 36px; text-align: center; min-width: 200px; transition: transform var(--transition); }
.stat-card:hover { transform: translateY(-4px); }
.stat-number { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--white); line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sky-blue-light); font-weight: 600; }
.hero-scroll { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,0.5); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; z-index: 2; animation: bounce 2s infinite; }
.hero-scroll::after { content: ''; width: 1px; height: 40px; background: rgba(255,255,255,0.3); }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)}50%{transform:translateX(-50%) translateY(8px)} }

/* =============================================
   ABOUT STRIP
   ============================================= */
#about-strip { background: var(--sky-blue-pale); padding: 56px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.strip-inner { display: flex; align-items: center; gap: 48px; }
.strip-logo-text { font-family: var(--font-display); font-size: 1.6rem; color: var(--dark); white-space: nowrap; flex-shrink: 0; }
.strip-divider { width: 2px; height: 60px; background: var(--border); flex-shrink: 0; }
.strip-text { font-size: 1.05rem; color: var(--text-body); line-height: 1.8; }

/* =============================================
   SERVICES
   ============================================= */
#services { background: var(--white); }
.service-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px 32px; transition: all var(--transition); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--sky-blue-dark), var(--sky-blue)); transform: scaleX(0); transform-origin: left; transition: transform var(--transition); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--sky-blue-light); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 64px; height: 64px; background: var(--sky-blue-pale); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; transition: background var(--transition); }
.service-card:hover .service-icon { background: var(--sky-blue-dark); }
.service-icon svg { width: 30px; height: 30px; stroke: var(--sky-blue-dark); transition: stroke var(--transition); }
.service-card:hover .service-icon svg { stroke: var(--white); }
.service-card h3 { margin-bottom: 12px; font-size: 1.25rem; }
.service-card p  { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* =============================================
   WHY US
   ============================================= */
#why-us { background: var(--off-white); }
.why-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 480px; background: linear-gradient(135deg, var(--dark-mid), var(--sky-blue-dark)); display: flex; align-items: center; justify-content: center; }
.why-visual-inner { text-align: center; color: white; padding: 48px; }
.why-visual-icon { width: 100px; height: 100px; background: rgba(255,255,255,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.why-visual-icon svg { width: 52px; height: 52px; stroke: var(--sky-blue-light); }
.why-visual h3 { color: white; font-size: 1.5rem; margin-bottom: 12px; }
.why-visual p  { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.why-points { display: flex; flex-direction: column; gap: 28px; }
.why-point { display: flex; gap: 20px; align-items: flex-start; }
.why-point-num { width: 44px; height: 44px; background: linear-gradient(135deg, var(--sky-blue-dark), var(--sky-blue)); color: white; font-family: var(--font-display); font-size: 1rem; font-weight: 700; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.why-point-text h4 { margin-bottom: 6px; }
.why-point-text p  { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* =============================================
   STATS BAND
   ============================================= */
#stats-band { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-mid) 60%, #1e4d6e 100%); padding: 80px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.stats-item { text-align: center; padding: 48px 32px; position: relative; }
.stats-item::after { content: ''; position: absolute; right: 0; top: 20%; height: 60%; width: 1px; background: rgba(255,255,255,0.1); }
.stats-item:last-child::after { display: none; }
.stats-num { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--white); line-height: 1; margin-bottom: 8px; }
.stats-num span { color: var(--sky-blue-light); }
.stats-desc { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.55); font-weight: 600; }

/* =============================================
   PRODUCTS
   ============================================= */
#products { background: var(--white); }
.product-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); transition: all var(--transition); }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card-header { padding: 48px 32px 32px; background: linear-gradient(135deg, var(--dark-mid), var(--sky-blue-dark)); text-align: center; }
.product-icon { width: 80px; height: 80px; background: rgba(255,255,255,0.12); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.product-icon svg { width: 40px; height: 40px; stroke: var(--white); }
.product-card-header h3 { color: var(--white); }
.product-card-body { padding: 32px; background: var(--white); }
.product-card-body p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; }
.product-features { display: flex; flex-direction: column; gap: 10px; }
.product-feature { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-body); }
.product-feature::before { content: ''; width: 18px; height: 18px; background: var(--sky-blue-pale); border-radius: 50%; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%232E86AB' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; flex-shrink: 0; }

/* =============================================
   CONTACT
   ============================================= */
#contact { background: var(--off-white); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }
.contact-info h2 { margin-bottom: 20px; }
.contact-info p  { color: var(--text-muted); margin-bottom: 40px; }
.contact-details { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item-icon { width: 44px; height: 44px; background: var(--sky-blue-pale); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item-icon svg { width: 20px; height: 20px; stroke: var(--sky-blue-dark); }
.contact-item-text strong { display: block; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky-blue); margin-bottom: 4px; }
.contact-item-text span   { color: var(--text-body); font-size: 0.97rem; }
.contact-form { background: var(--white); border-radius: var(--radius-lg); padding: 48px; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dark-mid); }
input, textarea, select { width: 100%; padding: 12px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.97rem; color: var(--dark); background: var(--white); transition: border-color var(--transition), box-shadow var(--transition); outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--sky-blue); box-shadow: 0 0 0 3px rgba(75,163,199,0.15); }
textarea { resize: vertical; min-height: 130px; }
.form-submit { margin-top: 8px; }
.form-submit .btn { width: 100%; justify-content: center; padding: 16px; }

/* =============================================
   FOOTER
   ============================================= */
#site-footer { background: var(--dark); color: rgba(255,255,255,0.65); }
.footer-main { padding: 80px 0 60px; display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand .logo-name    { color: var(--white); font-size: 1.3rem; }
.footer-brand .logo-tagline { color: var(--sky-blue-light); }
.footer-brand p { margin-top: 20px; font-size: 0.92rem; line-height: 1.8; }
.footer-col h4 { color: var(--white); font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: rgba(255,255,255,0.55); font-size: 0.92rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--sky-blue-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 24px 0; display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; }
.footer-bottom a { color: var(--sky-blue-light); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .stats-grid  { grid-template-columns: repeat(2,1fr); }
  .stats-item::after { display: none; }
}

@media (max-width: 768px) {
  section { padding: 70px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .main-nav, .header-cta .btn-primary { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open { display: block; position: fixed; top: 80px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--border); padding: 24px; box-shadow: var(--shadow-lg); }
  .main-nav.open ul { flex-direction: column; }
  .main-nav.open a  { padding: 14px 16px; border-bottom: 1px solid var(--border); }
  #hero { padding-top: 120px; min-height: auto; padding-bottom: 80px; }
  .hero-stats { display: none; }
  .strip-inner { flex-direction: column; text-align: center; gap: 24px; }
  .strip-divider { width: 60px; height: 2px; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .contact-form { padding: 32px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container  { padding: 0 16px; }
  .stats-grid { grid-template-columns: 1fr; }
  .grid-4     { grid-template-columns: 1fr; }
}

/* =============================================
   UTILITIES & ANIMATIONS
   ============================================= */
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
