﻿/* =========================
   ROOT & RESET
========================= */
:root {
  --primary: #7a1f1f;   /* maroon */
  --secondary: #c49b3d; /* gold */
  --text: #333;
  --bg: #ffffff;
  --muted: #f6f6f6;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  padding-top: 70px; /* FIX: space for fixed navbar */
}

/* =========================
   NAVBAR
========================= */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  z-index: 1000;
}

nav img { height: 45px; }

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

nav a:hover { color: var(--primary); }

/* =========================
   HERO
========================= */
.hero {
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color:#800000;
  padding: 20px;

  background:
      linear-gradient(rgba(52,152,219,0.45), rgba(255,255,255,0.20)),
    url('https://pentagongroup.in.net/img/background.png');
  background-size: cover;
  background-position: center;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 10px;
}

.hero span { color: var(--secondary); }

.hero p { margin-bottom: 20px; }

.btn {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  padding: 10px 22px;
  border-radius: 24px;
  text-decoration: none;
  transition: 0.2s ease;
}
.btn:hover { background: #a67c2d; }

/* =========================
   SECTIONS
========================= */
section {
  padding: 60px 20px;
}

section:nth-of-type(even) {
  background: var(--muted);
}

h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 25px;
}

/* =========================
   ABOUT
========================= */
.about {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.about > div { max-width: 520px; }

.about img {
  width: 320px;
  border-radius: 10px;
}

/* =========================
   COMPANY
========================= */
.company-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.company-text { max-width: 560px; }

.company-info {
  max-width: 300px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* =========================
   CARDS (services/process/why)
========================= */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.card {
  width: 230px;
  padding: 20px;
  text-align: center;
  background: #fff;
  border-radius: 10px;
  border-top: 4px solid var(--primary);
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: 0.25s ease;
}

.card i {
  font-size: 32px;
  color: var(--secondary);
  margin-bottom: 10px;
}

.card h3 { margin-bottom: 6px; }

.card:hover {
  transform: translateY(-8px);
  border-top-color: var(--secondary);
}

/* =========================
   PROCESS GRID (alt layout)
========================= */
.process-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.step {
  width: 250px;
  padding: 18px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* =========================
   STATS
========================= */
.stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  text-align: center;
  gap: 20px;
}

.stats h2 { color: var(--primary); }

/* =========================
   STAFF TABLE
========================= */
.staff table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.staff th, .staff td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

.staff th {
  background: var(--primary);
  color: #fff;
}

/* =========================
   CONTACT
========================= */

/* MAIN CONTAINER */
/* CONTACT BACKGROUND */

/* =========================
   CONTACT (FINAL CLEAN FIX)
========================= */

.contact {
 background: linear-gradient(135deg, #7a1f1f, #a83232);
  color: #ffffff;  /* FIX */
  text-align: center;
  padding: 60px 20px;
}

/* CONTAINER FIX (MAIN ISSUE) */
.contact-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* LEFT SIDE (FORM) */
.contact-left {
  flex: 1;
  min-width: 320px;
  max-width: 500px;
}

.form-box {
  background: white;
  padding: 10px;
  border-radius: 10px;
}

.contact-left iframe {
  width: 100%;
  height: 360px;
  border: none;
  border-radius: 8px;
}

/* RIGHT SIDE (INFO) */
.contact-right {
  background: transparent;
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-align: left;
}

/* CARDS */
.contact-card {
  background: white;
  color: #333;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-card h3 {
  color: #7a1f1f;
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-card i {
  color: #c49b3d;
  margin-right: 6px;
}

/* CONTACT DETAILS */
.contact-details {
  margin-top: 10px;
  font-weight: 500;
  color: #7a1f1f;
  font-size: 15px;
}

/* MOBILE FIX */
@media(max-width:768px){
  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-right {
    text-align: center;
  }
}


.info {
  max-width: 300px;
}

.office { margin-bottom: 12px; }

/* =========================
   FOOTER
========================= */
footer {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 15px;
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    height: auto;
    padding: 10px 15px;
  }

  body { padding-top: 90px; }

  .hero h1 { font-size: 28px; }

  .about { flex-direction: column; }

  .stats { flex-direction: column; }
}
/* COMPANY CARDS */
.company-cards, .staff-cards {
text-align: center;
}

.cards {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
}

.card {
width: 250px;
padding: 25px;
background: white;
border-radius: 12px;
box-shadow: 0 8px 20px rgba(0,0,0,0.1);
transition: 0.3s;
border-top: 4px solid #7a1f1f;
}

.card i {
font-size: 35px;
color: #c49b3d;
margin-bottom: 12px;
}

.card h3 {
margin-bottom: 8px;
color: #7a1f1f;
}

    .card p {
        font-size: 14px;
        color: #555;
        margin: 3px 0;
    }

/* HOVER EFFECT (premium feel) */
.card:hover {
transform: translateY(-10px) scale(1.03);
box-shadow: 0 12px 25px rgba(0,0,0,0.15);
border-top: 4px solid #c49b3d;
}

/* MOBILE */
@media(max-width:768px){
.card {
width: 90%;
}
}