/* ============================================================
   AAMSCO ENGINEERING SERVICES LTD — style.css
   Aesthetic: Corporate Industrial — inspired by jualgroup.com
   Clean white layout, bold headers, full-width hero, dark footer
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@300;400;600&display=swap');

/* ─── CSS VARIABLES ──────────────────────────────────────── */
:root {
  --amber:         #f0920a;
  --amber-dark:    #c47008;
  --amber-light:   #fdebd0;
  --black:         #111111;
  --dark:          #1c1c1c;
  --grey-dark:     #333333;
  --grey-mid:      #666666;
  --grey-light:    #999999;
  --border:        #e0e0e0;
  --bg-light:      #f7f7f7;
  --white:         #ffffff;

  --font-heading:  'Montserrat', sans-serif;
  --font-body:     'Open Sans', sans-serif;

  --max-width:     1200px;
  --radius:        4px;
  --shadow-sm:     0 2px 8px rgba(0,0,0,0.08);
  --shadow-md:     0 6px 24px rgba(0,0,0,0.12);
  --shadow-lg:     0 12px 48px rgba(0,0,0,0.16);
  --transition:    all 0.3s ease;
}

/* ─── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--grey-dark);
  background-color: var(--white);
}

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

a {
  color: var(--amber);
  text-decoration: none;
  transition: var(--transition);
}
a:hover { color: var(--amber-dark); }

ul { list-style: none; }

/* ─── HEADER ─────────────────────────────────────────────── */
.site-header {
  background-color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}

.header-container {
  display: flex;
  align-items: center;
  padding: 0 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 80px;
  gap: 1.25rem;
}

.logo {
  width: 80px;
  height: auto;
  flex-shrink: 0;
}

.company-name {
  font-family: var(--font-heading);
  font-size: clamp(0.95rem, 2vw, 1.4rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: 0.01em;
  line-height: 1.2;
}

/* ─── NAVIGATION ─────────────────────────────────────────── */
.main-nav {
  background-color: var(--dark);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  border-top: 3px solid var(--amber);
}

.nav-link {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  position: relative;
  transition: color 0.25s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--amber);
  transition: width 0.3s ease;
}

.nav-link:hover { color: var(--amber); }
.nav-link:hover::after { width: 100%; }

/* ─── DIVIDERS ───────────────────────────────────────────── */
.section-divider,
.footer-divider,
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem auto;
  max-width: var(--max-width);
}

/* ─── MAIN CONTENT ───────────────────────────────────────── */
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

/* ─── HERO / BANNER ──────────────────────────────────────── */
.hero-section {
  margin: 0 -1.5rem;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  max-width: 100%;
  height: 480px;
  object-fit: cover;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  border: none;
  display: block;
}

/* ─── VIDEO ──────────────────────────────────────────────── */
.video-section {
  padding: 3rem 0;
  background-color: var(--bg-light);
  margin: 0 -1.5rem;
}

.video-container {
  position: relative;
  padding-bottom: 50%;
  height: 0;
  overflow: hidden;
  max-width: 860px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.video-container iframe,
.featured-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ─── CONTENT SECTIONS ───────────────────────────────────── */
.content-section {
  padding: 4rem 0 2rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  display: inline-block;
}

/* Amber underline bar — signature Jual style */
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--amber);
  margin-top: 0.5rem;
  border-radius: 2px;
}

.section-text {
  font-size: 0.97rem;
  color: var(--grey-mid);
  max-width: 720px;
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* ─── SERVICE LIST (home) ────────────────────────────────── */
.service-list { margin: 1.5rem 0; }

.service-item {
  padding: 0.65rem 0 0.65rem 1.5rem;
  position: relative;
  font-size: 0.97rem;
  color: var(--grey-dark);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.2s;
}

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

.service-item:hover { color: var(--amber-dark); padding-left: 2rem; }

/* ─── PRODUCT LIST (home) ────────────────────────────────── */
.product-list { margin: 1.5rem 0; }

.product-item {
  padding: 0.6rem 0 0.6rem 1.5rem;
  position: relative;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--grey-dark);
  border-bottom: 1px solid var(--border);
}

.product-item::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: 700;
}

.product-sublist { padding-left: 1.2rem; margin-top: 0.3rem; }

.product-subitem {
  padding: 0.2rem 0 0.2rem 1rem;
  position: relative;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--grey-light);
}

.product-subitem::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--grey-light);
}

/* ─── EQUIPMENT LIST (about page) ───────────────────────── */
.equipment-list {
  margin: 1.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.equipment-item {
  background-color: var(--bg-light);
  color: var(--grey-dark);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--amber);
  transition: background-color 0.2s, color 0.2s;
}

