/* ============================================================
   Commtec LLC — Main Stylesheet
   Rebuilt 2026 | Single responsive codebase
   Replaces: ab_default.css + fonts.css + all drafts
   ============================================================ */

/* ── Variables ──────────────────────────────────────────── */
:root {
  --dark:        #2F2E2E;
  --accent:      #F7A144;
  --blue:        #00A0D9;
  --light:       #E3E3E3;
  --white:       #FFFFFF;
  --text:        #454445;
  --muted:       #6F6F6F;
  --border:      #DADADA;
  --font:        'Open Sans', sans-serif;
  --max-w:       960px;
  --header-h:    80px;
}

/* ── Reset / Base ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--dark);
  background-image: url(../images/Background-dark.jpg);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: cover;
  font-family: var(--font);
  font-size: 11pt;
  font-weight: 300;
  color: var(--text);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  font-weight: 600;
  color: var(--text);
}

p { margin-top: 0; line-height: 1.8; }

ul, ol {
  margin-top: 0;
  padding: 0;
  list-style: none;
}

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

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  color: var(--accent);
}

/* ── Container ──────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */

#header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--dark);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Logo */
#logo a { display: block; line-height: 0; }

/* Nav menu */
#menu nav ul {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

#menu nav li a {
  display: block;
  padding: 0.75em 1em;
  letter-spacing: 0.18em;
  font-size: 0.85em;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

#menu nav li a:hover,
#menu nav li.active a {
  color: var(--accent);
}

/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO / BANNER (index only)
   ============================================================ */

#banner-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-h);
  background-image: url(../images/Background-dark.jpg);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
}

/* Dark overlay so logo pops clearly */
#banner-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

#banner {
  text-align: center;
  padding: 3em 24px;
  position: relative;
  z-index: 1;
}

#banner img.banner-logo {
  max-width: 580px;
  width: 85%;
  margin: 0 auto 1em;
}

#banner h1 {
  font-size: 1.25em;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.5em;
}

/* ============================================================
   PAGE WRAPPER (white content area)
   ============================================================ */

#wrapper {
  background-color: var(--light);
}

/* Intro / about strip */
#about-wrapper {
  background-color: var(--light);
  padding-top: calc(var(--header-h) + 2.5em);
  padding-bottom: 2.5em;
}

#about-wrapper.no-banner {
  padding-top: calc(var(--header-h) + 2.5em);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: center;
}

.about-content {
  max-width: 100%;
}

.about-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 2px;
}

/* ============================================================
   PAGE HEADER STRIP (inner pages — replaces hero)
   ============================================================ */

.page-header {
  background-color: var(--dark);
  padding-top: var(--header-h);
  padding-bottom: 0;
}

.page-header-inner {
  padding: 3em 0 3em;
  border-bottom: 3px solid var(--accent);
}

.page-header-inner h1 {
  font-size: 2.4em;
  font-weight: 400;
  color: #fff;
  letter-spacing: 0.05em;
}

.page-header-inner p {
  color: rgba(255,255,255,0.65);
  margin: 0.4em 0 0;
  font-size: 1em;
}

/* ============================================================
   SECTION HEADER (used inside white sections)
   ============================================================ */

.section-header {
  text-align: center;
  margin-bottom: 2.5em;
  padding-bottom: 2em;
  border-bottom: 1px solid var(--light);
}

.section-header h2 {
  font-size: 2.8em;
  font-weight: 400;
  color: #323232;
}

.section-header p {
  font-size: 1.05em;
  color: var(--muted);
  margin: 0.5em 0 0;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */

#featured-wrapper {
  background: var(--white);
  padding: 5em 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.service-card {
  text-align: center;
}

.service-card img {
  width: 100%;
  height: 148px;
  object-fit: cover;
}

.service-card .card-title {
  padding: 1em 0 0.75em;
  margin-bottom: 0.75em;
  border-bottom: 1px solid var(--light);
}

.service-card .card-title h3 {
  font-size: 0.9em;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text);
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9em;
  line-height: 2.1;
  color: var(--text);
}

/* ============================================================
   PORTFOLIO SECTION
   ============================================================ */

#portfolio-section {
  background: var(--white);
  padding: 0 0 4em;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.portfolio-item img {
  width: 100%;
  height: 104px;
  object-fit: cover;
}

