/* ===========================
   INSIGHT EVALUATION - MAIN STYLESHEET
   High-fidelity reproduction with mobile responsiveness
   =========================== */

/* ===========================
   LOCAL FONTS
   =========================== */
@font-face {
  font-family: 'Raleway';
  src: url('../fonts/Raleway-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

/* ===========================
   CSS RESET & BASE
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 20px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans Pro',Arial, Helvetica, sans-serif;
  color: #787878;
  background-color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  /* font-weight: 400; */
}

/* Background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/background-pattern.png');
  background-repeat: repeat;
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ===========================
   CSS VARIABLES
   =========================== */
:root {
  /* Colors */
  --color-white: #ffffff;
  --color-dark-blue: #015b90;
  --color-light-blue: #80adc6;
  --color-orange: #e27939;
  --color-dark-gray: #474747;
  --color-medium-gray: #666666;
  --color-text-gray: #787878;
  --color-light-gray: #f5f5f5;
  --color-border-gray: #ededed;

  /* Typography */
  --font-open-sans: 'Open Sans', sans-serif;
  --font-questrial: 'Questrial', sans-serif;
  --font-raleway: 'Raleway', sans-serif;
  --font-nixie: 'Nixie One', cursive;
  --font-source-sans-pro: 'Source Sans Pro', sans-serif;  

  /* Spacing */
  --header-height: 143px;
  --section-padding: 60px 20px;
  --content-width-desktop: 814px;
  --content-width-tablet: 90%;
  --content-width-mobile: 95%;

  /* Transitions */
  --transition-speed: 0.3s;
}

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: normal;
  line-height: 1.2;
}

h1 {
  font-family: var(--font-questrial);
  font-size: 56px;
  color: var(--color-white);
  letter-spacing: 2px;
}

h2 {
  font-family: var(--font-open-sans);
  font-size: 50px;
  color: var(--color-dark-gray);
  font-weight: 400;
}

h3 {
  font-family: var(--font-open-sans);
  font-size: 36px;
  color: var(--color-dark-gray);
  /* font-weight: 400; */
}

h4 {
  font-family: var(--font-questrial);
  font-size: 24px;
  color: var(--color-dark-gray);
}

p {
  /* font-family: var(--font-raleway); */
  font-size: 16px;
  line-height: 1.53;
  color: var(--color-text-gray);
  margin-bottom: 1em;
  font-weight: 400;
}

p.large {
  font-size: 20px;
}

/* ===========================
   LAYOUT UTILITIES
   =========================== */
.container {
  width: var(--content-width-mobile);
  max-width: var(--content-width-desktop);
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

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

.text-bold {
  font-weight: bold;
}

.text-capitalize {
  text-transform: capitalize;
}

.text-underline {
  text-decoration: underline;
}

/* Section divider */
.section-divider {
  width: 488px;
  max-width: 90%;
  height: 1px;
  background-color: var(--color-dark-blue);
  margin: 5px auto;
}

/* ===========================
   HEADER
   =========================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border-gray);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-container {
  width: 100%;
  max-width: var(--content-width-desktop);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: relative;
}

.logo {
  width: 194px;
  height: 68px;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Navigation */
nav ul {
  display: flex;
  gap: 10px;
}

nav li {
  list-style: none;
}

nav a {
  font-family: var(--font-open-sans);
  font-size: 18px;
  font-weight: normal;
  color: var(--color-medium-gray);
  text-transform: capitalize;
  padding: 8px 16px;
  transition: color var(--transition-speed);
}

nav a:hover {
  color: var(--color-dark-blue);
}

nav a.active {
  text-decoration: underline;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--color-dark-gray);
  cursor: pointer;
  padding: 8px;
}

/* ===========================
   MAIN CONTENT
   =========================== */
main {
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
}

/* ===========================
   HERO SECTIONS
   =========================== */
.hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.36);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 772px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 56px;
  color: var(--color-white);
}

.hero h1 span {
  font-size: 60px;
}

/* Hero backgrounds */
.hero-home {
  background-image: url('../images/hero-home.jpg');
}

.hero-about {
  background-image: url('../images/hero-about.jpg');
}

.hero-services {
  background-image: url('../images/hero-services.jpg');
}

