/* =========================================
   SMARTTEST — HOMEPAGE STYLES (FINAL)
   Matches current page-home.php markup
========================================= */

:root{
  --st-header-footer: #081848;
  --st-button: #B09850;
  --st-button-hover: #907840;
  --st-highlight: #108080;
  --st-section-bg: #F6F5F1;
  --st-card-bg: #FFFFFF;
  --st-border: #E8E3D6;
  --st-text: #122033;
  --st-text-secondary: #5B6778;

  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow: 0 14px 34px rgba(18,32,51,0.12);
  --container: 1160px;
  
  --section-space: 60px;

  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-display: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

#masthead,
#masthead .ast-primary-header-bar,
#masthead .main-header-bar,
.ast-primary-header-bar,
.main-header-bar{
  background-color: #0E2A63 !important;
  background: #0E2A63 !important;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--st-text);
  background: var(--st-section-bg);
}

a{
  text-decoration: none;
  color: inherit;
}

/* Side CTA */
.side-cta{
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 14px 12px;
  border-radius: 999px;
  background: var(--st-button);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.2px;
  box-shadow: var(--shadow);
  border: 1px solid var(--st-button);
}

.side-cta:hover{
  background: var(--st-button-hover);
  color: #ffffff;
}

/* Hero */
.hero{
  background: #F6F5F1;
  min-height: auto;
  padding: 20px 20px 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-inner{
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 24px;
}

.hero-left{
  max-width: 660px;
}

.hero-kicker{
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid #D5B24E;
  color: #9A7A2D;
  background: transparent;
  font-size: 13px;
  line-height: 1.2;
}

.hero-title{
  margin: 0 0 42px;
  margin-bottom: 28px;
  font-family: var(--font-display);
  color: #17366D !important;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.17;
  font-size: clamp(42px, 4.2vw, 55px);
  max-width: 690px;
  text-shadow: none;
}

.hero-subtitle{
  margin: 0 0 48px;
  margin-bottom: 30px;
  max-width: 640px;
  color: #222222;
  line-height: 1.28;
  font-size: 15.5px;
  text-align: justify;
}

.hero-features{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hero-feature{
  min-height: 70px;
  border: 1.5px solid #D5B24E;
  border-radius: 12px;
  padding: 12px 14px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(8,24,72,0.06);
  color: #222222;
  font-size: 12px;
  line-height: 1.25;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding-left: 2px;
}

.hero-feature .feature-icon{
  width: 20px;
  height: 20px;
  object-fit: contain;
  margin-top: 2px; /* aligns with first line of text */
  flex-shrink: 0;
}

.hero-feature span{
  display: block;
}

.hero-right{
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-right img{
  display: block;
  width: 100%;
  max-width: 620px;
  height: auto;
}

/* Services */
.services-section{
  background: #F6F5F1;
  padding: var(--section-space) 20px;
}

.services-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section-kicker{
  margin: 0 0 16px;
  color: #9A7A2D;
  font-size: 20px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.services-title{
  margin: 0 0 24px;
  color: #082A68 !important;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.34;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.services-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 56px;
  row-gap: 14px;
}

.service-card{
  min-height: 239px;
  border: 1.5px solid #D5B24E;
  border-radius: 40px;
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(8,24,72,0.06);
  padding: 10px 33px 14px;
  display: flex;
  flex-direction: column;
}

.service-icon{
  width: 62px;
  height: 62px;
  object-fit: contain;
  margin: 0 0 1px;
  opacity: 0.78;
}

/*.services-grid .service-card:nth-child(5) .service-icon{*/
/*  width: 90px;*/
/*  height: 90px;*/
/*}*/

/*.services-grid .service-card:nth-child(6) .service-icon{*/
/*  width: 50px;*/
/*  height: 50px;*/
/*}*/

.service-card h3{
  margin: 0 0 18px;
  color: #06184A !important;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 800;
}

.service-card p{
  margin: 0;
  color: #111111;
  font-size: 11.5px;
  line-height: 1.2;
  text-align: justify;
}

.service-card a{
  margin-top: auto;
  color: #178EA0;
  font-size: 9.5px;
  line-height: 1;
  font-weight: 500;
}

.service-card a span{
  color: #178EA0;
  font-size: 17px;
  position: relative;
  top: 3px;
  margin-left: 5px;
}

/* Sectors + Process */
.sectors-process{
  background: #F6F5F1;
}

.sectors-section{
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--section-space) 20px;
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  gap: 58px;
  align-items: center;
}

.sectors-title,
.process-title{
  margin: 0;
  color: #082A68 !important;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.34;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.sectors-text{
  margin: 30px 0 0;
  max-width: 420px;
  color: #111111;
  font-size: 12.5px;
  line-height: 1.35;
}

.sectors-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 50px;
  padding-top: 30px;
}

.sector-pill{
  height: 55px;
  border: 1.5px solid #D5B24E;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  color: #06184A;
  font-size: 10px;
  font-weight: 500;
}

.sector-pill:first-letter{
  font-size: 30px;
  opacity: 0.65;
}

.sector-pill img{
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Unified section alignment fix */
.services-inner,
.sectors-section,
.home-contact-inner{
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Process */
.process-section{
  background: #F6F5F1;
  padding: var(--section-space) 0;
}

.process-section > .section-kicker,
.process-section > .process-title,
.process-section > .process-grid{
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.process-grid{
  padding-left: 20px;
  padding-right: 20px;
}

.process-title{
  margin-top: 20px;
  margin-bottom: 34px;
}

.process-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.process-card{
  min-height: 134px;
  background: #F8F4E8;
  border: 1.5px solid #D8D8D8;
  border-radius: 20px;
  padding: 30px 18px 16px;
  position: relative;
  box-shadow: 0 3px 5px rgba(8,24,72,0.28);
}

.process-number{
  position: absolute;
  top: 10px;
  left: 19px;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: #2B9BAA;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
}

.process-card h3{
  margin: 0 0 18px;
  color: #06184A !important;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 800;
}

.process-card p{
  margin: 0;
  color: #111111;
  font-size: 10.5px;
  line-height: 1.25;
  text-align: justify;
}

.process-card{
  overflow: visible;
}

.enquiry-card{
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.enquiry-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 10px 18px rgba(8,24,72,0.22);
}

.process-card.enquiry-card{
  overflow: hidden;
  padding-bottom: 54px;
}

.enquiry-hover-btn{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;

  height: 46px;
  background: #06184A;
  color: #ffffff !important;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  font-weight: 800;
  border-radius: 0 0 20px 20px;

  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.enquiry-card:hover .enquiry-hover-btn{
  opacity: 1;
  transform: translateY(0);
}

.enquiry-hover-btn:hover{
  background: #081F5C;
}

/* Contact */
.home-contact{
  background: #F6F5F1;
  padding: var(--section-space) 20px;
}

.home-contact-inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 0.9fr 1.35fr;
  gap: 28px;
  align-items: center;
}

.home-contact-title{
  margin: 18px 0 10px;
  color: #082A68 !important;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-contact-text{
  margin: 0;
  max-width: 410px;
  color: #111111;
  font-size: 12.5px;
  line-height: 1.35;
}

.home-contact-cards{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.home-contact-card{
  min-height: 114px;
  background: #F8F4E8;
  border: 1.5px solid #D8D8D8;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: 0 3px 5px rgba(8,24,72,0.28);
}

.contact-icon{
  color: #2B9BAA;
  font-size: 22px;
  line-height: 1;
  margin-bottom: 14px;
}

.home-contact-card h3{
  margin: 0 0 18px;
  color: #06184A !important;
  font-size: 13px;
  font-weight: 800;
}

.home-contact-card p{
  margin: 0;
  color: #111111;
  font-size: 10.5px;
  line-height: 1.25;
}

.section-kicker,
.services-title,
.sectors-title,
.process-title,
.home-contact-title{
  padding-left: 0;
  margin-left: 0;
}

/* Mobile */
@media (max-width: 860px){
  .hero{
    padding-top: 34px;
  }

  .hero-inner{
    grid-template-columns: 1fr;
  }

  .hero-right{
    justify-content: center;
  }

  .hero-features{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 544px){
  .hero-title{
    font-size: 36px;
  }

  .side-cta{
    display: none;
  }
}

@media (max-width: 900px){
  .services-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
}

@media (max-width: 600px){
  .services-title{
    font-size: 26px;
  }

  .services-grid{
    grid-template-columns: 1fr;
  }

  .service-card{
    border-radius: 28px;
  }
}

@media (max-width: 900px){
  .sectors-section{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sectors-grid{
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .process-grid{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px){
  .sectors-title,
  .process-title{
    font-size: 26px;
  }

  .process-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px){
  .home-contact-inner{
    grid-template-columns: 1fr;
  }

  .home-contact-cards{
    grid-template-columns: 1fr;
  }
}
