/* Harrell Petroleum: site-specific overrides on top of the base theme */

/* ---------------------------------------------------
   Contact form: button loading spinner + toast notifications
--------------------------------------------------- */
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btn-spinner-spin 0.7s linear infinite;
}
@keyframes btn-spinner-spin {
  to { transform: rotate(360deg); }
}
.theme-btn.is-loading {
  cursor: default;
  opacity: 0.85;
}

#toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.site-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
  padding: 16px 16px 16px 18px;
  min-width: 300px;
  max-width: 380px;
  transform: translateX(30px);
  opacity: 0;
  transition: transform 350ms ease, opacity 350ms ease;
}
.site-toast.show {
  transform: translateX(0);
  opacity: 1;
}
.site-toast-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-top: 2px;
}
.site-toast-success .site-toast-icon { background: var(--theme-color); }
.site-toast-success .site-toast-icon:before { content: '\2713'; }
.site-toast-error .site-toast-icon { background: #c0392b; }
.site-toast-error .site-toast-icon:before { content: '\2715'; }
.site-toast-message {
  flex: 1;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: #222222;
  padding-top: 4px;
}
.site-toast-close {
  background: none;
  border: none;
  padding: 0;
  margin-top: 2px;
  font-size: 18px;
  line-height: 1;
  color: #b7bcc7;
  cursor: pointer;
  flex-shrink: 0;
}
.site-toast-close:hover {
  color: #666;
}
@media only screen and (max-width: 480px) {
  #toast-container {
    left: 16px;
    right: 16px;
    top: 16px;
  }
  .site-toast {
    min-width: 0;
    max-width: none;
    width: 100%;
  }
}

/* Inline SVG icons (layouts/icons.php): scale with whatever font-size
   context they're dropped into, same as the icon-font glyphs they replace. */
.icon-svg {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
}

/* Logo area: keep white regardless of the active theme-color accent */
.main-header .outer-box .logo-box,
.main-header .outer-box .logo-box:before,
.main-header .outer-box .logo-box:after,
.main-header .outer-box .logo-box .shape {
  background: #fff !important;
}

/* Feature section: split the flush 4-up bar into modern, separated cards */
.feature-section .inner-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: none;
}

.feature-section .feature-block-one {
  float: none;
  width: calc(25% - 18px);
}

.feature-block-one .inner-box {
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 128, 0.10);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: box-shadow 300ms ease, transform 300ms ease, border-color 300ms ease;
}

.feature-block-one .inner-box:hover {
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(0, 0, 128, 0.22);
  transform: translateY(-6px);
}

.feature-block-one .inner-box .icon-box {
  box-shadow: 0 10px 22px rgba(0, 0, 128, 0.28);
  transition: all 300ms ease, transform 300ms ease;
}

.feature-block-one .inner-box:hover .icon-box {
  transform: scale(1.08);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

@media only screen and (max-width: 991px) {
  .feature-section .feature-block-one {
    width: calc(50% - 12px);
  }
}

@media only screen and (max-width: 767px) {
  .feature-section .feature-block-one {
    width: 100%;
  }
}

/* Product cards: rounded, bordered, with a modern icon chip instead of a bare glyph */
.service-block-one .inner-box {
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 128, 0.10);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: box-shadow 300ms ease, transform 300ms ease, border-color 300ms ease;
}

.service-block-one:hover .inner-box {
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(0, 0, 128, 0.22);
  transform: translateY(-6px);
}

.service-block-one .inner-box .icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: rgba(0, 0, 128, 0.08);
}

.service-block-one:hover .inner-box .icon-box {
  background: rgba(255, 255, 255, 0.15);
}

.service-block-one .inner-box .icon-box svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
}

/* Video section: no video yet, so trim the spacing that was reserved for the play button */
.video-section .inner-box h2 {
  margin-bottom: 35px;
}

