/* Layout Styles */

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Full Width Container */
.container-wide {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* Full Width Section */
.section-wide {
  width: 100%;
  margin: 0;
  padding: 90px 0;
}

/* Content Sections */
section {
  padding: 90px 0;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* Navigation */
nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--jm-color-primary);
  margin: 0;
}

.brand img {
  height: 36px;
  display: block;
}

/* Menu Toggle */
.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  background: transparent;
  border: 0;
  color: var(--jm-color-primary);
}

/* Navigation Menu */
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.nav-menu > li {
  position: relative;
  list-style: none;
}

/* Dropdown indicator for desktop */
@media (min-width: 901px) {
  .has-dropdown > a::after {
    content: '▼';
    font-size: 10px;
    margin-left: 6px;
    vertical-align: middle;
    opacity: 0.7;
  }
}

/* Dropdown indicator for mobile */
@media (max-width: 900px) {
  .has-dropdown {
    position: relative;
  }
  
  .has-dropdown > a {
    position: relative;
    padding-right: 30px;
  }
  
  .has-dropdown > a::after {
    content: '▶';
    font-size: 12px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.7;
    transition: transform 0.3s ease;
    cursor: pointer;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
  }
  
  .has-dropdown.active > a::after {
    transform: translateY(-50%) rotate(90deg);
  }
}

.nav-menu > li > a {
  margin-left: 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--jm-color-primary);
  display: inline-block;
  white-space: nowrap;
  outline: none;
  text-decoration: none;
}

/* Remove focus outline for navigation links */
.nav-menu > li > a:focus,
.nav-menu a.nav-cta:focus,
.dropdown a:focus {
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

/* CTA link style (set "CSS Classes" = nav-cta on menu item) */
.nav-menu a.nav-cta {
  margin-left: 32px;
  padding: 8px 18px;
  background: var(--jm-color-accent);
  color: #fff;
  border: 2px solid var(--jm-color-accent);
  border-radius: 4px;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
  white-space: nowrap;
  display: inline-block;
}

.nav-menu a.nav-cta:hover {
  background: transparent;
  color: var(--jm-color-accent);
  border-color: var(--jm-color-accent);
}

/* Dropdown Menu */
.dropdown, .dropdown li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.has-dropdown:hover > a + .dropdown,
.dropdown:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1001;
}

/* Ensure the dropdown stays visible when hovering over it */
.has-dropdown:hover {
  position: relative;
}

.dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--jm-color-primary);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.dropdown a:hover {
  background: #f8fafc;
}

/* Main Content */
.site-main {
  min-height: 80vh;
}

/* Page Header */
.page-header {
  text-align: center;
  padding: 70px 0;
}

.page-header h1 {
  font-size: 42px;
  margin-bottom: 20px;
}

.page-description {
  max-width: 800px;
  margin: 0 auto;
  color: #1F2933;
  font-size: 18px;
}

/* Footer */
.site-footer {
  border-top: 1px solid #e5e7eb;
  padding: 40px 0;
  font-size: 14px;
  color: #64748b;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 14px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-sub {
  color: #94a3b8;
}

/* Services Grid */
.services-grid {
  background-color: #fff;
}

.services-grid__items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

/* Service Card */
.service-card {
  border-top: 3px solid var(--jm-color-primary);
  padding-top: 20px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-card__image {
  margin-bottom: 16px;
}

.service-card__title {
  margin: 0 0 8px;
}

.service-card__excerpt {
  margin-bottom: 16px;
  color: #1F2933;
}

/* About Section */
.about-company {
  background-color: var(--jm-color-bg-light);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Strengths Grid */
.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.strength-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

/* Contact Form */
.form-contact, .form-quote {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

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

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--jm-color-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 15px;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--jm-color-primary);
  box-shadow: 0 0 0 2px rgba(var(--jm-color-primary-rgb), 0.1);
}

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

/* Case Studies */
.case-studies-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.case-study-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-study-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.case-study-content {
  padding: 20px;
}

.case-study-meta {
  margin-bottom: 12px;
}

.case-study-industry {
  display: inline-block;
  padding: 4px 12px;
  background-color: #e0f2fe;
  color: #0369a1;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* CTA Section */
.services-cta {
  background-color: var(--jm-color-primary);
  color: #fff;
  text-align: center;
  padding: 60px 0;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  color: #fff;
  margin-bottom: 16px;
}

.cta-content p {
  color: #cbd5e1;
  margin-bottom: 30px;
  font-size: 18px;
}

.cta-content .btn-primary {
  background-color: var(--jm-color-accent);
  color: #fff;
  border-color: var(--jm-color-accent);
}

.cta-content .btn-primary:hover {
  background-color: transparent;
  color: var(--jm-color-accent);
  border-color: var(--jm-color-accent);
}
