/*
Theme Name: A&A Cano Group
Theme URI: https://aacanogroup.com
Author: MarkSDev
Author URI: https://marksdev.com
Description: Custom lightweight theme for A&A Cano Group of Companies, Inc. Built for Elementor compatibility with bold corporate styling.
Version: 1.0.0
Requires at least: 6.0
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: aacano
Tags: custom-logo, custom-menu, elementor, one-column, two-columns, full-width-template
*/

/* ========== CSS VARIABLES ========== */
:root {
  --navy: #0a1628;
  --blue: #1a3a6b;
  --blue-mid: #1e4d8c;
  --blue-light: #2a6cb8;
  --gold: #d4a017;
  --gold-light: #f0c341;
  --white: #ffffff;
  --gray-100: #f4f6f9;
  --gray-200: #e2e6ed;
  --gray-600: #6b7a8d;
  --gray-800: #2d3748;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 16px;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(36px, 5vw, 62px); font-weight: 900; }
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; }
h3 { font-size: clamp(20px, 2.5vw, 26px); }
h4 { font-size: clamp(16px, 2vw, 20px); }

p { margin-bottom: 1em; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 160, 23, 0.3);
  color: var(--navy);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

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

.btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 42px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-dark:hover {
  background: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(10,22,40,0.3);
  color: var(--white);
}

/* ========== SECTION LABEL ========== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.section-label::before {
  content: '';
  width: 40px;
  height: 2px;
  background: var(--gold);
}

.section-label span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--font-body);
}

/* ========== HEADER / NAVIGATION ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212, 160, 23, 0.15);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(10, 22, 40, 0.98);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-logo img {
  height: 50px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text .company-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 22px;
  color: var(--white);
  letter-spacing: 2px;
  line-height: 1.1;
}

.logo-text .tagline-small {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
}

/* Primary Navigation */
.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
}

.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.primary-nav a:hover,
.primary-nav .current-menu-item a {
  color: var(--white);
}

.primary-nav a:hover::after,
.primary-nav .current-menu-item a::after {
  width: 100%;
}

.nav-cta-link a {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 10px 24px !important;
  border-radius: 4px;
  font-weight: 600 !important;
}

.nav-cta-link a::after { display: none !important; }
.nav-cta-link a:hover { background: var(--gold-light) !important; }

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* ========== HERO SECTION (Elementor Widget Styles) ========== */
.aac-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  overflow: hidden;
}

.aac-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.92) 0%, rgba(26,58,107,0.85) 50%, rgba(10,22,40,0.9) 100%);
  z-index: 1;
}

.aac-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 60px, rgba(255,255,255,0.1) 60px, rgba(255,255,255,0.1) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, rgba(255,255,255,0.1) 60px, rgba(255,255,255,0.1) 61px);
  z-index: 1;
}

.aac-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 160, 23, 0.12);
  border: 1px solid rgba(212, 160, 23, 0.25);
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 28px;
}

.aac-hero .hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  animation: aac-pulse 2s infinite;
}

.aac-hero .hero-badge span {
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
}

.aac-hero h1 {
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 10px;
}

.aac-hero h1 em {
  font-style: italic;
  color: var(--gold);
  display: block;
}

.aac-hero .hero-tagline {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
  font-weight: 300;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}

.hero-stat .label {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
  font-weight: 500;
}

/* ========== DARK SECTIONS ========== */
.aac-section-dark {
  background: var(--navy);
  color: var(--white);
}

.aac-section-dark h2,
.aac-section-dark h3 {
  color: var(--white);
}

.aac-section-dark p {
  color: rgba(255,255,255,0.5);
}

/* ========== GRADIENT SECTION ========== */
.aac-section-gradient {
  background: linear-gradient(135deg, var(--blue) 0%, var(--navy) 100%);
}

/* ========== GOLD CTA SECTION ========== */
.aac-section-gold {
  background: var(--gold);
}

.aac-section-gold h2 { color: var(--navy); }
.aac-section-gold p { color: rgba(10,22,40,0.65); }

/* ========== SERVICE CARDS ========== */
.aac-service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  padding: 40px 32px;
  transition: all 0.4s;
  position: relative;
  overflow: hidden;
}

.aac-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.4s;
}

.aac-service-card:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(212,160,23,0.2);
  transform: translateY(-4px);
}

.aac-service-card:hover::before {
  transform: scaleX(1);
}

.aac-service-card .service-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(212,160,23,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.aac-service-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.aac-service-card p {
  font-size: 14px;
  line-height: 1.7;
}

/* ========== PROJECT CARDS ========== */
.aac-project-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.4s;
}

.aac-project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.aac-project-card .project-thumb {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.aac-project-card .project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.aac-project-card:hover .project-thumb img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 24px 20px;
  background: linear-gradient(to top, rgba(10,22,40,0.9) 0%, transparent 100%);
}