.equipment-item:hover {
  background-color: var(--amber-light);
  color: var(--dark);
}

/* ─── SERVICES GRID (services page) ─────────────────────── */
.services-intro { padding-top: 3rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem 0 4rem;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  background-color: var(--dark);
  padding: 1rem 1.25rem;
  border-bottom: 3px solid var(--amber);
}

.service-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.service-card:hover .service-image { transform: scale(1.04); }

.service-description {
  padding: 1rem 1.25rem 1.25rem;
  font-size: 0.9rem;
  color: var(--grey-mid);
  line-height: 1.7;
}

/* ─── PRODUCTS GRID (products page) ─────────────────────── */
.products-section { padding-top: 3rem; }

.section-intro {
  font-size: 0.97rem;
  color: var(--grey-mid);
  max-width: 700px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.products-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding-bottom: 4rem;
}

.product-card {
  background-color: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.product-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image { transform: scale(1.04); }

.product-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--black);
  padding: 1rem 1.25rem 0.5rem;
  border-top: 3px solid var(--amber);
}

.product-description {
  padding: 0 1.25rem 1.25rem;
  font-size: 0.88rem;
  color: var(--grey-mid);
  line-height: 1.7;
}

/* ─── CONTACT INFO GRID ──────────────────────────────────── */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
  margin: 2rem 0;
}

.contact-card {
  background-color: var(--white);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s, border-top-color 0.3s;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--amber);
}

.contact-card-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
  margin-bottom: 0.85rem;
}

.contact-card-text {
  font-size: 0.92rem;
  color: var(--grey-mid);
  line-height: 1.7;
  margin-bottom: 0.35rem;
}

.contact-link { color: var(--amber); }
.contact-link:hover { color: var(--amber-dark); text-decoration: underline; }

/* ─── CONTACT FORM ───────────────────────────────────────── */
.contact-form-section { padding: 2rem 0 4rem; }

.contact-form {
  max-width: 620px;
  margin: 1.5rem 0;
  background-color: var(--bg-light);
  padding: 2.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--grey-dark);
  margin-bottom: 0.45rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--dark);
  background-color: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(240,146,10,0.12);
}

.form-textarea { resize: vertical; min-height: 140px; }
.form-actions { margin-top: 1.5rem; }

.form-button {
  background-color: var(--amber);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.9rem 2.8rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.25s, transform 0.15s, box-shadow 0.25s;
  box-shadow: var(--shadow-sm);
}

.form-button:hover {
  background-color: var(--amber-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.form-button:active { transform: translateY(0); }

/* ─── CONTACT HERO ───────────────────────────────────────── */
.contact-hero { margin: 0 -1.5rem 2rem; }

.contact-hero .hero-image {
  width: 100%;
  max-width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
  border: none;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background-color: var(--dark);
  color: rgba(255,255,255,0.55);
  padding: 3rem 1.5rem 2rem;
  text-align: center;
}

.site-footer .footer-divider {
  border-color: rgba(255,255,255,0.08);
  margin: 0 auto 2rem;
}

.social-links { margin-bottom: 2rem; }

.footer-heading {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--amber);
  margin-bottom: 0.85rem;
}

.social-link {
  display: inline-block;
  margin: 0 0.35rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  padding: 0.4rem 1rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  transition: all 0.25s;
}

.social-link:hover {
  background-color: var(--amber);
  border-color: var(--amber);
  color: var(--white);
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1.5rem;
}

.footer-link {
  color: rgba(255,255,255,0.55);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--amber); }
.footer-separator { color: rgba(255,255,255,0.2); margin: 0 0.35rem; }

.footer-text {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.footer-text .footer-link { color: rgba(255,255,255,0.4); }
.footer-text .footer-link:hover { color: var(--amber); }
.footer-address { font-size: 0.8rem; color: rgba(255,255,255,0.25); margin-top: 0.25rem; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .header-container { padding: 0 1rem; height: 64px; }
  .logo { width: 56px; }
  .company-name { font-size: 0.95rem; }
  .nav-link { padding: 0.65rem 0.85rem; font-size: 0.72rem; }
  .hero-image { height: 260px; }
  .main-content { padding: 0 1rem 3rem; }

  .services-grid,
  .products-container,
  .contact-info-grid,
  .equipment-list {
    grid-template-columns: 1fr;
  }

  .contact-form { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .company-name { font-size: 0.82rem; }
  .nav-link { padding: 0.5rem 0.6rem; font-size: 0.68rem; }
  .form-button { width: 100%; }
  .hero-image { height: 200px; }
}

/* ─── ACTIVE NAV LINK (set by aamsco.js) ──────────────────── */
.nav-link--active {
  color: var(--amber) !important;
}
.nav-link--active::after {
  width: 100% !important;
}
