/*
Theme Name: Tula Infra
Theme URI: https://tulainfra.com
Author: Tula Infra
Author URI: https://tulainfra.com
Description: A professional, modern one-page theme built for Tula Infra — a trusted infrastructure and construction company delivering construction materials, heavy equipment solutions, excavation services, and end-to-end construction contracting.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tula-infra
Tags: one-column, custom-logo, custom-menu, featured-images, translation-ready
*/

/* =========================================================
   0. Design tokens
========================================================= */
:root {
  --tula-navy: #12162a;
  --tula-navy-2: #1b2140;
  --tula-navy-3: #262d52;
  --tula-ink: #14172a;
  --tula-muted: #5b6478;
  --tula-light: #eef1f6;
  --tula-white: #ffffff;
  --tula-pink: #ec1a5c;
  --tula-orange: #ff8a3d;
  --tula-gradient: linear-gradient(135deg, var(--tula-pink) 0%, var(--tula-orange) 100%);
  --tula-border: rgba(20, 23, 42, 0.08);
  --tula-border-light: rgba(255, 255, 255, 0.12);
  --tula-shadow: 0 20px 50px -20px rgba(18, 22, 42, 0.35);
  --tula-radius: 18px;
  --tula-radius-sm: 10px;
  /* Oswald: condensed, stamped-signage character — nods to equipment livery and site
     signage. IBM Plex Sans/Mono: engineering-documentation faces, for body copy and
     anything that reads like a measurement (stats, labels, form fields). */
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-data: "IBM Plex Mono", "Consolas", monospace;
  --container: 1180px;
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23ff8a3d' stroke-width='1.6'%3E%3Cpath d='M2 16V2h14'/%3E%3Cpath d='M84 2h14v14'/%3E%3Cpath d='M98 84v14H84'/%3E%3Cpath d='M16 98H2V84'/%3E%3C/g%3E%3C/svg%3E");
}

/* =========================================================
   1. Reset & base
========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#home,
#about,
#services,
#why-us,
#contact {
  scroll-margin-top: 84px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--tula-ink);
  background: var(--tula-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  color: var(--tula-ink);
  line-height: 1.2;
  margin: 0 0 16px;
  font-weight: 700;
}

p {
  margin: 0 0 16px;
  color: var(--tula-muted);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* =========================================================
   2. Shared elements
========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--tula-pink);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: none;
  background-image: var(--mark);
  background-size: 100% 100%;
  display: inline-block;
}

.eyebrow-light {
  color: var(--tula-orange);
}

.eyebrow-light::before {
  filter: brightness(1.3);
}

/* Corner survey-marks — a quiet nod to the site-surveying equipment in the source
   photography, used to frame the two most "look here" visual elements. */
.corner-frame {
  position: relative;
}

.corner-frame::after {
  content: "";
  position: absolute;
  inset: -14px;
  background-image: var(--mark);
  background-size: 100% 100%;
  pointer-events: none;
}

