/* Graham Miranda UG - Ilsenburg City Site Styles */

:root {
  --primary: #1a3a5c;
  --primary-light: #2a5a8c;
  --secondary: #e67e22;
  --secondary-light: #f39c12;
  --accent: #3498db;
  --dark: #2c3e50;
  --light: #ecf0f1;
  --white: #ffffff;
  --text: #333333;
  --text-light: #666666;
  --border: #dfe6e9;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / Navigation */
.header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

.logo span {
  color: var(--secondary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  color: var(--dark);
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s;
}

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

.lang-switch {
  display: flex;
  gap: 8px;
  border-left: 1px solid var(--border);
  padding-left: 20px;
  margin-left: 10px;
}

.lang-switch a {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--light);
  color: var(--dark);
}

.lang-switch a.active {
  background: var(--primary);
  color: var(--white);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  opacity: 0.95;
}

.hero-badge {
  display: inline-block;
  background: var(--secondary);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 25px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
}

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

.btn-primary:hover {
  background: var(--secondary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(230, 126, 34, 0.4);
}

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

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

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Features Section */
.features {
  padding: 80px 0;
  background: var(--light);
}

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

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

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

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

.feature-card {
  background: var(--white);
  padding: 35px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.7;
}

/* Services Preview */
.services-preview {
  padding: 80px 0;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.service-item {
  display: flex;
  gap: 20px;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s;
}

.service-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.service-number {
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.service-content h3 {
  font-size: 1.15rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.service-content p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Why Choose Us */
.why-choose {
  padding: 80px 0;
  background: var(--primary);
  color: var(--white);
}

.why-choose .section-title h2 {
  color: var(--white);
}

.why-choose .section-title p {
  color: rgba(255,255,255,0.8);
}

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

.reason-item {
  text-align: center;
  padding: 30px 20px;
}

.reason-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 15px;
}

.reason-item h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.reason-item p {
  font-size: 0.95rem;
  opacity: 0.9;
}

/* CTA Section */
.cta {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
  color: var(--white);
  text-align: center;
}

.cta h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.cta p {
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.1rem;
}

.cta .btn-secondary {
  border-color: var(--white);
}

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

/* About Preview */
.about-preview {
  padding: 80px 0;
}

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

.about-text h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 15px;
  color: var(--text-light);
}

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

.stat-item {
  background: var(--light);
  padding: 25px;
  border-radius: var(--radius);
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Contact Preview */
.contact-preview {
  padding: 80px 0;
  background: var(--light);
}

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

.contact-card {
  background: var(--white);
  padding: 35px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.contact-card p {
  color: var(--text-light);
  margin-bottom: 10px;
}

.contact-card a {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Blog Section */
.blog-preview {
  padding: 80px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.blog-card-img {
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.blog-card-body {
  padding: 25px;
}

.blog-card-meta {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 10px;
}

.blog-card h3 {
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card p {
  color: var(--text-light);
  font-size: 0.95rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 15px;
  font-weight: 600;
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 60px 0 30px;
}

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

.footer-brand h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--secondary);
}

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

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

.footer-links a {
  color: rgba(255,255,255,0.7);
  transition: color 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-bottom p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
}

.backlinks {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
}

.backlinks a {
  color: rgba(255,255,255,0.6);
}

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

/* Page Header */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 60px 0;
  text-align: center;
}

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

.page-header p {
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.9;
}

.breadcrumb {
  padding: 15px 0;
  background: var(--light);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.breadcrumb-list li::after {
  content: "/";
  margin-left: 10px;
  color: var(--text-light);
}

.breadcrumb-list li:last-child::after {
  content: "";
}

.breadcrumb-list a {
  color: var(--accent);
}

.breadcrumb-list span {
  color: var(--text-light);
}

/* Content Sections */
.content-section {
  padding: 60px 0;
}

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

.content-section h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 15px;
}

.content-section p {
  margin-bottom: 15px;
  color: var(--text-light);
  line-height: 1.8;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

/* Sidebar */
.sidebar {
  background: var(--light);
  padding: 30px;
  border-radius: var(--radius-lg);
  height: fit-content;
}

.sidebar h3 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sidebar li:last-child {
  border-bottom: none;
}

.sidebar a {
  color: var(--text);
  display: flex;
  justify-content: space-between;
}

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

/* Services Page */
.services-full {
  padding: 60px 0;
}

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.service-detail:nth-child(even) {
  direction: rtl;
}

.service-detail:nth-child(even) > * {
  direction: ltr;
}

.service-detail:last-child {
  border-bottom: none;
}

.service-detail h2 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.service-detail p {
  color: var(--text-light);
  line-height: 1.8;
}

.service-features {
  list-style: none;
  margin-top: 20px;
}

.service-features li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: var(--text-light);
}

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

/* Blog Article */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.article-content h1 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.article-meta {
  color: var(--text-light);
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.article-content h2 {
  font-size: 1.6rem;
  color: var(--dark);
  margin: 35px 0 15px;
}

.article-content h3 {
  font-size: 1.3rem;
  color: var(--dark);
  margin: 25px 0 10px;
}

.article-content p {
  margin-bottom: 20px;
  line-height: 1.9;
  color: var(--text);
}

.article-content ul,
.article-content ol {
  margin: 20px 0;
  padding-left: 25px;
}

.article-content li {
  margin-bottom: 10px;
  line-height: 1.7;
  color: var(--text);
}

.article-content blockquote {
  border-left: 4px solid var(--secondary);
  padding: 15px 20px;
  margin: 25px 0;
  background: var(--light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
}

/* Contact Form */
.contact-form-section {
  padding: 60px 0;
}

.contact-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  max-width: 700px;
  margin: 0 auto;
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-info-box {
  background: var(--primary);
  color: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  margin-top: 40px;
}

.contact-info-box h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-info-item strong {
  display: block;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 3px;
}

.contact-info-item a {
  color: var(--white);
  font-size: 1.1rem;
}

/* Legal Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.legal-content h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 30px;
}

.legal-content h2 {
  font-size: 1.4rem;
  color: var(--dark);
  margin: 30px 0 15px;
}

.legal-content h3 {
  font-size: 1.15rem;
  color: var(--dark);
  margin: 20px 0 10px;
}

.legal-content p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: var(--text);
}

.legal-content ul {
  margin: 15px 0;
  padding-left: 25px;
}

.legal-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  box-shadow: var(--shadow-lg);
  border: none;
}

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

.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    margin-top: 15px;
  }

  .nav.active {
    display: flex;
  }

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

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

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

  .section-title h2 {
    font-size: 1.8rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-detail:nth-child(even) {
    direction: ltr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .stats-grid {
    grid-template-columns: 1fr;
  }
}
