/* ==========================================================================
   (AESPAK) Aziz Wani Engineering Services
   Ultra-Sleek, Minimalist & Professional Corporate Information Portal
   ========================================================================== */

:root {
  --brand-blue: #0f4c92;
  --brand-blue-hover: #0a386d;
  --brand-navy: #07172c;
  --brand-navy-light: #0d223f;
  --brand-accent: #0284c7;
  
  --surface-white: #ffffff;
  --surface-alt: #f8fafc;
  --surface-subtle: #f1f5f9;
  --surface-card: #ffffff;
  
  --border-hairline: #e2e8f0;
  --border-medium: #cbd5e1;
  
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;
  
  --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Inter", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Inter", sans-serif;
  
  --container-width: 1200px;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-family);
  color: var(--text-primary);
  background-color: var(--surface-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   Scroll Reveal Animation
   ========================================================================== */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-spring), transform 0.6s var(--ease-spring);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Masthead Navigation
   ========================================================================== */

.masthead {
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.96);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.masthead.scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  gap: 2rem;
}

.brand-anchor {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}

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

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--brand-navy);
  line-height: 1.2;
}

.brand-meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-top: 0.15rem;
}

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

.nav-anchor {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding: 0.25rem 0;
}

.nav-anchor:hover {
  color: var(--brand-blue);
}

.nav-anchor::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-blue);
  transition: width 0.2s var(--ease-spring);
  border-radius: 2px;
}

.nav-anchor:hover::after {
  width: 100%;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-inverse);
  background: var(--brand-blue);
  padding: 0.55rem 1.15rem;
  border-radius: 4px;
  transition: all 0.2s var(--ease-spring);
}

.btn-contact:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-1px);
}

/* ==========================================================================
   Regulatory Compliance Ribbon
   ========================================================================== */

.regulatory-ribbon {
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border-hairline);
  padding: 0.75rem 0;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.ribbon-items {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.ribbon-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

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

/* ==========================================================================
   Hero Section (Simplified, Modern & Sleek)
   ========================================================================== */

.hero {
  padding: 5rem 0 4.5rem 0;
  background: var(--surface-white);
  border-bottom: 1px solid var(--border-hairline);
}

.hero-inner {
  max-width: 860px;
}

.hero-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: 1rem;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--brand-navy);
  margin-bottom: 1.5rem;
}

.hero-heading span {
  color: var(--brand-blue);
}

.hero-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

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

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--brand-blue);
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s var(--ease-spring);
}

.btn-hero-primary:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-2px);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--surface-white);
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
  padding: 0.75rem 1.4rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s var(--ease-spring);
}

.btn-hero-secondary:hover {
  background: var(--surface-subtle);
  color: var(--text-primary);
  border-color: var(--brand-blue);
}

/* ==========================================================================
   Catalog Section
   ========================================================================== */

.section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border-hairline);
}

.section-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--brand-navy);
  line-height: 1.25;
}

.section-caption {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  max-width: 680px;
}

/* Filter Segments */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-hairline);
  padding-bottom: 1.25rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.filter-segments {
  display: inline-flex;
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface-white);
}

.segment-btn {
  background: transparent;
  border: none;
  padding: 0.5rem 1.15rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-right: 1px solid var(--border-medium);
  transition: all 0.15s ease;
}

.segment-btn:last-child {
  border-right: none;
}

.segment-btn:hover {
  background: var(--surface-subtle);
  color: var(--brand-blue);
}

.segment-btn.active {
  background: var(--brand-blue);
  color: var(--text-inverse);
}

.search-input-box {
  position: relative;
  min-width: 260px;
}

.search-field {
  width: 100%;
  padding: 0.5rem 0.85rem 0.5rem 2.2rem;
  font-size: 0.85rem;
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  background: var(--surface-white);
  color: var(--text-primary);
  outline: none;
  font-family: inherit;
  transition: all 0.15s ease;
}

.search-field:focus {
  border-color: var(--brand-blue);
}

.search-icon-svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Commodity Cards */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.commodity-card {
  border: 1px solid var(--border-hairline);
  background: var(--surface-card);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s var(--ease-spring), border-color 0.25s ease, box-shadow 0.25s ease;
}

.commodity-card:hover {
  transform: translateY(-4px);
  border-color: rgba(15, 76, 146, 0.4);
  box-shadow: 0 10px 24px rgba(15, 76, 146, 0.07);
}

.card-visual {
  position: relative;
  height: 200px;
  background: var(--surface-subtle);
  overflow: hidden;
}

.card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-spring);
}

.commodity-card:hover .card-visual img {
  transform: scale(1.04);
}

.card-tag {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  backdrop-filter: blur(8px);
}

.card-tag.import {
  background: rgba(15, 76, 146, 0.9);
  color: #ffffff;
}

.card-tag.export {
  background: rgba(5, 150, 105, 0.9);
  color: #ffffff;
}

.card-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-navy);
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Corporate Profile Section
   ========================================================================== */

.profile-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.profile-narrative {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.profile-narrative p {
  margin-bottom: 1.25rem;
}

.profile-data-box {
  border: 1px solid var(--border-hairline);
  background: var(--surface-alt);
  border-radius: 6px;
  padding: 1.75rem;
}

.profile-data-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-hairline);
}

.profile-data-row {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  font-size: 0.88rem;
}

.profile-data-row:last-child {
  border-bottom: none;
}

.profile-data-label {
  color: var(--text-muted);
}

.profile-data-val {
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   Contact & Direct Desk Section
   ========================================================================== */

.contact-layout-simple {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-card-simple {
  border: 1px solid var(--border-hairline);
  background: var(--surface-alt);
  border-radius: 6px;
  padding: 2rem;
}

.contact-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 0.5rem;
}

.contact-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.contact-entry {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.contact-entry-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.contact-entry-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-navy);
  margin-top: 0.15rem;
}

.contact-entry-val a {
  color: var(--brand-blue);
  text-decoration: none;
}

.contact-entry-val a:hover {
  text-decoration: underline;
}

.quick-mail-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mail-field {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border-medium);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text-primary);
  background: var(--surface-white);
  outline: none;
  transition: border-color 0.15s ease;
}

.mail-field:focus {
  border-color: var(--brand-blue);
}

.mail-textarea {
  min-height: 110px;
  resize: vertical;
}

.btn-send-mail {
  background: var(--brand-blue);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-send-mail:hover {
  background: var(--brand-blue-hover);
}

/* ==========================================================================
   Site Footer
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-hairline);
  background: var(--surface-white);
  padding: 3rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-nav {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.footer-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--brand-blue);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .profile-layout {
    grid-template-columns: 1fr;
  }
  .contact-layout-simple {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .masthead-nav {
    display: none;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .hero-heading {
    font-size: 2.2rem;
  }
  .ribbon-items {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .section-header-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}