.text-gradient {
  background: var(--tula-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head {
  max-width: 680px;
  margin: 0 0 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
}

.on-dark h2,
.on-dark h3,
.on-dark h4 {
  color: var(--tula-white);
}

.on-dark p {
  color: rgba(255, 255, 255, 0.72);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}

.btn-gradient {
  background: var(--tula-gradient);
  color: var(--tula-white);
  box-shadow: 0 14px 30px -10px rgba(236, 26, 92, 0.55);
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -10px rgba(236, 26, 92, 0.65);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--tula-white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn-dark {
  background: var(--tula-navy);
  color: var(--tula-white);
}

.btn-dark:hover {
  background: var(--tula-navy-2);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 16px;
}

.icon-badge {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tula-gradient);
  color: var(--tula-white);
}

.icon-badge svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
}

/* The source photography is already cut out with true alpha transparency, so it
   blends onto any background color directly — no masking needed. A soft radial
   glow behind it keeps the composition from feeling flat. */
.blend-media {
  position: relative;
  border-radius: var(--tula-radius);
  overflow: hidden;
  background: var(--tula-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.blend-media::before {
  content: "";
  position: absolute;
  inset: 8%;
  background: radial-gradient(ellipse at center, rgba(255, 138, 61, 0.28) 0%, transparent 70%);
  filter: blur(30px);
}

.blend-media img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* =========================================================
   3. Header
========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(18, 22, 42, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tula-border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
}

.site-logo img {
  height: 44px;
  width: auto;
}

.site-nav ul {
  display: flex;
  gap: 32px;
}

.site-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease;
  position: relative;
}

.site-nav a:hover {
  color: var(--tula-white);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 22px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  color: var(--tula-white);
}

.header-phone svg {
  width: 18px;
  height: 18px;
  stroke: var(--tula-orange);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--tula-white);
  border-radius: 2px;
}

/* =========================================================
   4. Hero
========================================================= */
.hero {
  position: relative;
  background: radial-gradient(ellipse at 20% 0%, #232a4d 0%, var(--tula-navy) 55%);
  overflow: hidden;
  padding: 120px 0 100px;
}

/* structure.png is a true cutout (real alpha transparency), so it's anchored to
   the right of the hero rather than stretched full-bleed — no fade mask needed,
   and the headline column on the left stays clear of it entirely. */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
}

.hero-media::before {
  content: "";
  position: absolute;
  right: 4%;
  bottom: 8%;
  width: 46%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(255, 138, 61, 0.22) 0%, transparent 72%);
  filter: blur(40px);
}

.hero-media img {
  position: relative;
  width: 54%;
  max-width: 640px;
  height: 88%;
  object-fit: contain;
  object-position: bottom right;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 22, 42, 0.2) 0%, var(--tula-navy) 92%);
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero h1 {
  color: var(--tula-white);
  font-size: clamp(34px, 5vw, 56px);
  margin-bottom: 22px;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  max-width: 600px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  border-top: 1px solid var(--tula-border-light);
  padding-top: 30px;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stats strong {
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: 28px;
  font-weight: 600;
  color: var(--tula-white);
}

.hero-stats span {
  font-family: var(--font-data);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =========================================================
   5. About
========================================================= */
.about {
  padding: 110px 0;
  background: var(--tula-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.about-media {
  aspect-ratio: 4 / 4.4;
}

.check-list {
  margin: 26px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--tula-ink);
  font-weight: 500;
}

.check-list svg {
  width: 22px;
  height: 22px;
  min-width: 22px;
  stroke: var(--tula-white);
  background: var(--tula-gradient);
  border-radius: 50%;
  padding: 4px;
  margin-top: 2px;
}

/* =========================================================
   6. Services
========================================================= */
.services {
  padding: 110px 0;
  background: var(--tula-navy);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--tula-navy-2);
  border: 1px solid var(--tula-border-light);
  border-radius: var(--tula-radius);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 138, 61, 0.5);
}

.service-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--tula-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.service-media::before {
  content: "";
  position: absolute;
  inset: 10%;
  background: radial-gradient(ellipse at center, rgba(255, 138, 61, 0.24) 0%, transparent 70%);
  filter: blur(24px);
}

.service-media img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.service-body {
  padding: 28px 26px 32px;
}

.service-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 138, 61, 0.14);
  margin-bottom: 18px;
  margin-top: -60px;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 138, 61, 0.35);
}

.service-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--tula-orange);
}

.service-body h3 {
  color: var(--tula-white);
  font-size: 19px;
  margin-bottom: 10px;
}

.service-body p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14.5px;
  margin-bottom: 0;
}

/* =========================================================
   7. Why us
========================================================= */
.why-us {
  padding: 110px 0;
  background: var(--tula-light);
}

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

.why-tile {
  background: var(--tula-white);
  border: 1px solid var(--tula-border);
  border-radius: var(--tula-radius);
  padding: 32px 28px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.why-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--tula-shadow);
}

.why-tile h3 {
  font-size: 18px;
  margin: 18px 0 10px;
}

