/* ============================================================
   DevBoy.us — Static Site Stylesheet
   Design system derived from original WordPress/BeTheme build
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #626262;
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #0095eb; text-decoration: none; transition: color .2s; }
a:hover { color: #007ac4; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  color: #333;
  line-height: 1.3;
  margin-bottom: .6em;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: .9rem; letter-spacing: .04em; color: #626262; }

p { margin-bottom: 1em; }
ul, ol { padding-left: 1.4em; margin-bottom: 1em; }

/* ── Layout helpers ───────────────────────────────────────── */
.container {
  max-width: 1170px;
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 100px 0; }
.section--tight { padding: 60px 0; }
.section--none  { padding: 0; }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-justify{ text-align: justify; }

/* grid helper */
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
}
.row--vcenter { align-items: center; }
.col { flex: 1 1 0; min-width: 0; }
.col-3-5 { flex: 3 1 0; }
.col-2-5 { flex: 2 1 0; }
.col-half  { flex: 0 0 calc(50% - 12px); max-width: calc(50% - 12px); }
.col-third { flex: 0 0 calc(33.333% - 16px); max-width: calc(33.333% - 16px); }
.col-quarter { flex: 0 0 calc(25% - 18px); max-width: calc(25% - 18px); }

/* ── Header / Nav ─────────────────────────────────────────── */
#header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

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

.logo img { height: 50px; width: auto; }
.logo:hover { opacity: .85; }

/* Nav */
.nav { display: flex; list-style: none; gap: 0; padding: 0; margin: 0; }
.nav li a {
  display: block;
  padding: 0 18px;
  line-height: 80px;
  color: #333;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s, background .2s;
}
.nav li a:hover,
.nav li a.active { color: #78b215; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #333;
  border-radius: 2px;
  transition: .3s;
}

/* ── Hero (static) ────────────────────────────────────────── */
/* padding-bottom preserves the exact 1920×732 aspect ratio —
   the image never crops at any viewport width               */
.hero-static {
  position: relative;
  background-image: url('../images/slyder1.jpg');
  background-size: 100% auto;
  background-position: right top;
  background-repeat: no-repeat;
  padding-bottom: 38.125%; /* 732/1920 = 38.125% */
}

.hero-static .container {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1170px;
  padding: 0 20px;
  display: flex;
  align-items: flex-start;
  padding-top: 5%;
}

.hero-static-inner {
  width: 46%;
}

.hero-static-inner h1 {
  font-size: 2.5rem;
  color: #222;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 36px;
}

.hero-specs-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 12px;
}

