/* ====== RESET & VARIABLES ====== */
:root {
  --dark: #1a1a1a;
  --text: #333;
  --muted: #666;
  --light-bg: #f9f9f9;
  --border: #e0e0e0;
  --primary: #1b5e3f;
  --primary-dark: #0f3d28;
  --primary-light: #2d8659;
  --primary-lighter: #4ca872;
  --radius: 8px;
  --container: 1160px;
  font-family: 'Segoe UI', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: white;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* ====== TYPOGRAPHY ====== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--dark);
}

h1 {
  font-size: 3rem;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.4rem;
}

h4 {
  font-size: 1.1rem;
}

p {
  margin-bottom: 16px;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.95rem;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  text-decoration: none;
}

.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  text-decoration: none;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* ====== HEADER ====== */
.site-header {
  background: var(--primary-dark);
  border-bottom: 1px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
}

.logo img {
  height: 110px;
  width: auto;
  object-fit: contain;
}

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

.main-nav a {
  color: white;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.main-nav a:hover {
  color: var(--primary-lighter);
  text-decoration: none;
}

.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.link-login {
  color: white;
  font-size: 0.95rem;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile nav */
@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 72px;
    right: 0;
    width: 250px;
    height: calc(100vh - 72px);
    flex-direction: column;
    background: var(--primary-dark);
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s;
    gap: 16px;
    border-left: 1px solid var(--primary);
  }

  .main-nav.open {
    transform: translateX(0);
  }

  .mobile-toggle {
    display: block;
  }

  .header-actions {
    flex-direction: column;
    gap: 8px;
  }
}

/* ====== HERO ====== */
.hero {
  padding: 80px 0;
  background-image: url('images/Monex-header-image4.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  position: relative;
  min-height: 600px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.95) 50%, rgba(255,255,255,0) 100%);
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-copy {
  padding-right: 20px;
}

.hero-title {
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--dark);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 32px;
}

.hero-media {
  display: none;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    min-height: auto;
    padding: 60px 0;
    background-image: none;
  }

  .hero::before {
    display: none;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-media {
    display: block;
  }

  .hero-media img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  }
}

/* ====== CLIENTS SECTION ====== */
.clients-section {
  padding: 80px 0;
  background: white;
}

.section-title {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 48px;
  color: var(--dark);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.client-item {
  padding: 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  font-weight: 500;
  transition: all 0.2s;
}

.client-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(27, 94, 63, 0.1);
}

@media (max-width: 768px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .client-item {
    padding: 12px;
    font-size: 0.9rem;
  }
}

/* ====== SERVICES SECTION ====== */
.services-section {
  padding: 80px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.service-card {
  padding: 40px;
  background: var(--primary-lighter);
  border-radius: var(--radius);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  box-shadow: 0 10px 30px rgba(27, 94, 63, 0.2);
  transform: translateY(-4px);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  order: 2;
}

.service-card p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
  order: 3;
}

.service-card .link-arrow {
  order: 4;
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
  order: 1;
}

.link-arrow {
  color: var(--primary);
  font-weight: 600;
  display: inline-block;
  transition: all 0.2s;
}

.link-arrow:hover {
  transform: translateX(4px);
  text-decoration: none;
}

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

  .service-card {
    padding: 24px;
  }
}

/* ====== FIGURES ====== */
.figures {
  padding: 80px 0;
  background: var(--primary-light);
  position: relative;
}

.fig-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.figure {
  padding: 40px 20px;
}

.fig-num {
  font-size: 2.8rem;
  font-weight: 700;
  color: white;
  margin-bottom: 12px;
}

.fig-label {
  color: white;
  font-size: 0.95rem;
}

.figures-decoration {
  position: absolute;
  bottom: 20px;
  right: 40px;
  width: 120px;
  height: auto;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .fig-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .figure {
    padding: 24px 12px;
  }

  .fig-num {
    font-size: 2rem;
  }
}

/* ====== INSIGHTS SECTION ====== */
.insights-section {
  padding: 80px 0;
}

.insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.insight-box {
  padding: 40px;
  background: var(--primary-lighter);
  border-radius: var(--radius);
  transition: all 0.3s;
  display: flex;
  flex-direction: column;
}

.insight-box:hover {
  box-shadow: 0 10px 30px rgba(27, 94, 63, 0.2);
}

.insight-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.insight-box h3 {
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.insight-box p {
  color: var(--muted);
  margin-bottom: 20px;
}

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

/* ====== NEWS SECTION ====== */
.news-section {
  padding: 80px 0;
  background: white;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.news-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.news-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.news-content {
  padding: 24px;
}

.news-date {
  font-size: 0.85rem;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.news-card h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

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

/* ====== SUBSCRIBE SECTION ====== */
.subscribe-section {
  padding: 80px 0;
  background: var(--primary);
}

.subscribe-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  color: white;
}

.subscribe-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
  align-items: flex-end;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.form-group input,
.form-group select {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

@media (max-width: 768px) {
  .subscribe-form {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .form-group {
    margin-bottom: 0;
  }
}

/* ====== CTA BAND ====== */
.cta-band {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  margin: 80px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-copy h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.cta-copy p {
  color: white;
  margin-bottom: 8px;
}

.phone {
  font-size: 1.1rem;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .cta-band {
    margin: 40px 0;
  }
}

/* ====== FOOTER ====== */
.site-footer {
  background: var(--dark);
  color: #ccc;
  padding: 60px 0 20px;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.footer-col h4 {
  color: white;
  margin-bottom: 16px;
}

.footer-col p {
  color: #999;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #999;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: white;
  text-decoration: none;
}

.footer-bottom {
  text-align: center;
  color: #666;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ====== RESPONSIVE ====== */
@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}
