/* ===== APEX TECH STORAGE — DESIGN SYSTEM ===== */

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

:root {
  --navy: #0C1B2A;
  --navy-light: #142D45;
  --steel: #1E3A5F;
  --accent: #E8731A;
  --accent-hover: #D4650F;
  --accent-light: #FFF3E8;
  --white: #FFFFFF;
  --off-white: #F7F8FA;
  --gray-50: #F0F2F5;
  --gray-100: #E1E5EB;
  --gray-200: #C4CAD4;
  --gray-400: #8892A0;
  --gray-600: #5A6374;
  --gray-800: #2D3440;
  --text: #1A2332;
  --text-secondary: #4A5568;
  --green: #16A34A;
  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(12,27,42,0.08);
  --shadow-md: 0 4px 16px rgba(12,27,42,0.1);
  --shadow-lg: 0 8px 32px rgba(12,27,42,0.12);
  --max-width: 1200px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

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

/* ===== HEADER / NAVBAR ===== */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo img {
  height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  transition: var(--transition);
}

.main-nav { display: flex; align-items: center; gap: 4px; }

.main-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: var(--transition);
  letter-spacing: 0.01em;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}
.dropdown-trigger::after {
  content: '';
  border: 4px solid transparent;
  border-top-color: rgba(255,255,255,0.6);
  margin-top: 2px;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 240px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  margin-top: 8px;
  z-index: 100;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  color: var(--text);
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 0;
}
.dropdown-menu a:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.header-cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 10px 20px !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.02em;
}
.header-cta:hover {
  background: var(--accent-hover) !important;
  color: var(--white) !important;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
  color: var(--white);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(232,115,26,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { max-width: 720px; position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}
.hero .subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  line-height: 1.6;
  font-weight: 400;
}
.hero p {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  line-height: 1.7;
  max-width: 640px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-hover); color: var(--white); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline:hover { border-color: var(--white); color: var(--white); }

/* ===== SECTIONS ===== */
.section { padding: 72px 0; }
.section-alt { background: var(--off-white); }
.section-dark { background: var(--navy); color: var(--white); }

.section-header {
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
}
.section-dark .section-header h2 { color: var(--white); }
.section-dark .section-header p { color: rgba(255,255,255,0.7); }

/* ===== PRODUCT CARDS ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-100);
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.product-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--gray-50);
}
.product-card-body {
  padding: 24px;
}
.product-card-body h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.product-card-body p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.6;
}
.card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.card-link:hover { gap: 10px; }

/* ===== INFO BAR ===== */
.info-bar {
  background: var(--accent-light);
  border-left: 4px solid var(--accent);
  padding: 24px 32px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 32px 0;
}
.info-bar p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}

/* ===== ISO + SIDEBAR ===== */
.sidebar-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.sidebar-card img {
  max-height: 80px;
  margin: 0 auto 16px;
}
.sidebar-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.sidebar-card p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--steel) 100%);
  color: var(--white);
  padding: 48px 0;
}
.page-header h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 8px;
}
.page-header p {
  color: rgba(255,255,255,0.75);
  font-size: 16px;
  max-width: 640px;
}
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.5);
}
.breadcrumb a { color: rgba(255,255,255,0.7); }
.breadcrumb a:hover { color: var(--white); }

/* ===== CONTENT LAYOUT ===== */
.content-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

.content-sidebar {
  position: sticky;
  top: 96px;
}

.sidebar-nav {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.sidebar-nav h3 {
  font-size: 14px;
  font-weight: 600;
  padding: 16px 20px 12px;
  color: var(--text);
  border-bottom: 1px solid var(--gray-100);
}
.sidebar-nav a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--gray-50);
  transition: var(--transition);
}
.sidebar-nav a:last-child { border-bottom: none; }
.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--accent);
  background: var(--accent-light);
}

.content-main h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}
.content-main h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text);
}
.content-main p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
  max-width: 72ch;
}
.content-main strong { color: var(--text); }

.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}
.image-grid img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  width: 100%;
}
.single-image {
  margin: 32px 0;
}
.single-image img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  max-width: 600px;
}

/* ===== SPEC TABLE ===== */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.spec-table th {
  background: var(--navy);
  color: var(--white);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}
.spec-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--text-secondary);
}
.spec-table tr:nth-child(even) td { background: var(--gray-50); }

/* ===== ENQUIRY BOX ===== */
.enquiry-box {
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 40px 0;
}
.enquiry-box h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent);
}
.enquiry-box .note {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-style: italic;
}
.enquiry-box ul {
  list-style: none;
  padding: 0;
}
.enquiry-box li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.enquiry-box li::before {
  content: '▸';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}
.enquiry-box li strong { color: var(--text); }

/* ===== CATALOGUE DOWNLOADS ===== */
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.download-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.download-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.download-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}
.download-info h4 { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.download-info p { font-size: 13px; color: var(--text-secondary); margin: 0; }

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.contact-info-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}
.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}
.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.contact-detail h4 { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.contact-detail p { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.6; }
.contact-detail a { color: var(--accent); }

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow-sm);
}
.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 8px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  padding: 4px 0;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--accent); }

.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-socials a:hover {
  background: var(--accent);
  color: var(--white);
}

/* ===== ABOUT PAGE ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 40px 0;
}
.about-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.about-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.about-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ===== FEATURES ===== */
.features-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 32px 0;
}
.feature-item {
  text-align: center;
  padding: 24px 16px;
}
.feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.feature-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}
.feature-item p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--accent) 0%, #C05A0E 100%);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.cta-banner h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.cta-banner p {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.btn-white {
  background: var(--white);
  color: var(--accent);
  font-weight: 700;
}
.btn-white:hover { background: var(--off-white); color: var(--accent-hover); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .content-layout { grid-template-columns: 1fr; }
  .content-sidebar { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 16px; width: 100%; }
  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: var(--navy-light);
    margin-top: 0;
    border-radius: 0;
  }
  .dropdown-menu a { color: rgba(255,255,255,0.7) !important; padding-left: 32px !important; }
  .dropdown-menu a:hover { background: rgba(255,255,255,0.05) !important; color: var(--accent) !important; }
  .dropdown:hover .dropdown-menu { display: block; }

  .hero { padding: 48px 0; }
  .section { padding: 48px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .image-grid { grid-template-columns: 1fr; }
}