/* ---------------------------------------------------
   Industries We Serve: card grid (services.php)
--------------------------------------------------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.industry-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 128, 0.10);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  padding: 30px 26px;
  transition: box-shadow 300ms ease, transform 300ms ease, border-color 300ms ease;
}
.industry-card:hover {
  border-color: transparent;
  box-shadow: 0 18px 40px rgba(0, 0, 128, 0.22);
  transform: translateY(-6px);
}
.industry-card .icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(0, 0, 128, 0.08);
  color: var(--theme-color);
  margin-bottom: 18px;
  transition: background 300ms ease, color 300ms ease;
}
.industry-card:hover .icon-box {
  background: var(--theme-color);
  color: #fff;
}
.industry-card .icon-box svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
}
.industry-card h5 {
  font-size: 17px;
  font-weight: 700;
  color: var(--title-color);
  margin-bottom: 10px;
}
.industry-card p {
  font-size: 14px;
  line-height: 22px;
  color: var(--text-color);
  margin: 0;
}

/* ---------------------------------------------------
   Delivery process image (services.php)
--------------------------------------------------- */
.process-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 128, 0.15);
}

/* ---------------------------------------------------
   Modern FAQ accordion (faq.php)
--------------------------------------------------- */
.accordion-box.modern .accordion {
  border: none;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 16px;
  transition: box-shadow 300ms ease;
}
.accordion-box.modern .accordion:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 128, 0.08);
}
.accordion-box.modern .accordion.active-block {
  box-shadow: 0 10px 30px rgba(0, 0, 128, 0.12);
}
.accordion-box.modern .acc-btn {
  padding: 24px 70px 24px 30px;
}
.accordion-box.modern .acc-btn h4 {
  font-size: 18px;
}
.accordion-box.modern .acc-content {
  padding: 0 60px 26px 30px;
}
.accordion-box.modern .acc-btn .icon-box {
  width: 34px;
  height: 34px;
  right: 24px;
  top: 22px;
  background: rgba(0, 0, 128, 0.06);
  transition: background 300ms ease, color 300ms ease;
}
.accordion-box.modern .acc-btn .icon-box:before {
  opacity: 0 !important;
}
.accordion-box.modern .acc-btn.active .icon-box {
  background: var(--theme-color);
  color: #fff;
}
.accordion-box.modern .acc-content a {
  color: var(--theme-color);
  font-weight: 600;
}

/* Contact form: alerts, honeypot, select sizing (contact.php) */
.alert-box {
  padding: 18px 25px;
  border-radius: 10px;
  font-weight: 600;
}
.alert-box.success {
  background: rgba(0, 128, 0, 0.08);
  color: #1b7a1b;
  border: 1px solid rgba(0, 128, 0, 0.2);
}
.alert-box.error {
  background: rgba(200, 0, 0, 0.06);
  color: #b02a2a;
  border: 1px solid rgba(200, 0, 0, 0.2);
}
.honeypot-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}
.contact-section .form-inner .nice-select {
  width: 100%;
  height: 60px;
  line-height: 58px;
  border-color: #fff;
  background: #fff;
}
.contact-section .form-inner .nice-select .list {
  width: 100%;
}

/* ---------------------------------------------------
   About page modernization
--------------------------------------------------- */
.image_block_one .image-box .image {
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}
.image_block_one .image-box .image img {
  border-radius: 20px;
  min-height: 480px;
  object-fit: cover;
}
.image_block_one .image-box .experience-box {
  box-shadow: 0 15px 35px rgba(0, 0, 128, 0.3);
}
.funfact-section .inner-container {
  border-radius: 24px;
  overflow: hidden;
}
.funfact-block-one .inner-box {
  transition: transform 300ms ease;
}
.funfact-block-one .inner-box:hover {
  transform: translateY(-4px);
}

/* Equal-height cards wherever .feature-block-one sits inside a Bootstrap
   .feature-block column (About "Why Choose Us", Health & Safety grid, etc.) -
   otherwise longer titles/copy make some cards taller than their row-mates. */
