/*
Theme Name: Ozone Petroleum Consulting
Theme URI:  https://example.com/ozone-theme
Author: Ozone Petroleum Consulting
Author URI: https://example.com
Description: A clean, corporate WordPress theme built for Ozone Petroleum Consulting Co. Includes page templates for Home, About, Services, Team, ADR and Contact.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: ozone-pcc
*/

/* =====================================
   OZONE PETROLEUM CONSULTING CO. THEME
   CSS Refinement – Colors, Typography, Buttons & Animations
   ===================================== */

/* Font Choices */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Roboto:wght@300;400;700&display=swap');

:root {
  --ozone-green: #009E60; /* extracted from logo */
  --ozone-gray: #2F3C43;
  --ozone-light-gray: #f5f7f8;
  --ozone-blue-gray: #4a6072;
  --ozone-white: #ffffff;
  --ozone-font-primary: 'Inter', sans-serif;
  --ozone-font-secondary: 'Roboto', sans-serif;
  --transition-base: all 0.4s ease;
}

body {
  font-family: var(--ozone-font-primary);
  background-color: var(--ozone-white);
  color: var(--ozone-gray);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  font-size: 16px;
  scroll-behavior: smooth;
}

a {
  color: var(--ozone-green);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--ozone-blue-gray);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ozone-font-secondary);
  margin: 0 0 1rem 0;
  color: var(--ozone-blue-gray);
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }

p, li {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--ozone-gray);
}

strong {
  color: var(--ozone-blue-gray);
  font-weight: 600;
}

blockquote {
  font-style: italic;
  border-left: 4px solid var(--ozone-green);
  padding-left: 1rem;
  color: var(--ozone-blue-gray);
  margin: 1.5rem 0;
}

/* Header */
header.site-header {
  background-color: var(--ozone-white);
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  padding: 1rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

header.scrolled {
  background-color: rgba(255,255,255,0.95);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

header .logo img { height: 60px; transition: transform 0.3s ease; }
header .logo img:hover { transform: scale(1.05); }

nav.primary-menu a {
  color: var(--ozone-gray);
  font-weight: 500;
  margin: 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
}

nav.primary-menu a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: var(--ozone-green);
  transition: width 0.3s ease;
}

nav.primary-menu a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  background: linear-gradient(90deg, var(--ozone-green) 0%, var(--ozone-blue-gray) 100%);
  color: var(--ozone-white);
  padding: 6rem 2rem;
  text-align: center;
  overflow: hidden;
}

.hero h1 { font-size: 2.8rem; font-weight: 700; animation: fadeUp 1.2s ease forwards; }
.hero p { font-size: 1.1rem; margin-top: 1rem; opacity: 0.9; animation: fadeUp 1.6s ease forwards; }

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-base);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--ozone-green);
  color: var(--ozone-white);
  border: none;
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.btn-primary:hover {
  background-color: var(--ozone-blue-gray);
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--ozone-green);
  color: var(--ozone-green);
}

.btn-outline:hover {
  background-color: var(--ozone-green);
  color: var(--ozone-white);
  transform: translateY(-3px);
}

/* Section Titles */
.section-title {
  text-align: center;
  margin: 3rem auto 2rem;
  position: relative;
  animation: fadeUp 1s ease forwards;
}

.section-title h2 {
  font-size: 2rem;
  color: var(--ozone-blue-gray);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--ozone-green);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Cards / Boxes */
