/* 
* domain - Accounting Company Website
* Main CSS File
*/

/* Global Styles */
:root {
  --bg-color: #f9f9f9;
  --accent-1: #ff6f61;
  --accent-2: #009688;
  --text-dark: #333333;
  --text-medium: #444444;
  --gradient-start: #ff6f61;
  --gradient-end: #ff8a65;
  --white: #ffffff;
  --gray-light: #f0f0f0;
  --gray-medium: #e0e0e0;
  --shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  --radius: 8px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

section[id] {
  scroll-margin-top: 40px;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 20px;
  line-height: 1.3;
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  margin-bottom: 40px;
}

h2:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -15px;
  width: 60px;
  height: 4px;
  background: var(--accent-1);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 20px;
}

a {
  color: var(--accent-1);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-2);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.section-padding {
  padding: 80px 0;
}

.text-center {
  text-align: center;
}

.text-center h2:after {
  left: 50%;
  transform: translateX(-50%);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: linear-gradient(
    to right,
    var(--gradient-start),
    var(--gradient-end)
  );
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 111, 97, 0.15);
  color: var(--white);
}

.btn-secondary {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  color: var(--accent-1);
  border: 2px solid var(--accent-1);
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-secondary:hover {
  background-color: var(--accent-1);
  color: var(--white);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--white);
  z-index: 1000;
  box-shadow: var(--shadow);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-1);
  text-transform: lowercase;
}

nav ul {
  display: flex;
  gap: 20px;
}

nav a {
  color: var(--text-dark);
  font-weight: 500;
}

nav a:hover {
  color: var(--accent-1);
}

.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  cursor: pointer;
}

.nav-toggle-label span {
  display: block;
  width: 25px;
  height: 3px;
  margin-bottom: 5px;
  background: var(--text-dark);
  border-radius: 3px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0 auto;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: var(--radius);
}

.hero h1 {
  margin-bottom: 30px;
  font-size: 3rem;
}

.hero p {
  margin-bottom: 30px;
  font-size: 1.2rem;
}

/* Section Styling */
section {
  padding: 80px 0;
}

.section-title {
  margin-bottom: 50px;
  text-align: center;
}

.section-intro {
  max-width: 800px;
  margin: 0 auto 50px;
  text-align: center;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-text h2:after {
  left: 0;
  transform: none;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-content {
  padding: 25px;
}

.service-card h3 {
  color: var(--accent-1);
  margin-bottom: 15px;
}

/* Advantages Section */
.advantages {
  background-color: var(--gray-light);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.advantage-item {
  text-align: center;
  padding: 30px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.advantage-item:hover {
  transform: translateY(-5px);
}

.advantage-icon {
  font-size: 2.5rem;
  color: var(--accent-1);
  margin-bottom: 20px;
}

/* Contact Form Section */
.contact {
  background-color: var(--white);
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--gray-medium);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-1);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 15px;
}

/* Override select background color */
select.form-control option {
  background-color: var(--white);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 10px;
  margin-top: 5px;
}

.checkbox-group label {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.form-submit {
  text-align: center;
  margin-top: 30px;
}

/* Testimonials Section */
.testimonials {
  background-color: var(--gray-light);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.testimonial-content {
  position: relative;
  padding-left: 30px;
  margin-bottom: 20px;
}

.testimonial-content:before {
  content: '"';
  position: absolute;
  left: 0;
  top: -10px;
  font-size: 50px;
  color: var(--accent-1);
  opacity: 0.5;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-name {
  font-weight: 600;
}

.testimonial-position {
  font-size: 0.9rem;
  color: var(--text-medium);
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.faq-item input[type="checkbox"] {
  display: none;
}

.faq-item label {
  display: block;
  padding: 15px 20px;
  background: var(--white);
  color: var(--text-dark);
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.faq-item label:hover {
  background-color: var(--gray-light);
}

.faq-item label:after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  transition: var(--transition);
}

.faq-item input[type="checkbox"]:checked + label:after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-content {
  background: var(--white);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item input[type="checkbox"]:checked ~ .faq-content {
  max-height: 500px; /* Adjust as needed */
}

.faq-text {
  padding: 0 20px 20px;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-image {
  height: 250px;
  overflow: hidden;
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info {
  padding: 20px;
  text-align: center;
}

.team-name {
  font-weight: 600;
  margin-bottom: 5px;
}

.team-position {
  color: var(--accent-1);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

/* Footer */
footer {
  background-color: #222;
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-col h3 {
  color: var(--white);
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.footer-col h3:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--accent-1);
}

.contact-info li {
  margin-bottom: 10px;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--gray-medium);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-1);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: var(--gray-medium);
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: -100px;
  left: 0;
  width: 100%;
  background: var(--text-dark);
  color: var(--white);
  padding: 20px;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s ease-in-out;
  opacity: 0;
}

.cookie-consent.active {
  transform: translateY(-100px);
  opacity: 1;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content p {
  margin: 0;
  padding-right: 20px;
  font-size: 0.9rem;
}

.cookie-content a {
  color: var(--accent-1);
}

/* Policy Pages */
.policy-container {
  max-width: 900px;
  margin: 120px auto 60px;
  padding: 40px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.policy-container h1 {
  margin-bottom: 30px;
}

.policy-container h2 {
  margin-top: 40px;
}

.policy-container ol,
.policy-container ul {
  margin: 20px 0;
  padding-left: 20px;
}

.policy-container ol li,
.policy-container ul li {
  margin-bottom: 10px;
}

/* Thank You Page */
.thank-you-container {
  max-width: 700px;
  margin: 140px auto;
  padding: 60px 40px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.thank-you-container h1 {
  color: var(--accent-1);
  margin-bottom: 20px;
}

.thank-you-container p {
  margin-bottom: 30px;
}

/* Media Queries */
@media (max-width: 992px) {
  .about-content {
    grid-template-columns: 1fr;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-content p {
    margin-bottom: 15px;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.7rem;
  }

  .nav-toggle-label {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--white);
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
  }

  .nav-toggle:checked ~ nav {
    height: auto;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0 20px;
  }

  nav li {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .nav-toggle:checked ~ nav li {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
  }

  nav a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-light);
  }

  .hero-content {
    padding: 30px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  section {
    padding: 60px 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .policy-container,
  .thank-you-container {
    padding: 30px 20px;
    margin-top: 100px;
  }

  .form-container {
    padding: 30px 20px;
  }

  .hero-content {
    padding: 20px;
  }
}
