/* Main CSS for domain accounting services */
/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --dark-bg: #0e1a2b;
  --accent: #ffc600;
  --headers: #ffffff;
  --text: #e0e6ed;
  --button-grad-start: #ffb200;
  --button-grad-end: #e68100;
  --white-section: #ffffff;
  --dark-text: #333;
  --section-padding: 4rem 2rem;
  --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
  font-size: 16px;
}

body {
  font-family: "Arial", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--dark-bg);
}

section[id] {
  scroll-margin-top: 40px;
}

div {
  word-break: break-word;
  overflow-wrap: break-word;
}

a {
  text-decoration: none;
  color: var(--accent);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--button-grad-start);
}

h1,
h2,
h3,
h4,
h5 {
  margin-bottom: 1.5rem;
  color: var(--headers);
  font-weight: 700;
}

p {
  margin-bottom: 1.5rem;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(
    to right,
    var(--button-grad-start),
    var(--button-grad-end)
  );
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: white;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--accent);
  margin: 1rem auto 0;
}

.text-center {
  text-align: center;
}

.white-section {
  background-color: var(--white-section);
  color: var(--dark-text);
}

.white-section h2,
.white-section h3 {
  color: var(--dark-bg);
}

/* Header styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(14, 26, 43, 0.95);
  padding: 1rem 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--headers);
}

.logo span {
  color: var(--accent);
}

/* Hamburger menu using checkbox hack */
.menu-toggle {
  display: none;
}

.menu-btn {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-btn span {
  display: block;
  width: 30px;
  height: 3px;
  background-color: var(--headers);
  margin: 6px 0;
  transition: all 0.3s ease;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 2rem;
}

.main-nav a {
  color: var(--headers);
  font-weight: 600;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Hero section */
.hero {
  height: 100vh;
  min-height: 600px;
  background: url("../img/HzL5N.jpg") no-repeat center center/cover;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 26, 43, 0.8);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--headers);
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  color: var(--text);
}

/* About section */
.about {
  padding: var(--section-padding);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Services section */
.services {
  padding: var(--section-padding);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(
    to right,
    var(--button-grad-start),
    var(--button-grad-end)
  );
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.service-icon {
  height: 150px;
  overflow: hidden;
  margin-bottom: 1rem;
  border-radius: 5px;
}

.service-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Benefits section */
.benefits {
  padding: var(--section-padding);
  background-color: var(--white-section);
  color: var(--dark-text);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.benefit-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem;
}

.benefit-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(
    to right,
    var(--button-grad-start),
    var(--button-grad-end)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.benefit-icon img {
  width: 50%;
  height: auto;
}

.benefit-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--dark-bg);
}

/* Testimonials section */
.testimonials {
  padding: var(--section-padding);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  position: relative;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-text::before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  left: -1.5rem;
  top: -1rem;
  color: var(--accent);
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-name {
  font-weight: 700;
}

.testimonial-position {
  color: var(--accent);
  font-size: 0.9rem;
}

/* FAQ section */
.faq {
  padding: var(--section-padding);
  background-color: var(--white-section);
  color: var(--dark-text);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 5px;
  overflow: hidden;
}

.faq-question {
  position: relative;
  padding: 1.5rem;
  background-color: rgba(14, 26, 43, 0.05);
  color: var(--dark-bg);
  font-weight: 600;
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: left;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: rgba(14, 26, 43, 0.1);
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1.5rem;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-checkbox {
  display: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  background-color: #f8f8f8;
  transition: max-height 0.5s ease;
}

.faq-checkbox:checked + .faq-question::after {
  transform: rotate(45deg);
}

.faq-checkbox:checked ~ .faq-answer {
  max-height: 500px;
}

.faq-content {
  padding: 1.5rem;
}

/* Form section */
.contact {
  padding: var(--section-padding);
}

.form-container {
  max-width: 800px;
  margin: 8rem auto 5rem;
  background-color: rgba(255, 255, 255, 0.03);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  position: relative;
}

.form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 10px;
  background: linear-gradient(
    to right,
    var(--button-grad-start),
    var(--button-grad-end)
  );
  border-radius: 15px 15px 0 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid rgba(224, 230, 237, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  color: var(--text);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 198, 0, 0.1);
}

/* Custom select styling */
.form-select {
  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='%23ffc600' 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 0.8rem center;
  background-size: 1em;
}

/* Style for select options */
.form-select option {
  background-color: var(--dark-bg);
  color: var(--text);
}

.checkbox-group {
  margin-bottom: 1rem;
}

.custom-checkbox {
  display: inline-block;
  position: relative;
  padding-left: 30px;
  cursor: pointer;
  margin-right: 1.5rem;
  margin-bottom: 0.8rem;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 20px;
  width: 20px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(224, 230, 237, 0.2);
  border-radius: 3px;
}

.custom-checkbox:hover input ~ .checkmark {
  background-color: rgba(255, 255, 255, 0.1);
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--accent);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.custom-checkbox .checkmark:after {
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.consent-text {
  font-size: 0.9rem;
  opacity: 0.8;
}

.form-submit {
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* Map section */
.map-section {
  padding: var(--section-padding);
}

.map-container {
  height: 400px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.footer {
  background-color: #0a1422;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-column h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.footer-contact-icon {
  margin-right: 0.8rem;
  color: var(--accent);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(224, 230, 237, 0.1);
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Cookie consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--dark-bg);
  padding: 1.5rem;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
  z-index: 2000;
  display: none;
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cookie-text {
  flex: 1;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-btn {
  padding: 0.6rem 1.2rem;
}

/* Policy pages */
.policy-container {
  max-width: 900px;
  margin: 8rem auto 5rem;
  background-color: rgba(255, 255, 255, 0.03);
  padding: 3rem;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
}

.policy-container h1 {
  margin-bottom: 2rem;
  text-align: center;
}

.policy-container h2 {
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
}

.policy-container ul,
.policy-container ol {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
}

.policy-container li {
  margin-bottom: 0.5rem;
}

/* Thank you page */
.thank-you {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.thank-you-content {
  margin: 10rem auto;
  max-width: 700px;
  padding: 3rem;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  box-shadow: var(--card-shadow);
}

.thank-you-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 2rem;
}

.thank-you-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.thank-you-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.back-home {
  margin-top: 2rem;
}

/* Media queries for responsive design */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .menu-btn {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--dark-bg);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 1rem 0;
  }

  .main-nav li {
    margin: 0;
    text-align: center;
  }

  .main-nav a {
    display: block;
    padding: 1rem;
  }

  .menu-toggle:checked ~ .main-nav {
    max-height: 300px;
  }

  .menu-toggle:checked ~ .menu-btn span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .menu-toggle:checked ~ .menu-btn span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle:checked ~ .menu-btn span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }

  .cookie-buttons {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  :root {
    --section-padding: 3rem 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .form-container,
  .policy-container {
    padding: 2rem 1.5rem;
  }
}

/* Add this to ensure min-width: 280px grid items work properly on all browsers */
@supports not (grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))) {
  .services-grid,
  .benefits-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  @media (min-width: 600px) {
    .services-grid,
    .benefits-grid,
    .testimonials-grid {
      grid-template-columns: repeat(2, 1fr);
    }
  }

  @media (min-width: 992px) {
    .services-grid,
    .benefits-grid,
    .testimonials-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
}

@media (min-width: 992px) {
  .about-content {
    grid-template-columns: repeat(2, 1fr);
  }
}
