/* Trishul Engineering Co — site styles */

:root {
  --navy: #0f2540;
  --navy-dark: #0a1a2e;
  --steel: #2c4a68;
  --accent: #d97a25;
  --accent-dark: #b8621a;
  --light-bg: #f4f6f8;
  --border: #dfe3e8;
  --text: #23282e;
  --text-muted: #5b6672;
  --white: #ffffff;
  --radius: 6px;
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
.site-header {
  background: var(--white);
  color: var(--text);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 2px 10px rgba(15, 37, 64, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  color: var(--navy);
}

.brand:hover { text-decoration: none; }

.brand-logo {
  height: 46px;
  width: auto;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand .brand-name {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--navy);
}

.brand .brand-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--navy);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--steel));
  color: var(--white);
  padding: 64px 0;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.hero h1 {
  font-size: 2.3rem;
  margin: 0 0 14px;
  line-height: 1.25;
}

.hero p {
  color: #d7e0ea;
  font-size: 1.05rem;
  margin: 0 0 20px;
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #e8edf3;
}

.hero-image img {
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 700;
  margin-top: 6px;
}

.btn:hover {
  background: var(--accent-dark);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
}

/* Sections */
section { padding: 56px 0; }
section.alt { background: var(--light-bg); }

.section-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.section-heading .eyebrow {
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
  font-weight: 700;
}

.section-heading h2 {
  font-size: 1.9rem;
  margin: 8px 0 10px;
  color: var(--navy);
}

.section-heading p { color: var(--text-muted); }

/* Grids */
.grid {
  display: grid;
  gap: 26px;
}

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15,37,64,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15,37,64,0.14);
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  background: #e8ecef;
}

.card-body { padding: 18px 20px; }

.card-body h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--navy);
}

.card-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.card-body ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card-body ul li { margin-bottom: 4px; }

/* Product category page */
.product-block {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}

.product-block:last-child { border-bottom: none; }

.product-block.reverse { grid-template-columns: 1fr 380px; }
.product-block.reverse .product-photo { order: 2; }

.product-photo img {
  border-radius: var(--radius);
  width: 100%;
  height: 260px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(15,37,64,0.12);
}

.product-info h2 {
  color: var(--navy);
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.product-info p { color: var(--text-muted); margin: 0 0 12px; }

.product-info ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text);
}

.product-info ul li { margin-bottom: 6px; }

.photo-credit {
  font-size: 0.72rem;
  color: #9aa5b1;
  margin-top: 6px;
  text-align: right;
}

/* Info / stats strip */
.stats-strip {
  background: var(--navy);
  color: var(--white);
  padding: 34px 0;
}

.stats-strip .grid { text-align: center; }

.stats-strip .stat-num {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
}

.stats-strip .stat-label {
  color: #c3d0de;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* About page */
.about-hero {
  background: var(--light-bg);
  padding: 48px 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.info-table th, .info-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}

.info-table th {
  width: 42%;
  color: var(--navy);
  background: var(--light-bg);
}

.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-list li {
  padding: 14px 0 14px 34px;
  position: relative;
  border-left: 2px solid var(--border);
  margin-left: 8px;
}

.timeline-list li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.contact-card {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.contact-card h3 {
  margin-top: 0;
  color: var(--navy);
}

.contact-item {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.contact-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-item h4 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 0.95rem;
}

.contact-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #c3d0de;
  padding: 40px 0 20px;
  margin-top: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 24px;
}

.footer-grid h4 {
  color: var(--white);
  margin: 0 0 14px;
  font-size: 1rem;
}

.footer-grid p, .footer-grid li { font-size: 0.9rem; color: #aebbc9; }

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

.footer-grid ul li { margin-bottom: 8px; }

.footer-grid a { color: #aebbc9; }
.footer-grid a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
  font-size: 0.8rem;
  text-align: center;
  color: #8291a1;
}

/* Responsive */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .two-col, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .product-block, .product-block.reverse {
    grid-template-columns: 1fr;
  }
  .product-block.reverse .product-photo { order: 0; }

  .header-inner { position: relative; flex-wrap: nowrap; }
  .nav-toggle { display: flex; }
  .brand-logo { height: 38px; }
  .brand .brand-name { font-size: 1.15rem; }
  .brand .brand-tagline { font-size: 0.65rem; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 10px 20px rgba(15, 37, 64, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .main-nav.open { max-height: 320px; }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 18px;
  }

  .main-nav a {
    display: block;
    padding: 12px 10px;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 560px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.7rem; }
}