.why-tile p {
  font-size: 14.5px;
  margin-bottom: 0;
}

/* =========================================================
   8. Stats band
========================================================= */
.stats-band {
  background: var(--tula-gradient);
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stats-grid strong {
  display: block;
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: 38px;
  font-weight: 600;
  color: var(--tula-white);
}

.stats-grid span {
  font-family: var(--font-data);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* =========================================================
   9. Sectors
========================================================= */
.sectors {
  padding: 110px 0;
  background: var(--tula-white);
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.sector-card {
  text-align: center;
  padding: 44px 28px;
  border-radius: var(--tula-radius);
  border: 1px solid var(--tula-border);
  background: var(--tula-light);
}

.sector-card .icon-badge {
  margin: 0 auto 22px;
  background: var(--tula-navy);
}

.sector-card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.sector-card p {
  font-size: 14.5px;
  margin-bottom: 0;
}

/* =========================================================
   10. CTA banner
========================================================= */
.cta-banner {
  position: relative;
  background: var(--tula-navy);
  padding: 90px 0;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: -40% -10%;
  background: var(--tula-gradient);
  opacity: 0.18;
  filter: blur(60px);
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.cta-inner h2 {
  color: var(--tula-white);
  font-size: clamp(26px, 3.4vw, 38px);
}

.cta-inner p {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 32px;
}

/* =========================================================
   11. Contact
========================================================= */
.contact {
  padding: 110px 0;
  background: var(--tula-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 28px 0 30px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-list .icon-badge {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border-radius: 13px;
  background: var(--tula-navy);
}

.contact-list .icon-badge svg {
  width: 20px;
  height: 20px;
}

.contact-list strong {
  display: block;
  font-family: var(--font-head);
  font-size: 15px;
  margin-bottom: 2px;
}

.contact-list span {
  color: var(--tula-muted);
  font-size: 14.5px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tula-navy);
  color: var(--tula-white);
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-links a:hover {
  background: var(--tula-pink);
  transform: translateY(-3px);
}

.social-links svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.contact-form {
  background: var(--tula-white);
  border-radius: var(--tula-radius);
  padding: 40px;
  box-shadow: var(--tula-shadow);
  border: 1px solid var(--tula-border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--tula-ink);
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--tula-border);
  background: var(--tula-light);
  border-radius: var(--tula-radius-sm);
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--tula-ink);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--tula-pink);
  background: var(--tula-white);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

.form-note {
  font-size: 13px;
  color: var(--tula-muted);
  margin: 14px 0 0;
}

.form-alert {
  border-radius: var(--tula-radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 20px;
  font-weight: 500;
}

.form-alert.success {
  background: rgba(34, 197, 94, 0.12);
  color: #16803d;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.form-alert.error {
  background: rgba(236, 26, 92, 0.1);
  color: var(--tula-pink);
  border: 1px solid rgba(236, 26, 92, 0.3);
}

/* =========================================================
   12. Footer
========================================================= */
.site-footer {
  background: #0d1022;
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--tula-border-light);
}

.footer-logo img {
  height: 40px;
  margin-bottom: 18px;
}

.footer-grid p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
}

.footer-col h4 {
  color: var(--tula-white);
  font-size: 15px;
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14.5px;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--tula-orange);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 26px 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

/* =========================================================
   13. Reveal animation
========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   14. Responsive
========================================================= */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sectors-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .site-nav,
  .header-phone {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header.nav-open .site-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--tula-navy);
    padding: 20px 24px 26px;
    border-bottom: 1px solid var(--tula-border-light);
  }

  .site-header.nav-open .site-nav ul {
    flex-direction: column;
    gap: 18px;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .about-media {
    order: -1;
    aspect-ratio: 16 / 10;
  }

  .hero-media img {
    width: 68%;
    opacity: 0.35;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 100px 0 70px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-stats {
    gap: 24px;
  }

  .services-grid,
  .why-grid,
  .sectors-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
