/*
Theme Name: HORN RESOURCES Modern
Theme URI: https://hornresources.us/
Author: OpenAI
Author URI: https://openai.com/
Description: A modern, lightweight one-page WordPress theme for HORN RESOURCES with a resource exploration, mining, and company history focus.
Version: 1.36.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: horn-resources-modern
Tags: custom-logo, one-column, responsive-layout, accessibility-ready, custom-menu
*/

:root {
  --hrm-bg: #0f1720;
  --hrm-bg-soft: #17212c;
  --hrm-surface: #ffffff;
  --hrm-surface-warm: #e6d8c6;
  --hrm-text: #15202b;
  --hrm-muted: #5d6873;
  --hrm-border: rgba(21, 32, 43, 0.14);
  --hrm-copper: #b86f2e;
  --hrm-gold: #d8a23a;
  --hrm-sand: #e7d3b0;
  --hrm-green: #476457;
  --hrm-white: #ffffff;
  --hrm-shadow: 0 22px 60px rgba(8, 12, 18, 0.18);
  --hrm-radius-lg: 28px;
  --hrm-radius-md: 18px;
  --hrm-radius-sm: 12px;
  --hrm-error: #8b1e1e;
  --hrm-success: #1f6f45;
  --hrm-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--hrm-surface-warm);
  color: var(--hrm-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--hrm-gold);
  color: var(--hrm-bg);
  border-radius: 8px;
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 32, 0.92);
  color: var(--hrm-white);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-wrap {
  width: min(calc(100% - 32px), var(--hrm-max));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--hrm-gold), var(--hrm-copper));
  color: var(--hrm-bg);
  font-size: 0.85rem;
  box-shadow: 0 12px 28px rgba(216, 162, 58, 0.28);
}

.custom-logo-link img {
  display: block;
  max-height: 48px;
  width: auto;
}

.nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--hrm-white);
  border-radius: 10px;
  padding: 9px 12px;
  font: inherit;
  font-weight: 700;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.primary-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 650;
}

.primary-nav a:hover,
.primary-nav a:focus {
  color: var(--hrm-white);
}

.primary-nav .nav-cta,
.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--hrm-gold), var(--hrm-copper));
  color: var(--hrm-bg);
  text-decoration: none;
  font-weight: 800;
  border: 0;
  box-shadow: 0 16px 32px rgba(184, 111, 46, 0.24);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--hrm-white);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: none;
}

.hero {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(135deg, rgba(10, 16, 22, 0.90) 0%, rgba(23, 33, 44, 0.82) 52%, rgba(43, 36, 29, 0.78) 100%),
    radial-gradient(circle at 15% 15%, rgba(216, 162, 58, 0.18), transparent 34%),
    radial-gradient(circle at 84% 22%, rgba(71, 100, 87, 0.18), transparent 32%),
    url("assets/img/hero-open-pit.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--hrm-white);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background-image:
    linear-gradient(32deg, transparent 0 46%, rgba(255, 255, 255, 0.18) 47%, transparent 48%),
    linear-gradient(148deg, transparent 0 52%, rgba(255, 255, 255, 0.1) 53%, transparent 54%);
  background-size: 190px 190px;
}

.hero-wrap {
  position: relative;
  width: min(calc(100% - 32px), var(--hrm-max));
  margin: 0 auto;
  padding: 110px 0 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 52px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--hrm-sand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 40px;
  height: 2px;
  background: var(--hrm-gold);
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 4vw, 3.55rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.hero-lead {
  max-width: 720px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--hrm-radius-lg);
  padding: 24px;
  box-shadow: var(--hrm-shadow);
}

.geology-card {
  position: relative;
  isolation: isolate;
  min-height: 420px;
  border-radius: 24px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: linear-gradient(145deg, #171f27, #332a23);
}

.geology-slides {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.geology-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  animation: geology-fade 27s infinite;
  transform: scale(1.03);
}

.geology-slide-1 {
  background-image: url("assets/img/hero-open-pit.webp");
  animation-delay: 0s;
}

.geology-slide-2 {
  background-image: url("assets/img/capabilities-rig.webp");
  animation-delay: 9s;
}

.geology-slide-3 {
  background-image: url("assets/img/history-pumpjack.webp");
  animation-delay: 18s;
}

.geology-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 23, 32, 0.12), rgba(15, 23, 32, 0.82)),
    radial-gradient(circle at 25% 18%, rgba(216, 162, 58, 0.22) 0 5%, transparent 6%);
}

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

.geology-card h2 {
  max-width: 420px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.25rem, 2.3vw, 1.85rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.geology-card p {
  max-width: 420px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

@keyframes geology-fade {
  0% { opacity: 0; }
  5% { opacity: 1; }
  28% { opacity: 1; }
  33% { opacity: 0; }
  100% { opacity: 0; }
}

.section {
  width: min(calc(100% - 32px), var(--hrm-max));
  margin: 0 auto;
  padding: 86px 0;
}

#about,
#interests,
.contact-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: none;
  padding: 86px 0;
}

#about > .section-header,
#about > .stats-grid,
#interests > .section-header,
#interests > .capabilities-grid,
.contact-section > .section-header,
.contact-section > .contact-grid {
  width: min(calc(100% - 32px), var(--hrm-max));
  margin-left: auto;
  margin-right: auto;
}

#about::before,
#interests::before,
.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -1;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.045;
}

#about::before {
  background-image: url("assets/img/hero-open-pit.webp");
  background-position: right center;
}

#interests::before {
  background-image: url("assets/img/capabilities-rig.webp");
  background-position: center center;
}

.contact-section::before {
  background-image: url("assets/img/history-pumpjack.webp");
  background-position: left center;
}

.section-header {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 36px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--hrm-copper);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section h2,
.entry-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

#contact-title {
  font-size: clamp(1.25rem, 2.15vw, 1.85rem);
}

.section-header p {
  margin: 0;
  color: var(--hrm-muted);
  font-size: 1.08rem;
}

#interests .section-header {
  grid-template-columns: 1fr;
}

.stats-grid,
.capabilities-grid,
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.stat-card,
.capability-card,
.project-card,
.contact-card,
.page-content {
  border: 1px solid var(--hrm-border);
  background: rgba(234, 223, 206, 0.86);
  border-radius: var(--hrm-radius-md);
  padding: 28px;
  box-shadow: 0 18px 45px rgba(23, 33, 44, 0.08);
}

.stat-number {
  display: block;
  color: var(--hrm-copper);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 0.9;
  font-weight: 700;
}

.stat-card h3,
.capability-card h3,
.project-card h3,
.contact-card h3 {
  margin: 18px 0 8px;
  font-size: 1.05rem;
  line-height: 1.2;
}

.stat-card p,
.capability-card p,
.project-card p,
.contact-card p {
  margin: 0;
  color: var(--hrm-muted);
}

.dark-band {
  background:
    radial-gradient(circle at 80% 10%, rgba(216, 162, 58, 0.18), transparent 28%),
    linear-gradient(135deg, var(--hrm-bg), var(--hrm-bg-soft));
  color: var(--hrm-white);
}

#capabilities.dark-band {
  background-image:
    linear-gradient(135deg, rgba(12, 18, 24, 0.92), rgba(23, 33, 44, 0.84)),
    radial-gradient(circle at 80% 10%, rgba(216, 162, 58, 0.12), transparent 28%),
    url("assets/img/capabilities-rig.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

#history.dark-band {
  background-image:
    linear-gradient(135deg, rgba(12, 18, 24, 0.94), rgba(23, 33, 44, 0.88)),
    radial-gradient(circle at 80% 10%, rgba(216, 162, 58, 0.10), transparent 28%),
    url("assets/img/history-pumpjack.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.dark-band .section-header p,
.dark-band .timeline-copy,
.dark-band .timeline-item p {
  color: rgba(255, 255, 255, 0.74);
}

.dark-band .section-kicker {
  color: var(--hrm-sand);
}

.history-narrative {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 12px 0 34px;
}

.history-narrative p {
  margin: 0;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--hrm-radius-md);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.78);
}

.capability-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.capability-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: inline-grid;
  place-items: center;
  background: rgba(216, 162, 58, 0.16);
  color: var(--hrm-gold);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

#interests .capability-card {
  background: rgba(246, 239, 228, 0.86);
  border-color: var(--hrm-border);
}

#interests .capability-card p {
  color: var(--hrm-muted);
}

#interests .capability-icon {
  background: rgba(184, 111, 46, 0.12);
  color: var(--hrm-copper);
}

