/* ==============================================================================
   MEGATO - INDUSTRIAL LOGISTICS & TRAILER HAULAGE
   Production Stylesheet
   ============================================================================== */

/* ------------------------------------------------------------------------------
   1. BRAND CONFIGURATION (EDIT COLORS & SETTINGS HERE)
   ------------------------------------------------------------------------------ */
:root {
  /* Core Brand Colors */
  --brand-primary: #0f2438;          /* Industrial Maritime Navy */
  --brand-primary-dark: #071522;     /* Deep Navy for Header/Footer */
  --brand-primary-light: #1e3a5a;    /* Accent Navy */
  --brand-accent: #e65100;           /* Safety Amber / Primary Action */
  --brand-accent-hover: #c44300;     /* Action Hover */
  
  /* Neutral Surfaces */
  --surface-base: #ffffff;           /* Clean White */
  --surface-muted: #f4f6f9;          /* Neutral Section Background */
  --surface-card: #ffffff;           /* Card Background */
  --surface-dark: #0b1a28;           /* Dark Card Background */
  
  /* Text & Readability */
  --text-main: #0f172a;              /* High contrast primary text */
  --text-muted: #475569;             /* Secondary descriptive text */
  --text-light: #94a3b8;             /* Footnote / metadata text */
  --text-on-dark: #f8fafc;           /* Light text on dark navy surfaces */
  
  /* Structural Borders & Shadows */
  --border-subtle: #e2e8f0;
  --border-strong: #cbd5e1;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12);
  
  /* Layout Constraints */
  --max-width: 1200px;
  --header-height: 76px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ------------------------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
   ------------------------------------------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--surface-base);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--brand-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-accent-hover);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ------------------------------------------------------------------------------
   3. HEADER & NAVIGATION
   ------------------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 2px solid var(--border-subtle);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-primary);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover {
  color: var(--brand-accent);
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--brand-accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--brand-accent-hover);
  color: #ffffff;
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--border-strong);
  color: var(--brand-primary);
}

.btn-secondary:hover {
  border-color: var(--brand-primary);
  background-color: var(--surface-muted);
}

.btn-dark {
  background-color: var(--brand-primary);
  color: #ffffff;
}

.btn-dark:hover {
  background-color: var(--brand-primary-light);
  color: #ffffff;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--brand-primary);
  margin: 5px 0;
  transition: all 0.2s ease;
}

/* ------------------------------------------------------------------------------
   4. HERO SECTION
   ------------------------------------------------------------------------------ */
.hero-section {
  background-color: var(--brand-primary-dark);
  color: var(--text-on-dark);
  padding: 4.5rem 0;
  border-bottom: 4px solid var(--brand-accent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(230, 81, 0, 0.15);
  border: 1px solid rgba(230, 81, 0, 0.4);
  color: #ff9800;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item h4 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-accent);
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-light);
}

.hero-media {
  background: #0b1a28;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ------------------------------------------------------------------------------
   5. QUICK TRACKING & INQUIRY INTERACTION (PHASE 2 PREVIEW)
   ------------------------------------------------------------------------------ */
.track-bar-section {
  transform: translateY(-28px);
  margin-bottom: 1rem;
}

.track-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-subtle);
  padding: 1.5rem 2rem;
}

.track-tabs {
  display: flex;
  gap: 2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.track-tab-btn {
  background: none;
  border: none;
  padding-bottom: 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.track-tab-btn.active {
  color: var(--brand-primary);
  border-bottom-color: var(--brand-accent);
}

.track-form {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.track-input {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s;
}

.track-input:focus {
  border-color: var(--brand-accent);
}

.track-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* ------------------------------------------------------------------------------
   6. SERVICES SECTION
   ------------------------------------------------------------------------------ */
.section-padding {
  padding: 5rem 0;
}

.section-muted {
  background-color: var(--surface-muted);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-badge {
  color: var(--brand-accent);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

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

.service-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.service-media {
  width: 100%;
  height: 220px;
  background-color: #0f2438;
  overflow: hidden;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-content {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 0.75rem;
}

.service-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.service-features {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  margin-bottom: 1.25rem;
}

.service-features li {
  font-size: 0.85rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.service-features li::before {
  content: "✓";
  color: var(--brand-accent);
  font-weight: 800;
}

/* ------------------------------------------------------------------------------
   7. FLEET & TECHNICAL SPECIFICATIONS GUIDE
   ------------------------------------------------------------------------------ */
.specs-table-wrapper {
  overflow-x: auto;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.specs-table th {
  background-color: var(--brand-primary);
  color: #ffffff;
  padding: 1rem 1.25rem;
  font-weight: 700;
}

.specs-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
}

.specs-table tr:nth-child(even) {
  background-color: var(--surface-muted);
}

/* ------------------------------------------------------------------------------
   8. VALUE PILLARS (WHY CHOOSE US)
   ------------------------------------------------------------------------------ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.pillar-card {
  padding: 2rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--brand-accent);
}

.pillar-icon {
  width: 48px;
  height: 48px;
  background-color: rgba(230, 81, 0, 0.1);
  color: var(--brand-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.pillar-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ------------------------------------------------------------------------------
   9. CONTACT & DISPATCH INQUIRY FORM
   ------------------------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--surface-muted);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.contact-icon-box {
  width: 44px;
  height: 44px;
  background-color: var(--brand-primary);
  color: #ffffff;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.contact-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-primary);
  margin-bottom: 0.25rem;
}

.contact-card p, .contact-card a {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.inquiry-form-card {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-primary);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  font-size: 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--brand-accent);
}

/* ------------------------------------------------------------------------------
   10. FOOTER
   ------------------------------------------------------------------------------ */
.site-footer {
  background-color: var(--brand-primary-dark);
  color: var(--text-light);
  padding: 4rem 0 2rem 0;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-light);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

/* ------------------------------------------------------------------------------
   11. RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------------------------ */
@media (max-width: 992px) {
  .hero-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    padding: 2rem;
    gap: 1.25rem;
    border-bottom: 2px solid var(--border-subtle);
    box-shadow: var(--shadow-lg);
    display: none;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .header-cta-group {
    display: none;
  }
  
  .track-form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