.feature-block {
  display: flex;
}
.feature-block .feature-block-one {
  width: 100%;
  display: flex;
}
.feature-block .feature-block-one .inner-box {
  width: 100%;
  display: flex;
  flex-direction: column;
}

/* ---------------------------------------------------
   Safety protocol cards (health-safety.php) - deliberately
   different from the icon-top .feature-block-one cards used
   everywhere else, so the site doesn't feel repetitive.
--------------------------------------------------- */
.safety-cards-row {
  row-gap: 30px;
}
.safety-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 22px;
  height: 100%;
  background: #fff;
  border-radius: 16px;
  border-left: 4px solid var(--theme-color);
  padding: 34px 60px 34px 30px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: box-shadow 300ms ease, transform 300ms ease;
}
.safety-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 128, 0.15);
  transform: translateX(6px);
}
.safety-card-number {
  position: absolute;
  top: 10px;
  right: 22px;
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  color: rgba(0, 0, 128, 0.06);
}
.safety-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: rgba(0, 0, 128, 0.08);
  color: var(--theme-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.safety-card-body h4 {
  font-size: 19px;
  margin-bottom: 8px;
}
.safety-card-body p {
  margin: 0;
}
.safety-cards-row > [class*="col-"] {
  padding-left: 24px;
  padding-right: 24px;
}
@media only screen and (max-width: 991px) {
  .safety-cards-row > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Our Promise panel (about.php) */
.promise-panel {
  background: var(--theme-color);
  border-radius: 24px;
  padding: 70px 50px;
}
.promise-panel .sec-title h6 { color: rgba(255, 255, 255, 0.75); }
.promise-panel .sec-title h2 { color: #fff; }
.promise-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.promise-item .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}
.promise-item p {
  margin: 0;
  font-weight: 600;
  color: #fff;
}
@media only screen and (max-width: 767px) {
  .promise-panel { padding: 50px 25px; }
}

/* Video section CTA: white outline button, text stays white on hover too */
.video-section .theme-btn.btn-three {
  background: transparent;
  border: 2px solid #fff;
  color: #fff !important;
}

.video-section .theme-btn.btn-three:hover {
  color: #fff !important;
}

/* ---------------------------------------------------
   Gallery (gallery.php): portrait and landscape shots
   are grouped into their own rows. Portraits sit 3-up,
   the wide landscape shots sit side by side in a row of
   their own rather than stacking. A fixed aspect ratio
   per group keeps every row perfectly aligned.
--------------------------------------------------- */
.gallery-grid {
  display: grid;
  gap: 26px;
}
.gallery-grid--portrait {
  grid-template-columns: repeat(3, 1fr);
}
.gallery-grid--landscape {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 26px;
}
@media only screen and (max-width: 991px) {
  .gallery-grid { gap: 20px; }
  .gallery-grid--portrait { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid--landscape { margin-top: 20px; }
}
@media only screen and (max-width: 575px) {
  .gallery-grid--portrait,
  .gallery-grid--landscape { grid-template-columns: 1fr; }
}

.gallery-grid .gallery-item {
  margin: 0;
}

.gallery-grid .image-box {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
  cursor: pointer;
}

/* Matched to the source images (portrait 9:16, landscape 3:2) so the current
   shots aren't cropped, while any future upload is normalised to the row. */
.gallery-grid--portrait .image-box { aspect-ratio: 9 / 16; }
.gallery-grid--landscape .image-box { aspect-ratio: 3 / 2; }

.gallery-grid .image-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.gallery-grid .image-box:hover img {
  transform: scale(1.06);
}

.gallery-grid .image-box .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 128, 0.15), rgba(0, 0, 128, 0.55));
  opacity: 0;
  transition: opacity 400ms ease;
}

.gallery-grid .image-box:hover .overlay {
  opacity: 1;
}

.gallery-grid .image-box .overlay .icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #fff;
  color: var(--theme-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transform: scale(0.5);
  transition: transform 400ms ease;
}

.gallery-grid .image-box:hover .overlay .icon {
  transform: scale(1);
}
