/* Synk Telesales - Professional Telemarketing Website */

/* Color Palette */
:root {
  --primary-red: #E53935;
  --dark-gray: #2C2C2C;
  --light-gray: #F5F5F5;
  --text-gray: #4A4A4A;
  --border-gray: #EBEBEB;
  --white: #FFFFFF;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  color: var(--text-gray);
  background-color: var(--white);
  line-height: 1.6;
}

/* Typography */
h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--dark-gray);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--dark-gray);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 12px;
}

p {
  font-size: 16px;
  color: var(--text-gray);
  margin-bottom: 16px;
}

/* Links */
a {
  color: var(--primary-red);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #D32F2F;
}

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

/* Header & Navigation */
header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-gray);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
}

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

.logo {
  display: flex;
  align-items: center;
}

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

nav {
  display: flex;
  gap: 40px;
  list-style: none;
}

nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-gray);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
  color: var(--primary-red);
  border-bottom-color: var(--primary-red);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background-color: var(--dark-gray);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.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);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #D32F2F;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 57, 53, 0.25);
}

.btn-secondary {
  background-color: var(--light-gray);
  color: var(--dark-gray);
  border: 1px solid var(--border-gray);
}

.btn-secondary:hover {
  background-color: var(--border-gray);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--white) 0%, var(--light-gray) 100%);
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero.compact {
  padding: 40px 0;
  min-height: auto;
}

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

.hero-text h1 {
  font-size: 56px;
  margin-bottom: 24px;
  line-height: 1.15;
}

.hero-text p {
  font-size: 18px;
  color: var(--text-gray);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 16px;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: float 3s ease-in-out infinite;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
}

/* Animations for hero section */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse-wave-1 {
  0% {
    r: 30px;
    opacity: 0.6;
  }
  100% {
    r: 70px;
    opacity: 0;
  }
}

@keyframes pulse-wave-2 {
  0% {
    r: 50px;
    opacity: 0.4;
  }
  100% {
    r: 90px;
    opacity: 0;
  }
}

@keyframes pulse-wave-3 {
  0% {
    r: 70px;
    opacity: 0.2;
  }
  100% {
    r: 110px;
    opacity: 0;
  }
}

@keyframes glow {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(229, 57, 53, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 16px rgba(229, 57, 53, 0.5));
  }
}

.hero-image svg {
  animation: glow 2.5s ease-in-out infinite;
}

.hero-image circle:nth-of-type(1) {
  animation: pulse-wave-1 2s ease-out infinite;
}

.hero-image circle:nth-of-type(2) {
  animation: pulse-wave-2 2.4s ease-out infinite;
  animation-delay: 0.3s;
}

.hero-image circle:nth-of-type(3) {
  animation: pulse-wave-3 2.8s ease-out infinite;
  animation-delay: 0.6s;
}

/* Section Styles */
section {
  padding: 80px 0;
}

section.light-bg {
  background-color: var(--light-gray);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 42px;
  margin-bottom: 16px;
}

.section-title p {
  font-size: 18px;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.service-card {
  background-color: var(--white);
  padding: 40px;
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--primary-red);
  box-shadow: 0 8px 24px rgba(229, 57, 53, 0.1);
  transform: translateY(-4px);
}

.service-card h3 {
  color: var(--primary-red);
  margin-bottom: 16px;
  font-size: 22px;
}

.service-card p {
  font-size: 15px;
  color: var(--text-gray);
  line-height: 1.8;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-content p {
  margin-bottom: 20px;
  line-height: 1.8;
}

.about-features {
  margin-top: 32px;
}

.feature-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.feature-icon {
  width: 24px;
  height: 24px;
  background-color: var(--primary-red);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item p {
  margin-bottom: 0;
  font-size: 15px;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

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

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark-gray);
  font-size: 14px;
}

input,
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-gray);
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  color: var(--dark-gray);
  transition: border-color 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-red);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.1);
}

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

.form-submit {
  width: 100%;
}

/* Footer */
footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 60px 0 20px;
  margin-top: 80px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 16px;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
}

.footer-section a:hover {
  color: var(--primary-red);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Mobile Menu */
  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-overlay {
    display: block;
  }

  nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    gap: 0;
    padding: 80px 20px 20px;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }

  nav.active {
    right: 0;
  }

  nav a {
    padding: 16px 12px;
    border-bottom: 1px solid var(--border-gray);
    border-left: 3px solid transparent;
    font-size: 16px;
  }

  nav a:hover,
  nav a.active {
    border-bottom: 1px solid var(--border-gray);
    border-left-color: var(--primary-red);
    background-color: var(--light-gray);
  }

  /* Typography */
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .section-title h2 {
    font-size: 32px;
  }

  /* Hero Section */
  .hero {
    min-height: auto;
    padding: 60px 0;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0;
  }

  .hero-text h1 {
    font-size: 36px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  /* Grids */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-grid > div[style*="order: 2"] {
    order: 1 !important;
  }

  .about-grid > div[style*="order: 1"] {
    order: 2 !important;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  /* Statistics grid on index.html */
  .container > div[style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 30px !important;
  }

  /* Services grid on services.html */
  .container > div[style*="grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))"] {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  /* Contact Page */
  .container > div[style*="grid-template-columns: 1fr 1fr"] {
    display: block !important;
  }

  .container > div[style*="grid-template-columns: 1fr 1fr"] > div {
    margin-bottom: 40px;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 0 16px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 24px;
  }

  h3 {
    font-size: 20px;
  }

  .section-title h2 {
    font-size: 26px;
  }

  .hero-text h1 {
    font-size: 28px;
  }

  .hero-text p {
    font-size: 16px;
  }

  .container {
    padding: 0 16px;
  }

  section {
    padding: 40px 0;
  }

  .hero {
    padding: 40px 0;
  }

  .logo img {
    height: 50px;
  }

  .service-card {
    padding: 30px 20px;
  }

  .service-card h3 {
    font-size: 20px;
  }

  .section-title p {
    font-size: 16px;
  }

  /* Statistics grid - stack to single column */
  .container > div[style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Mobile nav width adjustment */
  nav {
    width: 100%;
    right: -100%;
  }

  /* Images */
  .about-grid img,
  .hero-image {
    min-height: 250px !important;
  }
}
