/*
 Theme Name:   Aspri Divi Child
 Theme URI:    https://aspri.sg/
 Description:  Divi 5 child theme recreating the Aspri Associates site layout.
 Author:       Aspri Associates
 Template:     Divi
 Version:      1.0.0
 Text Domain:  aspri-divi-child
*/

/* ==========================================================================
   1. BRAND TOKENS
   Fill these in from the live site (browser DevTools > Inspect an element >
   Computed styles), then set the same values in Divi's global colours/fonts.
   ========================================================================== */
:root {
  --aspri-primary:      #0b3d6e;  /* TODO: main brand colour (nav, headings) */
  --aspri-accent:       #e5a823;  /* TODO: buttons / highlights            */
  --aspri-text:         #333333;  /* TODO: body text                       */
  --aspri-muted:        #6b7280;  /* TODO: secondary text                  */
  --aspri-bg-alt:       #f4f6f8;  /* TODO: alternating section background  */
  --aspri-topbar-bg:    #0b3d6e;  /* TODO: phone bar background            */
  --aspri-footer-bg:    #1f2933;  /* TODO: footer background               */
  --aspri-footer-text:  #d1d5db;

  --aspri-font-body:    "Open Sans", Arial, sans-serif;  /* TODO */
  --aspri-font-heading: "Open Sans", Arial, sans-serif;  /* TODO */

  --aspri-radius:       4px;
  --aspri-max-width:    1140px;
}

body {
  font-family: var(--aspri-font-body);
  color: var(--aspri-text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--aspri-font-heading);
  color: var(--aspri-primary);
}

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

/* ==========================================================================
   2. TOP BAR  (phone number: +65 6223-1811)
   In Theme Builder > Header, add a section with class "aspri-topbar".
   ========================================================================== */
.aspri-topbar {
  background: var(--aspri-topbar-bg);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 0 !important;
}
.aspri-topbar a { color: #fff; }

/* ==========================================================================
   3. HEADER  (two logos: Aspri Singapore + Aspri Myanmar, then main menu)
   Give the logo row class "aspri-logos" and the menu module "aspri-nav".
   ========================================================================== */
.aspri-logos .et_pb_image_wrap img { max-height: 70px; width: auto; }
.aspri-logos .aspri-logo-secondary img { max-height: 50px; opacity: .9; }

.aspri-nav .et-menu > li > a,
.aspri-nav nav > ul > li > a {
  color: var(--aspri-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.aspri-nav .et-menu > li.current-menu-item > a,
.aspri-nav .et-menu > li > a:hover { color: var(--aspri-accent); }

.aspri-nav .sub-menu {
  border-top: 3px solid var(--aspri-accent);
  min-width: 280px;
}
.aspri-nav .sub-menu li a { width: 260px; }

/* ==========================================================================
   4. HERO  ("Your company can be better prepared for growth")
   Section class "aspri-hero"; background image: save-on-accounting.jpg
   ========================================================================== */
.aspri-hero {
  background-size: cover;
  background-position: center;
  min-height: 420px;
  display: flex;
  align-items: center;
}
.aspri-hero h1,
.aspri-hero h2 { color: #fff; text-shadow: 0 2px 6px rgba(0,0,0,.35); }
.aspri-hero .et_pb_button {
  background: var(--aspri-accent);
  border: none;
  color: #fff;
  border-radius: var(--aspri-radius);
}

/* ==========================================================================
   5. ACCREDITATION / XERO STRIPS
   Section class "aspri-strip" (centred logo image + heading + text).
   ========================================================================== */
.aspri-strip { text-align: center; }
.aspri-strip:nth-of-type(even) { background: var(--aspri-bg-alt); }
.aspri-strip h1,
.aspri-strip h2 { font-size: 26px; margin-bottom: 16px; }
.aspri-strip img { max-width: 520px; margin: 0 auto; }

/* ==========================================================================
   6. ABOUT / DIFFERENCE / SERVICES TABS
   The original shows these three as tabs. Use Divi's Tabs module with
   class "aspri-tabs".
   ========================================================================== */
.aspri-tabs.et_pb_tabs { border: none; }
.aspri-tabs .et_pb_tabs_controls {
  background: transparent;
  border-bottom: 2px solid var(--aspri-primary);
}
.aspri-tabs .et_pb_tabs_controls li {
  background: var(--aspri-bg-alt);
  border-right: 1px solid #fff;
}
.aspri-tabs .et_pb_tabs_controls li a {
  color: var(--aspri-primary);
  font-weight: 600;
  padding: 12px 22px;
}
.aspri-tabs .et_pb_tabs_controls li.et_pb_tab_active {
  background: var(--aspri-primary);
}
.aspri-tabs .et_pb_tabs_controls li.et_pb_tab_active a { color: #fff !important; }
.aspri-tabs .et_pb_tab { padding: 28px 4px; }
.aspri-tabs .et_pb_tab h3 { font-size: 18px; margin-top: 18px; }

/* Service links list inside the "Our Services" tab */
.aspri-service-list { list-style: none; padding: 0 !important; }
.aspri-service-list li {
  padding: 8px 0 8px 22px;
  border-bottom: 1px dashed #dde2e7;
  position: relative;
}
.aspri-service-list li::before {
  content: "\203A";
  position: absolute;
  left: 4px;
  color: var(--aspri-accent);
  font-weight: 700;
}

/* ==========================================================================
   7. CALL-TO-ACTION  ("request a quotation ... call us at 6223-1811")
   Section class "aspri-cta".
   ========================================================================== */
.aspri-cta {
  background: var(--aspri-primary);
  color: #fff;
  text-align: center;
}
.aspri-cta a { color: var(--aspri-accent); font-weight: 700; }

/* ==========================================================================
   8. FOOTER  (copyright, address, privacy link, back to top)
   In Theme Builder > Footer, section class "aspri-footer".
   ========================================================================== */
.aspri-footer {
  background: var(--aspri-footer-bg);
  color: var(--aspri-footer-text);
  font-size: 14px;
}
.aspri-footer a { color: #fff; }
.aspri-footer a:hover { color: var(--aspri-accent); }
.aspri-back-to-top {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
}

/* ==========================================================================
   9. RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .aspri-hero { min-height: 300px; }
  .aspri-tabs .et_pb_tabs_controls li { float: none; display: block; }
  .aspri-logos .et_pb_image_wrap img { max-height: 55px; }
}
