/*
Theme Name: Enotech Testing Solution
Theme URI: https://enotechtesting.com
Author: Enotech Testing Solution LLP
Author URI: https://enotechtesting.com
Description: A custom one-page WordPress theme for Enotech Testing Solution LLP — a materials, soil, water and pull-out testing laboratory based in Lucknow, Uttar Pradesh. Built from a bespoke HTML/CSS design with editable site identity, contact details, business hours and social links via the WordPress Customizer.
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: enotech
Tags: one-column, custom-menu, custom-colors, footer-widgets, theme-options, translation-ready
*/

:root {
  --primary: #1a3a5c;
  --accent: #e8531d;
  --accent2: #f7a220;
  --light: #f4f7fb;
  --white: #ffffff;
  --dark: #0d1f33;
  --muted: #6b7c93;
  --border: #dde3ec;
  --grad: linear-gradient(135deg, #1a3a5c 0%, #0d1f33 100%);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Nunito Sans', sans-serif; color: #2d3a4a; background: #fff; overflow-x: hidden; }
h1,h2,h3,h4,h5 { font-family: 'Rajdhani', sans-serif; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ========== TOP BAR ========== */
.topbar {
  background: var(--dark);
  color: #aec3d8;
  font-size: 13px;
  padding: 7px 0;
  border-bottom: 2px solid var(--accent);
}
.topbar .inner { max-width: 1200px; margin: auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar a { color: #aec3d8; text-decoration: none; }
.topbar a:hover { color: var(--accent2); }
.topbar .tb-item { display: flex; align-items: center; gap: 6px; }
.topbar .tb-item span { font-size: 15px; }
.tb-right { display: flex; gap: 18px; }

/* ========== HEADER ========== */
header.site-header {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  position: sticky;
  top: 0; z-index: 1000;
}
.header-inner { max-width: 1200px; margin: auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-icon { width: 52px; height: 52px; background: var(--grad); border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.logo-icon svg { width: 30px; height: 30px; fill: #fff; }
.logo-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.logo-text { line-height: 1.15; }
.logo-text strong { font-family: 'Rajdhani', sans-serif; font-size: 22px; font-weight: 700; color: var(--primary); letter-spacing: 1px; display: block; }
.logo-text small { font-size: 11px; color: var(--muted); letter-spacing: 0.5px; }

nav.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link, .main-nav a { color: var(--primary); text-decoration: none; font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 600; padding: 8px 14px; border-radius: 5px; position: relative; transition: color .2s, background .2s; letter-spacing: 0.5px; }
.nav-link:hover, .nav-link.active, .main-nav a:hover, .main-nav .current-menu-item > a { color: var(--accent); background: #fff3ee; }
.nav-link.btn-nav { background: var(--accent); color: #fff; padding: 8px 20px; border-radius: 6px; }
.nav-link.btn-nav:hover { background: #c9431a; color: #fff; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; background: none; border: none; }
.hamburger span { width: 24px; height: 2px; background: var(--primary); border-radius: 2px; transition: all .3s; }
.mobile-nav { display: none; }

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 600px;
  background: var(--grad);
  overflow: hidden;
  display: flex; align-items: center;
}
.hero-bg-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(232,83,29,0.15) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(247,162,32,0.1) 0%, transparent 40%);
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-inner { max-width: 1200px; margin: auto; padding: 80px 20px; position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: rgba(232,83,29,0.2); border: 1px solid rgba(232,83,29,0.4); color: #f7a220; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; padding: 6px 16px; border-radius: 50px; margin-bottom: 20px; }
.hero h1 { font-size: 54px; font-weight: 700; color: #fff; line-height: 1.1; margin-bottom: 20px; }
.hero h1 span { color: var(--accent2); }
.hero p { color: #a8c0d8; font-size: 17px; line-height: 1.7; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; border-radius: 8px; font-family: 'Rajdhani', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 0.5px; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: all .25s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #c9431a; color: #fff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,83,29,0.4); }
.btn-outline { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; transform: translateY(-2px); }

.hero-cards { display: flex; flex-direction: column; gap: 16px; }
.hero-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(10px); border-radius: 12px; padding: 20px 24px; display: flex; align-items: center; gap: 18px; transition: transform .3s, background .3s; }
.hero-card:hover { transform: translateX(6px); background: rgba(255,255,255,0.12); }
.hero-card-icon { width: 48px; height: 48px; border-radius: 10px; background: rgba(232,83,29,0.25); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 22px; }
.hero-card h4 { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 3px; }
.hero-card p { color: #8fa8c0; font-size: 13px; }

/* ========== STATS STRIP ========== */
.stats-strip { background: var(--accent); padding: 0; }
.stats-inner { max-width: 1200px; margin: auto; display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item { padding: 28px 20px; text-align: center; border-right: 1px solid rgba(255,255,255,0.2); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Rajdhani', sans-serif; font-size: 42px; font-weight: 700; color: #fff; line-height: 1; }
.stat-label { color: rgba(255,255,255,0.85); font-size: 13px; margin-top: 4px; letter-spacing: 0.5px; }

/* ========== SECTION COMMONS ========== */
section { padding: 80px 0; }
.section-inner { max-width: 1200px; margin: auto; padding: 0 20px; }
.section-tag { display: inline-block; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-size: 40px; font-weight: 700; color: var(--primary); line-height: 1.15; margin-bottom: 14px; }
.section-sub { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 600px; }
.section-header { margin-bottom: 50px; }
.divider { width: 50px; height: 3px; background: var(--accent); border-radius: 3px; margin: 14px 0 20px; }

/* ========== ABOUT ========== */
.about { background: var(--light); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-visual { position: relative; }
.about-img-box {
  background: var(--grad);
  border-radius: 16px;
  height: 420px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.about-img-box img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.about-img-box::before {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 0, transparent 50%);
  background-size: 20px 20px;
  z-index: 0;
}
.about-img-icon { font-size: 100px; opacity: 0.3; position: relative; z-index: 1; }
.about-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--accent); color: #fff;
  border-radius: 12px; padding: 20px 24px; text-align: center;
  box-shadow: 0 8px 30px rgba(232,83,29,0.4);
}
.about-badge strong { font-family: 'Rajdhani', sans-serif; font-size: 36px; display: block; line-height: 1; }
.about-badge span { font-size: 12px; opacity: 0.9; }

.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.about-feat { display: flex; align-items: flex-start; gap: 12px; background: #fff; border-radius: 10px; padding: 16px; border: 1px solid var(--border); transition: box-shadow .2s; }
.about-feat:hover { box-shadow: 0 4px 20px rgba(26,58,92,0.1); }
.about-feat-icon { width: 36px; height: 36px; background: #fff3ee; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.about-feat h5 { font-size: 14px; color: var(--primary); font-weight: 700; margin-bottom: 2px; }
.about-feat p { font-size: 12px; color: var(--muted); }

/* ========== SERVICES ========== */
.services { background: #fff; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { border-radius: 14px; overflow: hidden; border: 1px solid var(--border); transition: transform .3s, box-shadow .3s; background: #fff; cursor: pointer; text-decoration: none; display: block; }
.service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 50px rgba(26,58,92,0.15); }
.service-img { height: 190px; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 64px; position: relative; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: 0; }
.service-img span { position: relative; z-index: 1; }
.service-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.35)); z-index: 1; }
.service-body { padding: 22px; }
.service-body h3 { font-size: 20px; color: var(--primary); margin-bottom: 10px; }
.service-body p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.service-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--accent); font-size: 13px; font-weight: 700; text-decoration: none; font-family: 'Rajdhani', sans-serif; letter-spacing: 0.5px; }
.service-link:hover { gap: 10px; }

/* ========== WHY US ========== */
.why { background: var(--dark); position: relative; overflow: hidden; }
.why::before { content: ''; position: absolute; top: -100px; right: -100px; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(232,83,29,0.1) 0%, transparent 70%); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why .section-title { color: #fff; }
.why .section-sub { color: #7a96b0; }
.why .divider { background: var(--accent2); }
.why-list { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.why-item { display: flex; align-items: flex-start; gap: 16px; }
.why-num { width: 44px; height: 44px; border-radius: 10px; background: rgba(232,83,29,0.2); border: 1px solid rgba(232,83,29,0.35); display: flex; align-items: center; justify-content: center; font-family: 'Rajdhani', sans-serif; font-weight: 700; color: var(--accent); font-size: 18px; flex-shrink: 0; }
.why-item h5 { color: #fff; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.why-item p { color: #7a96b0; font-size: 14px; line-height: 1.6; }

.why-certs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cert-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 24px; text-align: center; transition: background .3s; }
.cert-card:hover { background: rgba(255,255,255,0.09); }
.cert-card .cert-icon { font-size: 36px; margin-bottom: 12px; }
.cert-card h4 { color: #fff; font-size: 16px; margin-bottom: 6px; }
.cert-card p { color: #6a87a0; font-size: 13px; }

/* ========== PROCESS ========== */
.process { background: var(--light); }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.process-steps::before { content: ''; position: absolute; top: 36px; left: 12.5%; right: 12.5%; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent2)); z-index: 0; }
.process-step { text-align: center; padding: 0 16px; position: relative; z-index: 1; }
.step-circle { width: 72px; height: 72px; border-radius: 50%; background: var(--white); border: 3px solid var(--accent); margin: 0 auto 20px; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 4px 20px rgba(232,83,29,0.2); }
.step-num { position: absolute; top: 0; right: calc(50% - 44px); background: var(--accent); color: #fff; width: 20px; height: 20px; border-radius: 50%; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.process-step h4 { font-size: 17px; color: var(--primary); margin-bottom: 8px; }
.process-step p { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ========== CONTACT / CTA ========== */
.cta { background: var(--grad); padding: 80px 0; }
.cta-inner { max-width: 1200px; margin: auto; padding: 0 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.cta h2 { font-size: 40px; color: #fff; margin-bottom: 16px; }
.cta p { color: #8aafc7; font-size: 16px; line-height: 1.7; margin-bottom: 28px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; }
.ci-item { display: flex; align-items: flex-start; gap: 14px; }
.ci-icon { width: 42px; height: 42px; border-radius: 8px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.ci-item h5 { color: rgba(255,255,255,0.6); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.ci-item p { color: #fff; font-size: 15px; }
.ci-item a { color: #fff; text-decoration: none; }
.ci-item a:hover { color: var(--accent2); }

.contact-form { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(10px); border-radius: 16px; padding: 36px; }
.contact-form h3 { font-size: 26px; color: #fff; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.form-group { margin-bottom: 14px; }
.form-group label { display: block; color: rgba(255,255,255,0.7); font-size: 13px; margin-bottom: 6px; font-weight: 600; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08);
  color: #fff; font-family: 'Nunito Sans', sans-serif; font-size: 14px;
  outline: none; transition: border-color .2s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent2); }
.form-group select option { background: var(--dark); }
.form-group textarea { height: 110px; resize: vertical; }
.form-submit { width: 100%; padding: 14px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-family: 'Rajdhani', sans-serif; font-size: 16px; font-weight: 700; cursor: pointer; letter-spacing: 0.5px; transition: background .2s, transform .2s; }
.form-submit:hover { background: #c9431a; transform: translateY(-2px); }
.form-success { background: rgba(26,92,58,0.25); border: 1px solid rgba(26,92,58,0.6); color: #c9f7da; padding: 14px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; font-weight: 600; }
.form-error { background: rgba(157,30,30,0.25); border: 1px solid rgba(157,30,30,0.6); color: #ffd9d9; padding: 14px 16px; border-radius: 8px; margin-bottom: 18px; font-size: 14px; font-weight: 600; }

/* ========== HOURS STRIP ========== */
.hours-strip { background: var(--accent2); padding: 20px 0; }
.hours-inner { max-width: 1200px; margin: auto; padding: 0 20px; display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; }
.hour-item { display: flex; align-items: center; gap: 10px; color: var(--dark); font-weight: 700; font-family: 'Rajdhani', sans-serif; font-size: 17px; }
.hour-item span { font-size: 22px; }

/* ========== FOOTER ========== */
footer.site-footer { background: var(--dark); color: #7a96b0; }
.footer-main { max-width: 1200px; margin: auto; padding: 60px 20px 40px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; }
.footer-brand p { font-size: 14px; line-height: 1.8; margin: 16px 0 24px; }
.footer-social { display: flex; gap: 10px; }
.social-btn { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; font-size: 16px; color: #7a96b0; text-decoration: none; transition: background .2s, color .2s; }
.social-btn:hover { background: var(--accent); color: #fff; }

.footer-col h4 { font-family: 'Rajdhani', sans-serif; color: #fff; font-size: 18px; font-weight: 600; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid rgba(255,255,255,0.07); }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #7a96b0; text-decoration: none; font-size: 14px; transition: color .2s; display: flex; align-items: center; gap: 8px; }
.footer-links a::before { content: '\203A'; color: var(--accent); font-size: 16px; }
.footer-links a:hover { color: #fff; padding-left: 4px; }

.footer-bottom { border-top: 1px solid rgba(255,255,255,0.07); padding: 20px; }
.footer-bottom-inner { max-width: 1200px; margin: auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; }
.footer-bottom a { color: var(--accent2); text-decoration: none; }

/* ========== FLOATING CTA ========== */
.float-btn {
  position: fixed; bottom: 28px; right: 28px;
  background: var(--accent); color: #fff;
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; box-shadow: 0 6px 24px rgba(232,83,29,0.5);
  text-decoration: none; z-index: 999;
  animation: pulse 2s infinite;
  transition: transform .2s;
}
.float-btn:hover { transform: scale(1.1); color: #fff; }
@keyframes pulse { 0%,100%{ box-shadow: 0 6px 24px rgba(232,83,29,0.5); } 50%{ box-shadow: 0 6px 36px rgba(232,83,29,0.8); } }

/* ========== SCROLL ANIMATION ========== */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .6s; }
.fade-up.visible { opacity: 1; transform: none; }

/* ========== GENERIC PAGE / BLOG CONTENT (non-front-page templates) ========== */
.page-content-wrap { max-width: 1200px; margin: auto; padding: 60px 20px; min-height: 40vh; }
.page-content-wrap h1.page-title { font-size: 40px; color: var(--primary); margin-bottom: 24px; }
.page-content-wrap article { margin-bottom: 40px; }
.page-content-wrap .entry-content p { margin-bottom: 16px; line-height: 1.8; color: #45525f; }
.page-content-wrap .entry-content img { border-radius: 10px; margin: 16px 0; }
.page-content-wrap .entry-meta { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.page-content-wrap .pagination { display: flex; gap: 10px; margin-top: 30px; }
.page-content-wrap .pagination a, .page-content-wrap .pagination span { padding: 8px 14px; border: 1px solid var(--border); border-radius: 6px; text-decoration: none; color: var(--primary); font-family: 'Rajdhani', sans-serif; font-weight: 600; }
.page-content-wrap .pagination .current { background: var(--accent); color: #fff; border-color: var(--accent); }
.comment-respond input, .comment-respond textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 12px; font-family: inherit; }
.comment-respond button { background: var(--accent); color: #fff; border: none; padding: 12px 24px; border-radius: 8px; font-family: 'Rajdhani', sans-serif; font-weight: 700; cursor: pointer; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: #fff; padding: 10px 16px; z-index: 10000; }
.skip-link:focus { left: 10px; top: 10px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-cards { display: none; }
  .about-grid, .why-grid, .cta-inner { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  nav.main-nav { display: none; }
  .hamburger { display: flex; }
  .about-badge { right: 0; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 36px; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .section-title { font-size: 30px; }
  .why-certs { grid-template-columns: 1fr; }
  .about-features { grid-template-columns: 1fr; }
  .tb-right { gap: 10px; }
}
