/* Tyche International - PRD Implementation */
/* Theme: #0B2C5F (blue), #D4AF37 (gold), #FFFFFF, #F5F6FA */

:root {
  --primary-blue: #0B2C5F;
  --gold: #D4AF37;
  --white: #FFFFFF;
  --light-gray: #F5F6FA;
  --blue-dark: #0a2540;
  --blue-light: #1a4a7a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--primary-blue);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary-blue);
  padding: 16px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

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

.logo-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

.logo-tagline {
  display: block;
  font-size: 0.65rem;
  color: var(--white);
  letter-spacing: 0.1em;
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}

.nav-divider {
  color: var(--gold);
  font-size: 0.8rem;
  opacity: 0.7;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,44,95,0.85) 0%, rgba(11,44,95,0.5) 50%, rgba(11,44,95,0.2) 100%);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--primary-blue) url('../assets/images/hero-bg.jpg') center/cover no-repeat;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  max-width: 600px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-subheadline {
  font-size: 1.5rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 4px;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 1.1rem;
}

/* Services */
.services {
  background: var(--primary-blue);
  padding: 60px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.service-card {
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--primary-blue) 100%);
  padding: 32px 24px;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.service-icon {
  width: 56px;
  height: 56px;
  color: var(--white);
  margin-bottom: 20px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-title {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.service-list {
  list-style: none;
}

.service-list li {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
}

.service-list li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* Portfolio */
.portfolio {
  padding: 80px 0;
  background: var(--light-gray);
}

.section-title {
  font-size: 2rem;
  color: var(--primary-blue);
  text-align: center;
  margin-bottom: 8px;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
}

.section-subtitle {
  text-align: center;
  color: var(--blue-light);
  font-size: 1rem;
  margin-bottom: 48px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.portfolio-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(11,44,95,0.1);
  transition: transform 0.2s;
}

.portfolio-card:hover {
  transform: translateY(-4px);
}

.portfolio-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--primary-blue);
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-content {
  padding: 20px;
  border-top: 4px solid var(--primary-blue);
}

.portfolio-icon {
  font-size: 1.2rem;
  margin-right: 8px;
}

.portfolio-content h3 {
  font-size: 1rem;
  color: var(--primary-blue);
  margin-bottom: 8px;
}

.portfolio-result {
  font-size: 0.9rem;
  color: var(--blue-light);
}

/* Why Choose Us */
.why-choose {
  position: relative;
  padding: 80px 0;
  min-height: 500px;
}

.why-choose-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11,44,95,0.9) 0%, rgba(11,44,95,0.6) 60%, transparent 100%);
  z-index: 1;
}

.why-choose-bg {
  position: absolute;
  inset: 0;
  background: var(--primary-blue) url('../assets/images/cta-handshake.jpg') center/cover no-repeat;
  z-index: 0;
}

.why-choose-inner {
  position: relative;
  z-index: 2;
}

.section-title.light {
  color: var(--white);
  text-align: left;
}

.section-title.light::after {
  margin: 16px 0 0 0;
}

.why-choose-list {
  list-style: none;
  margin-top: 40px;
}

.why-choose-list li {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.why-icon {
  width: 48px;
  height: 48px;
  color: var(--white);
  flex-shrink: 0;
}

.why-icon svg {
  width: 100%;
  height: 100%;
}

/* CTA */
.cta {
  position: relative;
  padding: 80px 0;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11,44,95,0.85);
  z-index: 1;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: var(--primary-blue) url('../assets/images/cta-handshake.jpg') center/cover no-repeat;
  z-index: 0;
}

.cta-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta-headline {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--white);
  margin-bottom: 32px;
}

/* Contact */
.contact {
  padding: 80px 0;
  background: var(--light-gray);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 4px;
  margin-bottom: 16px;
  transition: border-color 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  width: 100%;
}

/* Footer */
.footer {
  background: var(--primary-blue);
  color: var(--white);
}

.footer-top {
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-company {
  font-weight: 600;
  margin-bottom: 12px;
  text-align: center;
}

.footer-contact {
  text-align: center;
  font-size: 0.95rem;
}

.footer-contact a {
  color: var(--white);
}

.footer-contact a:hover {
  color: var(--gold);
}

.footer-divider {
  margin: 0 12px;
  opacity: 0.6;
}

.footer-bottom {
  padding: 24px 0;
  background: var(--blue-dark);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-nav a {
  color: var(--white);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background 0.2s, color 0.2s;
}

.footer-social a:hover {
  background: var(--gold);
  color: var(--primary-blue);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

.footer-copyright {
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary-blue);
    flex-direction: column;
    padding: 24px;
  }

  .nav.open {
    display: flex;
  }

  .nav-divider {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .logo-tagline {
    font-size: 0.55rem;
  }

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

  .footer-bottom-inner {
    flex-direction: column;
  }
}