.project-overlay h3 {
  font-size: 20px;
  color: var(--white);
  margin-bottom: 4px;
}

.project-overlay span {
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
}

/* ========== COMPANY ITEMS ========== */
.aac-company-item {
  padding: 24px;
  border-radius: 8px;
  background: var(--gray-100);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  transition: all 0.3s;
  text-align: center;
}

.aac-company-item:hover {
  background: var(--white);
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.aac-company-item .comp-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.aac-company-item span {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

/* ========== MVV CARDS ========== */
.aac-mvv-card {
  text-align: center;
  padding: 48px 36px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  transition: all 0.3s;
}

.aac-mvv-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(212,160,23,0.2);
}

.aac-mvv-card .mvv-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(212,160,23,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

.aac-mvv-card h3 {
  font-size: 26px;
  margin-bottom: 16px;
}

.aac-mvv-card p {
  font-size: 14px;
  line-height: 1.8;
}

/* ========== PARTNERS STRIP ========== */
.aac-partners-strip {
  padding: 60px 40px;
  background: var(--gray-100);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.aac-partners-strip .partners-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}

.aac-partners-strip img {
  height: 40px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.5;
  transition: all 0.3s;
}

.aac-partners-strip img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* ========== WATER QUALITY SHOWCASE ========== */
.aac-water-quality {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--navy);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.aac-water-quality .wq-image {
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.aac-water-quality .wq-content h3 {
  color: var(--white);
  margin-bottom: 12px;
}

.aac-water-quality .wq-content p {
  color: rgba(255,255,255,0.6);
}

.aac-water-quality .wq-stats {
  display: flex;
  gap: 32px;
  margin-top: 24px;
}

.aac-water-quality .wq-stat {
  text-align: center;
}

.aac-water-quality .wq-stat .value {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 900;
  color: var(--gold);
}

.aac-water-quality .wq-stat .desc {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========== ABOUT QUOTE ========== */
.aac-quote {
  margin-top: 32px;
  padding: 24px 28px;
  background: var(--gray-100);
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
}

.aac-quote p {
  font-style: italic;
  font-size: 15px;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.aac-quote .quote-author {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 0;
}

/* ========== TEAM SECTION ========== */
.aac-team-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s;
}

.aac-team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.aac-team-card .team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 3px solid var(--gold);
}

.aac-team-card .team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aac-team-card h4 {
  font-family: var(--font-heading);
  margin-bottom: 4px;
}

.aac-team-card .team-role {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--navy);
  padding: 80px 40px 40px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 300px;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.4);
}

.footer-col ul a:hover { color: var(--gold); }

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  fill: none;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item span {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

/* ========== BLOG / SINGLE POST ========== */
.aac-blog-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.4s;
}

.aac-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.aac-blog-card .post-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.aac-blog-card .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.aac-blog-card:hover .post-thumb img {
  transform: scale(1.05);
}

.aac-blog-card .post-content {
  padding: 24px;
}

.aac-blog-card .post-meta {
  font-size: 12px;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.aac-blog-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.aac-blog-card h3 a:hover { color: var(--blue-light); }

.aac-blog-card .post-excerpt {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

.aac-blog-card .read-more {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 16px;
  display: inline-block;
}

.aac-blog-card .read-more:hover { color: var(--blue-light); }

/* ========== PAGE HERO BANNER ========== */
.aac-page-hero {
  position: relative;
  padding: 160px 40px 80px;
  background: var(--navy);
  text-align: center;
  overflow: hidden;
}

.aac-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.95) 0%, rgba(26,58,107,0.85) 100%);
}

.aac-page-hero h1 {
  position: relative;
  z-index: 2;
  color: var(--white);
  margin-bottom: 16px;
}

.aac-page-hero p {
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,0.5);
  max-width: 600px;
  margin: 0 auto;
  font-size: 18px;
}

/* ========== ANIMATIONS ========== */
@keyframes aac-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.aac-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.aac-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== ELEMENTOR OVERRIDES ========== */
.elementor-section.elementor-section-stretched {
  max-width: 100%;
}

.elementor h1, .elementor h2, .elementor h3,
.elementor h4, .elementor h5, .elementor h6 {
  font-family: var(--font-heading);
}

/* Full-width Elementor sections */
.elementor-section-full_width > .elementor-container {
  max-width: 100%;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 24px; }
}

@media (max-width: 768px) {
  .primary-nav { display: none; }
  .mobile-toggle { display: flex; }
  .nav-inner { height: 70px; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stat .number { font-size: 32px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .aac-page-hero { padding: 140px 24px 60px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-stats { gap: 16px; }
}

/* ========== WORDPRESS DEFAULTS ========== */
.alignleft { float: left; margin: 0 1.5em 1.5em 0; }
.alignright { float: right; margin: 0 0 1.5em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1.5em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--gray-600); }
.screen-reader-text { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; }