.hero-services h1 {
  font-size: 72px;
  text-align: left;
}

/* ===========================
   SECTIONS
   =========================== */
section {
  padding: var(--section-padding);
  background-color: var(--color-white);
}

section.dark-blue {
  background-color: var(--color-dark-blue);
}

section.light-blue {
  background-color: var(--color-light-blue);
}

/* ===========================
   HOME PAGE - ABOUT SECTION
   =========================== */
.about-section {
  padding: 60px 20px;
}

.about-content {
  max-width: 659px;
  margin: 0 auto;
}

.about-content ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 1.5em;
}

.about-content li {
  /* font-family: var(--font-raleway); */
  /* font-size: 20px; */
  line-height: 1.53;
  color: var(--color-text-gray);
  margin-bottom: 0.5em;
}

/* ===========================
   HOME PAGE - SERVICES GRID
   =========================== */
.services-section {
  padding: 60px 20px;
  min-height: 458px;
}

.services-section h3 {
  font-family: var(--font-source-sans-pro);
  color: var(--color-white);
  text-align: center;
  margin-bottom: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  text-align: center;
}

.service-card a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--color-white);
  transition: transform var(--transition-speed);
}

.service-card a:hover {
  transform: translateY(-5px);
}

.service-icon {
  width: 156px;
  height: 149px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.service-icon img {
  width: 105px;
  height: 105px;
}

.service-icon svg,
.service-icon i {
  font-size: 105px;
  color: var(--color-orange);
}

.service-card h4 {
  font-size: 24px;
  line-height: 1.2;
  color: var(--color-white);
}

/* ===========================
   HOME PAGE - TESTIMONIALS
   =========================== */
.testimonials-section {
  padding: 60px 20px;
  min-height: 558px;
}

.testimonials-section h3 {
  text-align: center;
  margin-bottom: 40px;
}

.testimonials-container {
  max-width: 948px;
  margin: 0 auto;
  position: relative;
  min-height: 200px;
  padding: 0 100px;
}

.testimonials-wrapper {
  position: relative;
  overflow: hidden;
  min-height: 200px;
}

.testimonial {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  text-align: left;
  transform: translateX(100%);
  visibility: hidden;
}

.testimonial.active {
  position: relative;
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.4s ease;
}

.testimonial.slide-out {
  position: absolute;
  transform: translateX(-100%);
  visibility: visible;
  transition: transform 0.4s ease;
}

.testimonial-quote {
  font-family: var(--font-source-sans-pro);
  font-size: 22px;
  line-height: 1.53;
  color: var(--color-text-gray);
  margin-bottom: 20px;
}

.testimonial-author,
.testimonial-org {
  font-family: var(--font-source-sans-pro);
  font-size: 20px;
  color: var(--color-dark-gray);
  display: inline;
  text-align: center;
}

.testimonial-author {
  font-weight: light;
  display: block;
  text-align: center;
}

/* Testimonial navigation */
.testimonial-nav {
  position: absolute;
  top: 100px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.testimonial-nav button {
  width: 35px;
  height: 35px;
  border-radius: 50px;
  background-color: var(--color-text-gray);
  border: 1px solid var(--color-text-gray);
  color: var(--color-white);
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition-speed);
  pointer-events: auto;
}

.testimonial-nav button.prev-btn {
  margin-left: 0;
}

.testimonial-nav button.next-btn {
  margin-right: 0;
}

.testimonial-nav button:hover {
  background-color: var(--color-dark-blue);
  border-color: var(--color-dark-blue);
}

/* Mobile: move nav buttons below carousel, expand container width */
@media (max-width: 500px) {
  .testimonials-container {
    padding: 0 10px;
    max-width: 100%;
  }

  .testimonial-nav {
    position: static;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
  }
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background-color: var(--color-light-blue);
  padding: 40px 20px;
  min-height: 187px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-content {
  text-align: center;
  max-width: 800px;
}

footer h3 {
  font-family: var(--font-open-sans);
  font-size: 36px;
  color: var(--color-white);
  margin-bottom: 20px;
}

footer p {
  font-family: var(--font-open-sans);
  font-size: 20px;
  line-height: 1.5;
  color: var(--color-dark-gray);
}

footer a {
  color: var(--color-dark-blue);
  text-decoration: underline;
}

footer a:hover {
  color: var(--color-dark-blue);
}

/* ===========================
   ABOUT PAGE SPECIFIC STYLES
   =========================== */
.content-section {
  padding: 60px 20px;
}

.content-section .container {
  max-width: 785px;
}

.section-title {
  font-size: 50px;
  text-align: center;
  margin-bottom: 30px;
}

.values-list {
  list-style: disc;
  margin-top: 20px;
  padding-left: 1.5em;
}

.values-list li {
  font-family: var(--font-source-sans-pro);
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-text-gray);
  margin-bottom: 1.5em;
}

.values-list strong {
  color: var(--color-dark-gray);
  font-weight: bold;
}

/* Team section */
.team-section {
  padding: 60px 20px;
}

.team-member {
  max-width: 962px;
  margin: 0 auto 80px;
  overflow: hidden; /* clearfix for float */
}

.team-member .team-photo {
  float: left;
  width: 401px;
  height: 422px;
  margin-right: 40px;
  margin-bottom: 20px;
  overflow: hidden;
}

.team-member .team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: middle;
}

