/* apptweaky online - SEO-optimized styles */
:root {
  --color-primary: #e85d2a;
  --color-primary-hover: #d14d1a;
  --color-accent: #2563eb;
  --color-text: #1f2937;
  --color-text-light: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #e0f2f7;
  --color-bg-gradient: linear-gradient(135deg, #dbeafe 0%, #e0f2f7 100%);
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --max-width: 1200px;
  --spacing: 1.5rem;
  --radius: 12px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary);
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  z-index: 100;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--color-text);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-bg);
  border-bottom: 1px solid #e5e7eb;
  padding: var(--spacing) 0;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--color-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.25rem;
}

.nav-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}

.nav-primary a {
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  font-size: 0.9375rem;
  border-radius: var(--radius);
}

.nav-primary a:hover,
.nav-primary a[aria-current="page"] {
  color: var(--color-primary);
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  
  .nav-primary {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-bg);
    padding: var(--spacing);
    border-bottom: 1px solid #e5e7eb;
    gap: 0.25rem;
  }
  
  .nav-primary.is-open {
    display: flex;
  }
  
  .header-inner {
    position: relative;
  }
}

/* Main content */
main {
  min-height: 60vh;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--spacing);
}

/* Hero section */
.hero {
  padding: 3rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-visual {
    order: -1;
    max-width: 280px;
    margin: 0 auto;
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero .tagline {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

.hero h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.5rem 0 0.75rem;
}

.hero p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--color-text);
}

/* CTA Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

/* Hero visual placeholder */
.hero-visual {
  background: linear-gradient(145deg, #f3f4f6 0%, #e5e7eb 100%);
  border-radius: 16px;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-visual svg {
  width: 80%;
  height: 80%;
  opacity: 0.9;
}

/* Feature/benefit section */
.benefit-section {
  background: var(--color-bg-gradient);
  padding: 4rem var(--spacing);
}

.benefit-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.benefit-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.benefit-section p {
  font-size: 1.0625rem;
  color: var(--color-text);
  line-height: 1.7;
}

/* Page content */
.page-content {
  padding: 3rem 0;
}

.page-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
}

.page-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.page-content p {
  margin-bottom: 1rem;
}

/* Internal links block */
.internal-links {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: var(--radius);
  border-left: 4px solid var(--color-primary);
}

.internal-links h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--color-text-light);
}

.internal-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.internal-links a {
  font-weight: 500;
  color: var(--color-accent);
}

.internal-links a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  background: var(--color-text);
  color: #9ca3af;
  padding: 2.5rem var(--spacing);
  margin-top: 4rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  color: #d1d5db;
}

.footer-nav a:hover {
  color: white;
}

.footer-copyright {
  font-size: 0.875rem;
}

/* Contact form */
.contact-form {
  max-width: 560px;
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Breadcrumb */
.breadcrumb {
  padding: 0.75rem 0;
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.breadcrumb a {
  color: var(--color-accent);
}

.breadcrumb span {
  margin: 0 0.5rem;
}

/* Hidden CTA - remove u-cta-hidden from HTML to show */
.u-cta-hidden {
  display: none !important;
}

/* Performance: reduce motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  .btn-primary:hover {
    transform: none;
  }
}
