/* ============================================================
   Davina Group Industrial Supply — Main Stylesheet
   2015–2018 era corporate look: Bootstrap 3 feel, no animations.
   Colors: Navy #1a3560, Medium Blue #2a4a7f, Gold accent #c8a84b,
           Light gray bg #f5f5f5, Mid gray #e8ecf0, Text #333
   ============================================================ */

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

html {
  font-size: 14px;
  scroll-behavior: auto; /* intentionally no smooth scroll */
}

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #333333;
  background: #f0f2f5;
}

a {
  color: #2a4a7f;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #1a3560;
}

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

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.main-layout {
  display: flex;
  gap: 28px;
  padding-top: 24px;
  padding-bottom: 36px;
  align-items: flex-start;
}

.content-primary { flex: 1; min-width: 0; }
.content-sidebar { width: 260px; flex-shrink: 0; }

/* ── Utilities ── */
.mt-8  { margin-top: 8px;  }
.mt-16 { margin-top: 16px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: #1a3560;
  border-bottom: 3px solid #c8a84b;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  background: #c8a84b;
  color: #1a3560;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -1px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-text {
  font-size: 20px;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 0.3px;
  line-height: 1.15;
}

.logo-sub {
  font-size: 10px;
  color: #a8bcd4;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 2px;
}

