/* Common CSS for DV360 Pro Website */

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif !important;
  line-height: 1.6;
  color: #374151;
  background-color: #f9fafb;
  width: 100%;
  overflow-x: hidden;
  min-width: 100vw;
}

/* Hide scrollbars */
::-webkit-scrollbar {
  display: none;
}

html, body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Preserve Font Awesome icons */
.fa, .fas, .far, .fal, .fab {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Brands" !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  line-height: 1.1;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Color System */
:root {
  --primary-50: #F0F7FF;
  --primary-100: #E0EFFF;
  --primary-200: #B9DAFF;
  --primary-300: #7AB6FF;
  --primary-400: #4A94FD;
  --primary-500: #1A73E8;
  --primary-600: #0D5BCE;
  --primary-700: #0747A6;
  --primary-800: #043381;
  --primary-900: #021F5B;
  
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

/* Layout Components */
.container {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}

.section {
  padding: 5rem 0;
  width: 100%;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}

.section-alt {
  background-color: var(--gray-50);
}

/* Header Styles */
.header {
  background: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  width: 100%;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-600);
}

.logo span {
  color: var(--gray-800);
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary-600);
}

.btn-primary {
  background: var(--primary-500);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-600);
}

.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: var(--gray-700);
  font-size: 1.25rem;
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  width: 100%;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* Form Styles */
.form-card {
  background: white;
  padding: 2rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-100);
}

.form-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.form-card p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
  font-size: 1rem;
  background: white;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-select:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 0.375rem;
  font-size: 1rem;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-security {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--gray-500);
}

.form-security i {
  margin-right: 0.5rem;
}

/* Card Grid */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 4rem;
}

.card {
  background: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--primary-200);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-600);
  margin-right: 1rem;
}

.card-icon i {
  font-size: 1.25rem;
}

.card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0;
}

.card p {
  color: var(--gray-600);
  margin: 0;
}

/* Service Cards */
.service-card {
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-100);
  transition: all 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 4rem;
  height: 4rem;
  background: var(--primary-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-600);
  margin-bottom: 1.5rem;
}

.service-icon i {
  font-size: 1.5rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.service-link {
  color: var(--primary-600);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.service-link:hover {
  color: var(--primary-700);
}

.service-link i {
  margin-left: 0.5rem;
}

/* Client Logos - Edge Compatible */
.client-logos {
  overflow: hidden;
  margin: 3rem 0;
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0 1rem;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}

/* Edge-specific fallback */
@supports (-ms-ime-align: auto) {
  .client-logos {
    width: 100%;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    transform: translateX(0);
  }
}

.client-logos > div {
  display: flex;
  align-items: center;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
  -ms-animation: scroll 30s linear infinite;
}

.client-logos img {
  height: 6rem;
  opacity: 0.7;
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
  -ms-filter: grayscale(100%);
  transition: all 0.3s ease;
  margin: 0 2rem;
  flex-shrink: 0;
  -ms-flex-negative: 0;
}

.client-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
  -webkit-filter: grayscale(0%);
  -ms-filter: grayscale(0%);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
    -ms-transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
    -ms-transform: translateX(-50%);
  }
}

@-ms-keyframes scroll {
  0% {
    -ms-transform: translateX(0);
  }
  100% {
    -ms-transform: translateX(-50%);
  }
}

/* Testimonials */
.testimonial-card {
  background: var(--gray-50);
  padding: 2rem;
  border-radius: 0.5rem;
  border: 1px solid var(--gray-100);
}

.testimonial-stars {
  display: flex;
  color: #fbbf24;
  margin-bottom: 1.5rem;
}

.testimonial-text {
  color: var(--gray-700);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  margin-right: 1rem;
}

.testimonial-name {
  font-weight: 600;
  color: var(--gray-900);
}

.testimonial-title {
  font-size: 0.875rem;
  color: var(--gray-600);
}

/* Case Studies */
.case-study-card {
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}

.case-study-image {
  height: 14rem;
  background: var(--gray-200);
}

.case-study-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study-content {
  padding: 1.5rem;
}

