/* 
* Domain - Accounting Services Website
* Main Stylesheet
*/

/* ===== GENERAL STYLES ===== */
:root {
  /* Color palette */
  --color-bg: #1d2235;
  --color-accent-gold: #ffd65a;
  --color-accent-red: #d84e5f;
  --color-text-white: #ffffff;
  --color-text-light: #c9ced8;
  --color-dark-blue: #141824;
  --color-light-blue: #2a3045;
  --gradient-blue: linear-gradient(
    135deg,
    var(--color-bg) 0%,
    var(--color-dark-blue) 100%
  );
  --gradient-accent: linear-gradient(
    135deg,
    var(--color-accent-gold) 0%,
    var(--color-accent-red) 100%
  );

  /* Typography */
  --font-main: "Arial", sans-serif;
  --font-headings: "Arial", sans-serif;

  /* Sizes */
  --container-width: 1200px;
  --section-padding: 80px 0;
  --section-padding-mobile: 60px 0;
}

/* Base Styles */
* {
  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: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text-light);
  line-height: 1.6;
  font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-headings);
  color: var(--color-text-white);
  margin-bottom: 20px;
}

p {
  margin-bottom: 16px;
}

a {
  color: var(--color-accent-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  color: var(--color-accent-red);
}

option {
  color: #3f4557;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* Section Styles */
section {
  padding: var(--section-padding);
}

section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
  position: relative;
}

section h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--gradient-accent);
  border-radius: 3px;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--color-text-white);
}

.btn-primary:hover {
  box-shadow: 0 5px 15px rgba(216, 78, 95, 0.4);
  transform: translateY(-2px);
  color: var(--color-text-white);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--color-accent-gold);
  color: var(--color-accent-gold);
}

.btn-secondary:hover {
  background: var(--color-accent-gold);
  color: var(--color-bg);
  box-shadow: 0 5px 15px rgba(255, 214, 90, 0.4);
  transform: translateY(-2px);
}

.btn-service {
  background: var(--color-light-blue);
  color: var(--color-text-white);
  border: 1px solid var(--color-accent-gold);
  margin-top: 15px;
}

.btn-service:hover {
  background: var(--color-accent-gold);
  color: var(--color-bg);
}

.btn-submit {
  background: var(--gradient-accent);
  color: var(--color-text-white);
  font-size: 16px;
  width: 100%;
  margin-top: 20px;
}

.btn-submit:hover {
  box-shadow: 0 5px 15px rgba(216, 78, 95, 0.4);
  transform: translateY(-2px);
}

.btn-cookie {
  background: var(--color-accent-gold);
  color: var(--color-bg);
  padding: 8px 16px;
}

.btn-cookie:hover {
  background: var(--color-accent-red);
  color: var(--color-text-white);
}

/* ===== HEADER STYLES ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(20, 24, 36, 0.9);
  backdrop-filter: blur(5px);
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-white);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo a:hover {
  color: var(--color-accent-gold);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.main-nav a {
  color: var(--color-text-light);
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-accent-gold);
}

.nav-cta {
  background: var(--gradient-accent);
  padding: 8px 20px;
  border-radius: 30px;
  color: var(--color-text-white) !important;
}

.nav-cta:hover {
  box-shadow: 0 5px 15px rgba(216, 78, 95, 0.4);
  color: var(--color-text-white) !important;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
}

.menu-icon span,
.menu-icon:before,
.menu-icon:after {
  content: "";
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-text-white);
  position: absolute;
  transition: all 0.3s ease;
}

.menu-icon:before {
  top: 0;
}

.menu-icon span {
  top: 9px;
}

.menu-icon:after {
  bottom: 0;
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  background: url("img/1niMS.jpg") center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
  padding-top: 80px;
}

.hero-section:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 24, 36, 0.7),
    rgba(29, 34, 53, 0.9)
  );
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: 48px;
  margin-bottom: 16px;
  animation: fadeInDown 1s ease;
}

.hero-section h2 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 30px;
  color: var(--color-text-light);
  animation: fadeInUp 1s ease 0.2s;
  animation-fill-mode: backwards;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  animation: fadeInUp 1s ease 0.4s;
  animation-fill-mode: backwards;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background: var(--gradient-blue);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.about-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== BENEFITS SECTION ===== */
.benefits-section {
  background-color: var(--color-dark-blue);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.benefit-card {
  background: var(--color-light-blue);
  padding: 30px;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-align: center;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  margin-bottom: 20px;
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-accent);
  border-radius: 50%;
}

/* Placeholder for icons (in a real project, would use proper icons) */
.benefit-icon i:before {
  content: "★";
  font-size: 24px;
  color: var(--color-text-white);
}

/* ===== SERVICES SECTION ===== */
.services-section {
  background: var(--gradient-blue);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--color-light-blue);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-card img {
  height: 200px;
  object-fit: cover;
}

.service-card h3 {
  margin: 20px 20px 10px;
}

.service-card p {
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-card .btn {
  margin: 0 20px 20px;
  align-self: flex-start;
}

/* ===== PROCESS SECTION ===== */
.process-section {
  background-color: var(--color-dark-blue);
}

.process-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.process-step {
  flex: 0 0 calc(20% - 24px);
  text-align: center;
  position: relative;
}

.process-step:not(:last-child):after {
  content: "→";
  position: absolute;
  right: -20px;
  top: 30px;
  color: var(--color-accent-gold);
  font-size: 24px;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text-white);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
  background: var(--gradient-blue);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--color-light-blue);
  padding: 30px;
  border-radius: 10px;
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
  margin-bottom: 20px;
  position: relative;
}

