/* ============================================================
   GridCo LLC — Earth & Steel Design System
   style.css
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Oswald:wght@400;500;700&display=swap');

/* ============================================================
   Design Tokens
   ============================================================ */
:root {
  /* Colors */
  --color-charcoal: #1c1c1c;
  --color-charcoal-gray: #2d3436;
  --color-orange: #d35400;
  --color-orange-hover: #e67e22;
  --color-yellow: #f1c40f;
  --color-warm-white: #fafaf8;
  --color-white: #ffffff;
  --color-gray-100: #f5f5f3;
  --color-gray-200: #e8e8e5;
  --color-gray-500: #888888;
  --color-gray-700: #555555;

  /* Typography */
  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 80px 24px;
  --section-padding-mobile: 48px 16px;
  --container-max: 1200px;
  --gap: 24px;

  /* Transitions */
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-charcoal-gray);
  background-color: var(--color-warm-white);
}

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

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

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

/* ============================================================
   Container
   ============================================================ */
.container {
  max-width: var(--container-max);
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ============================================================
   Typography Scale
   ============================================================ */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-transform: uppercase;
  letter-spacing: 2px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: 12px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 14px 32px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  line-height: 1;
}

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

.btn-primary:hover {
  background-color: var(--color-orange-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211, 84, 0, 0.4);
}

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

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-charcoal);
}

/* ============================================================
   Header / Navigation
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(28, 28, 28, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding: 12px 24px;
}

.nav-logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color var(--transition);
}

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

.nav-cta {
  margin-left: 16px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background-color: rgba(28, 28, 28, 0.98);
    border-bottom: 3px solid var(--color-orange);
    padding: 16px 24px 24px;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 8px;
  }
}

/* ============================================================
   Hero Sections
   ============================================================ */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 24px 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28, 28, 28, 0.70) 0%,
    rgba(28, 28, 28, 0.50) 50%,
    rgba(28, 28, 28, 0.80) 100%
  );
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-content h1 {
  color: var(--color-white);
}

.hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  margin-bottom: 32px;
}

/* Inner page hero variant */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 140px 24px 60px;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(28, 28, 28, 0.70) 0%,
    rgba(28, 28, 28, 0.50) 50%,
    rgba(28, 28, 28, 0.80) 100%
  );
  z-index: 0;
}

.page-hero .hero-content {
  position: relative;
  z-index: 1;
}

/* ============================================================
   Sections
   ============================================================ */
.section-light {
  background-color: var(--color-warm-white);
  padding: var(--section-padding);
}

.section-dark {
  background-color: var(--color-charcoal);
  padding: var(--section-padding);
  color: var(--color-white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-white);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header p {
  color: var(--color-gray-700);
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 768px) {
  .section-light {
    padding: var(--section-padding-mobile);
  }

  .section-dark {
    padding: var(--section-padding-mobile);
  }
}

/* ============================================================
   Card Grid
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--gap);
}

.card {
  background-color: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}

.card-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-link {
  display: inline-block;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-orange);
  transition: color var(--transition);
}

.card-link:hover {
  color: var(--color-orange-hover);
}

/* ============================================================
   Credentials Strip
   ============================================================ */
.credentials {
  background-color: var(--color-charcoal-gray);
  padding: 32px 24px;
}

.credentials-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 48px;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

.credential-item {
  color: var(--color-white);
  text-align: center;
}

.credential-item .label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-gray-500);
  margin-bottom: 4px;
}

.credential-item .value {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
}

.credential-badge {
  display: inline-block;
  background-color: var(--color-yellow);
  color: var(--color-charcoal);
  padding: 6px 16px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* ============================================================
   Gallery Grid
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ============================================================
   CTA Banner
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--color-charcoal) 0%, var(--color-charcoal-gray) 100%);
  padding: 64px 24px;
  text-align: center;
}

.cta-banner h2 {
  color: var(--color-white);
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   Contact Form
   ============================================================ */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--color-charcoal-gray);
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 16px;
  border: 1px solid var(--color-gray-200);
  border-radius: 4px;
  background-color: var(--color-white);
  color: var(--color-charcoal-gray);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(211, 84, 0, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: 1 / -1;
  }
}

/* ============================================================
   Contact Layout
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-info-card {
  background-color: var(--color-white);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-item .icon {
  color: var(--color-orange);
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  line-height: 1.7;
}

.map-embed {
  margin-top: 24px;
  border-radius: 8px;
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 250px;
  border: none;
  display: block;
}

.form-success {
  text-align: center;
  padding: 48px 24px;
}

.form-success h3 {
  color: var(--color-orange);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background-color: var(--color-charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 24px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col h4 {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--color-orange);
}

.footer-bottom {
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 48px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================
   Services Page
   ============================================================ */
.service-list {
  list-style: none;
  margin: 0 0 24px 0;
  padding: 0;
}

.service-list li {
  position: relative;
  padding: 12px 12px 12px 28px;
  border-bottom: 1px solid var(--color-gray-200);
  font-size: 1.05rem;
  color: var(--color-charcoal-gray);
}

.service-list li:last-child {
  border-bottom: none;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-color: var(--color-orange);
  border-radius: 50%;
}

.equipment-note {
  font-size: 0.95rem;
  color: var(--color-gray-700);
  border-left: 3px solid var(--color-orange);
  padding-left: 16px;
  margin-top: 8px;
}

.compliance-block {
  max-width: 760px;
  margin: 0 auto;
}

.compliance-block p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
  font-size: 1rem;
}

.compliance-block .credential-badge {
  display: inline-block;
  margin: 8px 0 24px;
}

.safety-commitment {
  font-style: italic;
  color: rgba(255, 255, 255, 0.65) !important;
  margin-top: 8px;
}

/* --- Contact Page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-info-card {
  background: var(--color-white);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.contact-info-card h3 {
  margin-bottom: 20px;
}

.contact-info-item {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.contact-info-item .icon {
  color: var(--color-orange);
  font-size: 1.2rem;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.map-embed {
  margin-top: 24px;
  border-radius: 8px;
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 250px;
  border: 0;
}

.form-success {
  text-align: center;
  padding: 48px 24px;
}

.form-success h3 {
  color: var(--color-orange);
  margin-bottom: 12px;
}

/* ============================================================
   Utilities
   ============================================================ */
.text-center {
  text-align: center;
}

.text-orange {
  color: var(--color-orange);
}

.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.mt-4 {
  margin-top: 32px;
}

.mb-3 {
  margin-bottom: 24px;
}
