/* 
 * Main stylesheet for domain accounting firm website
 * Color palette: 
 * - Main background: #f0f4f8 (smoky blue)
 * - Accents: #ff6b6b (coral red), #1e3a8a (dark blue), #10b981 (mint green)
 * - Text: #1f2937 (graphite)
 * - Fonts: Inter and Roboto
 */

/* ===== RESET & BASE STYLES ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #1f2937;
  background-color: #f0f4f8;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: #1e3a8a;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ff6b6b;
}

ul, ol {
  list-style-position: inside;
  padding-left: 1rem;
}

/* ===== LAYOUT COMPONENTS ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #1e3a8a;
  margin-bottom: 1rem;
}

.section-line {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #1e3a8a, #ff6b6b);
  margin: 0 auto 1rem;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #475569;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: white;
  box-shadow: 0 4px 6px rgba(30, 58, 138, 0.2);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(30, 58, 138, 0.25);
  color: white;
}

.btn-outline {
  background: transparent;
  border: 2px solid #1e3a8a;
  color: #1e3a8a;
}

.btn-outline:hover {
  background-color: rgba(30, 58, 138, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(30, 58, 138, 0.1);
}

/* ===== HEADER ===== */
.site-header {
  background-color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  height: 70px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
}

.logo-text {
  background: linear-gradient(135deg, #1e3a8a, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}

.main-navigation {
  flex: 1;
  display: flex;
  justify-content: center;
}

.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  margin: 0 1rem;
}

.menu a {
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}

.menu a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #ff6b6b;
  transition: width 0.3s ease;
}

.menu a:hover::after {
  width: 100%;
}

.contact-btn {
  background-color: #10b981;
  color: white;
  border-radius: 6px;
  padding: 0.5rem 1rem !important;
}

.contact-btn:hover {
  background-color: #059669;
  color: white;
}

.header-contact {
  display: flex;
  align-items: center;
}

.phone-number {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #1f2937;
  font-weight: 600;
}

.mobile-menu-toggle {
  display: none;
  cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero-section {
  padding: 6rem 0 8rem;
  background: linear-gradient(to right, #f0f4f8, #e0e7ff);
  position: relative;
  overflow: hidden;
}

.hero-section .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: #1e3a8a;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #475569;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background-color: white;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-image {
  flex: 1.2;
}

.about-image-container {
  position: relative;
  max-width: 450px;
  margin: 0 auto;
}

.about-image-container img {
  position: relative;
  z-index: 2;
  border-radius: 10px;
  border: 5px solid white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.5s ease;
  width: 100%;
  height: auto;
  object-fit: cover;
  filter: brightness(1.03);
}

.about-image-container:hover img {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  filter: brightness(1.05);
}

.about-image-shape {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 60%;
  height: 60%;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e3a8a, #10b981);
  z-index: 1;
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 1.75rem;
  color: #1e3a8a;
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1.5rem;
}

.about-features {
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

/* ===== ADVANTAGES SECTION ===== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.advantage-card {
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.1), rgba(16, 185, 129, 0.1));
  color: #1e3a8a;
  margin-bottom: 1rem;
}

.advantage-card h3 {
  font-size: 1.4rem;
  color: #1e3a8a;
  margin-bottom: 1rem;
}

/* ===== SERVICES SECTION ===== */
.services-section {
  background-color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: #f8fafc;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.service-image {
  width: 100%;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
}

.service-image img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 1.5rem;
  color: #1e3a8a;
  margin-bottom: 1rem;
}

.service-card p {
  margin-bottom: 1.5rem;
}

.service-features {
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-features li {
  margin-bottom: 0.5rem;
  list-style-type: none;
  display: flex;
  align-items: center;
}

.service-features li::before {
  content: "•";
  color: #10b981;
  font-weight: bold;
  display: inline-block; 
  width: 1em;
  margin-left: -1em;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
  background-color: #f0f4f8;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
  padding: 2rem;
}

.quote-icon {
  color: #ff6b6b;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.author-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.author-info p {
  color: #6b7280;
  font-size: 0.9rem;
}

/* ===== FAQ SECTION ===== */
.faq-section {
  background-color: white;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-question h3 {
  font-size: 1.2rem;
  font-weight: 500;
}

.faq-toggle {
  font-size: 1.5rem;
}

.faq-toggle .minus {
  display: none;
}

.faq-toggle .plus {
  display: block;
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
  padding: 1.5rem;
  max-height: 500px;
}

.faq-item.active .faq-toggle .minus {
  display: block;
}

.faq-item.active .faq-toggle .plus {
  display: none;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background-color: #f0f4f8;
}

.contact-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 0;
  width: 100%;
}

.form-submit {
  text-align: center;
  margin-top: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-family: inherit;
  font-size: inherit;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #1e3a8a;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.1);
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.checkbox-wrapper input[type="checkbox"] {
  width: auto;
}

/* ===== THANK YOU PAGE ===== */
.thank-you-section {
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: 5rem 0;
}

.thank-you-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background-color: white;
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.thank-you-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(16, 185, 129, 0.1);
  border-radius: 50%;
  color: #10b981;
}

.thank-you-content h1 {
  color: #1e3a8a;
  margin-bottom: 1rem;
}

.lead-text {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: #475569;
}

.next-steps {
  background-color: #f8fafc;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  text-align: left;
}

.next-steps h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #1e3a8a;
}

.next-steps ol {
  padding-left: 1.5rem;
}

.next-steps li {
  margin-bottom: 0.5rem;
}

.thank-you-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: #1f2937;
  color: white;
  padding: 5rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: white;
  position: relative;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 30px;
  height: 2px;
  background-color: #ff6b6b;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column ul a {
  color: #d1d5db;
  transition: color 0.3s ease;
}

