/* MA & Co Accountants - Core Styles */
/* Brand Colors: Navy #0A1B2A, Teal #0FBF9F, White #FFFFFF, Grey #F5F7FA */

:root {
  /* Modern Gradient Colors */
  --primary-blue: #667eea;
  --primary-purple: #764ba2;
  --accent-blue: #4facfe;
  --accent-purple: #00f2fe;
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --light-grey: #F8F9FA;
  --mid-grey: #6B7280;
  --dark: #1a1a2e;
  --dark-secondary: #16213e;
  
  /* Effects */
  --shadow: 0 4px 6px rgba(102, 126, 234, 0.1);
  --shadow-lg: 0 15px 35px rgba(102, 126, 234, 0.2);
  --shadow-xl: 0 25px 50px rgba(102, 126, 234, 0.3);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-purple);
}

a:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--gradient-primary);
  color: var(--white);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  top: 10px;
  left: 10px;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.98);
}

.header-top {
  background: var(--gradient-primary);
  padding: 8px 0;
  font-size: 0.9rem;
}

.quick-contact {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
}

.quick-contact a {
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

nav a {
  color: var(--dark);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

nav a:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  transform: translateY(-2px);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--navy);
  margin: 5px 0;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  nav ul {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
  }
  
  nav ul.active {
    left: 0;
  }
}

