/*
Theme Name: Pinja Oil & Gas
Theme URI: https://pinjaoil.dk
Author: Pinja Oil & Gas ApS
Author URI: https://pinjaoil.dk
Description: Moderne, hurtigt og PHP 8.5-kompatibelt erhvervstema til Pinja Oil & Gas ApS.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GPL v2 or later
Text Domain: pinjaoil
*/

:root {
  --po-navy: #001538;
  --po-navy-light: #0a2558;
  --po-blue: #1e56a0;
  --po-gold: #c59b27;
  --po-bg-light: #f4f7fb;
  --po-text: #2c3e50;
  --po-muted: #5a6a7e;
  --po-border: #e2e8f0;
  --po-white: #ffffff;
  --po-max-width: 1200px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--po-text);
  background-color: var(--po-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--po-navy);
  font-family: Georgia, "Merriweather", "Times New Roman", serif;
  line-height: 1.3;
  margin-top: 0;
  margin-bottom: 0.75rem;
}

a {
  color: var(--po-blue);
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

a:hover {
  color: var(--po-navy);
}

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

.po-container {
  max-width: var(--po-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Topbar */
.po-topbar {
  background-color: var(--po-navy);
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  padding: 10px 0;
}

.po-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.po-topbar-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.po-topbar a {
  color: rgba(255, 255, 255, 0.9);
}

.po-topbar a:hover {
  color: var(--po-gold);
}

/* Header & Navigation */
.po-header {
  background: var(--po-white);
  border-bottom: 1px solid var(--po-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 21, 56, 0.05);
}

.po-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 88px;
  gap: 20px;
}

.po-logo img {
  max-height: 68px;
  width: auto;
}

.po-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  align-items: center;
}

.po-nav a {
  color: var(--po-navy);
  font-weight: 600;
  font-size: 16px;
  padding: 8px 4px;
  border-bottom: 2px solid transparent;
}

.po-nav a:hover,
.po-nav .current-menu-item > a,
.po-nav .current_page_item > a {
  color: var(--po-blue);
  border-bottom-color: var(--po-gold);
}

.po-menu-toggle {
  display: none;
  background: var(--po-navy);
  color: var(--po-white);
  border: none;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 15px;
  cursor: pointer;
}

/* Page Header Banner */
.po-page-banner {
  background: linear-gradient(135deg, rgba(0, 21, 56, 0.88), rgba(10, 37, 88, 0.82)),
              url('https://pinjaoil.dk/wp-content/uploads/2019/05/topBanner4.jpg') center/cover no-repeat;
  color: var(--po-white);
  padding: 64px 0;
  text-align: center;
}

.po-page-banner h1 {
  color: var(--po-white);
  font-size: 2.4rem;
  margin: 0;
}

/* Main Content Layout */
.po-main {
  padding: 50px 0 70px;
}

.po-main-home {
  padding: 0 0 70px;
}

/* Homepage Hero */
.po-hero {
  position: relative;
  background: linear-gradient(90deg, rgba(0, 21, 56, 0.85) 0%, rgba(0, 21, 56, 0.55) 60%, rgba(0, 21, 56, 0.3) 100%),
              url('https://pinjaoil.dk/wp-content/uploads/2019/03/homeSlider1.jpg') center/cover no-repeat;
  color: var(--po-white);
  padding: 110px 0;
}

.po-hero-content {
  max-width: 720px;
}

.po-hero h1 {
  color: var(--po-white);
  font-size: 2.6rem;
  margin-bottom: 18px;
}

.po-hero p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 28px;
}

.po-btn {
  display: inline-block;
  background-color: var(--po-gold);
  color: var(--po-navy) !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.2s ease;
}

.po-btn:hover {
  background-color: #d8ad32;
  transform: translateY(-1px);
}

.po-btn-outline {
  background-color: transparent;
  color: var(--po-white) !important;
  border: 2px solid var(--po-white);
  margin-left: 12px;
}

.po-btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Sections & Grids */
.po-section {
  padding: 70px 0;
}

.po-section-light {
  background-color: var(--po-bg-light);
}

.po-section-navy {
  background: linear-gradient(135deg, rgba(0, 21, 56, 0.94), rgba(10, 37, 88, 0.92)),
              url('https://pinjaoil.dk/wp-content/uploads/2018/08/bg2.jpg') center/cover no-repeat;
  color: var(--po-white);
}

.po-section-navy h2,
.po-section-navy h3,
.po-section-navy p {
  color: var(--po-white);
}

.po-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: start;
}

.po-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Info Boxes */
.po-info-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.po-info-box {
  background: var(--po-white);
  border: 1px solid var(--po-border);
  border-left: 4px solid var(--po-blue);
  border-radius: 6px;
  padding: 18px 22px;
  box-shadow: 0 2px 8px rgba(0, 21, 56, 0.04);
}

.po-info-box h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
  color: var(--po-navy);
}

.po-info-box p {
  margin: 0;
  color: var(--po-muted);
}

/* Callout Banner */
.po-callout-bar {
  background-color: var(--po-bg-light);
  border-top: 1px solid var(--po-border);
  border-bottom: 1px solid var(--po-border);
  padding: 24px 0;
  text-align: center;
  font-size: 1.35rem;
  color: var(--po-navy);
}

/* Cards (Projects & Posts) */
.po-card {
  background: var(--po-white);
  border: 1px solid var(--po-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 21, 56, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.po-card-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.po-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.po-card-meta {
  font-size: 13px;
  color: var(--po-muted);
  margin-bottom: 8px;
}

.po-card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.po-card-title a {
  color: var(--po-navy);
}

.po-card-title a:hover {
  color: var(--po-blue);
}

.po-card-excerpt {
  color: var(--po-text);
  margin-bottom: 18px;
  flex: 1;
}

.po-read-more {
  font-weight: 600;
  color: var(--po-blue);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Team / Contact profiles */
.po-profile-card {
  background: var(--po-bg-light);
  border-radius: 8px;
  padding: 24px;
  border: 1px solid var(--po-border);
}

.po-profile-card img {
  border-radius: 6px;
  margin-bottom: 16px;
  max-height: 260px;
  width: auto;
}

/* Footer */
.po-footer {
  background-color: var(--po-navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 0 30px;
  font-size: 15px;
}

.po-footer h3,
.po-footer h4 {
  color: var(--po-white);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.po-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.po-footer a:hover {
  color: var(--po-gold);
}

.po-footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

/* Responsive */
@media (max-width: 900px) {
  .po-grid-2,
  .po-grid-3 {
    grid-template-columns: 1fr;
  }

  .po-hero {
    padding: 70px 0;
  }

  .po-hero h1 {
    font-size: 2rem;
  }

  .po-menu-toggle {
    display: block;
  }

  .po-nav {
    display: none;
    width: 100%;
    padding-top: 16px;
  }

  .po-nav.is-open {
    display: block;
  }

  .po-header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .po-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}
