/* === Homepage === */

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--navy-light) 100%);
  color: var(--white);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  background-image: url('../images/hero-refinery.jpg');
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,34,68,0.93) 0%, rgba(0,51,102,0.85) 50%, rgba(0,68,136,0.78) 100%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,153,170,0.12) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  animation: floatSlow 12s ease-in-out infinite;
}

@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 20px) scale(1.1); }
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 2.6rem;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.2;
  min-height: 3.2em;
}

.typed-text {
  color: var(--gold);
}

.cursor {
  color: var(--gold);
  animation: blink 0.8s infinite;
  font-weight: 300;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero .lead {
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero .btn {
  margin-right: 12px;
}

.hero-visual {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  min-height: 340px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px;
}

.hero-visual-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-stat-mini {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-left: 3px solid var(--teal);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  transition: background 0.2s;
}

.hero-stat-mini:hover {
  background: rgba(255,255,255,0.12);
}

.hero .img-placeholder {
  background: var(--navy-light);
  min-height: 340px;
  border-radius: var(--radius-md);
}

/* Stats Section */
.stats-section {
  padding: 60px 0;
  background-image: url('../images/hero-industrial.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,34,68,0.94) 0%, rgba(0,51,102,0.9) 100%);
}

.stats-section .container {
  position: relative;
  z-index: 1;
}

.stats-section .facts-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stats-section .fact-item {
  padding: 32px 24px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(4px);
  transition: transform 0.3s, border-color 0.3s;
}

.stats-section .fact-item:hover {
  transform: translateY(-4px);
  border-color: rgba(200,150,62,0.3);
}

.stats-section .number {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
}

.stats-section .label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.4;
}

/* Category Cards */
.category-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.4s, transform 0.4s;
  position: relative;
}

.category-card:hover {
  box-shadow: 0 14px 40px rgba(0,51,102,0.14);
  transform: translateY(-6px);
}

.category-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.category-card:hover::after {
  transform: scaleX(1);
}

.category-card .card__image {
  height: 170px;
  position: relative;
  transition: transform 0.4s;
}

.category-card:hover .card__image {
  transform: scale(1.03);
}

.category-card .card__body {
  padding: 22px;
}

.category-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.category-card p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 14px;
  line-height: 1.6;
}

/* Who We Are */
.who-we-are .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.who-we-are .img-placeholder {
  min-height: 300px;
}

/* Consulting Overview */
.consulting-overview .service-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.service-item {
  padding: 28px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  border-top: 3px solid var(--teal);
  transition: box-shadow 0.35s, transform 0.35s, border-color 0.35s;
  position: relative;
  overflow: hidden;
}

.service-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  transform: scaleX(0);
  transition: transform 0.35s;
  transform-origin: left;
}

.service-item:hover {
  box-shadow: 0 8px 28px rgba(0,51,102,0.1);
  transform: translateY(-4px);
  border-top-color: transparent;
}

.service-item:hover::after {
  transform: scaleX(1);
}

.service-item h4 {
  color: var(--navy);
  margin-bottom: 10px;
}

.service-item p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.7;
}

/* Mission Banner */
.mission-banner {
  background-image: url('../images/hero-sustainability.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.mission-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,119,136,0.92) 0%, rgba(0,51,102,0.88) 100%);
}

.mission-banner .container {
  position: relative;
  z-index: 1;
}

.mission-banner h2 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 2rem;
}

.mission-banner p {
  font-size: 1.15rem;
  max-width: 700px;
  margin: 0 auto 28px;
  opacity: 0.92;
  line-height: 1.8;
}

/* Global Partners */
.global-partners {
  background: var(--light-bg);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.partner-card {
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: box-shadow 0.35s, transform 0.35s, border-color 0.35s;
  position: relative;
  overflow: hidden;
}

.partner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--teal), var(--gold));
  transform: scaleY(0);
  transition: transform 0.35s;
  transform-origin: top;
}

.partner-card:hover {
  box-shadow: 0 10px 32px rgba(0,51,102,0.12);
  transform: translateY(-4px);
  border-color: transparent;
}

.partner-card:hover::before {
  transform: scaleY(1);
}

.partner-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.partner-icon {
  width: 56px;
  height: 56px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.1;
  flex-shrink: 0;
}

.partner-card h3 {
  font-size: 1.2rem;
  color: var(--navy);
  margin: 0;
}

.partner-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* TradingView Widget */
.market-widget {
  background: #0F0F0F;
  padding: 60px 0 0;
}

.market-widget h2 {
  color: var(--white);
  margin-bottom: 8px;
}

.market-widget .section-subtitle {
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
}

.tradingview-container {
  height: 500px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.tradingview-container .tradingview-widget-container {
  height: 100%;
  width: 100%;
}
