/* =========================================================
   Star Technology Training — Global Styles
   ========================================================= */

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

:root {
  --navy:      #142F52;
  --gold:      #C8922A;
  --gold-alt:  #D4A13A;
  --bg:        #F5F5F0;
  --text:      #1a1a1a;
  --text-light:#ffffff;
  --card-bg:   #ffffff;
  --radius:    8px;
  --shadow:    0 2px 12px rgba(0,0,0,.12);
  --transition:.25s ease;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }

/* --- Utility --------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-label {
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .4rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  padding: .65rem 1.6rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--navy);
  color: var(--text-light);
  border-color: var(--navy);
}
.btn-primary:hover,
.btn-primary:focus {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--text-light);
  outline: none;
}

/* =========================================================
   TOP NAVIGATION
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  box-shadow: 0 2px 8px rgba(0,0,0,.1);
  border-bottom: 2px solid rgba(20,47,82,.12);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 120px;
}

.navbar__logo img {
  height: 117px;
  width: auto;
}

.navbar__links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.navbar__links a {
  color: var(--navy);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .04em;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.navbar__links a:hover,
.navbar__links a:focus {
  color: var(--gold);
  border-bottom-color: var(--gold);
  outline: none;
}

/* Hamburger (mobile) */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.navbar__toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 3px;
  transition: transform var(--transition), opacity var(--transition);
}
.navbar__toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.navbar__toggle.open span:nth-child(2) { opacity: 0; }
.navbar__toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background: url('../images/hero-placeholder.jpg') center/cover no-repeat,
              linear-gradient(135deg, var(--navy) 0%, #1e4a7a 100%);
  background-blend-mode: multiply;
  color: var(--text-light);
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 47, 82, 0.65);
}

.hero__content {
  position: relative;
  max-width: 680px;
  padding: 3rem 1.5rem;
}

.hero__content h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.hero__content h1 span {
  color: var(--gold);
}

.hero__content p {
  font-size: 1.15rem;
  margin-bottom: 1.8rem;
  opacity: .9;
}

/* =========================================================
   SERVICES SECTION
   ========================================================= */
.services {
  padding: 5rem 0;
}

.services__header {
  text-align: center;
  margin-bottom: 3rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--navy);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.16);
}

.service-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.service-card__body {
  padding: 1.4rem;
}

.service-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  color: var(--navy);
  margin-bottom: .5rem;
}

.service-card__desc {
  font-size: .9rem;
  color: #555;
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */
.about {
  padding: 5rem 0;
  background: #eceee9;
}

.about__inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.about__image {
  flex: 0 0 40%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about__image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--navy) 0%, #2a6099 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__image-placeholder svg {
  opacity: .3;
}

.about__content { flex: 1; }

.about__content p {
  color: #444;
  margin-bottom: 1.5rem;
  font-size: 1.02rem;
}

/* =========================================================
   CONTACT SECTION
   ========================================================= */
.contact {
  padding: 5rem 0;
}

.contact__inner {
  max-width: 680px;
  margin: 0 auto;
}

.contact__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--navy);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: .7rem 1rem;
  border: 1.5px solid #ccc;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  outline: none;
}
.form-group textarea { resize: vertical; min-height: 130px; }

.captcha-box {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
  padding: .9rem 1.2rem;
  border: 1.5px solid #ccc;
  border-radius: var(--radius);
  background: #fff;
  font-size: .95rem;
  cursor: pointer;
  user-select: none;
}
.captcha-box input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--navy);
  cursor: pointer;
}

.contact__submit { width: 100%; padding: .85rem; font-size: 1rem; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--navy);
  color: var(--text-light);
  padding: 3rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer__brand .footer__logo {
  height: 75px;
  margin-bottom: .75rem;
}

.footer__company-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.footer__contact p {
  opacity: .85;
  font-size: .9rem;
  margin-bottom: .3rem;
}

.footer__contact a {
  color: var(--gold-alt);
  transition: color var(--transition);
}
.footer__contact a:hover { color: var(--text-light); }

.footer__partners h4 {
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-alt);
  margin-bottom: .75rem;
}

.footer__partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.footer__partner-placeholder {
  font-size: .8rem;
  opacity: .5;
  font-style: italic;
}

.footer__partner-badge {
  background: #fff;
  border-radius: 6px;
  padding: 7px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer__partner-badge img {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.15);
  padding-top: 1rem;
  text-align: center;
  font-size: .82rem;
  opacity: .6;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 768px) {
  .navbar__links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bg);
    flex-direction: column;
    gap: 0;
    padding: .5rem 0 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    border-bottom: 2px solid rgba(20,47,82,.12);
  }
  .navbar__links.open { display: flex; }
  .navbar__links a {
    padding: .8rem 1.5rem;
    border-bottom: none;
  }
  .navbar__toggle { display: flex; }

  .about__inner {
    flex-direction: column;
  }
  .about__image { flex: unset; width: 100%; }

  .hero { min-height: 380px; }
}
