/*
Theme Name: Deev Modern
Theme URI: https://deevengineers.in/
Author: Deev Engineers
Description: Responsive industrial redesign for Deev Engineers.
Version: 1.0.0
Text Domain: deev-modern
*/

:root {
  --ink: #071c2c;
  --ink-soft: #14334a;
  --steel: #5d7385;
  --mist: #eef3f6;
  --line: #dbe4e9;
  --paper: #ffffff;
  --amber: #f6a800;
  --amber-dark: #d78600;
  --teal: #0f8e85;
  --shadow: 0 18px 50px rgba(7, 28, 44, .11);
  --radius: 18px;
  --wrap: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f7f9fa;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { width: var(--wrap); margin-inline: auto; }
.screen-reader-text { position: absolute; left: -9999px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(219,228,233,.9);
  backdrop-filter: blur(14px);
}
.header-row { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 0 0 auto; }
.brand-mark {
  width: 46px; height: 46px; display: grid; place-items: center;
  color: white; background: var(--ink); border-radius: 12px;
  font-weight: 900; font-size: 20px; letter-spacing: -.05em;
  box-shadow: inset 0 -4px 0 var(--amber);
}
.brand-copy strong { display: block; font-size: 18px; line-height: 1.1; letter-spacing: -.02em; }
.brand-copy span { display: block; color: var(--steel); font-size: 11px; letter-spacing: .15em; text-transform: uppercase; margin-top: 5px; }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav li { position: relative; }
.primary-nav a { display: block; padding: 12px 10px; font-size: 13px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: var(--amber-dark); }
.primary-nav .sub-menu {
  position: absolute; left: 0; top: calc(100% - 2px); min-width: 245px;
  display: none; padding: 10px; background: white; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow);
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu .sub-menu { left: 100%; top: 0; }
.header-cta, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; border-radius: 11px; padding: 13px 18px;
  background: var(--amber); color: var(--ink); font-weight: 850; text-decoration: none;
  box-shadow: 0 8px 22px rgba(246,168,0,.22); transition: .2s ease;
}
.header-cta:hover, .button:hover { transform: translateY(-2px); background: #ffb91f; }
.button.secondary { color: white; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.menu-toggle { display: none; margin-left: auto; border: 1px solid var(--line); background: white; border-radius: 10px; padding: 10px 12px; font-weight: 800; }

.hero {
  min-height: 680px; display: grid; align-items: center; color: white;
  background-image: linear-gradient(90deg, rgba(3,18,30,.95) 0%, rgba(3,18,30,.8) 34%, rgba(3,18,30,.22) 70%, rgba(3,18,30,.08) 100%), url('assets/industrial-hero.png');
  background-size: cover; background-position: center;
}
.hero-inner { width: min(670px, 100%); padding-block: 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--amber); font-size: 12px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 34px; height: 3px; background: var(--amber); border-radius: 3px; }
.hero h1 { margin: 18px 0; font-size: clamp(43px, 6.2vw, 82px); line-height: .98; letter-spacing: -.055em; max-width: 720px; }
.hero p { margin: 0 0 30px; color: #dce6ec; font-size: clamp(17px, 2vw, 21px); max-width: 610px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 46px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.17); }
.hero-proof strong { display: block; color: white; font-size: 21px; }
.hero-proof span { color: #b8c8d3; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

.section { padding: 96px 0; }
.section.white { background: white; }
.section.dark { background: var(--ink); color: white; }
.section-head { max-width: 760px; margin-bottom: 42px; }
.section-head h2 { margin: 12px 0 14px; font-size: clamp(34px, 4.2vw, 55px); line-height: 1.08; letter-spacing: -.04em; }
.section-head p { color: var(--steel); font-size: 18px; margin: 0; }
.dark .section-head p { color: #bdd0dc; }
.intro-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 64px; align-items: start; }
.intro-title { font-size: clamp(38px, 5vw, 64px); line-height: 1.05; letter-spacing: -.045em; margin: 0; }
.intro-copy p { margin: 0 0 20px; color: #395568; font-size: 18px; }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product-card {
  position: relative; min-height: 300px; padding: 28px; overflow: hidden;
  color: white; background: linear-gradient(145deg, #123750, #071c2c);
  border-radius: var(--radius); text-decoration: none; box-shadow: var(--shadow);
}
.product-card::after { content: ''; position: absolute; width: 180px; height: 180px; right: -60px; bottom: -60px; border: 28px solid rgba(246,168,0,.16); border-radius: 50%; }
.product-card:nth-child(2) { background: linear-gradient(145deg, #3f4c59, #142332); }
.product-card:nth-child(3) { background: linear-gradient(145deg, #116d69, #073936); }
.product-card:nth-child(4) { background: linear-gradient(145deg, #674b12, #2e220b); }
.product-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 15px; background: rgba(255,255,255,.11); color: var(--amber); font-size: 25px; }
.product-card h3 { position: relative; z-index: 1; margin: 70px 0 8px; font-size: 25px; line-height: 1.1; }
.product-card span { position: relative; z-index: 1; color: #d5e2e9; font-size: 13px; font-weight: 800; }
.product-card:hover { transform: translateY(-5px); transition: .22s ease; }

.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.value-card b { display: block; margin-bottom: 9px; font-size: 20px; }
.value-card p { margin: 0; color: var(--steel); }
.value-num { color: var(--amber-dark); font-weight: 950; font-size: 13px; letter-spacing: .12em; }

.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); overflow: hidden; }
.mission-card { padding: 36px; background: var(--ink); }
.mission-card h3 { color: var(--amber); font-size: 22px; margin: 0 0 12px; text-transform: capitalize; }
.mission-card p, .mission-card li { color: #c7d5dd; }
.mission-card ul { padding-left: 18px; }

.cta-band { padding: 66px 0; color: white; background: linear-gradient(100deg, #0b3048, #0f6d6a); }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-row h2 { max-width: 720px; margin: 0; font-size: clamp(30px, 4vw, 49px); line-height: 1.08; letter-spacing: -.035em; }

.page-hero {
  min-height: 390px; display: grid; align-items: end; color: white;
  background-image: linear-gradient(90deg, rgba(3,18,30,.96), rgba(3,18,30,.55)), url('assets/industrial-hero.png');
  background-size: cover; background-position: center 48%;
}
.page-hero .wrap { padding-block: 74px; }
.page-hero h1 { margin: 12px 0 0; max-width: 900px; font-size: clamp(40px, 5.4vw, 70px); line-height: 1.02; letter-spacing: -.045em; }
.content-shell { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 54px; padding-block: 74px 100px; }
.entry-content { min-width: 0; font-size: 17px; color: #2a475a; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h1 { display: none; }
.entry-content h2 { color: var(--ink); font-size: clamp(28px, 3vw, 39px); line-height: 1.15; margin: 42px 0 14px; letter-spacing: -.025em; }
.entry-content h3 { color: var(--ink); font-size: 24px; margin-top: 32px; }
.entry-content p { margin: 0 0 20px; }
.entry-content ul, .entry-content ol { padding-left: 23px; }
.entry-content li { margin-bottom: 8px; }
.entry-content a { color: #087b74; font-weight: 800; }
.entry-content img { display: none; }
.entry-content form { padding: 28px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.entry-content input, .entry-content textarea { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.side-card { position: sticky; top: 110px; padding: 26px; color: white; background: var(--ink); border-radius: var(--radius); }
.side-card h3 { font-size: 23px; margin: 0 0 13px; }
.side-card p { color: #c8d8e1; font-size: 14px; }
.side-card a { display: block; margin-top: 10px; color: white; font-weight: 800; text-decoration: none; }
.side-card .button { color: var(--ink); margin-top: 20px; }

.site-footer { color: #c5d3dc; background: #05131e; }
.footer-main { display: grid; grid-template-columns: 1.25fr .8fr 1fr; gap: 60px; padding-block: 66px; }
.footer-brand p { max-width: 470px; }
.footer-title { color: white; font-size: 14px; text-transform: uppercase; letter-spacing: .13em; margin: 0 0 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin: 8px 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--amber); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }

@media (max-width: 1050px) {
  .header-cta { display: none; }
  .primary-nav a { padding-inline: 7px; font-size: 12px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  :root { --wrap: min(100% - 28px, 1180px); }
  .header-row { min-height: 70px; }
  .menu-toggle { display: block; }
  .primary-nav { display: none; position: absolute; left: 14px; right: 14px; top: 69px; margin: 0; padding: 14px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); max-height: calc(100vh - 90px); overflow: auto; }
  .primary-nav.open { display: block; }
  .primary-nav ul { display: block; }
  .primary-nav a { font-size: 14px; padding: 10px 8px; }
  .primary-nav .sub-menu { position: static; display: block; min-width: 0; margin-left: 14px; padding: 0 0 0 12px; border: 0; border-left: 2px solid var(--line); border-radius: 0; box-shadow: none; }
  .hero { min-height: 650px; background-position: 61% center; }
  .hero-inner { padding-block: 72px; }
  .section { padding: 72px 0; }
  .intro-grid, .content-shell { grid-template-columns: 1fr; gap: 32px; }
  .value-grid, .mission-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .cta-row { align-items: flex-start; flex-direction: column; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .brand-copy span { display: none; }
  .hero { min-height: 610px; }
  .hero h1 { font-size: 44px; }
  .hero-proof { gap: 18px; }
  .product-grid, .footer-main { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
}
