/*
Theme Name: DeepWeld Robotics
Theme URI: https://deepweldrobotics.com/
Author: Deepweld Robotics & Automation Pvt Ltd
Author URI: https://deepweldrobotics.com/
Description: Custom red and white theme for Deepweld Robotics & Automation Pvt Ltd — orbital welding systems for tube, pipe and tube sheet joints. Full-width video hero, orbital product range with filters, applications, about and enquiry sections.
Version: 1.0.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: deepweld-robotics
Tags: custom-logo, custom-menu, full-width-template, red, white
*/

/* ============ Reset & base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #1c1c1c;
  background: #ffffff;
  overflow-x: hidden;
}
a { color: #e11d2e; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

/* ============ Header ============ */
.dw-header {
  background: #ffffff;
  border-bottom: 3px solid #e11d2e;
  position: sticky;
  top: 0;
  z-index: 100;
}
.dw-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.dw-logo img { height: 54px; width: auto; display: block; }
.dw-logo-text { font-size: 26px; font-weight: 800; letter-spacing: 0.5px; color: #111111; }
.dw-logo-text span { color: #e11d2e; }
.dw-nav ul { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.dw-nav a { color: #1c1c1c; font-weight: 600; font-size: 15px; }
.dw-nav a:hover { color: #e11d2e; text-decoration: none; }
.dw-nav .menu-item-has-children { position: relative; }
.dw-nav .sub-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-top: 3px solid #e11d2e;
  min-width: 260px;
  padding: 8px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  z-index: 200;
}
.dw-nav .menu-item-has-children:hover .sub-menu,
.dw-nav .menu-item-has-children:focus-within .sub-menu { display: block; }
.dw-nav .sub-menu li { display: block; }
.dw-nav .sub-menu a { display: block; padding: 10px 18px; font-weight: 500; }
.dw-nav .sub-menu a:hover { background: #fff4f4; }
.dw-menu-toggle {
  display: none;
  background: #e11d2e;
  color: #ffffff;
  border: 0;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
}

/* ============ Buttons ============ */
.dw-btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid #e11d2e;
  cursor: pointer;
  text-align: center;
}
.dw-btn:hover { text-decoration: none; }
.dw-btn-red { background: #e11d2e; color: #ffffff; }
.dw-btn-red:hover { background: #c01020; border-color: #c01020; }
.dw-btn-outline { background: transparent; color: #ffffff; border-color: #ffffff; }
.dw-btn-outline:hover { background: #ffffff; color: #111111; }
.dw-btn-dark { background: #111111; color: #ffffff; border-color: #111111; }

/* ============ Sections ============ */
.dw-section { padding: 72px 24px; }
.dw-container { max-width: 1240px; margin: 0 auto; }
.dw-section-label {
  display: inline-block;
  color: #e11d2e;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: 13px;
  text-transform: uppercase;
  border-left: 4px solid #e11d2e;
  padding-left: 10px;
  margin-bottom: 12px;
}
.dw-section h2 { font-size: 34px; font-weight: 800; color: #111111; }
.dw-section h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: #e11d2e;
  margin-top: 14px;
}
.dw-section-intro { font-size: 18px; color: #444444; max-width: 820px; }
.dw-section-grey { background: #f7f7f7; }
.dw-section-dark { background: #111111; color: #ffffff; }
.dw-section-dark h2 { color: #ffffff; }

/* ============ Hero ============ */
.dw-hero { position: relative; overflow: hidden; background: #111111; min-height: 560px; display: flex; align-items: center; }
.dw-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.dw-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.70); }
.dw-hero-inner { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 90px 24px; width: 100%; }
.dw-hero h1 { color: #ffffff; font-size: 48px; font-weight: 900; max-width: 900px; }
.dw-hero p.dw-hero-intro { color: #f0f0f0; font-size: 19px; max-width: 820px; }
.dw-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.dw-chip {
  border: 1px solid rgba(255,255,255,0.55);
  color: #ffffff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.dw-hero-specs { color: #dddddd; font-weight: 600; margin: 20px 0 28px; }
.dw-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ Stats bar & ticker (full-bleed) ============ */
.dw-stats {
  background: #111111;
  color: #ffffff;
  padding: 26px 24px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.5px;
  font-size: 17px;
  border-top: 4px solid #e11d2e;
}
.dw-stats span { color: #ffffff; }
.dw-stats b { color: #ff5a66; }
.dw-ticker {
  background: #e11d2e;
  color: #ffffff;
  overflow: hidden;
  padding: 14px 0;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
}
.dw-ticker-track { display: inline-block; padding-left: 100%; animation: dw-ticker 30s linear infinite; }
@keyframes dw-ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .dw-ticker-track { animation: none; padding-left: 0; white-space: normal; text-align: center; display: block; }
}

/* ============ Range tiles ============ */
.dw-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.dw-tile {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-top: 4px solid #e11d2e;
  border-radius: 8px;
  padding: 22px 16px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.dw-tile:hover { border-color: #e11d2e; box-shadow: 0 8px 24px rgba(225,29,46,0.15); }
.dw-tile-num { color: #e11d2e; font-weight: 900; font-size: 22px; }
.dw-tile h3 { font-size: 16px; margin: 8px 0 0; color: #111111; }

/* ============ Product filters & cards ============ */
.dw-filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.dw-filter-btn {
  background: #ffffff;
  border: 2px solid #dddddd;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: #1c1c1c;
}
.dw-filter-btn:hover { border-color: #e11d2e; color: #e11d2e; }
.dw-filter-btn.active { background: #e11d2e; border-color: #e11d2e; color: #ffffff; }
.dw-products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.dw-product {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  padding: 28px;
}
.dw-product-tag { color: #e11d2e; font-weight: 800; letter-spacing: 1px; font-size: 12px; text-transform: uppercase; }
.dw-product h3 { font-size: 21px; margin-top: 6px; }
.dw-product ul { list-style: none; margin: 14px 0 20px; }
.dw-product li { padding: 5px 0 5px 22px; position: relative; color: #333333; }
.dw-product li::before { content: "\2713"; position: absolute; left: 0; color: #e11d2e; font-weight: 800; }
.dw-enquire-btn {
  background: #ffffff;
  border: 2px solid #e11d2e;
  color: #e11d2e;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
}
.dw-enquire-btn:hover { background: #e11d2e; color: #ffffff; }

/* ============ CTA strip ============ */
.dw-cta {
  background: #fff4f4;
  border: 1px solid #f3c2c6;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  margin-top: 40px;
}
.dw-cta h3 { font-size: 24px; }

/* ============ Grids: why / steps / applications ============ */
.dw-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.dw-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.dw-card { background: #ffffff; border: 1px solid #e8e8e8; border-radius: 8px; padding: 26px; }
.dw-card h3 { font-size: 18px; color: #111111; }
.dw-card h3::before { content: ""; display: block; width: 32px; height: 4px; background: #e11d2e; margin-bottom: 12px; }
.dw-step-num { color: #e11d2e; font-weight: 900; font-size: 30px; }

/* ============ About / workshop placeholders ============ */
.dw-about-list { list-style: none; margin: 18px 0; }
.dw-about-list li { padding: 6px 0 6px 26px; position: relative; }
.dw-about-list li::before { content: "\2713"; position: absolute; left: 0; color: #e11d2e; font-weight: 800; }
.dw-workshop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.dw-photo-panel {
  background: #eeeeee;
  border: 2px dashed #cccccc;
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  color: #555555;
  font-size: 14px;
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============ Enquiry form ============ */
.dw-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 32px; }
.dw-contact-details p { margin-bottom: 12px; }
.dw-contact-details strong { color: #111111; }
.dw-form label { display: block; font-weight: 700; margin: 14px 0 6px; }
.dw-form input, .dw-form select, .dw-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
}
.dw-form input:focus, .dw-form select:focus, .dw-form textarea:focus { outline: 2px solid #e11d2e; border-color: #e11d2e; }
.dw-form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.dw-form-note { color: #666666; font-size: 14px; margin-top: 12px; }
.dw-copy-msg { display: none; color: #0a7a2f; font-weight: 700; margin-top: 12px; }

/* ============ Footer (dark, multi-column) ============ */
.dw-footer { background: #111111; color: #cccccc; padding: 56px 24px 28px; }
.dw-footer-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.dw-footer h4 { color: #ffffff; font-size: 17px; margin-bottom: 14px; }
.dw-footer a { color: #dddddd; }
.dw-footer a:hover { color: #ffffff; }
.dw-footer ul li { margin-bottom: 8px; }
.dw-footer-logo img { height: 48px; width: auto; filter: brightness(0) invert(1); }
.dw-footer-bottom {
  max-width: 1240px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid #333333;
  text-align: center;
  font-size: 14px;
  color: #999999;
}

/* ============ Generic page ============ */
.dw-page { max-width: 1240px; margin: 0 auto; padding: 56px 24px; }
.dw-page h1 { font-size: 36px; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .dw-tiles { grid-template-columns: repeat(3, 1fr); }
  .dw-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .dw-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .dw-menu-toggle { display: block; }
  .dw-nav { display: none; width: 100%; }
  .dw-nav.open { display: block; }
  .dw-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  .dw-nav ul li { width: 100%; border-top: 1px solid #eeeeee; }
  .dw-nav ul li a { display: block; padding: 12px 0; }
  .dw-nav .sub-menu { position: static; display: block; box-shadow: none; border: 0; border-left: 3px solid #e11d2e; padding: 0 0 0 12px; min-width: 0; }
  .dw-header-inner { flex-wrap: wrap; }
  .dw-hero h1 { font-size: 32px; }
  .dw-hero-inner { padding: 64px 20px; }
  .dw-section { padding: 48px 20px; }
  .dw-section h2 { font-size: 26px; }
  .dw-tiles, .dw-products, .dw-grid-4, .dw-grid-3, .dw-workshop, .dw-contact-grid { grid-template-columns: 1fr; }
  .dw-footer-inner { grid-template-columns: 1fr; }
}

/* ============ v1.0.1: photos & design polish ============ */
html { overflow-x: hidden; }
img { max-width: 100%; }

/* Range tile thumbnails */
.dw-tile-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  margin-bottom: 12px;
}
.dw-tile { border-radius: 8px; }

/* Product cards with photos */
.dw-product {
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dw-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}
.dw-product-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.dw-product-body { padding: 24px 28px 28px; }
.dw-product h3 { color: #111827; line-height: 1.2; }

/* Workshop photos */
.dw-workshop-photo { margin: 0; }
.dw-workshop-photo img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}
.dw-workshop-photo figcaption {
  font-size: 14px;
  color: #555555;
  margin-top: 10px;
  text-align: center;
}

/* Sparks background accent behind the closing CTA */
.dw-cta-sparks {
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  border-color: transparent;
}
.dw-cta-sparks::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.68);
}
.dw-cta-sparks > * { position: relative; z-index: 1; }
.dw-cta-sparks h3, .dw-cta-sparks p { color: #ffffff; }

/* Hero heading stays readable over video/poster */
.dw-hero h1 { text-shadow: 0 2px 18px rgba(0,0,0,0.55); }

@media (max-width: 768px) {
  .dw-product { width: 100%; }
  .dw-product-img { height: 180px; }
  .dw-tile-img { height: 140px; }
  .dw-workshop-photo img { height: 200px; }
  .dw-products, .dw-tiles, .dw-grid-4, .dw-grid-3, .dw-workshop, .dw-contact-grid { grid-template-columns: 1fr; }
}

/* ============ v1.0.3: attractive Why / About / Contact sections ============ */
/* Pure CSS: gradient washes, orbit-ring decor, hover lifts, button shine and
   scroll-in reveals. No new images, no JS dependency, content stays visible
   in every browser (scroll-in only applies where view-timeline is supported). */
.dw-why, #about, #contact { position: relative; overflow: hidden; }
.dw-why .dw-container, #about .dw-container, #contact .dw-container { position: relative; z-index: 1; }

/* Orbit-ring decoration: dashed rotating ring + one orbiting red dot. */
.dw-decor { position: absolute; width: 340px; height: 340px; top: -100px; right: -100px; pointer-events: none; z-index: 0; }
.dw-decor::before { content: ""; position: absolute; inset: 0; border: 2px dashed rgba(225,29,46,0.22); border-radius: 50%; animation: dw-spin 46s linear infinite; }
.dw-decor::after { content: ""; position: absolute; inset: 58px; border: 1px solid rgba(225,29,46,0.16); border-radius: 50%; }
.dw-decor i { position: absolute; left: 50%; top: 50%; width: 340px; height: 340px; margin: -170px 0 0 -170px; animation: dw-spin 15s linear infinite; }
.dw-decor i::before { content: ""; position: absolute; left: 50%; top: -6px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #e11d2e; box-shadow: 0 0 18px rgba(225,29,46,0.8); }
@keyframes dw-spin { to { transform: rotate(360deg); } }

/* Why Orbital Welding: slow animated warm wash + lively cards. */
.dw-why { background: linear-gradient(115deg, #fff7f7 0%, #ffffff 45%, #fff1f2 100%); background-size: 200% 200%; animation: dw-wash 14s ease-in-out infinite alternate; }
@keyframes dw-wash { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.dw-why .dw-card { transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.dw-why .dw-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(225,29,46,0.14); border-color: #f3c2c6; }
.dw-why .dw-card h3::before { transition: width 0.3s ease; }
.dw-why .dw-card:hover h3::before { width: 56px; }

/* About: workshop photos lift on hover, list items nudge, buttons shine. */
.dw-workshop-photo { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.dw-workshop-photo:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,0,0,0.18); }
.dw-about-list li { transition: transform 0.2s ease; }
.dw-about-list li:hover { transform: translateX(4px); }

/* Contact: animated wash, form as a card, glow on focus, button shine. */
#contact { background: linear-gradient(115deg, #ffffff 0%, #fff7f7 55%, #f7f7f7 100%); background-size: 200% 200%; animation: dw-wash 16s ease-in-out infinite alternate; }
#contact .dw-form { background: #ffffff; border: 1px solid #eeeeee; border-top: 4px solid #e11d2e; border-radius: 12px; padding: 28px; box-shadow: 0 10px 34px rgba(0,0,0,0.08); }
#contact .dw-form input:focus, #contact .dw-form select:focus, #contact .dw-form textarea:focus { box-shadow: 0 0 0 4px rgba(225,29,46,0.12); }
#about .dw-btn, #contact .dw-btn { position: relative; overflow: hidden; isolation: isolate; }
#about .dw-btn::after, #contact .dw-btn::after { content: ""; position: absolute; top: 0; left: -90%; width: 45%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.5), transparent); transform: skewX(-20deg); transition: left 0.55s ease; }
#about .dw-btn:hover::after, #contact .dw-btn:hover::after { left: 140%; }

/* Scroll-in reveal: only where the browser supports scroll-driven animation.
   Everywhere else the content simply shows normally (no hidden state). */
@supports (animation-timeline: view()) {
  .dw-why .dw-card, #about .dw-workshop-photo, #contact .dw-form {
    animation: dw-rise 0.7s ease backwards;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }
}
@keyframes dw-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 768px) {
  .dw-decor { width: 220px; height: 220px; top: -70px; right: -70px; opacity: 0.7; }
  .dw-decor i { width: 220px; height: 220px; margin: -110px 0 0 -110px; }
  .dw-decor::after { inset: 38px; }
  #contact .dw-form { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .dw-decor, .dw-decor::before, .dw-decor i, .dw-why, #contact { animation: none !important; }
  .dw-why .dw-card, .dw-workshop-photo, .dw-about-list li { transition: none; }
  .dw-why .dw-card, #about .dw-workshop-photo, #contact .dw-form { animation: none !important; }
}
