/* ============================================
   Simplified Logic — Clean Site Stylesheet
   Zero Tilda dependencies
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: Arial, Helvetica, sans-serif; line-height: 1.6; color: #333; background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: #c1272d; text-decoration: none; transition: color .2s, opacity .2s; }
a:hover, a:focus-visible { opacity: .75; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { line-height: 1.3; }

/* --- Layout --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section--sm { padding: 30px 0; }
.section--gray { background: #efefef; }
.section--dark { background: #111; color: #fff; }
.text-center { text-align: center; }

/* --- Grid (simple flexbox) --- */
.row { display: flex; flex-wrap: wrap; gap: 30px; }
.col-3 { flex: 1 1 calc(25% - 23px); min-width: 200px; }
.col-4 { flex: 1 1 calc(33.333% - 20px); min-width: 250px; }
.col-5 { flex: 1 1 calc(50% - 15px); min-width: 280px; }
.col-6 { flex: 1 1 calc(50% - 15px); min-width: 280px; }
.col-10 { flex: 1 1 calc(83.333% - 15px); min-width: 280px; }
.col-12 { flex: 1 1 100%; }

/* --- Header / Nav --- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.site-header__logo img { height: 40px; width: auto; }
.site-header__nav { display: flex; align-items: center; gap: 8px; }

/* Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #333; margin: 5px 0; transition: transform .3s, opacity .3s; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Desktop nav links */
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: #333; font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; }
.nav-links a:hover { color: #c1272d; opacity: 1; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown__toggle { background: none; border: none; cursor: pointer; color: #333; font-weight: 600; font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; display: flex; align-items: center; gap: 4px; padding: 0; font-family: inherit; }
.nav-dropdown__toggle::after { content: '▾'; font-size: .7em; }
.nav-dropdown__toggle:hover { color: #c1272d; }
.nav-dropdown__menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; box-shadow: 0 4px 16px rgba(0,0,0,.12); border-radius: 6px; min-width: 220px; padding: 8px 0; z-index: 200; }
.nav-dropdown:hover .nav-dropdown__menu,
.nav-dropdown__toggle:focus + .nav-dropdown__menu,
.nav-dropdown__menu:hover { display: block; }
.nav-dropdown__menu a { display: block; padding: 8px 20px; color: #333; font-weight: 400; font-size: .85rem; text-transform: none; }
.nav-dropdown__menu a:hover { background: #f5f5f5; color: #c1272d; }

/* Mobile nav */
.mobile-nav { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: #fff; z-index: 99; overflow-y: auto; padding: 20px; }
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 12px 0; font-size: 1.1rem; color: #333; border-bottom: 1px solid #eee; }
.mobile-nav__group-title { font-weight: 700; text-transform: uppercase; font-size: .8rem; color: #999; margin-top: 20px; margin-bottom: 8px; letter-spacing: .05em; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: block; }
}

/* --- Hero Carousel --- */
.hero-carousel { position: relative; overflow: hidden; height: 500px; }
.hero-carousel__track { display: flex; transition: transform .6s ease-in-out; height: 100%; }
.hero-slide { min-width: 100%; height: 100%; position: relative; }
.hero-slide__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-slide__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.2), rgba(0,0,0,.6)); }
.hero-slide__content { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; color: #fff; padding: 20px; }
.hero-slide__title { font-size: 2.2rem; margin-bottom: 12px; }
.hero-slide__desc { font-size: 1.15rem; font-weight: 700; margin-bottom: 24px; max-width: 600px; }

/* Carousel controls */
.hero-carousel__arrows { position: absolute; top: 50%; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 16px; transform: translateY(-50%); z-index: 5; pointer-events: none; }
.hero-carousel__arrow { pointer-events: auto; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.9); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #222; transition: background .2s; }
.hero-carousel__arrow:hover { background: #fff; }
.hero-carousel__dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 5; }
.hero-carousel__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; transition: background .2s; padding: 0; }
.hero-carousel__dot.active { background: #fff; }

/* --- Buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: 30px; font-weight: 600; font-size: .95rem; text-align: center; transition: background .2s, color .2s, box-shadow .2s, transform .2s; border: none; cursor: pointer; line-height: 1; }
.btn--primary { background: #c1272d; color: #fff; border: 3px solid #f7f7f7; }
.btn--primary:hover { background: #a01f24; opacity: 1; }
.btn--green { background: #229b25; color: #fff; box-shadow: 0 2px 3px rgba(0,11,48,.25); }
.btn--green:hover { background: #16b01f; opacity: 1; }

/* --- Product Cards --- */
.product-cards { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; }
.product-card { flex: 1 1 280px; max-width: 350px; text-align: center; padding: 20px; }
.product-card img { width: 120px; height: auto; margin: 0 auto 16px; }
.product-card h2 { font-size: 1.3rem; margin-bottom: 8px; }
.product-card h2 a { color: #333; }
.product-card h2 a:hover { color: #c1272d; }
.product-card p { font-size: .9rem; color: #666; }

/* --- Feature List (icon + text rows) --- */
.feature-list { max-width: 900px; margin: 0 auto; }
.feature-item { display: flex; gap: 24px; margin-bottom: 40px; align-items: flex-start; }
.feature-item__icon { flex-shrink: 0; width: 64px; height: 64px; }
.feature-item__icon img { width: 100%; height: 100%; object-fit: contain; }
.feature-item__text h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-item__text p { font-size: .9rem; color: #555; }
.feature-item__text ul, .feature-item__text ol { margin: 10px 0 10px 20px; }
.feature-item__text li { margin-bottom: 4px; font-size: .9rem; color: #555; list-style: disc; }
.feature-item__text ol li { list-style: decimal; }

/* --- CTA Banner --- */
.cta-banner { text-align: center; }
.cta-banner h2 { font-size: 1.6rem; margin-bottom: 10px; }
.cta-banner p { font-size: 1.1rem; margin-bottom: 24px; max-width: 700px; margin-left: auto; margin-right: auto; }
.cta-banner__buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Tech Cards (two-column info boxes) --- */
.tech-cards { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; }
.tech-card { flex: 1 1 400px; max-width: 500px; background: #f7f7f7; border: 1px solid #ccc; border-radius: 10px; padding: 30px; text-align: center; }
.tech-card__logo { height: 50px; margin: 0 auto 16px; }
.tech-card p { font-size: .95rem; line-height: 1.6; }

/* --- Partner Logos --- */
.partner-logos { display: flex; flex-wrap: wrap; gap: 30px; justify-content: center; align-items: center; }
.partner-logos img { height: 50px; width: auto; opacity: .8; transition: opacity .2s; }
.partner-logos img:hover { opacity: 1; }

/* --- Contact Cards --- */
.contact-cards { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.contact-card { flex: 1 1 350px; max-width: 500px; display: flex; gap: 16px; align-items: flex-start; }
.contact-card__icon { flex-shrink: 0; width: 60px; }
.contact-card__icon img { width: 100%; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-card h3 a { color: #333; }
.contact-card h3 a:hover { color: #c1272d; }
.contact-card p { font-size: .85rem; color: #666; }

/* --- Footer --- */
.site-footer { background: #111; color: #999; padding: 40px 0; text-align: center; font-size: .8rem; line-height: 1.8; }
.site-footer a { color: #ccc; }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; gap: 20px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap; }

/* --- 404 Page --- */
.page-404 { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px 20px; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); color: #fff; }
.page-404__code { font-size: 8rem; font-weight: 900; line-height: 1; background: linear-gradient(135deg, #c1272d, #e74c3c, #f39c12); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 16px; }
.page-404__title { font-size: 1.8rem; margin-bottom: 12px; }
.page-404__desc { font-size: 1.05rem; color: #aab; max-width: 500px; margin: 0 auto 30px; }
.page-404__gear { font-size: 4rem; animation: spin 8s linear infinite; display: inline-block; margin-bottom: 20px; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-carousel { height: 400px; }
  .hero-slide__title { font-size: 1.6rem; }
  .hero-slide__desc { font-size: 1rem; }
  .section { padding: 40px 0; }
  .tech-cards { flex-direction: column; align-items: center; }
  .feature-item { flex-direction: column; text-align: center; align-items: center; }
  .feature-item__icon { margin-bottom: 12px; }
  .contact-card { flex-direction: column; text-align: center; align-items: center; }
}
@media (max-width: 480px) {
  .hero-carousel { height: 350px; }
  .hero-slide__title { font-size: 1.3rem; }
  .page-404__code { font-size: 5rem; }
}


/* --- Feature Image Carousel --- */
.feature-carousel { position: relative; max-width: 900px; margin: 0 auto; overflow: hidden; border-radius: 10px; background: #f5f5f5; }
.feature-carousel__track { display: flex; transition: transform .5s ease-in-out; }
.feature-carousel__slide { min-width: 100%; text-align: center; padding: 20px; }
.feature-carousel__slide img { max-height: 450px; width: auto; max-width: 100%; margin: 0 auto; border-radius: 6px; box-shadow: 0 2px 12px rgba(0,0,0,.1); }
.feature-carousel__slide figcaption { margin-top: 12px; font-size: .95rem; color: #555; font-weight: 600; }
.feature-carousel__nav { display: flex; justify-content: center; align-items: center; gap: 16px; padding: 16px 0; }
.feature-carousel__btn { width: 36px; height: 36px; border-radius: 50%; border: 1px solid #ccc; background: #fff; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: background .2s, border-color .2s; }
.feature-carousel__btn:hover { background: #c1272d; color: #fff; border-color: #c1272d; }
.feature-carousel__counter { font-size: .85rem; color: #888; min-width: 60px; text-align: center; }


/* --- 6-Card Product Grid --- */
.product-grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1000px; margin: 0 auto; }
.product-grid-6__card { text-align: center; padding: 20px; position: relative; }
.product-grid-6__card::before { content: ''; position: absolute; left: 0; top: 10%; bottom: 10%; width: 1px; background: #d1d1d1; }
.product-grid-6__card:nth-child(3n+1)::before { display: none; }
.product-grid-6__icon { width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 14px; background-size: contain; background-repeat: no-repeat; background-position: center; }
.product-grid-6__card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.product-grid-6__card h3 a { color: #333; }
.product-grid-6__card h3 a:hover { color: #c1272d; }
.product-grid-6__card p { font-size: .85rem; color: #666; line-height: 1.5; }
@media (max-width: 768px) {
  .product-grid-6 { grid-template-columns: repeat(2, 1fr); }
  .product-grid-6__card:nth-child(2n+1)::before { display: none; }
  .product-grid-6__card:nth-child(3n+1)::before { display: block; }
}
@media (max-width: 480px) { .product-grid-6 { grid-template-columns: 1fr; } .product-grid-6__card::before { display: none !important; } }

/* --- Why Choose Us Cards --- */
.why-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 1000px; margin: 0 auto; }
.why-card { display: flex; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); min-height: 200px; }
.why-card__text { flex: 1; padding: 24px; display: flex; flex-direction: column; justify-content: center; }
.why-card__text h3 { font-size: 1.15rem; margin-bottom: 8px; }
.why-card__text p { font-size: .85rem; color: #555; line-height: 1.6; }
.why-card__img { flex: 0 0 40%; background-size: cover; background-position: center; min-height: 200px; }
@media (max-width: 768px) { .why-cards { grid-template-columns: 1fr; } }

/* --- Story Blocks (text + image grid) --- */
.story-block { display: flex; min-height: 500px; }
.story-block--reverse { flex-direction: row-reverse; }
.story-block__text { flex: 0 0 45%; padding: 50px 40px; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.story-block__text h2 { font-size: 1.8rem; margin-bottom: 20px; line-height: 1.3; }
.story-block__text p { font-size: .95rem; line-height: 1.7; margin-bottom: 12px; }
.story-block__text ul { margin: 8px 0 8px 20px; }
.story-block__text li { list-style: disc; margin-bottom: 4px; font-size: .95rem; }
.story-block__text a { color: #fff; text-decoration: underline; }
.story-block__images { flex: 1; display: grid; grid-template-rows: 1fr auto; grid-template-columns: 1fr 1fr; gap: 4px; }
.story-block__img { background-size: cover; background-position: center; min-height: 180px; }
.story-block__img--large { grid-column: 1 / -1; }
@media (max-width: 768px) {
  .story-block, .story-block--reverse { flex-direction: column; }
  .story-block__text { flex: none; padding: 30px 20px; }
  .story-block__images { min-height: 300px; }
}

/* --- Advice Cards (3-col) --- */
.advice-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.advice-card { background: #fff; border-radius: 10px; padding: 24px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.advice-card__icon { width: 48px; height: 48px; margin-bottom: 14px; background-size: contain; background-repeat: no-repeat; }
.advice-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.advice-card p, .advice-card li { font-size: .85rem; color: #555; line-height: 1.6; }
.advice-card ul { margin: 6px 0 10px 18px; }
.advice-card li { list-style: disc; margin-bottom: 3px; }
@media (max-width: 768px) { .advice-cards { grid-template-columns: 1fr; } }
