/*
Theme Name: United Geoscience
Theme URI: https://www.unitedgeoscience.com
Author: United Geoscience
Author URI: https://www.unitedgeoscience.com
Description: Formal one-page consultancy theme for United Geoscience — petrophysical, geological and geochemical services. Includes hero image slider, service tabs and enquiry form.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Text Domain: united-geoscience
*/

:root {
  --navy: #0d2137;
  --navy-light: #1e4a73;
  --tan: #c9a36a;
  --rust: #9c4a2a;
  --cream: #f6f1e8;
  --offwhite: #faf8f4;
  --muted: #5c6570;
  --border: #e4dcd0;
  --shadow: 0 12px 40px rgba(13, 33, 55, 0.12);
  --radius: 14px;
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--navy);
  background: var(--offwhite);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--navy-light); text-decoration: none; }
a:hover { color: var(--rust); }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #d7cfc3;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 84px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 14px; color: var(--navy); }
.brand img { width: 64px; height: 64px; object-fit: contain; }
.brand-text strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.22rem; letter-spacing: .12em; font-weight: 600;
}

nav ul { display: flex; list-style: none; gap: 2px; flex-wrap: wrap; margin: 0; }
nav a {
  display: block; padding: 8px 12px; color: var(--navy);
  font-weight: 500; font-size: .82rem; letter-spacing: .08em;
  text-transform: uppercase;
}
nav a:hover, nav a.active {
  color: var(--rust); box-shadow: inset 0 -2px 0 var(--tan);
}

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; position: relative;
}
.nav-toggle span, .nav-toggle span:before, .nav-toggle span:after {
  position: absolute; left: 10px; width: 22px; height: 2px;
  background: var(--navy); content: "";
}
.nav-toggle span { top: 20px; }
.nav-toggle span:before { top: -7px; }
.nav-toggle span:after { top: 7px; }

.hero {
  position: relative; overflow: hidden; min-height: 72vh; padding: 0;
  background: #0d2137; color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.hero:after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; z-index: 3;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23faf8f4' d='M0,40 C240,90 480,0 720,40 C960,80 1200,10 1440,50 L1440,90 L0,90 Z'/%3E%3C/svg%3E") no-repeat bottom / 100% 70px;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slides .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.hero-slides .slide.active { opacity: 1; }
.hero-slides .slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(13,33,55,.42) 0%, rgba(13,33,55,.62) 50%, rgba(13,33,55,.78) 100%);
}
.hero-center {
  position: relative; z-index: 2; text-align: center;
  padding: 100px 20px 110px; max-width: 980px;
}
.hero-kicker {
  letter-spacing: .22em; text-transform: uppercase;
  font-size: .78rem; font-weight: 700; color: var(--tan); margin-bottom: 12px;
}
.hero-center h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 4.2vw, 3.2rem);
  letter-spacing: .01em; margin: 0 auto 16px; max-width: 920px;
  text-shadow: 0 8px 30px rgba(0,0,0,.35);
}
.hero-center p { max-width: 680px; margin: 0 auto 8px; color: rgba(255,255,255,.88); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; justify-content: center; }
.hero .slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 2px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--navy); font-size: 22px; font-weight: 700; z-index: 4;
}
.hero .slider-btn.prev { left: 14px; }
.hero .slider-btn.next { right: 14px; }
.slider-dots {
  position: absolute; left: 0; right: 0; bottom: 78px; z-index: 4;
  display: flex; justify-content: center; gap: 8px;
}
.slider-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 0; background: #c9b9a3; cursor: pointer;
}
.slider-dots button.active { background: #fff; width: 24px; border-radius: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px; border-radius: 2px; font-weight: 600; border: 0; cursor: pointer;
  font-size: .82rem; letter-spacing: .12em; text-transform: uppercase;
}
.btn-primary { background: var(--tan); color: var(--navy); }
.btn-primary:hover { background: #ddb97a; color: var(--navy); }
.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); color: #fff; }

section { padding: 72px 0; }
.section-head { max-width: 740px; margin-bottom: 32px; }
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.55rem, 3vw, 2.2rem); margin-bottom: 10px;
}
.lede { color: var(--muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-block; letter-spacing: .18em; text-transform: uppercase;
  font-size: .75rem; font-weight: 700; color: var(--rust); margin-bottom: 16px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow); border: 1px solid var(--border);
}
.card h3 { font-family: "Cormorant Garamond", Georgia, serif; margin-bottom: 8px; font-size: 1.2rem; }
.card p, .card li { color: var(--muted); font-size: .96rem; }
.icon-dot {
  width: 42px; height: 42px; border-radius: 8px;
  background: linear-gradient(135deg, var(--navy), var(--rust));
  color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 14px;
}
.check-list { list-style: none; }
.check-list li { padding: 7px 0 7px 28px; position: relative; }
.check-list li:before { content: "✓"; position: absolute; left: 0; color: var(--rust); font-weight: 800; }
.band { background: var(--cream); }
.cta-box {
  background: linear-gradient(120deg, var(--navy), var(--navy-light) 60%, var(--rust));
  color: #fff; border-radius: 8px; padding: 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.cta-box .lede { color: rgba(255,255,255,.8); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.pill {
  background: var(--cream); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 2px; font-size: .82rem; font-weight: 600; color: var(--navy);
}
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.tab {
  border: 1px solid var(--border); background: #fff; padding: 8px 14px;
  border-radius: 2px; cursor: pointer; font-weight: 600; color: var(--navy);
  letter-spacing: .04em; text-transform: uppercase; font-size: .78rem;
}
.tab.active, .tab:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.service-block { margin-bottom: 18px; }

form { display: grid; gap: 14px; }
label { font-weight: 650; font-size: .9rem; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 4px;
  border: 1px solid var(--border); background: #fff; font: inherit; color: var(--navy);
}
textarea { min-height: 140px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { font-size: .85rem; color: var(--muted); }
.success-msg, .form-error {
  padding: 14px 16px; border-radius: 4px; margin-bottom: 12px;
}
.success-msg { background: #e8f6ee; color: #1b5e3b; border: 1px solid #b7e0c5; }
.form-error { background: #fdecea; color: #8a1f11; border: 1px solid #f5c2c0; }

.site-footer { background: var(--navy); color: rgba(255,255,255,.82); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.site-footer h4 { color: #fff; margin-bottom: 12px; font-family: "Cormorant Garamond", Georgia, serif; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: var(--tan); }
.footer-links { list-style: none; }
.footer-links li { margin: 6px 0; }
.legal {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px;
  font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4, .footer-grid, .form-row, .cta-box { grid-template-columns: 1fr; }
  nav {
    display: none; position: absolute; top: 84px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 12px 20px 20px;
  }
  nav.open { display: block; }
  nav ul { flex-direction: column; }
  .nav-toggle { display: block; }
  .hero { min-height: 62vh; }
}
