/* 
   Main CSS Stylesheet for domain
   Modern Accounting Services Website
*/

/* Base Styles and Variables */
:root {
  --primary-color: #ff6b6b;
  --secondary-color: #00b8a9;
  --accent-color: #ffd166;
  --text-color: #1c1c1c;
  --form-bg-color: #f5f5f5;
  --white-color: #ffffff;
  --gray-color: #f0f0f0;
  --dark-gray-color: #666666;
}

/* Global Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white-color);
  overflow-x: hidden;
}

section[id] {
  scroll-margin-top: 40px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 30px;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 15px;
}

a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-color);
}

ul {
  list-style-type: none;
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 60px 0;
}

/* Header Styles */
.header {
  background-color: var(--white-color);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 15px 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: lowercase;
  letter-spacing: -1px;
}

.main-nav ul {
  display: flex;
}

.main-nav li {
  margin-left: 20px;
}

.main-nav a {
  color: var(--text-color);
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--primary-color);
}

.contact-info .phone {
  font-weight: 700;
  color: var(--secondary-color);
}

/* Mobile Menu */
.menu-toggle {
  display: none;
}

.menu-button {
  display: none;
  cursor: pointer;
}

.menu-button .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  background-image: url("./img/rMeyn.jpg");
  background-size: cover;
  background-position: center;
  color: var(--white-color);
  text-align: center;
  padding: 100px 0;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.cta-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--accent-color)
  );
  color: var(--white-color);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  color: var(--white-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about {
  background-color: var(--white-color);
}

.about-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-image {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Services Section */
.services {
  background-color: var(--gray-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--white-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-card h3 {
  padding: 20px 20px 10px;
  color: var(--secondary-color);
}

.service-card p {
  padding: 0 20px 20px;
}

/* Benefits Section */
.benefits {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.benefits h2 {
  color: var(--white-color);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 1rem;
  background: var(--secondary-color);
  border-radius: 1rem;
}

.benefit-icon {
  flex-shrink: 0;
  font-size: 1.5rem;
  margin-right: 15px;
  width: 40px;
  height: 40px;
  background-color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
}

.benefit-content h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--white-color);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background-color: var(--gray-color);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
  margin-bottom: 15px;
  font-style: italic;
  position: relative;
}

.testimonial-content::before {
  content: '"';
  font-size: 3rem;
  position: absolute;
  top: -20px;
  left: -10px;
  color: var(--primary-color);
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}

.testimonial-author strong {
  font-weight: 700;
}

.testimonial-author span {
  color: var(--dark-gray-color);
}

/* Contact Form Section */
.contact {
  background-color: var(--secondary-color);
  color: var(--white-color);
}

.contact h2 {
  color: var(--white-color);
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--form-bg-color);
  padding: 30px;
  border-radius: 10px;
  color: var(--text-color);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 15px;
  border: 2px solid var(--secondary-color);
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group.checkbox {
  display: flex;
  align-items: center;
}

.form-group.checkbox input {
  width: auto;
  margin-right: 10px;
}

.form-group.checkbox label {
  margin-bottom: 0;
  font-weight: normal;
}

/* Style for select options */
select option {
  background-color: var(--white-color);
  color: var(--text-color);
}

.submit-button {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--accent-color)
  );
  color: var(--white-color);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.faq {
  background-color: var(--gray-color);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.faq-item input {
  display: none;
}

.faq-question {
  display: block;
  padding: 15px;
  background-color: var(--white-color);
  color: var(--text-color);
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s ease;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--secondary-color);
}

.faq-item input:checked + .faq-question {
  background-color: var(--secondary-color);
  color: var(--white-color);
}

.faq-item input:checked + .faq-question::after {
  content: "−";
  color: var(--white-color);
}

.faq-answer {
  background-color: var(--white-color);
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item input:checked ~ .faq-answer {
  padding: 15px;
  max-height: 500px;
}

/* Location Section */
.location {
  background-color: var(--white-color);
}

.map-container {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer Styles */
.footer {
  background-color: var(--text-color);
  color: var(--white-color);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--accent-color);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-section p {
  color: #ccc;
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.contact-list li,
.footer-links li {
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.contact-list a,
.footer-links a {
  color: #ccc;
}

.contact-list a:hover,
.footer-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: #999;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: -300px;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  color: var(--white-color);
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: bottom 0.5s ease;
}

.cookie-consent.show {
  bottom: 0;
}

.cookie-consent p {
  margin: 0;
  padding-right: 20px;
}

.cookie-consent a {
  color: var(--accent-color);
}

#accept-cookies {
  padding: 8px 20px;
  background-color: var(--secondary-color);
  color: var(--white-color);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
}

#accept-cookies:hover {
  background-color: var(--primary-color);
}

/* Policy Pages */
.policy {
  padding: 60px 0;
}

.policy-content {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--white-color);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.policy-content h1 {
  margin-bottom: 20px;
}

.policy-content h2 {
  font-size: 1.5rem;
  margin: 30px 0 15px;
  text-align: left;
}

.policy-content h3 {
  font-size: 1.2rem;
  margin: 20px 0 10px;
}

.policy-content ul,
.policy-content ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.policy-content ul li,
.policy-content ol li {
  margin-bottom: 10px;
  list-style-type: disc;
}

/* Thank You Page */
.thank-you {
  padding: 100px 0;
  text-align: center;
}

.thank-you-content {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--white-color);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.thank-you-content h1 {
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.thank-you-actions {
  margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .about-content {
    flex-direction: column;
  }

  .about-text,
  .about-image {
    flex: auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  section {
    padding: 40px 0;
  }

  .menu-button {
    display: block;
    z-index: 101;
  }

  .menu-toggle {
    display: none;
  }

  .menu-toggle:checked ~ .main-nav {
    transform: translateX(0);
  }

  .menu-toggle:checked ~ .menu-button .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle:checked ~ .menu-button .bar:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .menu-button .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    background-color: var(--dark-gray-color);
    width: 80%;
    height: 100vh;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 100;
    padding: 80px 20px 20px;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav li {
    margin: 0 0 20px;
  }

  .main-nav a {
    color: var(--white-color);
    font-size: 1.2rem;
  }

  .hero {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .service-card {
    margin-bottom: 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .cookie-consent {
    flex-direction: column;
  }

  .cookie-consent p {
    margin-bottom: 15px;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .cta-button {
    padding: 10px 20px;
    font-size: 1rem;
  }

  .policy-content,
  .thank-you-content {
    padding: 20px;
  }
}
