/*
==================================================
    Digital Marketing Agency - Style Sheet
==================================================

TABLE OF CONTENTS
--------------------------------------------------
1.  Global Styles & Variables
2.  Typography
3.  Layout & Container
4.  Buttons & Forms
5.  Header & Navigation
6.  Footer
7.  Page-Specific: Home Page Sections
    7.1 Hero Section
    7.2 About Us Section
    7.3 Services Section
    7.4 Why Choose Us Section
    7.5 Industries Section
    7.6 Testimonials Section
    7.7 Process Section
    7.8 CTA Section
8.  Page-Specific: Contact Page
9.  Page-Specific: Legal Pages
10. Responsive Design (Media Queries)
    10.1 Tablet (max-width: 992px)
    10.2 Mobile (max-width: 768px)

*/

/* 1. Global Styles & Variables
-------------------------------------------------- */
:root {
  --primary-color: #0056b3;
  /* A strong, trustworthy blue */
  --secondary-color: #007bff;
  /* A slightly brighter blue for accents */
  --dark-color: #212529;
  /* Dark grey for text */
  --light-color: #f8f9fa;
  /* Off-white for backgrounds */
  --white-color: #ffffff;
  --gray-color: #6c757d;
  /* Lighter grey for secondary text */
  --border-color: #dee2e6;

  --font-family-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  --base-font-size: 16px;
  --line-height-base: 1.6;

  --container-width: 1140px;
  --container-padding: 15px;

  --border-radius: 4px;
  --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family-sans-serif);
  font-size: var(--base-font-size);
  line-height: var(--line-height-base);
  color: var(--dark-color);
  background-color: var(--white-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

a {
  color: var(--primary-color);
  text-decoration: none;
}

a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* 2. Typography
-------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark-color);
}

h1 {
  font-size: 2.8rem;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--gray-color);
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  margin-bottom: 0.5rem;
}

.section-title p {
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--gray-color);
}

/* 3. Layout & Container
-------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  padding-right: var(--container-padding);
  padding-left: var(--container-padding);
  margin-right: auto;
  margin-left: auto;
}

.section-padding {
  padding-top: 80px;
  padding-bottom: 80px;
}

.section-padding-bg {
  padding-top: 80px;
  padding-bottom: 80px;
  background-color: var(--light-color);
}

.grid-layout {
  display: grid;
  gap: 30px;
}

.grid-2-col {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3-col {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4-col {
  grid-template-columns: repeat(4, 1fr);
}

/* 4. Buttons & Forms
-------------------------------------------------- */
.btn {
  display: inline-block;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: var(--border-radius);
  cursor: pointer;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  color: var(--white-color);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #00418a;
  border-color: #003c7f;
  color: var(--white-color);
}

.btn-secondary {
  color: var(--primary-color);
  background-color: transparent;
  border-color: var(--primary-color);
}

.btn-secondary:hover {
  color: var(--white-color);
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-color);
}

.form-group input,
.form-group textarea,
.form-group select {
  display: block;
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--dark-color);
  background-color: var(--white-color);
  background-clip: padding-box;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.25);
}

#form-status {
  margin-top: 1rem;
  font-weight: bold;
}

/* 5. Header & Navigation
-------------------------------------------------- */
.site-header {
  background-color: var(--white-color);
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
  filter: brightness(0) invert(0);
}

.main-navigation .nav-links {
  display: flex;
  align-items: center;
}

.main-navigation .nav-links li {
  margin-left: 25px;
}

.main-navigation .nav-links a {
  color: var(--dark-color);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 0;
}

.main-navigation .nav-links a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

