/* ================================================
   Universal Template - Base Styles
   Used by all platforms, customized via theme CSS
================================================ */

/* CSS Variables - Override in platform themes */
:root {
  --primary-color: #007bff;
  --secondary-color: #6c757d;
  --accent-color: #28a745;
  --text-dark: #212529;
  --text-light: #6c757d;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border-color: #dee2e6;
  
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --border-radius: 6px;
  --box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-dark);
}

.section {
  padding: 60px 0;
}

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

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

/* Header Styles */
.header {
  background: var(--bg-white);
  box-shadow: var(--box-shadow);
  z-index: 1000;
  transition: var(--transition);
}

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

.logo h1.sitename {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

/* Logo Images Styling */
.header-logo {
  height: 40px;
  max-width: 180px;
  margin-right: 15px;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.header-logo:hover {
  opacity: 0.8;
}

.footer-logo {
  height: 30px;
  max-width: 140px;
  margin-bottom: 10px;
  object-fit: contain;
  opacity: 0.9;
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
  .header-logo {
    height: 32px;
    max-width: 140px;
    margin-right: 10px;
  }
  
  .footer-logo {
    height: 24px;
    max-width: 120px;
  }
  
  .logo {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .logo .header-logo {
    margin-bottom: 5px;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .header-logo {
    height: 28px;
    max-width: 120px;
  }
  
  .footer-logo {
    height: 22px;
    max-width: 100px;
  }
}

.navmenu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
}

.navmenu a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  transition: var(--transition);
}

.navmenu a:hover,
.navmenu a.active {
  color: var(--primary-color);
}

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

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.hero-content h2 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: 500;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 30px;
}

.hero-cta {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Buttons */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

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

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 12px 30px;
  font-weight: 600;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Content Section */
.content {
  background: var(--bg-white);
}

.main-content h2 {
  color: var(--primary-color);
  margin-bottom: 25px;
}

.main-content h3 {
  color: var(--text-dark);
  margin-top: 30px;
  margin-bottom: 15px;
}

.main-content p {
  margin-bottom: 20px;
  line-height: 1.7;
}

.main-content ul {
  margin-bottom: 25px;
}

.main-content ul li {
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.main-content ul li:before {
  content: "✓";
  color: var(--accent-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Sidebar */
.sidebar {
  background: var(--bg-light);
  padding: 30px;
  border-radius: var(--border-radius);
  height: fit-content;
  position: sticky;
  top: 120px;
}

.sidebar h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.sidebar .contact-info {
  margin-bottom: 20px;
}

.sidebar .contact-info i {
  color: var(--primary-color);
  margin-right: 10px;
  width: 20px;
}

/* Services Section */
.services {
  background: var(--bg-light);
}

.service-item {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
}

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

.service-item i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.service-item h3 {
  margin-bottom: 15px;
  color: var(--text-dark);
}

/* Contact Section */
.contact {
  background: var(--bg-white);
}

.contact-info .info-item {
  margin-bottom: 30px;
}

.contact-info .info-item i {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-right: 15px;
}

.contact-info .info-item h4 {
  color: var(--text-dark);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.contact-info .info-item p {
  margin: 0;
  color: var(--text-light);
}

.contact-info .info-item a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-info .info-item a:hover {
  color: var(--accent-color);
}

/* Maps */
.maps-embed {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.maps-embed iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: #ffffff;
  padding: 50px 0 20px;
}

.footer h3,
.footer h4 {
  color: #ffffff;
  margin-bottom: 20px;
}

.footer p,
.footer a {
  color: #cccccc;
}

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

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #cccccc;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links ul li a:hover {
  color: var(--primary-color);
}

.copyright {
  border-top: 1px solid #333;
  padding-top: 20px;
  color: #cccccc;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 996;
  background: var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50px;
  transition: var(--transition);
}

.back-to-top i {
  font-size: 24px;
  color: #ffffff;
  line-height: 0;
}

.back-to-top:hover {
  background: var(--accent-color);
  color: #ffffff;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content h2 {
    font-size: 1.2rem;
  }
  
  .hero-content p {
    font-size: 1rem;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .navmenu ul {
    flex-direction: column;
    gap: 15px;
  }
  
  .sidebar {
    margin-top: 30px;
    position: static;
  }
}