/* Buttons - Modern Gradient Style from Uiverse */
.btn {
  align-items: center;
  background-image: linear-gradient(144deg, #af40ff, #5b42f3 50%, #00ddeb);
  border: 0;
  border-radius: 8px;
  box-shadow: rgba(151, 65, 252, 0.2) 0 15px 30px -5px;
  box-sizing: border-box;
  color: #ffffff;
  display: inline-flex;
  font-size: 18px;
  justify-content: center;
  line-height: 1em;
  max-width: 100%;
  min-width: 140px;
  padding: 3px;
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.btn:active,
.btn:hover {
  outline: 0;
  color: #ffffff;
}

.btn span.text {
  background-color: rgb(5, 6, 45);
  padding: 16px 24px;
  border-radius: 6px;
  width: 100%;
  height: 100%;
  transition: 300ms;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.btn:hover span.text {
  background: none;
  color: #ffffff;
}

.btn:active {
  transform: scale(0.9);
}

.btn:active span.text {
  color: #ffffff;
}

/* Variations for different button types */
.btn-primary {
  background-image: linear-gradient(144deg, #667eea, #764ba2 50%, #f093fb);
}

.btn-accent {
  background-image: linear-gradient(144deg, #00ddeb, #5b42f3 50%, #af40ff);
}

.btn-outline {
  background-image: linear-gradient(144deg, #0A1B2A, #667eea 50%, #0FBF9F);
}

/* Ensure all buttons maintain the same hover behavior */
.btn-primary:hover,
.btn-accent:hover,
.btn-outline:hover {
  color: #ffffff;
}

/* Fix for button links to maintain color */
a.btn,
a.btn:link,
a.btn:visited,
a.btn:focus {
  color: #ffffff;
  text-decoration: none;
}

a.btn:hover,
a.btn:active {
  color: #ffffff;
  text-decoration: none;
}

/* Hero Section - Modern Gradient */
.hero {
  background: var(--gradient-hero);
  color: var(--white);
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 80%, rgba(240, 147, 251, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(71, 181, 255, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero .lead {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 600px;
  margin-bottom: 30px;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
}

/* Cards - Modern Rounded Style */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(102, 126, 234, 0.1);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
  border-color: rgba(102, 126, 234, 0.2);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

/* Services Grid - Modern Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 60px 0;
}

.service-card {
  background: var(--white);
  padding: 28px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(102, 126, 234, 0.1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.service-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  right: -100%;
  bottom: -100%;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-card:hover::before {
  opacity: 1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.service-card h3,
.service-card p,
.service-card a {
  position: relative;
  z-index: 1;
}

.service-card:hover h3,
.service-card:hover p,
.service-card:hover a {
  color: var(--white);
}

/* Industries Grid - Modern Style */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 60px 0;
}

.industry-link {
  background: var(--white);
  border: 2px solid rgba(102, 126, 234, 0.2);
  padding: 18px;
  border-radius: var(--radius-pill);
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
  font-weight: 500;
  position: relative;
  color: var(--dark);
  text-decoration: none;
  display: block;
}

.industry-link:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  color: var(--white) !important;
}

/* Forms */
form {
  max-width: 600px;
  margin: 40px auto;
}

label {
  display: block;
  margin-bottom: 20px;
  font-weight: 500;
}

input, select, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--light-grey);
  border-radius: var(--radius);
  font-size: 1rem;
  margin-top: 5px;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 0;
  border-color: var(--teal);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.consent input {
  width: auto;
  margin-top: 3px;
}

/* Hidden for Netlify honeypot */
.hidden {
  display: none;
}

/* Footer - Dark Modern Style */
footer {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
  color: var(--white);
  padding: 80px 0 30px;
  margin-top: 100px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h4 {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-section a {
  color: var(--white);
  display: block;
  padding: 5px 0;
}

.footer-section a:hover {
  color: var(--accent-blue);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.social-links a:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
  color: var(--white);
}

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

/* Sections - Modern Styling */
.section {
  padding: 80px 0;
  position: relative;
}

.section-grey {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.section-grey::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

/* Trust Badges - Modern Style */
.trust-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 60px 0;
  flex-wrap: wrap;
}

.trust-badge {
  text-align: center;
  font-weight: 600;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  padding: 20px;
}

.trust-badge strong {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 5px;
}

/* Process Steps - Modern Style */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin: 60px 0;
}

.step {
  text-align: center;
  padding: 30px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.step:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.step-number {
  display: inline-block;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 50%;
  line-height: 60px;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* FAQ Accordion - Modern Style */
details {
  background: var(--white);
  border: 2px solid transparent;
  background-image: linear-gradient(var(--white), var(--white)), var(--gradient-primary);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border-radius: var(--radius);
  margin-bottom: 20px;
  padding: 0;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

details:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(5px);
}

summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 50px;
  color: var(--dark);
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  position: absolute;
  right: 24px;
  font-size: 1.5rem;
  width: 30px;
  height: 30px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: var(--transition);
}

details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

details p {
  padding: 0 24px 24px;
  color: var(--mid-grey);
  line-height: 1.8;
}

/* CTA Section - Gradient Style */
.cta-section {
  background: var(--gradient-primary);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  margin: 80px 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 2.5rem;
  position: relative;
  z-index: 1;
}

.cta-section p {
  color: var(--white);
  position: relative;
  z-index: 1;
}

/* Fix card text color inside CTA sections */
.cta-section .card {
  color: var(--dark);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.cta-section .card p,
.cta-section .card strong {
  color: var(--dark);
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Testimonials - Modern Style */
.testimonial {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 30px;
  position: relative;
  border-left: 4px solid;
  border-image: var(--gradient-primary);
  border-image-slice: 1;
  transition: var(--transition);
}

.testimonial:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-xl);
}

.testimonial-text {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.testimonial-author {
  font-weight: 600;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Blog */
.blog-toc {
  background: var(--light-grey);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 30px;
}

.blog-toc h3 {
  margin-bottom: 15px;
}

.blog-toc ol {
  margin-left: 20px;
}

.blog-toc a {
  color: var(--navy);
}

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--mid-grey); }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Sidebar */
.page-with-sidebar {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  margin: 40px 0;
}

.sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.sidebar-cta {
  background: var(--light-grey);
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
}

@media (max-width: 968px) {
  .page-with-sidebar {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
  }
}

/* Responsive Images */
img {
  max-width: 100%;
  height: auto;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Accessibility */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* WhatsApp Widget - Modern Style */
.whatsapp-widget {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-button {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  font-size: 32px;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.whatsapp-button:hover {
  transform: scale(1.15) translateY(-5px);
  box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
  color: white;
}

.whatsapp-label {
  background: var(--white);
  color: var(--dark);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  white-space: nowrap;
  animation: slideIn 0.5s ease-out;
  background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.95) 100%);
  backdrop-filter: blur(10px);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

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

@media (max-width: 768px) {
  .whatsapp-widget {
    bottom: 15px;
    right: 15px;
  }
  
  .whatsapp-button {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }
  
  .whatsapp-label {
    font-size: 14px;
  }
}

/* Print Styles */
@media print {
  header, footer, .cta-section, .sidebar, .whatsapp-widget {
    display: none;
  }
  
  body {
    font-size: 12pt;
  }
  
  a {
    color: var(--navy);
    text-decoration: underline;
  }
}
