/* =============================================
   PetroTech Consultants - Global Stylesheet
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0a1628;
  --navy-mid:  #122040;
  --blue:      #1a5276;
  --accent:    #e67e22;
  --accent-lt: #f39c12;
  --steel:     #2e86ab;
  --light:     #f4f6f9;
  --mid:       #dde3ea;
  --text:      #1c2833;
  --muted:     #6c7a89;
  --white:     #ffffff;
  --radius:    6px;
  --shadow:    0 4px 20px rgba(0,0,0,0.12);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

a { color: var(--steel); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

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

/* --- Typography --- */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; }
p  { margin-bottom: 1rem; }

/* --- Layout Utilities --- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 72px 0; }
.section--dark { background: var(--navy); color: var(--white); }
.section--light { background: var(--light); }
.section--mid   { background: var(--mid); }

.section-label {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-title { margin-bottom: 16px; }
.section-title--white { color: var(--white); }
.section-intro { font-size: 1.1rem; color: var(--muted); max-width: 680px; margin-bottom: 48px; }
.section-intro--white { color: #b0bec5; }

.divider {
  width: 56px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 12px 0 32px;
}

/* --- Navigation --- */
.navbar {
  background: var(--navy);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.navbar__inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1160px; margin: 0 auto;
  height: 68px;
}
.navbar__brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--white); font-size: 1.2rem; font-weight: 700;
  letter-spacing: 0.5px;
}
.navbar__brand span { color: var(--accent); }
.brand-icon {
  width: 40px; height: 40px;
  background: var(--accent);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}

.navbar__links {
  display: flex; align-items: center; gap: 4px;
  list-style: none;
}
.navbar__links a {
  color: #cdd6e0;
  font-size: 0.9rem; font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}
.navbar__links a:hover,
.navbar__links a.active {
  background: var(--blue);
  color: var(--white);
}
.navbar__links a.active { color: var(--accent-lt); }

.navbar__toggle {
  display: none;
  background: none; border: none;
  cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.navbar__toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: all var(--transition);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--blue) 100%);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__inner { position: relative; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(230,126,34,0.15);
  border: 1px solid rgba(230,126,34,0.4);
  color: var(--accent-lt);
  padding: 6px 16px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero__title { margin-bottom: 20px; color: var(--white); }
.hero__title em { color: var(--accent-lt); font-style: normal; }
.hero__subtitle {
  font-size: 1.15rem; color: #b0bec5;
  max-width: 640px; margin-bottom: 40px;
}
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem;
  cursor: pointer; border: none;
  transition: all var(--transition);
  text-decoration: none;
}
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-lt); color: var(--white); transform: translateY(-1px); }
.btn--outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.35);
  color: var(--white);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}
.btn--secondary { background: var(--navy); color: var(--white); }
.btn--secondary:hover { background: var(--blue); color: var(--white); }

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.16); }
.card--dark {
  background: var(--navy-mid);
  color: var(--white);
}

/* --- Grid --- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --- Stats Bar --- */
.stats-bar { background: var(--accent); padding: 32px 0; }
.stats-bar .grid { align-items: center; text-align: center; }
.stat-number { font-size: 2.2rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat-label  { font-size: 0.85rem; color: rgba(255,255,255,0.85); margin-top: 4px; }

/* --- Icon Box --- */
.icon-box {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--steel), var(--blue));
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.icon-box--accent { background: linear-gradient(135deg, var(--accent), var(--accent-lt)); }
.icon-box--sm { width: 44px; height: 44px; font-size: 1.2rem; margin-bottom: 0; }

/* --- Tags / Badges --- */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.78rem; font-weight: 600;
  background: rgba(26,82,118,0.12);
  color: var(--blue);
}
.badge--accent { background: rgba(230,126,34,0.12); color: var(--accent); }

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 56px 0 48px;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute; right: -60px; top: -60px;
  width: 320px; height: 320px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}
.page-hero__label {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent-lt); margin-bottom: 10px;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p  { color: #b0bec5; max-width: 600px; }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: #7f8c8d;
  margin-bottom: 12px;
}
.breadcrumb a { color: #7f8c8d; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--accent-lt); }

/* --- Rule item (cert list) --- */
.rule-item {
  display: flex; gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--mid);
}
.rule-item:last-child { border-bottom: none; }
.rule-tag {
  background: var(--navy);
  color: var(--accent-lt);
  font-size: 0.78rem; font-weight: 700;
  padding: 4px 10px; border-radius: 4px;
  white-space: nowrap; height: fit-content;
  margin-top: 2px;
}
.rule-item p { margin: 0; color: var(--text); }

/* --- Leadership Card --- */
.leader-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.leader-card__header {
  background: linear-gradient(135deg, var(--navy), var(--blue));
  padding: 40px 36px 32px;
  display: flex; align-items: flex-start; gap: 20px;
}
.leader-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; font-weight: 800;
  color: var(--white); flex-shrink: 0;
}
.leader-card__header h3 { color: var(--white); margin-bottom: 4px; }
.leader-card__header .role { color: var(--accent-lt); font-size: 0.9rem; font-weight: 600; }
.leader-card__body { padding: 32px 36px; }
.leader-card__body p { color: var(--muted); line-height: 1.8; }

/* --- Client Logo Grid --- */
.client-chip {
  background: var(--white);
  border: 1px solid var(--mid);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 0.9rem; font-weight: 600;
  color: var(--text);
  text-align: center;
  transition: all var(--transition);
}
.client-chip:hover {
  border-color: var(--steel);
  color: var(--steel);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* --- Contact Form --- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.88rem; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--mid);
  border-radius: var(--radius);
  font-size: 0.95rem; font-family: inherit;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(46,134,171,0.15);
}
.form-group textarea { resize: vertical; min-height: 130px; }

/* --- Contact Info Block --- */
.contact-info-item {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 28px;
}
.contact-info-item .icon-box { margin-bottom: 0; flex-shrink: 0; }
.contact-info-item h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { color: var(--text); font-weight: 500; margin: 0; }

/* --- Footer --- */
footer {
  background: var(--navy);
  color: #8fa0b0;
  padding: 56px 0 0;
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer__brand { margin-bottom: 16px; }
.footer__brand-name { color: var(--white); font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.footer__brand-name span { color: var(--accent); }
.footer__tagline { font-size: 0.88rem; }
.footer__heading { color: var(--white); font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; }
.footer__links { list-style: none; }
.footer__links li { margin-bottom: 10px; }
.footer__links a { color: #8fa0b0; font-size: 0.9rem; transition: color var(--transition); }
.footer__links a:hover { color: var(--accent); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.82rem;
}
.footer__bottom a { color: var(--accent-lt); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .navbar__links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); padding: 16px; gap: 4px; }
  .navbar__links.open { display: flex; }
  .navbar__toggle { display: flex; }
  .navbar__inner { position: relative; }
  .hero { padding: 64px 0 48px; }
  .section { padding: 48px 0; }
}