.hero-spec-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.spec-label {
  display: inline-block;
  background: #78b215;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  white-space: nowrap;
  min-width: 58px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.spec-value {
  font-size: .82rem;
  color: #444;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.5;
}

/* ── Card ─────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid #d4e1ea;
  border-radius: 20px;
  box-shadow: 0 4px 10px 5px rgba(0,0,0,.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
}
.card img { border-radius: 10px; width: 100%; }
.card h5 { margin-top: .5em; display: flex; align-items: center; gap: 8px; }
.card h5 img { width: 22px; height: 22px; object-fit: contain; }
.card p { font-size: .9rem; flex: 1; }

/* ── Section backgrounds ──────────────────────────────────── */
.bg-light  { background: #f7f7f7; }
.bg-blue   { background: #f1f7fb; }
.bg-green  { background: #78b215; color: #fff; }
.bg-green h1, .bg-green h2, .bg-green h3,
.bg-green h4, .bg-green h5 { color: #fff; }
.bg-dark   { background: #000119; color: #fff; }

/* ── Input Module Grid ────────────────────────────────────── */
.input-section { padding: 100px 0 45px; }
.input-main { display: flex; gap: 30px; align-items: flex-start; flex-wrap: wrap; }
.input-main-img { flex: 3 1 300px; display: flex; justify-content: flex-end; }
.input-main-text { flex: 2 1 220px; }
.input-main-text h3 { font-size: 1.6rem; }
.input-main-text h6 { color: #0095eb; text-transform: uppercase; margin-bottom: 1em; }

.input-modules {
  display: flex;
  gap: 0;
  margin-top: 0;
  flex-wrap: wrap;
}
.input-module {
  flex: 1 1 180px;
  text-align: center;
  padding: 16px 8px;
}
.input-module img { margin: 0 auto 12px; max-height: 160px; object-fit: contain; }
.input-module h5 { font-size: .95rem; margin-bottom: .3em; }
.input-module p { font-size: .85rem; }

/* ── Content Slider ───────────────────────────────────────── */
.cslider-wrap {
  position: relative;
  background: #f0f0f0 url('../images/Inside-fon1.jpg') center/cover no-repeat;
  overflow: hidden;
}

.cslider {
  position: relative;
  height: 480px;
  overflow: hidden;
}

/* Each slide fills the slider exactly via absolute positioning —
   no flex, no height: 100% ambiguity */
.cslide {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0;
  transition: opacity .5s ease;
}
.cslide.active { opacity: 1; }

/* .cslide-inner is kept in HTML but acts as a neutral wrapper */
.cslide-inner { width: 100%; height: 100%; }

/* Text panel: left half, pattern background shows through */
.cslide-text {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 50%;
  padding: 40px 20px 40px max(30px, calc(50vw - 545px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

/* Image panel: right half, aligned left so image sits close to center */
.cslide-img {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 50%;
  background-size: contain;
  background-position: left center;
  background-repeat: no-repeat;
}

.cslide-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: #0d1b3e;
  text-transform: uppercase;
  margin-bottom: .15em;
}
.cslide-subtitle {
  font-size: 1rem;
  font-weight: 700;
  color: #0d1b3e;
  text-transform: uppercase;
  margin-bottom: .9em;
}
.cslide-desc {
  color: #e67e00;
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.5;
  margin-bottom: .8em;
}
.cslide-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cslide-list li {
  padding: .3em 0 .3em 1.6em;
  position: relative;
  font-size: .9rem;
  color: #444;
}
.cslide-list li::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: #e67e00;
  font-size: .85rem;
}

/* Arrows */
.cslider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255,255,255,.7);
  border: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #555;
  transition: background .2s, color .2s;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.cslider-arrow:hover { background: #fff; color: #e67e00; }
.cslider-prev { left: 16px; }
.cslider-next { right: 16px; }

/* Dots */
.cslider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0 20px;
}
.cslider-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  transition: background .2s;
}
.cslider-dot.active { background: #e67e00; }

/* ── Software section ─────────────────────────────────────── */
.software-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 40px;
}

/* ── CTA band ─────────────────────────────────────────────── */
.cta-band {
  background: #78b215;
  padding: 60px 0;
  text-align: center;
}
.cta-band a {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  transition: opacity .2s;
}
.cta-band a:hover { opacity: .85; color: #fff; }

/* ── Subheader (page title bar) ───────────────────────────── */
.subheader {
  background: #f7f7f7;
  padding: 40px 0;
  border-bottom: 1px solid #e8e8e8;
}
.subheader h1 { font-size: 1.8rem; margin-bottom: .2em; }
.breadcrumb { font-size: .8rem; color: #999; }
.breadcrumb a { color: #999; }
.breadcrumb a:hover { color: #0095eb; }
.breadcrumb span { margin: 0 6px; }

/* ── About page ───────────────────────────────────────────── */
.about-layout {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.about-photo {
  flex: 0 0 340px;
  max-width: 340px;
  border-radius: 12px;
  overflow: hidden;
}
.about-photo img { width: 100%; border-radius: 12px; }
.about-text { flex: 1 1 300px; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list { max-width: 860px; margin: 40px auto 0; }

.faq-item {
  border-bottom: 1px solid #e0e8f0;
  margin-bottom: 4px;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 18px 44px 18px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  position: relative;
  transition: color .2s;
  font-family: inherit;
}
.faq-question:hover { color: #0095eb; }
.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: #0095eb;
  transition: transform .3s;
  font-weight: 300;
}
.faq-item.open .faq-question::after {
  content: '−';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  font-size: .95rem;
}
.faq-item.open .faq-answer {
  max-height: 600px;
  padding-bottom: 18px;
}
.faq-answer a { color: #0095eb; }

/* ── Contact ──────────────────────────────────────────────── */
.contact-layout {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.contact-form-wrap {
  flex: 0 0 calc(50% - 20px);
  max-width: calc(50% - 20px);
  background: #f6f6f6;
  border: 1px solid #d4e1ea;
  border-radius: 20px;
  box-shadow: 0 4px 10px 5px rgba(0,0,0,.08);
  padding: 30px;
}
.contact-info {
  flex: 1 1 260px;
  padding: 0 0 0 7%;
}
.contact-info h6 { font-size: 1rem; line-height: 1.6; color: #626262; font-weight: 400; }

/* Form styles */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 5px; color: #444; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d0dce8;
  border-radius: 6px;
  font-size: .9rem;
  font-family: inherit;
  color: #444;
  background: #fff;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0095eb;
}
.form-group textarea { min-height: 120px; resize: vertical; }

.btn {
  display: inline-block;
  padding: 11px 28px;
  background: #0095eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
}
.btn:hover { background: #007ac4; color: #fff; }
.btn-green { background: #78b215; }
.btn-green:hover { background: #669a11; }

.form-success {
  display: none;
  padding: 10px 16px;
  background: #7dcc68;
  color: #fff;
  border-radius: 5px;
  margin-top: 12px;
  font-size: .9rem;
}

/* ── Blog ─────────────────────────────────────────────────── */
.blog-posts { max-width: 800px; margin: 0 auto; }

.blog-post { padding: 0 0 10px; }

.blog-post-header { margin-bottom: 16px; }
.blog-post-title { font-size: 1.6rem; margin-bottom: .2em; }
.blog-post-meta { font-size: .82rem; color: #999; margin: 0; }

.blog-divider {
  border: none;
  border-top: 1px solid #e0e8f0;
  margin: 50px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.blog-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e4edf5;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.blog-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
  transform: translateY(-3px);
}
.blog-card-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e8f0f7;
}
.blog-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: filter .3s;
}
.blog-card:hover .blog-card-image img { filter: grayscale(0%); }

.blog-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { font-size: .75rem; color: #999; margin-bottom: 8px; }
.blog-card-title { font-size: 1.05rem; font-weight: 700; color: #333; margin-bottom: 8px; line-height: 1.35; }
.blog-card-title a { color: #333; }
.blog-card-title a:hover { color: #0095eb; }
.blog-card-excerpt { font-size: .875rem; flex: 1; }
.blog-card-more { margin-top: 14px; font-size: .85rem; font-weight: 600; color: #0095eb; }

/* ── Blog post ────────────────────────────────────────────── */
.post-content { max-width: 800px; margin: 0 auto; }
.post-content img { margin: 20px auto; border-radius: 8px; }
.post-content .video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: 10px; margin: 20px 0;
}
.post-content .video-wrap iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}
.post-content strong { color: #333; }
.post-content a { color: #0095eb; }

/* ── Footer ───────────────────────────────────────────────── */
#footer {
  background: #545454;
  color: rgba(255,255,255,.7);
  padding: 50px 0 30px;
}

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

.footer-col h4 {
  color: #fff;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: .875rem; transition: color .2s; }
.footer-col ul li a:hover { color: #0095eb; }
.footer-col p { font-size: .875rem; }
.footer-logo img { height: 36px; margin-bottom: 14px; filter: brightness(0) invert(1); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: #0095eb; }

/* ── Utility ──────────────────────────────────────────────── */
.divider { margin: 1em 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .software-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .col-quarter { flex: 0 0 calc(50% - 12px); max-width: calc(50% - 12px); }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
  }
  .nav.open { display: flex; }
  .nav li a { line-height: 1; padding: 14px 24px; border-bottom: 1px solid rgba(0,0,0,.06); }
  .nav-toggle { display: flex; }
  #header { position: relative; }

  .hero-static { padding-bottom: 56%; background-size: cover; background-position: center; }
  .hero-static .container { padding: 0 20px; max-width: 100%; }
  .hero-static-inner { width: 100%; background: rgba(255,255,255,.82); border-radius: 8px; padding: 20px; }
  .hero-static-inner h1 { font-size: 1.5rem; }

  .cslide { padding: 40px 20px; }
  .cslide-inner { flex-direction: column; gap: 30px; }
  .cslide-img { width: 100%; }
  .cslider-arrow { display: none; }

  .input-main-img, .input-main-text { flex: 1 1 100%; }
  .input-modules { flex-direction: column; }
  .input-module { display: flex; gap: 16px; align-items: center; text-align: left; }
  .input-module img { max-height: 80px; flex: 0 0 80px; margin: 0; }

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

  .about-layout { flex-direction: column; }
  .about-photo { flex: none; max-width: 100%; }

  .contact-form-wrap { flex: 0 0 100%; max-width: 100%; }
  .contact-info { padding: 0; }

  .col-half, .col-third, .col-quarter { flex: 0 0 100%; max-width: 100%; }

  h1 { font-size: 1.7rem; }
  h3 { font-size: 1.25rem; }
  .section { padding: 60px 0; }
  .cta-band a { font-size: 1.3rem; }
}
