/* ========================================
   Berkley Oil & Gas — Energy Risk Solutions
   Modern Stylesheet
   ======================================== */

/* --- Design Tokens --- */
:root {
  --color-orange: #d26e4b;
  --color-orange-hover: #b85a3a;
  --color-blue: #627f9a;
  --color-blue-dark: #2a4c6f;
  --color-blue-hover: #4e6a82;

  --color-text: #2d3436;
  --color-text-light: #636e72;
  --color-text-muted: #b2bec3;
  --color-bg: #ffffff;
  --color-bg-light: #f7f8fa;
  --color-bg-alt: #eef1f5;
  --color-border: #dfe6e9;
  --color-footer-bg: #1e272e;
  --color-footer-text: #b2bec3;

  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.7;

  --container-max: 1140px;
  --container-narrow: 760px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--transition);
}

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

ul {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

p:last-child {
  margin-bottom: 0;
}

/* --- Layout --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: 5rem 0;
}

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

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

/* --- Header / Navigation --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.site-logo img {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-orange);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--color-orange);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--color-orange);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-orange-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--color-blue);
  color: #fff;
}

.btn-secondary:hover {
  background: var(--color-blue-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn-outline:hover {
  background: var(--color-blue);
  color: #fff;
}

.btn-white {
  background: #fff;
  color: var(--color-blue-dark);
}

.btn-white:hover {
  background: var(--color-bg-light);
  color: var(--color-blue-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.9rem 2.2rem;
  font-size: 1rem;
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(42, 76, 111, 0.85) 0%, rgba(30, 39, 46, 0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 3rem 1.5rem;
}

.hero h1 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero .btn {
  font-size: 1rem;
}

/* --- Page Header (inner pages) --- */
.page-header {
  background: linear-gradient(135deg, var(--color-blue-dark) 0%, var(--color-blue) 100%);
  padding: 3.5rem 0;
  text-align: center;
}

.page-header h1 {
  color: #fff;
  font-size: 2.2rem;
  margin: 0;
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.5rem;
  font-size: 1.05rem;
}

/* --- Grid Layouts --- */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

/* --- Cards --- */
.card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-accent {
  border-top: 3px solid var(--color-orange);
}

.card-accent-blue {
  border-top: 3px solid var(--color-blue);
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--color-blue-dark);
}

.card ul {
  list-style: none;
  padding: 0;
}

.card ul li {
  padding: 0.4rem 0;
  padding-left: 1.2rem;
  position: relative;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.75rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-orange);
}

/* --- Video Embed --- */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- Action Buttons Group --- */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* --- Content Block --- */
.content-block {
  max-width: var(--container-narrow);
}

.content-block h2 {
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.content-block h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--color-orange);
  border-radius: 2px;
}

/* --- Service Block --- */
.service-block {
  margin-bottom: 3rem;
}

.service-block:last-child {
  margin-bottom: 0;
}

.service-block h3 {
  color: var(--color-blue-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-border);
}

.service-block ul {
  padding-left: 0;
}

.service-block ul li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-text-light);
}

.service-block ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--color-orange);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.5;
}

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-bg-light);
  border-radius: var(--radius);
  border-left: 3px solid var(--color-blue);
}

.feature-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-blue);
  color: #fff;
  border-radius: var(--radius);
  font-size: 1.2rem;
}

.feature-item p {
  margin: 0;
  font-size: 0.95rem;
}

.feature-item strong {
  color: var(--color-text);
}

/* --- Partner List --- */
.partner-card {
  padding: 1.5rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.partner-card h4 {
  color: var(--color-blue-dark);
  margin-bottom: 0.5rem;
}

.partner-card p {
  font-size: 0.95rem;
  margin: 0;
}

/* --- Signature --- */
.signature-img {
  max-width: 280px;
  margin-top: 1rem;
  opacity: 0.85;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 2rem 0;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--color-footer-text);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 767px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    gap: 1rem;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 0.5rem 0;
  }

  .hero {
    min-height: 45vh;
  }

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

  .hero p {
    font-size: 1rem;
  }

  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }

  .section {
    padding: 3rem 0;
  }

  .page-header {
    padding: 2.5rem 0;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .action-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero h1 {
    font-size: 3rem;
  }
}
