/*
 * Geotechnic Solutions Stylesheet
 *
 * This file contains all of the shared styling for the Geotechnic Solutions
 * web presence. It is extracted from the original single‑page layout and
 * can be reused across multiple pages. If you make changes here, those
 * changes will be reflected site‑wide.
 */

/* Colour palette and base variables */
:root {
  /*
   * Global colour palette tuned to match the official Geotechnic Solutions
   * branding. Colours were sampled from the provided logo asset and
   * converted into a set of CSS custom properties that can be reused
   * throughout the site. Adjusting the values here will propagate
   * throughout all pages without having to change individual rules.
   */
  /* Page backgrounds use a very light, slightly warm off‑white derived from
     the logo’s background. This keeps the overall aesthetic bright and
     professional. */
  --bg: #f4f6ef;
  /* Alternate backgrounds are pure white to give cards and hero areas a
     subtle distinction from the page background. */
  --bg-alt: #ffffff;
  /* Cards and panels share the same white background as --bg-alt so they
     feel integrated rather than boxy. */
  --card: #ffffff;
  /* Primary accent is the vibrant green taken from the logo (approx.
     #009515). It should be used for buttons, links and highlights. */
  --accent: #009515;
  /* Secondary accent is the warm red/orange hue from the logo
     (approx. #de1c0f). Use sparingly for callouts or secondary buttons. */
  --accent-alt: #de1c0f;
  /* Accent strong can reuse the primary accent; this variable exists for
     scenarios where a stronger colour is needed for subtle effects such as
     dotted outlines. */
  --accent-strong: var(--accent);
  /* Soft accent colour is a transparent version of the primary green for
     light backgrounds and hover effects. */
  --accent-soft: rgba(0, 149, 21, 0.15);
  /* Main text uses a deep grey for high contrast on light backgrounds. */
  --text: #111827;
  /* Muted text employs a medium grey for secondary information. */
  --muted: #4b5563;
  /* Border colour is a light grey, subtle enough to delineate sections
     without dominating the layout. */
  --border: #d1d5db;
  /* Large radius for cards gives a friendly, rounded feel. */
  --radius-lg: 1.25rem;
  /* Softer shadow for cards lifts them gently off the page without
     overwhelming the design. */
  --shadow-soft: 0 12px 24px rgba(15, 23, 42, 0.07);
  /* Transition timing for interactive elements. */
  --transition-fast: 180ms ease-out;
  /* Maximum width for centred content containers. */
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Use a flat off‑white background rather than a dark radial gradient. */
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  padding: 0 1.25rem 4rem;
}

.shell {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  /* Lighten the navigation bar to complement the off‑white page background. */
  background: linear-gradient(to bottom, rgba(244, 246, 239, 0.96), rgba(244, 246, 239, 0.86));
  border-bottom: 1px solid rgba(209, 213, 219, 0.4);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.25rem;
  gap: 1rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.logo-mark {
  display: none;
}

/* Custom logo image used throughout the navigation. */
.logo-img {
  width: 36px;
  height: 36px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.55rem;
}

.logo-text-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.logo-text-sub {
  font-size: 0.75rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.9rem;
}

.nav-links a {
  /* Navigation links use the main text colour on the light nav bar. */
  color: var(--text);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

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

.nav-cta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
  border: 1px solid transparent;
  cursor: pointer;
  background: transparent;
  color: var(--text);
  transition: background var(--transition-fast), border-color var(--transition-fast),
    transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

/* Primary button uses the brand green as a gradient. It fades to a slightly lighter
   green on the far corner. The box shadow is also tinted green to match. */
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #00a51c);
  border-color: rgba(0, 149, 21, 0.6);
  box-shadow: 0 15px 30px rgba(0, 149, 21, 0.35);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(0, 149, 21, 0.5);
}

/* Ghost button uses the secondary accent for its border and a transparent
   background to let the page colour show through. On hover, a faint
   secondary hue appears. */
.btn-ghost {
  border-color: var(--accent-alt);
  background: transparent;
  color: var(--accent-alt);
}

.btn-ghost:hover {
  background: rgba(222, 28, 15, 0.06);
  border-color: var(--accent-alt);
  color: var(--accent-alt);
}

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

.nav-toggle {
  display: none;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 0.25rem 0.6rem;
  /* Mobile menu toggle uses the primary brand colour for consistency */
  background: var(--accent);
  color: #ffffff;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 2.5rem;
  padding: 2.75rem 0 2.5rem;
  align-items: center;

  /* Lighten the hero section to echo the beige header image from the reference site. */
  background: var(--bg-alt);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.83rem;
  color: var(--accent-strong);
  /* Transparent version of the primary accent for the pill background */
  background: rgba(0, 149, 21, 0.12);
  border-radius: 999px;
  padding: 0.22rem 0.7rem 0.22rem 0.28rem;
  /* Use the primary accent colour for the outline around the kicker pill. */
  border: 1px solid rgba(0, 149, 21, 0.35);
  margin-bottom: 0.9rem;
}

.hero-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent-strong);
  box-shadow: 0 0 0 5px rgba(0, 149, 21, 0.25);
}

.hero-title {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 1.3rem;
}

.hero-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  align-items: center;
  margin-bottom: 1.6rem;
}

