/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline-color: #666;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  color: #1a1a1a;
  background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  border-bottom: 1px solid #e5e5e5;
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

.logo-section:focus {
  outline: none;
}

.logo {
  height: 3rem;
  width: auto;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 600;
  color: #000;
  letter-spacing: -0.025em;
}

.nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #000;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #1e2a3a;
}

/* Buttons */
.btn {
  padding: 0.625rem 1.25rem;
  border-radius: 0.375rem;
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-lg {
  padding: 1.5rem 2rem;
  font-size: 1.125rem;
}

.btn-primary {
  background-color: #000;
  color: #fff;
}

.btn-primary:hover {
  background-color: #1a1a1a;
}

.btn-secondary {
  background-color: #1e2a3a;
  color: #fff;
}

.btn-secondary:hover {
  background-color: #2a3a4a;
}

.btn:active {
  transform: scale(0.98);
}

/* Hero Section */
.hero {
  padding: 5rem 0;
}

@media (min-width: 768px) {
  .hero {
    padding: 8rem 0;
  }
}

.hero-content {
  max-width: 56rem;
  margin: 0 auto;
}

.hero-title {
  font-size: 1.875rem;
  line-height: 1.3;
  color: #000;
  font-weight: 600;
}

@media (min-width: 640px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 3.75rem;
  }
}

.hero-title-primary {
  display: block;
  font-weight: 600;
}

.hero-title-secondary {
  display: block;
  margin-top: 0.5rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .hero-title-primary {
    display: inline;
    white-space: nowrap;
  }

  .hero-title-secondary {
    display: block;
    margin-top: 0.5rem;
  }
}

.hero-subtitle {
  margin-top: 2rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: #4b5563;
  font-weight: 500;
}

@media (min-width: 768px) {
  .hero-subtitle {
    font-size: 1.25rem;
  }
}

.hero-description {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #6b7280;
  font-weight: 400;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 1.125rem;
  }
}

.hero-content > .btn {
  margin-top: 2.5rem;
}

/* Testimonial Section */
.testimonial-section {
  background-color: #f9fafb;
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 1.875rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 3rem;
}

@media (min-width: 1024px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.testimonial-card {
  max-width: 56rem;
  margin: 0 auto;
  background-color: #fff;
  padding: 2rem;
  border: 1px solid #e5e5e5;
}

@media (min-width: 768px) {
  .testimonial-card {
    padding: 3rem;
  }
}

.testimonial-text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #374151;
}

.testimonial-author {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-logo {
  height: 2.5rem;
  width: auto;
}

.testimonial-info {
  border-left: 1px solid #d1d5db;
  padding-left: 1rem;
}

.author-name {
  font-weight: 600;
  color: #000;
}

.author-title {
  font-size: 0.875rem;
  color: #6b7280;
}

/* Expertise Section */
.expertise-section {
  padding: 5rem 0;
}

.expertise-grid {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
}

@media (min-width: 768px) {
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.expertise-card {
  background-color: #fff;
  padding: 2rem;
  border: 1px solid #e5e5e5;
  transition: box-shadow 0.2s;
}

.expertise-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.expertise-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: rgba(90, 107, 79, 0.1);
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #5a6b4f;
}

.expertise-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
}

.expertise-description {
  margin-top: 1rem;
  line-height: 1.6;
  color: #4b5563;
}

/* Why Section */
.why-section {
  background-color: #000;
  color: #fff;
  padding: 5rem 0;
}

.section-title-light {
  color: #fff;
}

.why-grid {
  display: grid;
  gap: 3rem;
  margin-top: 4rem;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-card {
  text-align: center;
}

.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background-color: #1e2a3a;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.why-icon .icon {
  color: #fff;
  width: 2rem;
  height: 2rem;
}

.why-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.why-subtitle {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

.why-description {
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
}

.cta-card {
  max-width: 48rem;
  margin: 0 auto;
  background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
  padding: 3rem;
  border-radius: 1rem;
  text-align: center;
  color: #fff;
}

.cta-title {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: 2.25rem;
  }
}

.cta-description {
  margin-top: 1.5rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.cta-card .btn {
  margin-top: 2rem;
}

/* Footer */
.footer {
  border-top: 1px solid #e5e5e5;
  background-color: #fff;
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  flex: 1;
}

@media (min-width: 768px) {
  .footer-brand {
    text-align: left;
  }
}

.footer-text {
  margin: 0;
  padding: 0;
}

.footer-tagline {
  margin: 0;
  padding: 0;
}

.footer-logo {
  height: 2.5rem;
  width: auto;
}

.footer-logo-center {
  height: 5rem;
  width: auto;
  flex-shrink: 0;
}

.footer-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: #000;
}

.footer-tagline {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 0;
}

.footer-copyright {
  font-size: 0.875rem;
  color: #6b7280;
  flex: 1;
  text-align: right;
}

@media (max-width: 767px) {
  .footer-copyright {
    text-align: center;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.2s;
}

.modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: #fff;
  padding: 2rem;
  border-radius: 0.5rem;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  float: right;
  font-size: 2rem;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.modal-close:hover {
  color: #000;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.5rem;
}

/* Form Styles */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-label {
  font-weight: 500;
  font-size: 0.95rem;
  color: #000;
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-textarea {
  resize: vertical;
}

.btn-block {
  width: 100%;
}

.form-message {
  padding: 1rem;
  border-radius: 0.375rem;
  font-size: 0.95rem;
  text-align: center;
}

.form-message.success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.form-message.error {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.form-required {
  color: #dc2626;
  margin-left: 0.25rem;
}

.form-hint {
  display: block;
  color: #6b7280;
  font-size: 0.8rem;
  margin-top: 0.375rem;
}

.form-error {
  display: none;
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.form-input.error,
.form-textarea.error {
  border-color: #dc2626;
  background-color: #fef2f2;
}

/* Responsive Adjustments */
@media (max-width: 767px) {
  .container {
    padding: 0 1rem;
  }

  .modal-content {
    width: 95%;
    padding: 1.5rem;
  }
}