.card {
  background-color: var(--ozone-white);
  border: 1px solid #e2e6e8;
  border-radius: 10px;
  padding: 2rem;
  transition: var(--transition-base);
  opacity: 0;
  transform: translateY(20px);
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.card h3 { color: var(--ozone-green); margin-bottom: 0.5rem; }
.card p { color: var(--ozone-gray); }

/* Contact Section */
.contact-section {
  background-color: var(--ozone-light-gray);
  padding: 4rem 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-details h3 { color: var(--ozone-blue-gray); }
.contact-details a { color: var(--ozone-green); font-weight: 600; }

/* Footer */
footer.site-footer {
  background-color: var(--ozone-blue-gray);
  color: var(--ozone-white);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.95rem;
  animation: fadeUp 1s ease forwards;
}

footer.site-footer a { color: var(--ozone-white); opacity: 0.8; }
footer.site-footer a:hover { color: var(--ozone-green); opacity: 1; }

/* Scroll Animation (JavaScript Hook) */
.fade-in-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.is-visible {
  opacity: 1;
  transform: none;
}

/* Hero Animations - Logo, Title, Typewriter, CTA */
.hero-logo {
  opacity: 0;
  transform: translateY(20px);
  animation: logoFadeUp 0.9s ease-out forwards;
}

@keyframes logoFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  opacity: 0;
  transform: translateY(20px);
  animation: titleFadeUp 0.9s ease-out 0.5s forwards;
}

@keyframes titleFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typewriter Effect */
.hero-tagline {
  display: inline-block;
  border-right: 3px solid #009E60;
  white-space: nowrap;
  overflow: hidden;
  font-size: 1.3rem;
  width: 0;
  animation: typing 1.25s steps(40, end) 0.9s forwards, blink 0.55s step-end infinite;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

@keyframes blink {
  50% { border-color: transparent }
}

/* CTA Animation */
.hero-cta {
  opacity: 0;
  transform: translateY(10px);
  animation: ctaFadeUp 0.8s ease-out 2s forwards;
}

@keyframes ctaFadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  header.site-header { flex-direction: column; }
  nav.primary-menu a { display: block; margin: 0.5rem 0; }
  .hero h1 { font-size: 2rem; }
  .btn { padding: 0.6rem 1.25rem; font-size: 0.9rem; }
}
/* ===== ABOUT PAGE ===== */
#about-page .hero {
  background: linear-gradient(rgba(0, 60, 30, 0.5), rgba(0, 60, 30, 0.5)),
              url('https://ozonepcc.com/wp-content/uploads/2025/10/xO7nvCJN-oil-refinery-5.jpg') center/cover no-repeat;
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
}
#about-page .hero h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
#about-page .hero a {
  background: #fff;
  color: #046A38;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-weight: bold;
  transition: all 0.3s ease;
}
#about-page .hero a:hover {
  background: #046A38;
  color: #fff;
}

#about-page .story {
  background-color: #f9fdf9;
  padding: 5rem 10%;
  text-align: center;
}
#about-page .story h2 {
  color: #046A38;
}

#about-page .founder {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 5rem 10%;
  gap: 2rem;
  background-color: #fff;
}
#about-page .founder img {
  flex: 1 1 300px;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}
#about-page .founder .text {
  flex: 2 1 400px;
}

#about-page .commitment {
  background-color: #f0fdf2;
  padding: 5rem 10%;
  text-align: center;
}
#about-page .ozone-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
#about-page .ozone-card {
  background: #ffffff;
  border: 2px solid #046A38;
  border-radius: 12px;
  width: 280px;
  padding: 2rem;
  transition: all 0.3s ease;
}
#about-page .ozone-card:hover {
  background: #046A38;
  color: #fff;
  transform: translateY(-5px);
}

#about-page .cta {
  background: linear-gradient(rgba(0, 60, 30, 0.6), rgba(0, 60, 30, 0.6)),
              url('https://ozonepcc.com/wp-content/uploads/2025/10/xO7nvCJN-oil-refinery-5.jpg') center/cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 5rem 2rem;
}
#about-page .cta a {
  background: #fff;
  color: #046A38;
  padding: 0.8rem 1.6rem;
  border-radius: 40px;
  font-weight: bold;
  transition: all 0.3s ease;
}
#about-page .cta a:hover {
  background: #046A38;
  color: #fff;
}

@media (max-width: 768px) {
  #about-page .founder {
    flex-direction: column;
  }
  #about-page .founder img {
    margin-bottom: 2rem;
  }
  #about-page .ozone-card {
    width: 90%;
  }
}