/*
Theme Name: Salwa Maintenance
Theme URI: https://salwamaintenance.com
Author: Abrar Iqbal
Author URI: https://salwamaintenance.com
Description: Custom WordPress theme for Salwa Maintenance — industrial maintenance services in Jeddah, Saudi Arabia. Light design with navy blue and golden accent.
Version: 1.0.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: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: salwa-maintenance
*/

/* ============================================================
   VARIABLES & RESET
   ============================================================ */
:root {
  --navy:         #1A3A5C;
  --navy-dark:    #122942;
  --navy-light:   #2A5580;
  --gold:         #F0A500;
  --gold-dark:    #D49200;
  --gold-light:   #FFB81C;
  --white:        #FFFFFF;
  --off-white:    #F5F7FA;
  --light-gray:   #E8ECF1;
  --text-dark:    #1E293B;
  --text-body:    #475569;
  --text-muted:   #94A3B8;

  --font-heading: 'Barlow Condensed', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-script:  'Dancing Script', cursive;

  --section-py:    80px;
  --container:     1240px;
  --radius:        12px;
  --radius-sm:     8px;
  --shadow:        0 4px 24px rgba(26,58,92,0.08);
  --shadow-lg:     0 12px 40px rgba(26,58,92,0.12);
  --transition:    0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(240,165,0,0.35);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26,58,92,0.3);
}

.btn-outline-navy {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover {
  background: var(--off-white);
  transform: translateY(-2px);
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 14px 0;
  transition: all var(--transition);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  padding: 8px 0;
  box-shadow: var(--shadow);
  border-bottom-color: var(--light-gray);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.site-logo .logo-icon {
  width: 40px;
  height: 40px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
}
.site-logo span { color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.main-nav a:hover { color: var(--gold); }
.main-nav a:hover::after { width: 100%; }

.header-cta .btn { padding: 10px 22px; font-size: 13px; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 28px; height: 2px;
  background: var(--navy);
  transition: all var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--white);
  padding-top: 80px;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.97) 0%,
    rgba(255,255,255,0.85) 35%,
    rgba(255,255,255,0.4) 60%,
    rgba(255,255,255,0.05) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: center;
}

.hero-content { max-width: 620px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--navy);
  margin-bottom: 20px;
}
.hero-badge::before {
  content: '';
  width: 40px; height: 3px;
  background: var(--gold);
}

.hero h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  margin-bottom: 20px;
  line-height: 1.1;
}
.hero h1 .gold { color: var(--gold); }

.hero-text {
  font-size: 16px;
  color: var(--text-body);
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.8;
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }

.hero-buttons .btn svg {
  width: 18px; height: 18px;
  fill: currentColor;
}

/* ── Hero service icons sidebar ─── */
.hero-services {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-svc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  transition: all var(--transition);
}
.hero-svc-item:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.hero-svc-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
  flex-shrink: 0;
}

.hero-svc-item span {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ── Hero bottom stats bar ─── */
.hero-bottom {
  position: relative;
  z-index: 3;
  margin-top: 20px;
}

.hero-stats-bar {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 32px;
  border-right: 1px solid var(--light-gray);
}
.hero-stat:last-child { border-right: none; }

.stat-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(26,58,92,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 20px;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--navy);
  line-height: 1;
}
.hero-stat small {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-tagline {
  font-family: var(--font-script);
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 12px;
}

.hero-motto {
  font-family: var(--font-heading);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  padding: 20px 32px;
  border-left: 1px solid var(--light-gray);
  line-height: 1.6;
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: var(--navy);
  padding: 24px 0;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.85);
}

.trust-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(240,165,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 16px;
}

/* ============================================================
   SECTION HEADER (shared)
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 10px;
}
.section-label::before,
.section-label::after {
  content: '';
  width: 30px; height: 2px;
  background: var(--gold);
}
.section-header h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 12px;
}
.section-header p {
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: var(--section-py) 0;
  background: var(--off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::after { transform: scaleX(1); }

.service-icon {
  width: 60px; height: 60px;
  margin: 0 auto 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 26px;
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   WHY US
   ============================================================ */
.why-us { padding: var(--section-py) 0; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}

.why-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all var(--transition);
}
.why-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow);
}

.why-number {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.3;
  margin-bottom: 12px;
}

.why-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.why-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  padding: 60px 0;
  background: var(--navy);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(240,165,0,0.1) 100%);
}
.cta-band .container { position: relative; z-index: 1; }

.cta-band h2 {
  font-size: clamp(24px, 3vw, 36px);
  color: var(--white);
  margin-bottom: 10px;
}
.cta-band p {
  color: rgba(255,255,255,0.65);
  font-size: 16px;
  margin-bottom: 28px;
}

/* ============================================================
   SERVICE AREAS
   ============================================================ */
.service-areas {
  padding: var(--section-py) 0;
  background: var(--off-white);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
}

.area-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  transition: all var(--transition);
}
.area-tag:hover {
  border-color: var(--gold);
  background: rgba(240,165,0,0.04);
  box-shadow: var(--shadow);
}
.area-tag .pin { color: var(--gold); }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects { padding: var(--section-py) 0; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--light-gray);
  transition: all var(--transition);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-thumb {
  width: 100%; height: 220px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--gold);
  opacity: 0.5;
}

.project-info { padding: 24px; }
.project-info h3 { font-size: 18px; margin-bottom: 8px; }
.project-info p { font-size: 14px; color: var(--text-muted); }

.project-tag {
  display: inline-block;
  margin-top: 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--navy);
  background: rgba(26,58,92,0.08);
  padding: 4px 12px;
  border-radius: 4px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy-dark);
  padding: 64px 0 0;
  color: rgba(255,255,255,0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .site-logo { color: var(--white); }
.footer-brand p {
  font-size: 14px;
  margin-top: 16px;
  max-width: 280px;
  color: rgba(255,255,255,0.5);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
}
.footer-contact .icon { color: var(--gold); min-width: 16px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-services { flex-direction: row; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --section-py: 56px; }

  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }

  .main-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; width: 100%;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--light-gray);
    box-shadow: var(--shadow);
  }

  .hero { min-height: auto; padding: 100px 0 40px; }
  .hero h1 { font-size: 32px; }
  .hero-services { display: none; }

  .hero-stats-bar { flex-direction: column; align-items: flex-start; }
  .hero-stat { border-right: none; border-bottom: 1px solid var(--light-gray); width: 100%; padding: 14px 0; }
  .hero-motto { border-left: none; padding: 14px 0; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .projects-grid { grid-template-columns: 1fr; }
}
