/* ============================= */
/* ROOT / GLOBAL */
/* ============================= */

:root {
  --blue: #0f3d91;
  --blue-dark: #0b2f6f;
  --text: #111827;
  --muted: #4b5563;
  --line: #e5e7eb;
  --bg-alt: #f7f8fa;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
}

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

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================= */
/* TOP NAVIGATION */
/* ============================= */

.navbar {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  padding: 12px 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 30px;
  font-weight: 800;
  color: var(--blue);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  text-decoration: none;
  color: #111827;
  font-weight: 600;
  font-size: 15px;
  padding: 8px 4px;
  display: inline-block;
}

.nav-links a:hover {
  color: var(--blue);
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 14px;
  font-weight: 500;
}

.dropdown-menu li a:hover {
  background: #f3f4f6;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

/* ============================= */
/* HERO */
/* ============================= */

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(5, 10, 20, 0.58), rgba(5, 10, 20, 0.58)),
    url("images/valve-inventory-hero.jpg") center center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero-overlay {
  width: 100%;
}

.hero-content {
  padding-top: 70px;
  padding-bottom: 70px;
  color: #ffffff;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: 64px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  max-width: 650px;
}

.hero-subtitle {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.96);
  max-width: 700px;
}

.hero-meta {
  margin: 0 0 10px;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 700px;
}

.hero-cert {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.86);
  max-width: 760px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: 0.2s ease;
}

.btn-primary {
  background: var(--blue);
  color: #ffffff;
  border: 1px solid var(--blue);
}

.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ============================= */
/* CREDIBILITY STRIP */
/* ============================= */

.credibility-strip {
  background: #f3f4f6;
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  text-align: center;
}

.credibility-strip .wrap {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
}

/* ============================= */
/* SECTIONS */
/* ============================= */

.about,
.quote {
  padding: 64px 0;
}

.about h2,
.quote h2 {
  margin: 0 0 16px;
  font-size: 36px;
  line-height: 1.2;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.about p,
.quote p {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: #374151;
  max-width: 900px;
}

/* ============================= */
/* CRYOGENIC PORTFOLIO SECTION */
/* ============================= */

.portfolio-section {
  padding: 72px 0;
  background: #ffffff;
}

.portfolio-header {
  max-width: 760px;
  margin-bottom: 32px;
}

.portfolio-header h2 {
  margin: 0 0 14px;
  font-size: 42px;
  line-height: 1.15;
  color: var(--blue);
  letter-spacing: -0.02em;
}

.portfolio-header p {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: #4b5563;
}

.portfolio-grid {
  display: grid;
  gap: 24px;
  align-items: stretch;
}

.portfolio-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portfolio-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portfolio-card {
  display: block;
  text-decoration: none;
  color: inherit;
}

.portfolio-card-inner {
  height: 100%;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.portfolio-card-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.portfolio-card-copy {
  padding: 28px 24px 24px;
}

.portfolio-card-copy h3 {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
  color: #111827;
}

.portfolio-card-copy p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.75;
  color: #4b5563;
}

.portfolio-link {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue);
}

.portfolio-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
  padding: 24px;
  background: #eef2f7;
}

.portfolio-card-image img,
.portfolio-valve-img {
  width: auto;
  height: auto;
  max-width: 82%;
  max-height: 230px;
  object-fit: contain;
  transition: transform 0.2s ease;
}

/* Ball valve specific sizing fix */
.portfolio-ball-img {
  max-width: 96%;
  max-height: 270px;
}

.portfolio-card-inner:hover .portfolio-card-image img,
.portfolio-card-inner:hover .portfolio-valve-img {
  transform: scale(1.05);
}

.portfolio-image-top {
  border-bottom: 1px solid #e5e7eb;
}

@media (max-width: 1100px) {
  .portfolio-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 768px) {
  .portfolio-section {
    padding: 48px 0;
  }

  .portfolio-header h2 {
    font-size: 30px;
  }

  .portfolio-grid-3,
  .portfolio-grid-4 {
    grid-template-columns: 1fr;
  }

  .portfolio-card-image {
    min-height: 300px;
    padding: 20px;
  }

  .portfolio-card-image img,
  .portfolio-valve-img {
    max-width: 84%;
    max-height: 210px;
  }

  .portfolio-ball-img {
    max-width: 96%;
    max-height: 245px;
  }
}

/* ============================= */
/* QUOTE SECTION */
/* ============================= */

.quote {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
}

.quote-form {
  margin-top: 24px;
  max-width: 900px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: #ffffff;
}

.quote-form textarea {
  min-height: 160px;
  resize: vertical;
}

.quote-form button {
  width: 100%;
  border: none;
  background: var(--blue);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  padding: 14px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.quote-form button:hover {
  background: var(--blue-dark);
}

/* ============================= */
/* FOOTER */
/* ============================= */

.footer {
  background: #0f172a;
  color: #ffffff;
  padding: 26px 0;
  text-align: center;
  border-top: 1px solid #334155;
}

.footer p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #f8fafc;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media (max-width: 1100px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }

  .portfolio-card-featured {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) {
  .hero h1 {
    font-size: 52px;
  }

  .hero-subtitle {
    font-size: 21px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 12px 18px;
  }

  .nav-container {
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .dropdown-menu {
    position: static;
    min-width: 180px;
    margin-top: 6px;
    box-shadow: none;
  }

  .wrap {
    padding: 0 18px;
  }

  .hero {
    min-height: 430px;
  }

  .hero-content {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-meta,
  .hero-cert {
    font-size: 15px;
  }

  .about,
  .portfolio-section,
  .quote {
    padding: 48px 0;
  }

  .about h2,
  .quote h2,
  .portfolio-header h2 {
    font-size: 30px;
  }

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

  .portfolio-card-featured {
    grid-column: auto;
  }

  .portfolio-card-featured .portfolio-card-inner {
    min-height: auto;
  }
}

/* ============================= */
/* PROFESSIONAL COLORED CARDS */
/* ============================= */

.highlight-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 28px;
}

.highlight-card {
  border-radius: 14px;
  padding: 26px;
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
}

.highlight-card h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.highlight-card ul {
  margin: 0;
  padding-left: 18px;
}

.highlight-card li {
  margin-bottom: 8px;
  font-size: 15px;
}

/* COLOR THEMES */

.card-blue {
  background: linear-gradient(135deg, #0f3d66 0%, #1e5a8a 100%);
}

.card-teal {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
}

.card-green {
  background: linear-gradient(135deg, #166534 0%, #22c55e 100%);
}