.testimonial-content:before {
  content: '"';
  position: absolute;
  top: -20px;
  left: -5px;
  font-size: 60px;
  color: var(--color-accent-gold);
  opacity: 0.3;
  line-height: 1;
}

.testimonial-author {
  border-top: 1px solid rgba(201, 206, 216, 0.2);
  padding-top: 15px;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background-color: var(--color-dark-blue);
}

.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--color-light-blue);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  color: var(--color-text-white);
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--color-bg);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-text-white);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent-gold);
  box-shadow: 0 0 0 2px rgba(255, 214, 90, 0.3);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input {
  width: auto;
  margin-top: 5px;
}

.checkbox-group label {
  margin: 0;
  font-size: 14px;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  background: var(--gradient-blue);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--color-light-blue);
  border-radius: 5px;
  overflow: hidden;
}

.faq-toggle {
  position: absolute;
  opacity: 0;
  z-index: -1;
}

.faq-question {
  display: block;
  padding: 15px 50px 15px 20px;
  background: var(--color-light-blue);
  color: var(--color-text-white);
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: var(--color-bg);
}

.faq-question:after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--color-accent-gold);
  transition: all 0.3s ease;
}

.faq-toggle:checked ~ .faq-question:after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  background: rgba(42, 48, 69, 0.5);
  transition: all 0.3s ease;
}

.faq-toggle:checked ~ .faq-answer {
  max-height: 500px;
  padding: 15px 20px;
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--color-dark-blue);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.footer-info h3 {
  font-size: 24px;
  margin-bottom: 15px;
}

.footer-contact h4,
.footer-links h4 {
  font-size: 18px;
  margin-bottom: 20px;
  position: relative;
}

.footer-contact h4:after,
.footer-links h4:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--color-accent-gold);
}

.footer-contact ul,
.footer-links ul {
  list-style: none;
}

.footer-contact li,
.footer-links li {
  margin-bottom: 10px;
}

.footer-contact i {
  margin-right: 8px;
  color: var(--color-accent-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(201, 206, 216, 0.1);
  font-size: 14px;
}

/* ===== THANK YOU PAGE ===== */
.gracias-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 80px 0;
}

.gracias-content {
  background: var(--color-light-blue);
  padding: 40px;
  border-radius: 10px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--color-accent-gold);
}

/* ===== POLICY PAGES ===== */
.policy-section {
  padding: 120px 0 60px;
}

.policy-container {
  background: var(--color-light-blue);
  padding: 40px;
  border-radius: 10px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.policy-container h1 {
  margin-bottom: 30px;
  text-align: center;
}

.policy-container h2 {
  margin: 30px 0 15px;
  font-size: 24px;
}

.policy-container p,
.policy-container ul,
.policy-container ol {
  margin-bottom: 20px;
}

.policy-container ul,
.policy-container ol {
  padding-left: 20px;
}

.policy-container li {
  margin-bottom: 10px;
}

/* ===== COOKIE CONSENT ===== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-dark-blue);
  padding: 15px;
  z-index: 9999;
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
  display: none;
  align-items: center;
  justify-content: space-between;
}

.cookie-consent p {
  margin: 0 20px 0 0;
  font-size: 14px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
  :root {
    --section-padding: 60px 0;
  }

  section h2 {
    font-size: 28px;
  }

  .hero-section h1 {
    font-size: 36px;
  }

  .hero-section h2 {
    font-size: 20px;
  }

  .about-content {
    flex-direction: column;
  }

  .process-step {
    flex: 0 0 calc(33.333% - 20px);
  }

  .process-step:nth-child(3):after {
    display: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: var(--section-padding-mobile);
  }

  .menu-icon {
    display: block;
  }

  .main-nav ul {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    flex-direction: column;
    background: var(--color-dark-blue);
    padding: 40px 20px;
    transition: left 0.3s ease;
    gap: 15px;
  }

  .menu-toggle:checked ~ ul {
    left: 0;
  }

  .main-nav ul li {
    width: 100%;
  }

  .main-nav ul li a {
    display: block;
    padding: 10px 0;
    font-size: 18px;
  }

  .menu-toggle:checked ~ .menu-icon span {
    opacity: 0;
  }

  .menu-toggle:checked ~ .menu-icon:before {
    transform: rotate(45deg);
    top: 9px;
  }

  .menu-toggle:checked ~ .menu-icon:after {
    transform: rotate(-45deg);
    bottom: 9px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .process-step {
    flex: 0 0 calc(50% - 15px);
  }

  .process-step:after {
    display: none;
  }

  .cookie-consent {
    flex-direction: column;
    text-align: center;
  }

  .cookie-consent p {
    margin: 0 0 15px;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 28px;
  }

  .hero-section h2 {
    font-size: 18px;
  }

  section h2 {
    font-size: 24px;
  }

  .process-step {
    flex: 0 0 100%;
  }

  .contact-form-container {
    padding: 20px;
  }

  .benefit-card,
  .service-card,
  .testimonial-card {
    padding: 20px;
  }
}
