/*
Theme Name: IVA Custom
Theme URI: https://ivasolutions.com
Description: Custom theme for IVA Solutions
Version: 1.0
*/

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

:root {
  --red: #d42b1e;
  --black: #111111;
  --white: #ffffff;
  --light: #f5f5f5;
  --gray: #666666;
  --border: #e0e0e0;
  --max: 1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--black);
  background: var(--white);
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--black); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; }
h2 { font-size: 2rem; margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: .75rem; }
h4 { font-size: 1.1rem; margin-bottom: .5rem; }

p { margin-bottom: 1rem; }
ul { margin-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: .4rem; }

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

.section { padding: 72px 0; }
.section--light { background: var(--light); }
.section--dark {
  background: var(--black);
  color: var(--white);
}
.section--dark h2,
.section--dark h3,
.section--dark p { color: var(--white); }

/* ===== HEADER / NAV ===== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 3px solid var(--red);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

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

.site-logo img { height: 48px; width: auto; }
.site-logo a { display: flex; align-items: center; }

/* Nav */
#main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
}

#main-nav > ul > li {
  position: relative;
}

#main-nav a {
  display: block;
  padding: 8px 14px;
  color: var(--black);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .2s;
}

#main-nav > ul > li > a:hover,
#main-nav > ul > li.current-menu-item > a,
#main-nav > ul > li.current-menu-parent > a {
  color: var(--red);
}

/* Dropdown */
#main-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  border-top: 3px solid var(--red);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  flex-direction: column;
  gap: 0;
  z-index: 999;
}

#main-nav li:hover > .sub-menu { display: flex; }

#main-nav .sub-menu a {
  padding: 10px 18px;
  font-size: .82rem;
  border-bottom: 1px solid var(--border);
  color: var(--black);
}

#main-nav .sub-menu a:hover { background: var(--light); color: var(--red); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  transition: .3s;
}

/* ===== HERO ===== */
#hero { background: var(--black); min-height: 480px; }
.hero-static {
  position: relative;
  min-height: 480px;
  background: url('https://ivasolutions.com/wp-content/uploads/2015/10/iva_building_logo-blank.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-static::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}
.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  padding: 48px 24px;
}
.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--white);
}
.hero-content p {
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto 2rem;
  color: rgba(255,255,255,.85);
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background .2s, transform .2s;
}
.btn:hover { background: #b01e14; color: var(--white); transform: translateY(-1px); }

/* ===== WHO WE ARE ===== */
.intro-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
}
.intro-text strong { color: var(--red); }

/* Feature boxes */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.feature-box {
  text-align: center;
  padding: 32px 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: box-shadow .2s, border-color .2s;
}
.feature-box:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); border-color: var(--red); }

.feature-box .icon {
  width: 56px;
  height: 56px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.feature-box .icon svg { width: 28px; height: 28px; fill: var(--white); }
.feature-box h3 { font-size: 1rem; margin-bottom: .5rem; text-transform: uppercase; letter-spacing: .04em; }
.feature-box p { font-size: .9rem; color: var(--gray); margin: 0; }

/* ===== PROMISE SECTION ===== */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}
.promise-item { text-align: center; }
.promise-item .icon-lg {
  font-size: 2.5rem;
  color: var(--red);
  margin-bottom: 12px;
}
.promise-item h3 { font-size: 1.1rem; color: var(--white); margin-bottom: .4rem; }
.promise-item p { font-size: .9rem; color: rgba(255,255,255,.75); margin: 0; }

/* ===== 2-COL CONTENT ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--black);
  padding: 48px 0;
  margin-bottom: 0;
}
.page-hero h1 {
  color: var(--white);
  font-size: 2.4rem;
  border-left: 4px solid var(--red);
  padding-left: 20px;
}

/* ===== PAGE CONTENT ===== */
.page-content { padding: 60px 0; }
.page-content h2 { color: var(--black); margin-bottom: 1rem; }
.page-content h4 { color: var(--red); margin-top: 1.5rem; }
.page-content img { border-radius: 4px; }

/* Service image column */
.service-img { border-radius: 4px; overflow: hidden; }
.service-img img { width: 100%; }

/* ===== FOOTER ===== */
#site-footer {
  background: #1a1a1a;
  color: rgba(255,255,255,.75);
  padding: 48px 0 24px;
}

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

.footer-about .site-logo img { height: 40px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-about p { font-size: .9rem; color: rgba(255,255,255,.6); }

.footer-links h4, .footer-contact h4 {
  color: var(--white);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 16px;
}

.footer-links ul { list-style: none; margin: 0; padding: 0; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul a { color: rgba(255,255,255,.6); font-size: .88rem; transition: color .2s; }
.footer-links ul a:hover { color: var(--red); }

.footer-contact p { font-size: .88rem; margin-bottom: 8px; }
.footer-contact a { color: rgba(255,255,255,.6); }
.footer-contact a:hover { color: var(--red); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}
.footer-bottom span { color: var(--red); }

/* ===== INNER PAGE CONTENT ===== */
.page-content .two-col { gap: 48px; }
.page-content .two-col h4 { color: var(--red); margin-top: 1.5rem; }
.page-content .service-img img { border-radius: 4px; width: 100%; }
.page-content ul { margin-left: 1.5rem; }
.page-content li { margin-bottom: .4rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  h2 { font-size: 1.6rem; }
  .hero-content h1 { font-size: 2rem; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col.reverse { direction: ltr; }
  .promise-grid { grid-template-columns: 1fr; gap: 24px; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-about { grid-column: auto; }

  .nav-toggle { display: flex; }
  #main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); padding: 16px; }
  #main-nav.open { display: block; }
  #main-nav ul { flex-direction: column; gap: 0; }
  #main-nav .sub-menu { position: static; display: none; box-shadow: none; border: none; padding-left: 16px; }
  #main-nav li.open > .sub-menu { display: flex; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
}