.portfolio-item .box {
  background-color: #ECECEC;
  border: 1px solid var(--border);
  border-top: none;
  padding: 12px 14px 16px;
}

.portfolio-item .box h3 {
  font-size: 0.88em;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.portfolio-item .box p {
  font-size: 0.8em;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

/* ============================================================
   LICENSES BLOCK
   ============================================================ */

.license-block {
  background: var(--white);
  padding: 0.5em 0 3.5em;
  text-align: center;
}

.license-block p {
  font-size: 0.88em;
  color: var(--muted);
  line-height: 2;
}

.license-block strong {
  color: var(--text);
}

/* ============================================================
   CLIENTS PAGE
   ============================================================ */

#clients-wrapper {
  background: var(--white);
  padding: 4em 0 5em;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.client-card {
  text-align: center;
}

.client-card img {
  width: 75px;
  height: 75px;
  margin: 0 auto 1em;
}

.client-card .card-title {
  margin-bottom: 1em;
  padding-bottom: 0.75em;
  border-bottom: 1px solid var(--light);
}

.client-card .card-title h3 {
  font-size: 0.95em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.client-card p {
  font-size: 0.9em;
  line-height: 2;
  margin: 0;
}

/* ============================================================
   CAREERS PAGE
   ============================================================ */

#careers-wrapper {
  background: var(--white);
  padding: 4em 0 5em;
}

.careers-content {
  max-width: 680px;
}

.careers-content h3 {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 0.75em;
  color: var(--text);
}

.careers-content p {
  margin-bottom: 1.5em;
}

.careers-content a {
  color: var(--blue);
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

#contact-wrapper {
  background: var(--white);
  padding: 4em 0 5em;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 50px;
  align-items: start;
}

.contact-form-col p {
  margin-bottom: 1em;
}

.contact-info-col img.mail-icon {
  width: 65px;
  height: 65px;
  margin-bottom: 1.25em;
}

.contact-info-col h3 {
  font-size: 1em;
  font-weight: 700;
  margin-bottom: 0.5em;
}

.contact-info-col address {
  font-style: normal;
  font-size: 0.95em;
  line-height: 2;
  color: var(--text);
}

.contact-info-col address a {
  color: var(--blue);
}

/* ============================================================
   COPYRIGHT / FOOTER
   ============================================================ */

#copyright {
  padding: 4em 0;
  background-color: var(--dark);
  width: 100%;
}

#copyright p {
  letter-spacing: 0.15em;
  text-align: center;
  text-transform: uppercase;
  font-size: 0.72em;
  color: rgba(255, 255, 255, 0.55);
  margin: 0;
  line-height: 2;
}

#copyright a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: color 0.2s;
}

#copyright a:hover {
  color: var(--accent);
}

/* ============================================================
   RESPONSIVE — Tablet (≤860px)
   ============================================================ */

@media (max-width: 860px) {
  .services-grid,
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2em;
  }

  .section-header h2 {
    font-size: 2.2em;
  }
}

/* ============================================================
   RESPONSIVE — Mobile (≤580px)
   ============================================================ */

@media (max-width: 580px) {

  /* Show hamburger, hide desktop nav */
  .hamburger {
    display: flex;
  }

  #menu nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background-color: var(--dark);
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 0.75em 0;
    z-index: 999;
  }

  #menu nav.open {
    display: block;
  }

  #menu nav ul {
    flex-direction: column;
    align-items: flex-start;
  }

  #menu nav li a {
    padding: 0.85em 1.5em;
    letter-spacing: 0.15em;
    font-size: 0.88em;
  }

  /* Layout */
  .services-grid,
  .clients-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.5em;
  }

  .about-image img {
    height: 200px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
  }

  .portfolio-item {
    display: flex;
    flex-direction: column;
  }

  .portfolio-item .box {
    flex: 1;
    padding: 7px 8px 10px;
  }

  .portfolio-item .box h3 {
    font-size: 0.76em;
  }

  .portfolio-item .box p {
    font-size: 0.7em;
  }

  /* Typography */
  .section-header h2 {
    font-size: 1.8em;
  }

  .page-header-inner h1 {
    font-size: 1.8em;
  }

  #banner h1 {
    font-size: 1em;
    letter-spacing: 0.08em;
  }

  #banner img.banner-logo {
    width: 75%;
  }

  /* About on index */
  #about-wrapper {
    padding-top: calc(var(--header-h) + 2em);
  }
}
