/* ========================================================
   Seven Pillar Software – Main Stylesheet
   ======================================================== */

/* --- Variables & Reset --------------------------------- */
:root {
  --navy:       #0d1b2a;
  --navy-mid:   #132338;
  --navy-light: #1e3a5f;
  --gold:       #c9a84c;
  --gold-light: #e8c97e;
  --white:      #ffffff;
  --off-white:  #f4f6f9;
  --text:       #2c3e50;
  --text-muted: #6b7c93;
  --border:     #dce3ed;
  --radius:     8px;
  --shadow:     0 4px 24px rgba(13, 27, 42, 0.10);
  --shadow-lg:  0 12px 48px rgba(13, 27, 42, 0.18);
  --transition: 0.25s ease;
  --max-width:  1160px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

/* --- Typography ---------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { color: var(--text-muted); }

/* --- Layout Utilities ---------------------------------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.section { padding-block: 5rem; }
.section--alt { background: var(--off-white); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-subheading {
  font-size: 1.1rem;
  max-width: 620px;
  margin-bottom: 3rem;
}

/* --- Buttons ------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  line-height: 1;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover {
  background: var(--navy-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ======================================================
   NAV
   ====================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

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

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav__logo-pillars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
}

.nav__logo-pillars span {
  display: block;
  width: 5px;
  background: var(--gold);
  border-radius: 2px 2px 0 0;
  transition: var(--transition);
}
/* Seven pillars of varying heights */
.nav__logo-pillars span:nth-child(1) { height: 60%; }
.nav__logo-pillars span:nth-child(2) { height: 80%; }
.nav__logo-pillars span:nth-child(3) { height: 95%; }
.nav__logo-pillars span:nth-child(4) { height: 100%; }
.nav__logo-pillars span:nth-child(5) { height: 95%; }
.nav__logo-pillars span:nth-child(6) { height: 80%; }
.nav__logo-pillars span:nth-child(7) { height: 60%; }

.nav__logo-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}
.nav__logo-text span { color: var(--gold); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--gold); }

.nav__cta { margin-left: 0.5rem; }

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ======================================================
   HERO
   ====================================================== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1a4a7a 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Decorative pillars in hero background */
.hero__pillars {
  position: absolute;
  bottom: 0;
  right: 5%;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  opacity: 0.07;
  pointer-events: none;
}
.hero__pillars span {
  display: block;
  width: 40px;
  border-radius: 4px 4px 0 0;
  background: var(--white);
}
.hero__pillars span:nth-child(1) { height: 200px; }
.hero__pillars span:nth-child(2) { height: 280px; }
.hero__pillars span:nth-child(3) { height: 360px; }
.hero__pillars span:nth-child(4) { height: 420px; }
.hero__pillars span:nth-child(5) { height: 360px; }
.hero__pillars span:nth-child(6) { height: 280px; }
.hero__pillars span:nth-child(7) { height: 200px; }

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero__title {
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero__title em {
  font-style: normal;
  color: var(--gold);
}

.hero__subtitle {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: bounce 2s infinite;
}
.hero__scroll svg { width: 20px; height: 20px; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ======================================================
   STATS BAR
   ====================================================== */
.stats {
  background: var(--navy);
  padding-block: 2.5rem;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stats__item-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.stats__item-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-top: 0.3rem;
}

/* ======================================================
   ABOUT
   ====================================================== */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__pillars-visual {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  height: 240px;
}

.about__pillars-visual .pillar {
  flex: 1;
  max-width: 52px;
  background: linear-gradient(to top, var(--navy), var(--navy-light));
  border-radius: 6px 6px 0 0;
  position: relative;
  transition: transform var(--transition);
}
.about__pillars-visual .pillar::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: var(--gold);
  border-radius: 6px 6px 0 0;
}
.about__pillars-visual .pillar:hover {
  transform: translateY(-8px);
}

.about__pillars-visual .pillar:nth-child(1) { height: 55%; }
.about__pillars-visual .pillar:nth-child(2) { height: 70%; }
.about__pillars-visual .pillar:nth-child(3) { height: 85%; }
.about__pillars-visual .pillar:nth-child(4) { height: 100%; }
.about__pillars-visual .pillar:nth-child(5) { height: 85%; }
.about__pillars-visual .pillar:nth-child(6) { height: 70%; }
.about__pillars-visual .pillar:nth-child(7) { height: 55%; }

.about__tagline {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
  margin-bottom: 1rem;
}
.about__tagline span { color: var(--gold); }

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

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.service-card__title {
  margin-bottom: 0.6rem;
  color: var(--navy);
}

.service-card__desc {
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.service-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  background: var(--off-white);
  color: var(--navy-light);
  border: 1px solid var(--border);
}

/* ======================================================
   VALUES / PILLARS
   ====================================================== */
.values {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding-block: 5rem;
}

.values .section-label { color: var(--gold-light); }
.values .section-heading { color: var(--white); }
.values .section-subheading { color: rgba(255,255,255,0.65); }

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

.value-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 1.75rem;
  transition: var(--transition);
}
.value-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-3px);
}

.value-card__num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.value-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.value-card__desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
}

/* ======================================================
   PROCESS
   ====================================================== */
.process__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  counter-reset: step;
}

.process__step {
  text-align: center;
  position: relative;
}

.process__step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.process__step-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.process__step-desc {
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ======================================================
   CTA BANNER
   ====================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  padding-block: 4rem;
  text-align: center;
}

.cta-banner h2 { color: var(--navy); }
.cta-banner p  { color: rgba(13,27,42,0.75); margin: 1rem auto 2rem; max-width: 520px; }

/* ======================================================
   CONTACT PAGE
   ====================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding-top: 120px;
  padding-bottom: 4rem;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 0.75rem; }
.page-hero p  { color: rgba(255,255,255,0.65); font-size: 1.1rem; }

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
}

.contact-info__title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.contact-info__intro { font-size: 0.95rem; margin-bottom: 2rem; }

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--off-white);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.contact-detail__icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-detail__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.2rem;
}
.contact-detail__value {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
}

/* Form */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy-light);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

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

.form-required { color: var(--gold); }

.form-submit {
  width: 100%;
  padding: 0.9rem;
  font-size: 1rem;
}

.form-notice {
  display: none;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
}
.form-notice.success {
  display: block;
  background: #edf7f0;
  border: 1px solid #a3d9b1;
  color: #1a6b3a;
}
.form-notice.error {
  display: block;
  background: #fdf2f2;
  border: 1px solid #f5aaaa;
  color: #8b2020;
}

/* ======================================================
   FOOTER
   ====================================================== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
  padding-block: 3.5rem 1.5rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 280px;
}

.footer__col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer__links li + li { margin-top: 0.6rem; }
.footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer__links a:hover { color: var(--gold); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.footer__bottom a {
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}
.footer__bottom a:hover { color: var(--gold); }

/* ======================================================
   RESPONSIVE
   ====================================================== */
@media (max-width: 900px) {
  .about__grid      { grid-template-columns: 1fr; }
  .about__pillars-visual { order: -1; }
  .contact-layout   { grid-template-columns: 1fr; }
  .footer__grid     { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav__links       { display: none; }
  .nav__links.open  { display: flex; flex-direction: column; position: fixed; top: 70px; left: 0; right: 0; background: var(--navy); padding: 2rem; gap: 1.5rem; }
  .nav__toggle      { display: flex; }
  .form-row         { grid-template-columns: 1fr; }
  .footer__grid     { grid-template-columns: 1fr; }
  .hero__actions    { flex-direction: column; }
}
