/* ===================================
   Eye Media Group - Main Stylesheet
   =================================== */

/* CSS Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors based on Eye Media Group branding */
  --primary-blue: #0052a5;
  --secondary-blue: #0073cf;
  --dark-gray: #3a4750;
  --medium-gray: #5a6c7d;
  --light-gray: #e8eaed;
  --white: #ffffff;
  --black: #1a1a1a;
  --gradient-start: #0052a5;
  --gradient-end: #00a3e0;

  /* Typography */
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Helvetica Neue", Arial, sans-serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
  overflow-x: hidden;
}

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
}

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

a:hover {
  color: var(--secondary-blue);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 82, 165, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

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

/* Header */
.site-header {
  background-color: var(--dark-gray);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.logo img {
  height: 60px;
  width: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-nav a {
  color: var(--white);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-blue);
  transition: width var(--transition-normal);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--white);
  transition: all var(--transition-normal);
}

/* Breadcrumb */
.breadcrumb {
  background-color: var(--light-gray);
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--medium-gray);
}

/* Hero Section */
.hero {
  position: relative;
  height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  background-image: url("../images/dark.jpg");
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  color: var(--white);
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 82, 165, 0.7);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto;
}

/* About Section */
.about-section {
  padding: var(--spacing-xl) 0;
}

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.section-content h2 {
  color: var(--primary-blue);
  margin-bottom: 1.5rem;
}

.section-image img {
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--light-gray);
}

.section-title {
  text-align: center;
  color: var(--primary-blue);
  margin-bottom: 3rem;
}

.section-subtitle {
  text-align: center;
  color: var(--medium-gray);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
}

.service-icon img {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

/* Stats Section */
.stats-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: var(--white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.125rem;
  opacity: 0.9;
}

/* Businesses Section */
.businesses-section {
  padding: var(--spacing-xl) 0;
}

.businesses-grid {
  display: grid;
  gap: 3rem;
}

.business-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.business-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.business-card:nth-child(even) {
  grid-template-columns: 1fr 1fr;
}

.business-card:nth-child(even) .business-image {
  order: 2;
}

.business-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-content {
  padding: 2rem;
}

.business-content h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.business-features {
  list-style: none;
  margin-top: 1.5rem;
}

.business-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.business-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary-blue);
  font-weight: bold;
}

/* About Hero Section */
.about-hero {
  padding: var(--spacing-xl) 0;
  background-color: var(--light-gray);
}

.about-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-hero h1 {
  color: var(--primary-blue);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-hero-image img {
  border-radius: 8px;
}

/* Mission Section */
.mission-section {
  padding: var(--spacing-xl) 0;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.mission-card {
  text-align: center;
  padding: 2rem;
}

.mission-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
}

.mission-icon img {
  width: 100%;
  height: 100%;
}

.mission-card h3 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

/* Timeline Section */
.timeline-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--light-gray);
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--primary-blue);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-marker {
  position: absolute;
  left: -2.5rem;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--secondary-blue);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary-blue);
}

.timeline-content {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.timeline-content h4 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

/* Team Section */
.team-section {
  padding: var(--spacing-xl) 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.team-member {
  text-align: center;
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition-normal);
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-photo {
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-role {
  color: var(--secondary-blue);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-section {
  padding: var(--spacing-xl) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-form-wrapper h2,
.contact-info h2 {
  color: var(--primary-blue);
  margin-bottom: 2rem;
}

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

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

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-gray);
}

.required {
  color: #e53e3e;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border: 1px solid var(--light-gray);
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e53e3e;
}

.error-message {
  color: #e53e3e;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.error-message.show {
  display: block;
}

.success-message {
  background-color: #c6f6d5;
  border: 1px solid #48bb78;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
}

.success-message h3 {
  color: #22543d;
  margin-bottom: 0.5rem;
}

.success-message p {
  color: #276749;
}

/* Contact Info */
.contact-info {
  background-color: var(--light-gray);
  padding: 2rem;
  border-radius: 8px;
}

.info-block {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.info-icon img {
  width: 100%;
  height: 100%;
}

.info-content h4 {
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.info-content a {
  color: var(--dark-gray);
}

.info-content a:hover {
  color: var(--primary-blue);
}

.social-links {
  margin-top: 2rem;
}

.social-links h4 {
  color: var(--primary-blue);
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  border-radius: 50%;
  transition: transform var(--transition-fast);
}

.social-icons a:hover {
  transform: scale(1.1);
}

.social-icons img {
  width: 20px;
  height: 20px;
}

/* Map Section */
.map-section {
  margin-top: 3rem;
}

.map-placeholder {
  width: 100%;
  height: 450px;
  background-color: var(--light-gray);
}

.map-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CTA Section */
.cta-section {
  padding: var(--spacing-xl) 0;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: var(--white);
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.footer-logo img {
  height: 60px;
}

.footer-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.footer-nav a {
  color: var(--white);
}

.footer-nav a:hover {
  color: var(--secondary-blue);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Typography */
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* Header */
  .main-nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--dark-gray);
    transition: left var(--transition-normal);
    padding: 2rem;
  }

  .main-nav.active {
    left: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  /* Hero */
  .hero {
    height: 400px;
  }

  /* Grid Layouts */
  .section-grid,
  .about-hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .business-card,
  .business-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .business-card:nth-child(even) .business-image {
    order: 1;
  }

  /* Footer */
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .footer-nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  /* Stats */
  .stat-number {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .services-grid,
  .mission-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--secondary-blue);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .site-header,
  .mobile-menu-toggle,
  .cta-section,
  .site-footer {
    display: none;
  }
}