.case-study-brand {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.case-study-brand img {
  height: 2rem;
  margin-right: 0.75rem;
}

.case-study-category {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.case-study-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.case-study-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.case-study-metric {
  display: flex;
  justify-content: space-between;
}

.case-study-metric span:first-child {
  color: var(--gray-600);
}

.case-study-metric span:last-child {
  font-weight: 600;
}

.case-study-metric .positive {
  color: #059669;
}

.case-study-actions {
  display: flex;
  gap: 1rem;
}

.case-study-link {
  color: var(--primary-600);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: color 0.3s ease;
}

.case-study-link:hover {
  color: var(--primary-700);
}

.case-study-link i {
  margin-right: 0.5rem;
}

/* FAQ Section */
.faq-container {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  border: 1px solid var(--gray-100);
  overflow: hidden;
}

.faq-tabs {
  border-bottom: 1px solid var(--gray-200);
  display: flex;
}

.faq-tab {
  padding: 1rem 2rem;
  background: none;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  color: var(--gray-500);
}

.faq-tab i {
  margin-right: 0.5rem;
}

.faq-tab.active {
  color: var(--primary-600);
  border-bottom: 2px solid var(--primary-500);
}

.faq-content {
  padding: 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--gray-100);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.faq-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 0;
}

.faq-question span {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--gray-900);
}

.faq-question i {
  color: var(--primary-600);
}

.faq-answer {
  margin-top: 1rem;
  color: var(--gray-600);
  line-height: 1.6;
}

.faq-answer.hidden {
  display: none;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.contact-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.contact-content p {
  font-size: 1.25rem;
  color: var(--gray-600);
  margin-bottom: 2rem;
}

.contact-features {
  margin-bottom: 2rem;
}

.contact-feature {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-feature-icon {
  width: 3rem;
  height: 3rem;
  background: var(--primary-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-600);
  margin-right: 1rem;
}

.contact-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.contact-badge {
  display: flex;
  align-items: center;
}

.contact-badge img {
  height: 4rem;
}

.contact-badge i {
  font-size: 1.5rem;
  color: var(--gray-400);
  margin-right: 0.75rem;
}

.contact-badge span {
  color: var(--gray-600);
}

/* Footer */
.footer {
  background: var(--gray-900);
  color: white;
  padding: 3rem 0;
  width: 100%;
  -ms-box-sizing: border-box;
  box-sizing: border-box;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.footer-brand span {
  color: var(--primary-300);
}

.footer-description {
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: var(--gray-400);
  font-size: 1.25rem;
  transition: color 0.3s ease;
}

.footer-social a:hover {
  color: white;
}

.footer-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
}

.footer-contact-item i {
  color: var(--gray-500);
  margin-right: 0.75rem;
}

.footer-contact-item a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-item a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  margin-top: 3rem;
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-copyright {
  color: var(--gray-500);
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--gray-300);
}

/* Rating Badge */
.rating-badge {
  display: inline-flex;
  align-items: center;
  background: var(--primary-50);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid var(--primary-100);
}

.rating-stars {
  display: flex;
  color: #fbbf24;
  margin-right: 0.5rem;
}

.rating-stars i {
  font-size: 0.875rem;
}

.rating-score {
  font-weight: 600;
  color: var(--gray-900);
  margin-right: 1rem;
}

.rating-text {
  color: var(--gray-600);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Responsive Design */
@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
  
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .container {
    padding: 0 2rem;
  }
  
  .header-content {
    padding: 0 2rem;
  }
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: none;
  }
  
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: 3rem;
  }
  
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .case-study-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .container {
    padding: 0 3rem;
  }
  
  .header-content {
    padding: 0 3rem;
  }
}

@media (min-width: 1280px) {
  h1 {
    font-size: 3.5rem;
  }
  
  .container {
    padding: 0 4rem;
  }
  
  .header-content {
    padding: 0 4rem;
  }
}

/* Microsoft Edge Specific Fixes */
@supports (-ms-ime-align: auto) {
  body {
    width: 100%;
    min-width: 100%;
  }
  
  .container {
    width: 100%;
    max-width: none;
  }
  
  .header {
    width: 100%;
  }
  
  .header-content {
    width: 100%;
    max-width: none;
  }
  
  .section {
    width: 100%;
  }
  
  .client-logos {
    width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-right: -1rem;
  }
}

/* Internet Explorer 11 Fallbacks */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
  .container {
    width: 100%;
    max-width: none;
  }
  
  .client-logos {
    width: 100%;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
  }
  
  .client-logos > div {
    -ms-animation: none;
    animation: none;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .btn-primary,
  .form-card {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .section {
    padding: 1rem 0;
  }
}