.hero-pill {
  font-size: 0.78rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: var(--muted);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.hero-meta-item {
  font-size: 0.78rem;
  color: var(--muted);
}

.hero-meta-item strong {
  color: var(--text);
  font-weight: 600;
}

.hero-right {
  position: relative;
}

.hero-card {
  /* Use the card background for the hero callout instead of a dark gradient.
     This ensures the element blends with the overall light theme. */
  background: var(--card);
  border-radius: 1.6rem;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.hero-card-tag-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.hero-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.hero-card-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.hero-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.badge {
  font-size: 0.75rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  /* Light badge styling: soft green tint with a subtle border. */
  background: rgba(0, 149, 21, 0.05);
  border: 1px solid rgba(0, 149, 21, 0.15);
  color: var(--text);
}

.hero-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px dashed rgba(148, 163, 184, 0.5);
  padding-top: 0.8rem;
  margin-top: 0.3rem;
}

.spark {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  /* Create a subtle glow using the primary accent colour to fit the brand. */
  background: radial-gradient(circle, rgba(0, 149, 21, 0.12), transparent 70%);
  filter: blur(3px);
  pointer-events: none;
}

.spark-1 {
  top: -25px;
  right: -30px;
}

.spark-2 {
  bottom: -40px;
  left: -30px;
  background: radial-gradient(circle, rgba(0, 149, 21, 0.16), transparent 70%);
}

/* Sections */
section {
  margin: 2.5rem 0;
}

.section-header {
  margin-bottom: 1.4rem;
}

.section-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.section-title {
  font-size: 1.45rem;
  margin: 0 0 0.4rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 40rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.3rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.1rem 1rem 1.15rem;
  /* Use the soft shadow defined in variables instead of a heavy dark shadow. */
  box-shadow: var(--shadow-soft);
}

.card-kicker {
  font-size: 0.75rem;
  color: var(--accent-strong);
  margin-bottom: 0.15rem;
}

.card-title {
  font-size: 1rem;
  margin: 0 0 0.3rem;
}

.card-body {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.card-list li {
  margin-bottom: 0.25rem;
  padding-left: 0.9rem;
  position: relative;
}

.card-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.pill {
  font-size: 0.76rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 149, 21, 0.25);
  color: var(--text);
  background: rgba(0, 149, 21, 0.05);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
}

.step {
  position: relative;
  padding-left: 1.9rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.step-num {
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--accent);
  /* Use solid primary accent for the numbered circle in the process list */
  background: var(--accent);
}

.step strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.15rem;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 1.5rem;
}

.about-block {
  font-size: 0.9rem;
  color: var(--muted);
}

.about-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 149, 21, 0.25);
  background: rgba(0, 149, 21, 0.08);
  margin-bottom: 0.45rem;
}

.about-highlight {
  font-size: 0.88rem;
  background: var(--bg-alt);
  border-radius: 0.9rem;
  padding: 0.85rem 0.9rem;
  /* Use a dashed border in the primary accent colour for emphasis */
  border: 1px dashed rgba(0, 149, 21, 0.4);
  margin-top: 0.5rem;
  color: var(--muted);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.contact-info {
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-info a {
  color: var(--accent);
}

.contact-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.6rem;
}

.form-wrap {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  gap: 0.7rem;
}

label {
  font-size: 0.8rem;
  color: var(--muted);
  display: block;
  margin-bottom: 0.15rem;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: var(--bg-alt);
  color: var(--text);
  font-size: 0.85rem;
  padding: 0.45rem 0.6rem;
  outline: none;
  resize: vertical;
  min-height: 2.15rem;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0, 149, 21, 0.4);
}

textarea {
  min-height: 110px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 1.3rem 1.25rem 2rem;
  font-size: 0.8rem;
  color: var(--muted);
  /* Use the alternate background colour for the footer to distinguish
     it subtly from the main body without using a dark colour. */
  background: var(--bg-alt);
  margin-top: 3rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

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

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

/*
 * Rare earth elements list layout
 *
 * The rare‑earths page displays a list of all REEs with an image on the left
 * and descriptive text on the right. These styles define the layout and
 * responsive behaviour for that list. You can reuse these classes in other
 * contexts where a similar two‑column content arrangement is desired.
 */
.element-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.element-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  box-shadow: var(--shadow-soft);
}

.element-row + .element-row {
  margin-top: 1.2rem;
}

.element-row .element-image {
  flex: 0 0 120px;
  max-width: 120px;
  margin-right: 1rem;
}

.element-row .element-image img,
.element-row .element-image .img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 0.75rem;
  object-fit: cover;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--accent);
}

.element-row .element-info {
  flex: 1;
}

.element-row .element-info h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.element-row .element-info p {
  margin: 0.25rem 0;
  line-height: 1.4;
}

.element-row .price {
  color: var(--accent-alt);
  font-weight: 600;
}

@media (max-width: 600px) {
  .element-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .element-row .element-image {
    margin-right: 0;
    margin-bottom: 0.8rem;
    width: 80px;
    height: 80px;
  }
  .element-row .element-info h3 {
    font-size: 1rem;
  }
}

/* Responsive */
@media (max-width: 880px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 2rem;
  }

  .hero-right {
    order: -1;
  }

  .about-grid,
  .contact-card {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

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

  header {
    position: static;
  }

  .hero {
    padding-top: 1.5rem;
  }
}