.footer-column ul a:hover {
  color: #ff6b6b;
}

.company-info .logo {
  margin-bottom: 1rem;
}

.company-description {
  margin-bottom: 1.5rem;
  color: #d1d5db;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-item svg {
  color: #ff6b6b;
}

.contact-item a,
.contact-item address {
  color: #d1d5db;
  font-style: normal;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.copyright {
  color: #9ca3af;
  font-size: 0.9rem;
}

/* ===== COOKIE CONSENT ===== */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background-color: rgba(31, 41, 55, 0.95);
  color: white;
  z-index: 1000;
  display: none;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.cookie-content p {
  margin-right: 1rem;
}

.cookie-content .btn {
  flex-shrink: 0;
  background-color: #10b981;
}

/* ===== POLICY PAGES ===== */
.policy-container {
  max-width: 800px;
  margin: 2rem auto;
  background-color: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.policy-container h1 {
  color: #1e3a8a;
  margin-bottom: 1.5rem;
  text-align: center;
}

.policy-container h2 {
  color: #1e3a8a;
  margin: 2rem 0 1rem;
}

.policy-container p,
.policy-container ul {
  margin-bottom: 1rem;
}

.policy-updated {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  text-align: right;
  color: #6b7280;
  font-size: 0.9rem;
  font-style: italic;
}

/* ===== ANIMATIONS ===== */
.animated {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fade-in-up {
  animation: fadeInUp 0.8s forwards;
}

.fade-in-left {
  animation: fadeInLeft 0.8s forwards;
}

.fade-in-right {
  animation: fadeInRight 0.8s forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
  .section-header h2 {
    font-size: 2.2rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-section .container {
    flex-direction: column;
  }
  
  .about-content {
    flex-direction: column;
    gap: 3rem;
  }

  .about-image-container {
    max-width: 100%;
  }

  .about-image-shape {
    top: -15px;
    right: -15px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }
  
  .header-inner {
    position: relative;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .menu-icon {
    display: block;
    position: relative;
    width: 30px;
    height: 22px;
    cursor: pointer;
  }
  
  .menu-icon span {
    position: absolute;
    height: 3px;
    width: 100%;
    background-color: #1e3a8a;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
  }
  
  .menu-icon span:nth-child(1) {
    top: 0px;
  }
  
  .menu-icon span:nth-child(2) {
    top: 9px;
  }
  
  .menu-icon span:nth-child(3) {
    top: 18px;
  }
  
  #menu-toggle {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    height: 0;
    width: 0;
  }
  
  #menu-toggle:checked ~ .menu-icon span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
  }
  
  #menu-toggle:checked ~ .menu-icon span:nth-child(2) {
    opacity: 0;
    left: -60px;
  }
  
  #menu-toggle:checked ~ .menu-icon span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
  }
  
  .main-navigation {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: white;
    padding: 1rem 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-100vh);
    transition: transform 0.3s ease;
    z-index: 99;
  }
  
  #menu-toggle:checked ~ .main-navigation {
    transform: translateY(0);
  }
  
  .menu {
    flex-direction: column;
    text-align: center;
  }
  
  .menu li {
    margin: 0.5rem 0;
  }
  
  .header-contact {
    display: none;
  }
  
  /* Form is already single column */
  
  .cookie-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
  
  .thank-you-buttons {
    flex-direction: column;
  }
}
