/* Base Theme Setup */
:root {
  --primary-color: #003366;
  --accent-color: #ff6600;
  --light-bg: #ffffff;
  --light-text: #222;
  --card-bg: #f8f9fa;
  --hover-bg: #e0ecff;
  --footer-bg: #003366;

  --dark-bg: #121212;
  --dark-text: #f0f0f0;
  --dark-card: #1e1e1e;
  --dark-hover: #1a2a40;
}

/* Dark mode toggler */
body.dark {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

body.dark header,
body.dark footer {
  background-color: #0b1826;
}

body.dark .service-card {
  background-color: var(--dark-card);
  color: var(--dark-text);
}

body.dark .service-card:hover {
  background-color: var(--dark-hover);
}

body.dark .contact-form input,
body.dark .contact-form textarea {
  background-color: #2a2a2a;
  color: #f0f0f0;
  border: 1px solid #444;
}

body.dark .btn,
body.dark .contact-form button {
  background-color: #ff6600;
  color: #fff;
}

/* Global Styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background-color: var(--light-bg);
  color: var(--light-text);
  scroll-behavior: smooth;
  transition: background-color 0.3s, color 0.3s;
}

/* Sticky Header */
header {
  background-color: var(--primary-color);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 999;
}

header img {
  height: 100px;
  width: auto;
}

header nav {
  display: flex;
  gap: 20px;
}

header nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

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

/* Dark Mode Toggle Button */
.toggle-mode {
  background: none;
  border: 2px solid white;
  color: white;
  padding: 5px 10px;
  font-size: 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s;
}

.toggle-mode:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
  height: 90vh;
  background-color: var(--primary-color);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

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

.hero p {
  font-size: 1.3rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.btn {
  background-color: var(--accent-color);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #e65c00;
}

/* Section Headings */
section {
  padding: 60px 20px;
  text-align: center;
  animation: fadeIn 1s ease-in;
  scroll-margin-top: 120px; /* Larger offset for sticky header */
}

section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--primary-color);
}

/* Services Grid */
.services-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  max-width: 1000px;
  margin: auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.service-card {
  background-color: var(--card-bg);
  padding: 1.5rem;
  border-radius: 1rem;
  text-decoration: none;
  color: var(--light-text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  text-align: left;
  animation: slideUp 0.8s ease;
}

.service-card:hover {
  background-color: var(--hover-bg);
  transform: translateY(-4px);
}

/* About / Prices / Contact */
.about p,
.prices p {
  max-width: 700px;
  margin: auto;
  font-size: 1.1rem;
}

.contact-form {
  max-width: 600px;
  margin: auto;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: inherit;
}

.contact-form button {
  background-color: var(--accent-color);
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #e65c00;
}

/* Footer */
footer {
  background-color: var(--footer-bg);
  color: white;
  text-align: center;
  padding: 20px;
}

footer a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
  font-size: 0.9rem;
}

footer a:hover {
  text-decoration: underline;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

ul {
  list-style-type: none;
  padding-left: 0;
}

/* Prices Section */
#prices {
    text-align: center;
    padding: 40px 20px;
    background-color: #f9f9f9;
}

#prices h2 {
    font-size: 2em;
    margin-bottom: 10px;
}

#prices .intro-text {
    font-size: 1.1em;
    color: #777;
    margin-bottom: 30px;
}

.price-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Auto-adjust the columns based on screen size */
    gap: 20px;
    justify-items: center; /* Center align the cards */
}

.price-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    width: 100%; /* Ensure cards take full width within grid */
    max-width: 300px; /* Set a maximum width for consistency */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.price-card h3 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.price-card .price-from {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 15px;
}

.price-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1em;
    color: #555;
}

.price-card ul li {
    margin-bottom: 10px;
}

.price-card .btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007BFF;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
}

.price-card .btn:hover {
    background-color: #0056b3;
}

/* Dark Mode for Prices Section */
body.dark #prices {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

body.dark .price-card {
  background-color: var(--dark-card);
  color: var(--dark-text);
  border: 1px solid #333;
}

body.dark .price-card ul {
  color: var(--dark-text);
}

body.dark .price-card .btn {
  background-color: var(--accent-color);
  color: #fff;
}

body.dark .price-card .btn:hover {
  background-color: #e65c00;
}
