/* ========================================
   Elephant Oil & Gas - Main Stylesheet
   ======================================== */

/* Local Font Loading */
@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-LightItalic.ttf') format('truetype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

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

html {
  font-size: 16px;
  line-height: 24px;
  scroll-behavior: smooth;
  background: #FFF;
}

body {
  min-height: 100%;
  height: auto;
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 24px;
  color: #333;
  background-color: #f5f1e9;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

strong, b {
  font-weight: 900;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  margin: 0 0 0.5rem 0;
}

h1 {
  font-size: 2rem;
  line-height: 2rem;
  color: #0e2a35;
}

h2 {
  font-size: 1.5rem;
  line-height: 1.5rem;
  text-transform: uppercase;
  color: #0e2a35;
}

/* ========================================
   Header / Navigation
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: transparent;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(14, 42, 53, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.site-header .logo {
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.site-header .logo img {
  width: 8rem;
  height: auto;
  padding: 1rem 0 1rem 1rem;
  transition: all 0.3s ease;
}

.site-header.scrolled .logo img {
  width: 4rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav a {
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  padding: 0.75rem 0.5rem;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}

.main-nav a:hover {
  color: #e5dbc9;
}

.main-nav a.active {
  color: #c6b08f;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

/* ========================================
   Hero Banner (Home page)
   ======================================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 60rem;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
}

.hero-content {
  position: absolute;
  top: 15rem;
  left: 0;
  right: 0;
  z-index: 2;
  max-width: 84rem;
  padding: 0 2rem;
  margin: 0 auto;
  color: #fff;
  width: 100%;
}

.hero-content h1 {
  font-size: 2rem;
  font-weight: 900;
  line-height: 2rem;
  margin-bottom: 1.5rem;
  color: #FFF;
}

.hero-content p {
  font-size: 1.2rem;
  line-height: 1.75rem;
  margin-bottom: 1.5rem;
  color: #FFF;
  text-shadow: 0px 0px 50px #555;
  max-width: 48rem;
}

.btn-learn-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  background: none;
  cursor: pointer;
  transition: color 0.3s;
}

.btn-learn-more::before {
  content: '';
  display: inline-block;
  width: 2rem;
  height: 0.6rem;
  background: #f0e7cc;
}

.btn-learn-more:hover {
  color: #f0e7cc;
}

/* ========================================
   Page Hero (Interior pages)
   ======================================== */
.page-hero {
  position: relative;
  width: 100%;
  height: 28vw;
  min-height: 20rem;
  max-height: 40rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: 0;
  border-bottom: 12px solid #FFF;
}

.page-hero .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.1), rgba(0,0,0,0.7));
  z-index: 1;
}

.page-hero h1 {
  position: absolute;
  bottom: 3rem;
  left: 0;
  right: 0;
  z-index: 2;
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  padding: 0 2rem;
  max-width: 84rem;
  width: 100%;
  margin: 0 auto;
}

/* ========================================
   Content Sections
   ======================================== */
.content-section {
  background: #f5f1e9;
  padding: 4rem 2rem;
  max-width: 84rem;
  margin: 0 auto;
}