/* 6. Footer
-------------------------------------------------- */
.site-footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.footer-column h4 {
  color: var(--white-color);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-column p {
  color: #adb5bd;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul a {
  color: #adb5bd;
}

.footer-column ul a:hover {
  color: var(--white-color);
  text-decoration: none;
}

.footer-column.footer-about .logo img {
  height: 70px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}

.footer-contact p {
  margin-bottom: 10px;
}

.footer-contact p strong {
  color: var(--white-color);
}

.footer-bottom {
  border-top: 1px solid #495057;
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
  color: #adb5bd;
}

/* 7. Page-Specific: Home Page Sections
-------------------------------------------------- */

/* 7.1 Hero Section */
.hero-section {
  background-color: var(--light-color);
  padding: 12rem 0;
  text-align: center;
}

.hero-content h1 {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
}

.hero-content p {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

/* 7.2 About Us Section */
.about-us-section .grid-2-col {
  align-items: center;
}

.about-text h3 {
  margin-bottom: 1.5rem;
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* 7.3 Services Section */
.service-card {
  background-color: var(--white-color);
  padding: 30px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--box-shadow);
}

.service-card .service-icon {
  margin: 0 auto 20px auto;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--light-color);
}

.service-card h3 {
  font-size: 1.25rem;
}

/* 7.4 Why Choose Us Section */
.feature-item {
  padding: 20px;
  text-align: center;
}

.feature-item h4 {
  margin-bottom: 1rem;
}

/* 7.5 Industries Section */
.industries-section {
  text-align: center;
}

.industry-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.industry-tags span {
  background-color: var(--white-color);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 500;
}

/* 7.6 Testimonials Section */
.testimonial-card {
  background-color: var(--light-color);
  padding: 30px;
  border-radius: var(--border-radius);
  border-left: 5px solid var(--primary-color);
}

.testimonial-quote {
  font-style: italic;
  color: var(--dark-color);
  margin-bottom: 1.5rem;
}

.testimonial-author p {
  margin: 0;
  line-height: 1.4;
}

.testimonial-author p:first-child {
  color: var(--dark-color);
}

/* 7.7 Process Section */
.process-steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.process-step {
  display: flex;
  align-items: center;
  gap: 30px;
}

.step-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background-color: var(--primary-color);
  color: var(--white-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.step-content h3 {
  font-size: 1.4rem;
}

/* 7.8 CTA Section */
.cta-section {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 80px 0;
  text-align: center;
}

.cta-content h2 {
  color: var(--white-color);
  margin-bottom: 1rem;
}

.cta-content p {
  color: #e9ecef;
  max-width: 600px;
  margin: 0 auto 2rem auto;
  font-size: 1.1rem;
}

.cta-content .btn-primary {
  background-color: var(--white-color);
  color: var(--primary-color);
  border-color: var(--white-color);
}

.cta-content .btn-primary:hover {
  background-color: var(--light-color);
  border-color: var(--light-color);
  color: var(--primary-color);
}


/* 8. Page-Specific: Contact Page
-------------------------------------------------- */
.page-header {
  background-color: var(--dark-color);
  color: var(--white-color);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white-color);
}

.page-header p {
  color: #e9ecef;
  font-size: 1.1rem;
  margin-bottom: 0;
}

.contact-section .grid-2-col {
  align-items: flex-start;
}

.contact-form-wrapper {
  background-color: var(--light-color);
  padding: 40px;
  border-radius: var(--border-radius);
}

.contact-form-wrapper h3,
.contact-info-wrapper h3 {
  margin-bottom: 2rem;
}

.contact-details {
  margin-top: 2rem;
}

.contact-details li {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.contact-details li strong {
  color: var(--dark-color);
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-details li span {
  color: var(--gray-color);
}

.map-placeholder {
  margin-top: 2rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* 9. Page-Specific: Legal Pages
-------------------------------------------------- */
.legal-page-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  margin-bottom: 2rem;
  text-align: center;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 1rem;
}

.legal-content ul li {
  margin-bottom: 0.5rem;
  color: var(--gray-color);
}

/* 10. Responsive Design (Media Queries)
-------------------------------------------------- */

/* 10.1 Tablet (max-width: 992px) */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .grid-4-col {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3-col {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-us-section .grid-2-col {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image {
    margin-top: 30px;
  }

  .testimonial-card {
    margin-bottom: 20px;
  }
}

/* 10.2 Mobile (max-width: 768px) */
@media (max-width: 768px) {

  .section-padding,
  .section-padding-bg {
    padding-top: 60px;
    padding-bottom: 60px;
  }

  /* Mobile Navigation */
  .main-navigation .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 81px;
    /* Height of header */
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
  }

  .main-navigation .nav-links.active {
    display: flex;
  }

  .main-navigation .nav-links li {
    margin: 10px 0;
    text-align: center;
  }

  .nav-toggle {
    display: block;
    width: 30px;
    height: 25px;
    position: relative;
  }

  .hamburger,
  .hamburger::before,
  .hamburger::after {
    content: '';
    display: block;
    background-color: var(--dark-color);
    height: 3px;
    width: 100%;
    position: absolute;
    left: 0;
  }

  .hamburger {
    top: 11px;
  }

  .hamburger::before {
    top: -10px;
  }

  .hamburger::after {
    top: 10px;
  }

  .nav-toggle.active .hamburger {
    background-color: transparent;
  }

  .nav-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
  }

  .nav-toggle.active .hamburger::after {
    top: 0;
    transform: rotate(-45deg);
  }

  /* Layouts */
  .grid-layout,
  .grid-2-col,
  .grid-3-col,
  .grid-4-col {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-column ul {
    padding: 0;
  }

  .footer-column.footer-about .logo {
    margin: 0 auto 20px auto;
  }

  /* Sections */
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1.1rem;
  }

  .process-step {
    flex-direction: column;
    text-align: center;
  }

  .contact-section .grid-2-col {
    gap: 50px;
  }
}