.timeline {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.timeline-year {
  color: var(--hrm-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
}

.timeline-item h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.timeline-item p {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
}

.project-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-tag {
  align-self: flex-start;
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(184, 111, 46, 0.12);
  color: #7b4319;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-section {
  padding-bottom: 100px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
  align-items: stretch;
}

.contact-card.large {
  background: var(--hrm-bg);
  color: var(--hrm-white);
}

.contact-card.large p,
.contact-card.large address {
  color: rgba(255, 255, 255, 0.76);
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.contact-item {
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-item span {
  display: block;
  color: var(--hrm-sand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-item a,
.contact-item address {
  display: block;
  margin-top: 5px;
  color: var(--hrm-white);
  font-style: normal;
  text-decoration: none;
  font-weight: 700;
}

.contact-showcase {
  margin-top: 24px;
}

.contact-geology-card {
  min-height: 240px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
}

.contact-geology-card h2 {
  max-width: 300px;
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--hrm-text);
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid var(--hrm-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--hrm-text);
  font: inherit;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(216, 162, 58, 0.32);
  border-color: rgba(184, 111, 46, 0.8);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  visibility: hidden;
}

.contact-alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 750;
}

.contact-alert.success {
  color: var(--hrm-success);
  background: rgba(31, 111, 69, 0.1);
  border: 1px solid rgba(31, 111, 69, 0.22);
}

.contact-alert.error {
  color: var(--hrm-error);
  background: rgba(139, 30, 30, 0.1);
  border: 1px solid rgba(139, 30, 30, 0.22);
}

.site-footer {
  background: #0a1017;
  color: rgba(255, 255, 255, 0.78);
}

.footer-wrap {
  width: min(calc(100% - 32px), var(--hrm-max));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.site-main.page-main {
  width: min(calc(100% - 32px), 900px);
  margin: 0 auto;
  padding: 86px 0;
}

.entry-title {
  margin-bottom: 28px;
}

.page-content {
  background: var(--hrm-white);
}

.page-content a {
  color: #8b4c1d;
  font-weight: 700;
}

.not-found {
  text-align: center;
}

@media (max-width: 920px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .hero-wrap,
  .section-header,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-wrap {
    padding-top: 82px;
  }

  .stats-grid,
  .capabilities-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }


  .history-narrative {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .header-wrap {
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border-radius: 18px;
    background: rgba(15, 23, 32, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--hrm-shadow);
  }

  .site-header.is-open .primary-nav {
    display: flex;
  }

  .primary-nav a {
    padding: 8px 0;
  }

  .primary-nav .nav-cta {
    margin-top: 6px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .geology-card {
    min-height: 320px;
  }

  .section {
    padding: 64px 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 720px) {
  .contact-geology-card {
    min-height: 210px;
  }
}


/* v1.30: hard correction for oversized header and heading fonts */
.hero-title {
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.section-header h2,
#contact-title,
.page-content h1 {
  font-size: clamp(1.12rem, 1.7vw, 1.45rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
}

.geology-card h2 {
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
  line-height: 1.18;
}

.contact-geology-card h2 {
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.2;
}

.timeline-year {
  font-size: 0.88rem;
}

.timeline-item h3,
.capability-card h3,
.project-card h3,
.contact-card h3,
.form-card h3,
.page-content h2,
.page-content h3 {
  font-size: 0.95rem;
  line-height: 1.25;
}

.section-kicker {
  font-size: 0.72rem;
}

.site-title {
  font-size: 0.95rem;
}

.main-navigation a {
  font-size: 0.78rem;
}


/* v1.32: Contact block horizontal shrink only */
.contact-section > .section-header,
.contact-section > .contact-grid {
  width: min(calc(100% - 32px), 860px);
}

.contact-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}


/* v1.33: darken Experience & Interests and Contact blocks */
#interests .capability-card,
.contact-section .contact-card:not(.large) {
  background: rgba(214, 198, 174, 0.94);
  border-color: rgba(92, 72, 48, 0.22);
  box-shadow: 0 18px 45px rgba(23, 33, 44, 0.11);
}

#interests .capability-icon {
  background: rgba(126, 78, 37, 0.17);
}

.contact-section .contact-form input,
.contact-section .contact-form textarea {
  background: rgba(244, 238, 228, 0.9);
  border-color: rgba(92, 72, 48, 0.24);
}


/* v1.34: darker slideshow captions, slower slideshow, smoother transitions */
.geology-slide {
  animation-duration: 45s;
  animation-timing-function: ease-in-out;
}

.geology-slide-1 {
  animation-delay: 0s;
}

.geology-slide-2 {
  animation-delay: 15s;
}

.geology-slide-3 {
  animation-delay: 30s;
}

.geology-card-content {
  display: inline-block;
  max-width: max-content;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(232, 218, 198, 0.78);
  border: 1px solid rgba(82, 58, 34, 0.22);
  box-shadow: 0 14px 34px rgba(8, 12, 18, 0.18);
  backdrop-filter: blur(2px);
}

.geology-card h2,
.contact-geology-card h2 {
  color: #1a2027;
  text-shadow: none;
}

@keyframes geology-fade {
  0% {
    opacity: 0;
    transform: scale(1.02);
  }
  6% {
    opacity: 1;
    transform: scale(1.035);
  }
  28% {
    opacity: 1;
    transform: scale(1.06);
  }
  36% {
    opacity: 0;
    transform: scale(1.075);
  }
  100% {
    opacity: 0;
    transform: scale(1.02);
  }
}