.content-section p {
  margin-bottom: 1rem;
  line-height: 24px;
  color: #333;
  font-size: 1rem;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.content-section a {
  color: #0e2a35;
  text-decoration: none;
  font-weight: 700;
}

.content-section a:hover {
  color: #c6b08f;
}

/* Content with image (float layout like original) */
.content-with-image .image-content {
  float: right;
  margin: 0.5rem 0 1rem 2rem;
  max-width: 200px;
}

.content-with-image .image-content img {
  width: 100%;
}

.content-with-image::after {
  content: '';
  display: table;
  clear: both;
}

/* ========================================
   Timeline (History page)
   ======================================== */
.timeline {
  position: relative;
  max-width: 84rem;
  margin: 0 auto;
  padding: 2rem 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  border-left: 1px solid #0e2a35;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 2rem;
  margin-bottom: 2rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  padding-right: 2rem;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
  padding-left: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 24px;
  width: 1rem;
  height: 1rem;
  background: #c6b08f;
  border: 1px solid #0e2a35;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd)::before {
  right: -0.5rem;
}

.timeline-item:nth-child(even)::before {
  left: -0.5rem;
}

.timeline-date {
  color: #c6b08f;
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 900;
  color: #0e2a35;
  margin-bottom: 0.75rem;
}

.timeline-item p {
  font-size: 1rem;
  line-height: 24px;
  color: #333;
}

/* ========================================
   Management Team
   ======================================== */
.team-member {
  padding: 4rem 2rem;
  max-width: 84rem;
  margin: 0 auto;
  border-bottom: 1px solid #0e2a35;
}

.team-member:last-child {
  border-bottom: none;
}

.team-member h2 {
  font-size: 1.75rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #0e2a35;
  margin-bottom: 0.25rem;
}

.team-member .title {
  font-size: 1.1rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #0e2a35;
  margin-bottom: 1.5rem;
  letter-spacing: 0;
}

.team-member p {
  font-size: 1rem;
  line-height: 24px;
  color: #333;
  margin-bottom: 1rem;
}

.team-member p:last-child {
  margin-bottom: 0;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-info h2 {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  color: #0e2a35;
  margin-bottom: 1.25rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #333;
}

.contact-info a {
  color: #0e2a35;
  font-weight: 700;
}

.contact-info a:hover {
  color: #c6b08f;
}

.contact-info .mailing {
  margin-top: 1.5rem;
}

.contact-info .mailing strong {
  display: block;
  margin-bottom: 0.25rem;
}

/* Contact page layout with map */
.contact-layout {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.contact-layout .contact-info {
  flex: 1;
}

.contact-layout .contact-map {
  flex: 2;
}

.contact-layout .contact-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

/* ========================================
   Operations map image
   ======================================== */
.operations-map {
  float: right;
  margin: 0.25rem 0 1rem 2rem;
}

.operations-map img {
  max-width: 326px;
  width: 100%;
}

.content-section.operations-content::after {
  content: '';
  display: table;
  clear: both;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: #0e2a35;
  color: #FFF;
  padding: 2rem 0;
  border-top: 12px solid #FFF;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  line-height: 1.25rem;
  margin-bottom: 0.25rem;
  padding: 0 2rem;
  max-width: 84rem;
  margin-left: auto;
  margin-right: auto;
}

.footer-top span {
  white-space: nowrap;
}

.footer-top a {
  color: #c6b08f;
  font-weight: 400;
  transition: color 0.2s;
  text-decoration: none;
}

.footer-top a:hover {
  color: #FFF;
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.6875rem;
  line-height: 1rem;
  color: #FFF;
  padding: 1rem 2rem 0;
  max-width: 84rem;
  margin: 0 auto;
}

.footer-bottom a {
  color: #c6b08f;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: #FFF;
}

/* ========================================
   Responsive
   ======================================== */
@media (min-width: 45rem) {
  .hero-content p {
    width: 45%;
  }
}

@media (min-width: 62rem) {
  h1 {
    font-size: 3.75rem;
    line-height: 3.75rem;
  }

  .hero-content h1 {
    font-size: 3.75rem;
    line-height: 3.75rem;
  }

  .page-hero h1 {
    font-size: 3.75rem;
    line-height: 3.75rem;
  }
}

@media (min-width: 75rem) {
  .main-nav a {
    padding: 0.75rem 1rem;
  }
}

@media (min-width: 90rem) {
  .main-nav a {
    padding: 0.75rem 1.5rem;
  }

  .hero-content p {
    width: 75%;
  }
}

/* Mobile menu + layout breakpoint at 62rem (matches Drupal's 992px breakpoint) */
@media (max-width: 62rem) {
  .site-header {
    padding: 0 1rem;
  }

  .site-header .logo img {
    width: 6.5rem;
    padding: 0.5rem 0 0.5rem 0.5rem;
  }

  .site-header.scrolled .logo img {
    width: 4rem;
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0e2a35;
    flex-direction: column;
    padding: 5rem 1rem 2rem;
    gap: 0;
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .main-nav.open {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 0.5rem 0;
    font-size: 1rem;
    font-weight: 800;
    width: 100%;
    text-align: left;
    border-top: 1px solid rgba(255,255,255,0.5);
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 9999;
  }

  .hero {
    height: 100vh;
    min-height: auto;
  }

  .hero-content {
    top: 12rem;
    padding: 0 1.5rem;
    max-width: 100%;
  }

  .hero-content h1 {
    font-size: 2rem;
    line-height: 2.25rem;
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: 0.9rem;
    line-height: 1.4rem;
    width: 100%;
  }

  .page-hero {
    height: 20rem;
    min-height: 15rem;
  }

  .page-hero h1 {
    font-size: 2rem;
    line-height: 2rem;
    padding: 0 1.5rem;
    bottom: 1.5rem;
  }

  .content-section {
    padding: 2rem 1.5rem;
  }

  .team-member {
    padding: 2rem 1.5rem;
  }

  .contact-layout {
    flex-direction: column;
    align-items: center;
  }

  .contact-layout .contact-info {
    width: 100%;
  }

  .contact-layout .contact-map {
    width: 100%;
    max-width: 100%;
  }

  .contact-layout .contact-map iframe {
    display: block;
    margin: 0 auto;
  }

  .content-with-image .image-content {
    float: none;
    max-width: 200px;
    margin: 1rem auto;
  }

  .operations-map {
    float: none;
    display: block;
    margin: 1rem auto;
    text-align: center;
    max-width: 326px;
  }

  .site-footer {
    padding: 1.5rem 0;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0 1.5rem;
  }

  .footer-bottom {
    padding: 1rem 1.5rem 0;
    flex-wrap: wrap;
  }

  /* Timeline responsive - single column */
  .timeline::before {
    left: 2rem;
  }

  .timeline-item {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding: 1rem 1rem 1rem 3rem !important;
  }

  .timeline-item::before {
    left: 1.25rem !important;
    right: auto !important;
  }
}

@media (max-width: 480px) {
  .hero-content {
    top: 10rem;
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: 1.75rem;
    line-height: 1.75rem;
  }

  .hero-content p {
    font-size: 0.85rem;
    line-height: 1.3rem;
  }

  .page-hero h1 {
    font-size: 1.75rem;
    line-height: 1.75rem;
    padding: 0 1rem;
    bottom: 1rem;
  }

  .page-hero {
    height: 15rem;
    min-height: 12rem;
  }

  .content-section {
    padding: 1.5rem 1rem;
  }

  .team-member {
    padding: 1.5rem 1rem;
  }

  .team-member h2 {
    font-size: 1.25rem;
  }

  .footer-top, .footer-bottom {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .timeline {
    padding: 1rem 0.5rem;
  }
}
