/* 
 * FootPainGone - Main Stylesheet
 * Optimized for mobile-first responsive design
 * Created for footpaingone.com
 */

/* CSS Reset and Base Styles */
:root {
  --primary-color: #3066BE;
  --secondary-color: #119DA4;
  --accent-color: #19647E;
  --text-color: #333333;
  --light-color: #F4F7F5;
  --dark-color: #28464B;
  --footer-color: #1D3461;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--light-color);
  overflow-x: hidden;
}

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

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

a:hover {
  color: var(--accent-color);
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header Styles */
header {
  background-color: white;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

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

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

.logo img {
  width: 50px;
  height: 50px;
}

.logo h1 {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
}

nav ul {
  display: none;
}

.mobile-menu-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

/* Navigation for tablet and desktop */
@media (min-width: 768px) {
  .mobile-menu-btn {
    display: none;
  }
  
  nav ul {
    display: flex;
    gap: 1.5rem;
  }
  
  nav ul li a {
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
  }
  
  nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
  }
  
  nav ul li a:hover::after {
    width: 100%;
  }
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
  text-align: center;
}

.hero-content {
  margin-bottom: 2rem;
}

.hero h2 {
  font-size: 2rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.cta-button:hover {
  background-color: var(--accent-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* For desktop */
@media (min-width: 992px) {
  .hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }
  
  .hero-content {
    width: 50%;
    margin-bottom: 0;
  }
  
  .hero-image {
    width: 45%;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
}

/* Solutions Section */
.solutions {
  padding: 4rem 0;
  background-color: white;
}

.solutions h2,
.causes h2,
.treatments h2,
.games h2,
.contact h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2.5rem;
  color: var(--accent-color);
  position: relative;
}

.solutions h2::after,
.causes h2::after,
.treatments h2::after,
.games h2::after,
.contact h2::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--secondary-color);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.solution-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.solution-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.solution-icon {
  margin-bottom: 1rem;
}

.solution-icon img {
  width: 80px;
  height: 80px;
  margin: 0 auto;
}

.solution-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

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

@media (min-width: 992px) {
  .solutions-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Causes Section */
.causes {
  padding: 4rem 0;
  background-color: #f5f9fa;
}

.causes-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.causes-text ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.causes-text li {
  margin-bottom: 1rem;
}

.causes-image {
  text-align: center;
}

@media (min-width: 768px) {
  .causes-content {
    flex-direction: row;
    align-items: center;
  }
  
  .causes-text {
    width: 50%;
  }
  
  .causes-image {
    width: 50%;
  }
}

/* Treatments Section */
.treatments {
  padding: 4rem 0;
  background-color: white;
}

.treatments-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.treatment-item {
  background-color: #f0f7fa;
  border-left: 4px solid var(--secondary-color);
  padding: 1.5rem;
  transition: var(--transition);
}

.treatment-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.treatment-item h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

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

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

/* Games Section */
.games {
  padding: 4rem 0;
  background-color: #f5f9fa;
  text-align: center;
}

.games p {
  margin-bottom: 2rem;
}

.games-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.game-card {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

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

.game-card ul {
  text-align: left;
}

.game-card li {
  margin-bottom: 0.75rem;
}

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

/* Contact Section */
.contact {
  padding: 4rem 0;
  background-color: white;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-group label {
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
}

.submit-btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background-color: var(--accent-color);
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 0.75rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

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

.social-links a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

@media (min-width: 768px) {
  .contact-content {
    flex-direction: row;
  }
  
  .contact-form {
    width: 60%;
  }
  
  .contact-info {
    width: 40%;
  }
}

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

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links h3 {
  margin-bottom: 1rem;
  position: relative;
}

.footer-links h3::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
  bottom: -5px;
  left: 0;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

.footer-links ul li a {
  color: #aed9e0;
}

.footer-links ul li a:hover {
  color: white;
}

.footer-newsletter h3 {
  margin-bottom: 1rem;
}

.footer-newsletter p {
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.newsletter-form input {
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
}

.newsletter-form button {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background-color: var(--accent-color);
}

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

.footer-bottom-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer-bottom-links a {
  color: #aed9e0;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .newsletter-form {
    flex-direction: row;
  }
  
  .newsletter-form input {
    flex: 1;
  }
  
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr 1fr 2fr;
  }
}

/* Icon Font (placeholder) */
@font-face {
  font-family: 'IconFont';
  src: url('../fonts/iconfont.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.icon-facebook:before {
  content: "✓";
  font-family: Arial, sans-serif;
}

.icon-twitter:before {
  content: "✓";
  font-family: Arial, sans-serif;
}

.icon-instagram:before {
  content: "✓";
  font-family: Arial, sans-serif;
}

/* 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: 0;
}

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

.fade-in {
  animation: fadeIn 1s ease;
}