.team-photo {
  width: 100%;
  max-width: 401px;
}

.team-member h3 {
  font-size: 22;
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-align: center;
}

.team-member-center h3 {
  font-size: 22;
  letter-spacing: 3px;
  margin-bottom: 20px;
  text-align: center;
}

.team-info p {
  font-size: 16px;
  line-height: 1.77;
}

.team-member-center {
  text-align: center;
  margin: 0 auto;
}

.team-member-center .team-photo {
  margin: 0 auto 20px;
  width: 289px;
  height: 292px;
  overflow: hidden;
}

.team-member-center .team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ===========================
   SERVICES PAGE SPECIFIC STYLES
   =========================== */
.service-detail {
  padding: 60px 20px;
}

.service-detail .container {
  max-width: 793px;
}

.service-detail h2 {
  text-align: center;
  margin-bottom: 30px;
}

.service-detail p {
  margin-bottom: 1.5em;
}

.service-detail ul {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.service-detail li {
  font-family: var(--font-source-sans-pro);
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-text-gray);
  margin-bottom: 0.5em;
}

/* ===========================
   RESPONSIVE DESIGN - TABLET
   =========================== */
@media (max-width: 1024px) {
  :root {
    --header-height: 80px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 38px;
  }

  h3 {
    font-size: 28px;
  }

  .hero h1 span {
    font-size: 46px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-member .team-photo {
    width: 300px;
    margin-right: 30px;
  }
}

/* ===========================
   RESPONSIVE DESIGN - MOBILE
   =========================== */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
    --section-padding: 40px 15px;
  }

  /* Header adjustments */
  header {
    height: 70px;
  }

  .logo {
    width: 150px;
    height: auto;
  }

  /* Mobile menu */
  .mobile-menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-border-gray);
    display: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
  }

  nav li {
    border-bottom: 1px solid var(--color-light-gray);
  }

  nav a {
    display: block;
    padding: 15px 20px;
    font-size: 16px;
  }

  /* Typography adjustments */
  h1 {
    font-size: 32px;
    letter-spacing: 1px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 24px;
  }

  h4 {
    font-size: 20px;
  }

  p {
    font-size: 16px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero h1 span {
    font-size: 34px;
  }

  .hero-services h1 {
    font-size: 42px;
    text-align: center;
  }

  /* Services grid - single column on mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Testimonials */
  .testimonial-quote {
    font-size: 18px;
  }

  .testimonial-author,
  .testimonial-org {
    font-size: 16px;
  }

  /* Team section - stack vertically on mobile */
  .team-member .team-photo {
    float: none;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 20px;
  }

  /* Footer */
  footer h3 {
    font-size: 28px;
  }

  footer p {
    font-size: 16px;
  }

  /* Section divider */
  .section-divider {
    width: 90%;
  }
}

/* ===========================
   SMALL MOBILE (< 480px)
   =========================== */
@media (max-width: 480px) {
  .logo {
    width: 120px;
  }

  h1 {
    font-size: 28px;
  }

  .hero {
    min-height: 250px;
  }

  .services-section,
  .testimonials-section {
    min-height: auto;
  }
}