.header-contact {
  font-size: 12px;
  color: #7a95b4;
  text-align: right;
  line-height: 1.8;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-nav {
  background: #2a4a7f;
  border-bottom: 1px solid #1a3560;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
}

.nav-inner a {
  display: inline-block;
  padding: 11px 18px;
  color: #c8d8e8;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-right: 1px solid #1a3560;
  line-height: 1;
}

.nav-inner a:first-child { border-left: 1px solid #1a3560; }

.nav-inner a:hover,
.nav-inner a.active {
  background: #1a3560;
  color: #ffffff;
  text-decoration: none;
}

/* ============================================================
   HERO / BANNER
   ============================================================ */
.hero-banner {
  background: #e8ecf0;
  border-bottom: 1px solid #cdd5dd;
  padding: 36px 0 28px;
}

.hero-banner h1 {
  font-size: 24px;
  color: #1a3560;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.hero-banner p {
  font-size: 14px;
  color: #555;
  line-height: 1.75;
  max-width: 780px;
}

/* ============================================================
   PAGE TITLE BAR
   ============================================================ */
.page-title-bar {
  background: #2a4a7f;
  padding: 12px 0;
  border-bottom: 1px solid #1a3560;
}

.page-title-bar h2 {
  font-size: 18px;
  color: #ffffff;
  font-weight: bold;
  letter-spacing: 0.2px;
}

/* ============================================================
   NOTICE BAR
   ============================================================ */
.notice-bar {
  background: #f0f4f8;
  border: 1px solid #ccd5de;
  border-left: 4px solid #7a9cbf;
  padding: 10px 16px;
  font-size: 12px;
  color: #555;
  font-style: italic;
  line-height: 1.6;
}

.notice-bar a { color: #2a4a7f; }

/* ============================================================
   INFO BOX
   ============================================================ */
.info-box {
  background: #ffffff;
  border: 1px solid #ddd;
  border-top: 3px solid #2a4a7f;
  padding: 18px 20px;
  margin-bottom: 22px;
}

.info-box h2 {
  font-size: 15px;
  color: #1a3560;
  margin-bottom: 10px;
  font-weight: bold;
}

.info-box p {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 8px;
}

.info-box p:last-child { margin-bottom: 0; }

/* ============================================================
   SECTION TITLE
   ============================================================ */
.section-title {
  font-size: 15px;
  color: #1a3560;
  font-weight: bold;
  margin-bottom: 14px;
}

/* ============================================================
   SERVICE GRID (Homepage)
   ============================================================ */
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.service-item {
  width: calc(50% - 7px);
  border: 1px solid #ddd;
  background: #f9f9f9;
  padding: 16px;
}

.service-item h4 {
  font-size: 13px;
  color: #1a3560;
  font-weight: bold;
  margin-bottom: 6px;
}

.service-item p {
  font-size: 12px;
  color: #777;
  line-height: 1.6;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-box {
  background: #f4f6f8;
  border: 1px solid #dde2e8;
  padding: 16px;
  margin-bottom: 18px;
}

.sidebar-box h4 {
  font-size: 12px;
  color: #1a3560;
  font-weight: bold;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ccc;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.sidebar-box p {
  font-size: 12px;
  color: #666;
  line-height: 1.65;
  margin-bottom: 6px;
}

.sidebar-box ul { list-style: none; padding: 0; }

.sidebar-box li {
  font-size: 12px;
  color: #666;
  line-height: 1.8;
}

.sidebar-box li::before { content: "›  "; color: #2a4a7f; font-weight: bold; }
.sidebar-box li a { color: #2a4a7f; }

.note-small {
  font-size: 11px;
  color: #999;
  font-style: italic;
  margin-top: 6px;
}

/* ============================================================
   PRODUCTS PAGE
   ============================================================ */
.product-category {
  border: 1px solid #ddd;
  background: #ffffff;
  margin-bottom: 16px;
}

.product-category-header {
  background: #e8ecf0;
  padding: 11px 18px;
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-category-header h3 {
  font-size: 14px;
  font-weight: bold;
  color: #1a3560;
  margin: 0;
}

.cat-badge {
  background: #2a4a7f;
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  flex-shrink: 0;
}

.product-category-body {
  padding: 16px 18px;
}

.product-category-body p {
  font-size: 13px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 10px;
}

.product-category-body p:last-child { margin-bottom: 0; }

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.product-tag {
  background: #f0f4f8;
  border: 1px solid #c5d2dc;
  padding: 3px 10px;
  font-size: 11px;
  color: #3a5a7a;
  white-space: nowrap;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-section {
  margin-bottom: 26px;
}

.about-section h3 {
  font-size: 15px;
  color: #1a3560;
  font-weight: bold;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e8ecf0;
}

.about-section p {
  font-size: 13px;
  color: #555;
  line-height: 1.8;
  margin-bottom: 10px;
}

.about-section p:last-child { margin-bottom: 0; }
.about-section a { color: #2a4a7f; }

/* Timeline */
.timeline {
  border-left: 3px solid #2a4a7f;
  margin-left: 8px;
  padding-left: 22px;
}

.timeline-item { margin-bottom: 20px; }

.timeline-year {
  font-size: 13px;
  font-weight: bold;
  color: #2a4a7f;
  margin-bottom: 3px;
}

.timeline-item p {
  font-size: 12px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-card {
  background: #ffffff;
  border: 1px solid #ddd;
  padding: 24px;
}

.contact-card-title {
  font-size: 15px;
  color: #1a3560;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8ecf0;
}

.contact-layout {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.contact-form-wrap { flex: 1; min-width: 0; }
.contact-info-wrap { width: 260px; flex-shrink: 0; }

/* Form */
.form-group { margin-bottom: 16px; }

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 0;
}

.form-row .form-group { flex: 1; }

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  color: #1a3560;
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  border: 1px solid #cccccc;
  padding: 8px 10px;
  font-size: 13px;
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  background: #ffffff;
  outline: none;
  border-radius: 0; /* intentionally no rounding — old school */
  appearance: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: #2a4a7f;
}

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

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23555'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  cursor: pointer;
}

.req { color: #c0392b; font-weight: bold; }

.form-group--check .check-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #666;
  font-weight: normal;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}

.form-group--check input[type="checkbox"] {
  width: auto;
  margin-top: 2px;
  flex-shrink: 0;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 6px;
}

.btn-submit {
  background: #2a4a7f;
  color: #ffffff;
  border: none;
  padding: 10px 28px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: Arial, Helvetica, sans-serif;
  border-radius: 0;
}

.btn-submit:hover { background: #1a3560; }

.form-req-note {
  font-size: 11px;
  color: #999;
}

/* Contact info boxes */
.contact-info-box {
  background: #f4f6f8;
  border: 1px solid #dde2e8;
  padding: 16px;
  margin-bottom: 14px;
}

.contact-info-box h4 {
  font-size: 12px;
  color: #1a3560;
  font-weight: bold;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ccc;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.contact-info-box p {
  font-size: 12px;
  color: #666;
  line-height: 1.75;
  margin-bottom: 5px;
}

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

/* Form success / error messages */
.form-msg {
  padding: 12px 16px;
  font-size: 13px;
  border: 1px solid;
  margin-bottom: 18px;
}

.form-msg--success {
  background: #eaf5ea;
  border-color: #7bc47b;
  color: #2d7a2d;
}

.form-msg--error {
  background: #fdf0ef;
  border-color: #e0a0a0;
  color: #8a2a2a;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1a3560;
  border-top: 3px solid #c8a84b;
  margin-top: 20px;
}

.footer-inner {
  display: flex;
  gap: 36px;
  padding-top: 28px;
  padding-bottom: 22px;
}

.footer-col { flex: 1; }

.footer-col h5 {
  font-size: 10px;
  color: #a8bcd4;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  font-weight: bold;
}

.footer-col p {
  font-size: 12px;
  color: #7a95b4;
  line-height: 1.9;
}

.footer-col a {
  font-size: 12px;
  color: #7a95b4;
  line-height: 1.9;
  display: block;
  text-decoration: none;
}

.footer-col a:hover { color: #c8d8e8; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid #2a4a7f;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 16px;
}

.footer-bottom p {
  font-size: 11px;
  color: #5a7898;
  line-height: 1.5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .main-layout {
    flex-direction: column;
  }

  .content-sidebar { width: 100%; }

  .footer-inner { flex-wrap: wrap; gap: 20px; }
  .footer-col { min-width: calc(50% - 10px); }

  .footer-bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .contact-layout {
    flex-direction: column;
  }

  .contact-info-wrap { width: 100%; }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .header-contact { text-align: left; }

  .hero-banner h1 { font-size: 18px; }

  .service-item { width: 100%; }

  .form-row { flex-direction: column; gap: 0; }

  .footer-col { min-width: 100%; }

  .logo-text { font-size: 16px; }
}
