/* --- 1. GLOBAL VARIABLES & RESET --- */
:root {
  --primary: #0A2540;
  /* Deep Corporate Navy */
  --accent: #E1AD01;
  /* Industrial Gold */
  --light: #F4F6F8;
  --text-dark: #1A1A1A;
  --text-gray: #555;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

ul {
  list-style: none;
}

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

/* --- 2. HEADER & NAVIGATION --- */
header {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 1rem 2rem;
  transition: transform 0.2s;
  flex-wrap: wrap;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--primary);
}

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

.btn-quote {
  background: var(--primary);
  color: var(--white);
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-quote:hover {
  background: var(--accent);
  color: var(--primary);
}

/* --- 3. COMMON COMPONENTS --- */
.btn-primary {
  background: var(--accent);
  color: var(--primary);
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

/* CARDS */
.card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card-img {
  height: 200px;
  background: #ddd;
  position: relative;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.card-text {
  color: var(--text-gray);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-link:hover {
  gap: 10px;
  color: var(--accent);
}

/* SECTION HEADERS */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
}

.section-header .divider {
  height: 3px;
  width: 60px;
  background: var(--accent);
  margin: 0 auto;
}

/* --- 4. PAGE SPECIFIC STYLES (Consolidated) --- */

/* HERO (Index) */
.hero {
  background: linear-gradient(rgba(10, 37, 64, 0.8), rgba(10, 37, 64, 0.7)),
    url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
  background-size: cover;
  background-position: center;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  margin-top: 60px;
  /* Header Height offset */
}

.hero-content {
  max-width: 800px;
  padding: 0 2rem;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* TRUST BAR (Index) */
.trust-bar {
  background: var(--light);
  padding: 2rem 0;
  border-bottom: 1px solid #ddd;
}

.trust-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
  text-align: center;
}

.trust-item h3 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 0.2rem;
}

.trust-item p {
  font-size: 0.9rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* SERVICES GRID (Index) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* ABOUT SECTION (Index & About) */
.about-section {
  background: var(--primary);
  color: var(--white);
  margin-bottom: 4rem;
  border-radius: 12px;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4rem;

}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-image {
  flex: 1;
  min-width: 300px;
}

.about-image img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 20px 20px 0 var(--accent);
}

.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  margin-bottom: 1rem;
  opacity: 0.8;
}

/* PAGE HEADER (Products & Subpages) */
.page-header {
  background: var(--primary);
  color: var(--white);
  padding: 8rem 2rem 4rem;
  text-align: center;
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-header p {
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto;
}

/* PRODUCTS GRID (Products) */
.products-grid {
  max-width: 1200px;
  margin: -3rem auto 5rem;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.p-img {
  height: 250px;
  background: #ddd;
}

.p-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.p-body {
  padding: 2rem;
}

.p-cat {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.p-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-family: 'Playfair Display', serif;
}

.p-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.p-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--text-gray);
}

.p-list li::before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* CTA SECTION (Products) */
.cta-section {
  background: var(--white);
  padding: 4rem 2rem;
  text-align: center;
}

/* SPLIT SECTION (About) */
.split-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 80vh;
  padding-top: 60px;
  /* Offset for fixed header */
}

.split-img {
  flex: 1;
  min-width: 400px;
  height: 80vh;
  background: url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1000&q=80') center/cover;
}

.split-text {
  flex: 1;
  padding: 4rem;
  min-width: 300px;
}

.subtitle {
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
}

.split-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--primary);
  margin: 1rem 0 2rem;
}

.split-text p {
  margin-bottom: 1.5rem;
  color: #555;
  line-height: 1.8;
}

/* VALUES GRID (About) */
.values-grid {
  background: var(--light);
  padding: 5rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.value-box {
  background: var(--white);
  padding: 2rem;
  border-radius: 8px;
  border-top: 4px solid var(--accent);
}

.value-box h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* CONTACT CONTAINER (Contact) */
.contact-container {
  max-width: 900px;
  margin: 8rem auto 4rem;
  /* Top margin for fixed header */
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
}

.contact-info {
  background: var(--primary);
  color: var(--white);
  flex: 1;
  padding: 3rem;
  min-width: 300px;
}

.contact-info h2 {
  font-family: 'Playfair Display', serif;
  margin-bottom: 1.5rem;
}

.info-item {
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.info-item a {
  color: inherit;
  display: inline-block;
  transition: 0.3s;
}

.info-item a:hover {
  transform: scale(1.15);
  color: var(--accent);
}

.info-item i {
  color: var(--accent);
  font-size: 1.2rem;
  transition: 0.3s;
}

.contact-form {
  flex: 1.5;
  padding: 3rem;
  min-width: 300px;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

button {
  background: var(--accent);
  color: var(--primary);
  padding: 1rem 2rem;
  border: none;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
}

button:hover {
  opacity: 0.9;
}

/* --- FOOTER --- */
footer {
  background: #051424;
  color: #aaa;
  padding: 4rem 2rem 1rem;
  font-size: 0.9rem;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-col ul li {
  margin-bottom: 0.8rem;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.copyright {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 1.5rem;
}

/* --- RESPONSIVE --- */
/* Hamburger Menu */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary);
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 1rem 0;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav-links.active {
    max-height: 300px;
  }

  .nav-links a {
    display: block;
    padding: 1rem;
    text-align: center;
    width: 100%;
  }

  /* About Responsive */
  .about-container,
  .split-section {
    flex-direction: column;
  }

  .split-section {
    flex-direction: column-reverse;
    min-height: auto;
  }

  .about-image,
  .split-img {
    width: 100%;
    min-width: 100%;
  }

  .split-img {
    height: 300px;
  }

  .split-text,
  .values-grid {
    padding: 3rem 1.5rem;
  }

  .split-text h1 {
    font-size: 2.2rem;
  }

  /* Contact Responsive */
  .contact-container {
    flex-direction: column;
    width: 90%;
    margin-top: 6rem;
  }
}