/* 
 * Main stylesheet for domain.com
 * Accounting services website
 */

/* === FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Open+Sans:wght@300;400;600&display=swap');

/* === VARIABLES === */
:root {
  --midnight-coral: #FF6F61;
  --sage-mist: #B8C9B6;
  --champagne-beige: #F7E6C4;
  --ink-graphite: #2F2F30;
  --sky-drift: #C7E9F1;
  --lemon-glow: #F9E76F;
  
  --border-radius: 20px;
  --transition-speed: 0.3s;
}

/* === BASE STYLES === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
  color: var(--ink-graphite);
  background-color: var(--champagne-beige);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--midnight-coral);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--lemon-glow);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 0;
  border-radius: var(--border-radius);
  margin: 2rem 0;
  opacity: 1;
  animation: fadeInSection 1s ease-out;
}

@keyframes fadeInSection {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--midnight-coral);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
}

.btn:hover {
  background-color: var(--lemon-glow);
  color: var(--ink-graphite);
  transform: translateY(-2px);
}

/* === HEADER === */
header {
  background-color: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
}

/* Anchor offset for section navigation */
section[id] {
  scroll-margin-top: 6rem;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--midnight-coral);
  letter-spacing: 0.1em;
}

.logo-tagline {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--ink-graphite);
}

.nav-desktop {
  display: flex;
  gap: 1.5rem;
}

.nav-desktop a {
  font-weight: 600;
}

.nav-mobile {
  display: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-selector a {
  opacity: 0.6;
  transition: opacity var(--transition-speed);
}

.lang-selector a.active,
.lang-selector a:hover {
  opacity: 1;
}

/* === HERO SECTION === */
.hero {
  background-color: var(--sage-mist);
  margin-top: 5rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  width: 80%;
  padding: 2rem;
  text-align: center;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 1rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: white;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* === ABOUT SECTION === */
.about {
  background-color: white;
}

.about h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
}

/* === SERVICES SECTION === */
.services {
  background-color: var(--sky-drift);
}

.services-header {
  text-align: center;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--transition-speed);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: calc(var(--border-radius) / 2);
  margin-bottom: 1.5rem;
}

/* === BENEFITS SECTION === */
.benefits {
  background-color: white;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.benefit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.benefit-icon {
  color: var(--midnight-coral);
  font-size: 1.5rem;
}

/* === TESTIMONIALS SECTION === */
.testimonials {
  background-color: var(--sage-mist);
  text-align: center;
}

.testimonial-slider {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 4rem;
}

.testimonial-slide:nth-child(1) {
  opacity: 1;
}

.testimonial-quote {
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 700;
  color: var(--midnight-coral);
}

/* CSS-only carousel */
@keyframes testimonial-carousel {
  0%, 20% { opacity: 0; }
  25%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.testimonial-slide:nth-child(1) { animation: testimonial-carousel 15s 0s infinite; }
.testimonial-slide:nth-child(2) { animation: testimonial-carousel 15s 5s infinite; }
.testimonial-slide:nth-child(3) { animation: testimonial-carousel 15s 10s infinite; }

/* === FAQ SECTION === */
.faq {
  background-color: white;
}

.faq-header {
  text-align: center;
  margin-bottom: 2rem;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid #eee;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.faq-question {
  background-color: #f9f9f9;
  padding: 1rem;
  cursor: pointer;
  position: relative;
  font-weight: 600;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 1rem;
}

.faq-answer {
  padding: 0 1rem;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
}

.faq-item.active .faq-question::after {
  content: "-";
}

.faq-item.active .faq-answer {
  padding: 1rem;
  max-height: 500px;
  visibility: visible;
}

/* === ORDER FORM === */
.order-form-section {
  background: linear-gradient(135deg, var(--sky-drift), var(--champagne-beige));
  padding: 3rem 0;
}

.form-container {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: calc(var(--border-radius) / 2);
  font-family: 'Open Sans', sans-serif;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.form-check input {
  margin-top: 0.3rem;
}

/* === FOOTER === */
footer {
  background-color: var(--ink-graphite);
  color: white;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-logo .logo-text {
  color: white;
}

.footer-logo .logo-tagline {
  color: #ccc;
}

.footer-contact li {
  list-style: none;
  margin-bottom: 0.5rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #ccc;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 0.9rem;
  color: #ccc;
}

/* === POLICY PAGES === */
.policy-content {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-top: 6rem;
  margin-bottom: 2rem;
}

.policy-content h1 {
  text-align: center;
  margin-bottom: 2rem;
}

/* === COOKIE POPUP === */
.cookie-popup {
  position: fixed;
  bottom: -100px;
  left: 0;
  right: 0;
  background-color: var(--ink-graphite);
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-speed);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
}

.cookie-popup.show {
  bottom: 0;
  opacity: 1;
  visibility: visible;
}

.cookie-popup p {
  margin: 0;
}

.cookie-popup button {
  background-color: var(--midnight-coral);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: calc(var(--border-radius) / 2);
  cursor: pointer;
  transition: background-color var(--transition-speed);
}

.cookie-popup button:hover {
  background-color: var(--lemon-glow);
  color: var(--ink-graphite);
}

/* === ANIMATIONS === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease forwards;
}

/* === THANK YOU PAGE === */
.thank-you {
  text-align: center;
  padding: 5rem 0;
  margin-top: 5rem;
}

.thank-you-content {
  max-width: 600px;
  margin: 0 auto;
  background-color: white;
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.thank-you h1 {
  color: var(--midnight-coral);
  margin-bottom: 1rem;
}

.thank-you p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* === UTILITIES === */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }
