/*
Theme Name: YearDisk
Theme URI: https://yeardisk.no
Author: YearDisk Team
Author URI: https://yeardisk.no
Description: A modern, SEO-optimized landing page theme for YearDisk - circular year planning application. Features light mode design, Schema.org microdata, widget areas, sidebar support, and full WordPress Customizer integration.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yeardisk
Tags: one-column, two-columns, right-sidebar, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, theme-options, translation-ready

YearDisk WordPress Theme, Copyright 2024 YearDisk.no
YearDisk is distributed under the terms of the GNU GPL v2 or later.
*/

/* ==========================================================================
   CSS Variables - Light Theme
   ========================================================================== */
:root {
  --bg-deep: hsl(240, 20%, 98%);
  --bg-surface: hsl(240, 15%, 95%);
  --bg-elevated: hsl(0, 0%, 100%);
  --text-primary: hsl(240, 20%, 15%);
  --text-secondary: hsl(240, 10%, 40%);
  --text-muted: hsl(240, 8%, 55%);
  --indigo: hsl(250, 70%, 55%);
  --indigo-glow: hsl(250, 80%, 60%);
  --violet: hsl(280, 65%, 50%);
  --amber: hsl(35, 95%, 50%);
  --amber-soft: hsl(35, 80%, 55%);
  --rose: hsl(350, 70%, 55%);
  --border: hsl(240, 15%, 88%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', Georgia, serif;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-ring {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
}

.logo-ring::before,
.logo-ring::after {
  content: '';
  position: absolute;
  border-radius: 50%;
}

.logo-ring::before {
  inset: 0;
  background: conic-gradient(from 0deg, var(--indigo), var(--violet), var(--amber), var(--indigo));
  animation: spin 8s linear infinite;
}

.logo-ring::after {
  inset: 6px;
  background: var(--bg-elevated);
  border-radius: 50%;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.logo-text {
  font-family: 'Fraunces', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.custom-logo {
  max-height: 40px;
  width: auto;
}

/* Navigation */
.nav-links {
  display: none;
  gap: 2.5rem;
  list-style: none;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--text-primary);
}

.nav-links .current-menu-item a,
.nav-links .current_page_item a {
  color: var(--text-primary);
}

.nav-buttons {
  display: flex;
  gap: 0.75rem;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: 0.3s;
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn:focus {
  outline: 2px solid var(--indigo-glow);
  outline-offset: 2px;
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-primary {
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: white;
  box-shadow: 0 4px 20px hsla(250, 70%, 60%, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px hsla(250, 70%, 60%, 0.4);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: var(--bg-elevated);
  border-color: var(--indigo);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 20%, hsla(250, 70%, 50%, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, hsla(280, 60%, 40%, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Floating Rings */
.floating-rings {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.donut-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
  opacity: 0.15;
}

.donut-ring:nth-child(1) {
  width: 400px;
  height: 400px;
  top: -100px;
  right: -100px;
  border-color: var(--indigo);
  animation: float 20s ease-in-out infinite;
}

.donut-ring:nth-child(2) {
  width: 300px;
  height: 300px;
  bottom: 10%;
  left: -50px;
  border-color: var(--violet);
  animation: float 15s ease-in-out infinite reverse;
}

.donut-ring:nth-child(3) {
  width: 200px;
  height: 200px;
  top: 40%;
  right: 10%;
  border-color: var(--amber);
  animation: float 18s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(180deg); }
}

.hero-content {
  position: relative;
  display: grid;
  gap: 4rem;
  align-items: center;
}

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

.hero-text {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-text h1 .gradient,
.gradient {
  background: linear-gradient(135deg, var(--indigo-glow), var(--amber-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.hero-feature svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--amber);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.year-disk {
  position: relative;
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1;
}

.disk-ring {
  position: absolute;
  border-radius: 50%;
  border: 3px solid transparent;
  animation: rotateRing 30s linear infinite;
}

.disk-ring:nth-child(1) {
  inset: 0;
  background: conic-gradient(from 0deg, 
    var(--indigo) 0deg 30deg,
    transparent 30deg 60deg,
    var(--violet) 60deg 120deg,
    transparent 120deg 150deg,
    var(--amber) 150deg 200deg,
    transparent 200deg 240deg,
    var(--rose) 240deg 280deg,
    transparent 280deg 320deg,
    var(--indigo-glow) 320deg 360deg
  );
  mask: radial-gradient(transparent 65%, black 66%, black 100%);
  -webkit-mask: radial-gradient(transparent 65%, black 66%, black 100%);
  animation-duration: 60s;
}

.disk-ring:nth-child(2) {
  inset: 12%;
  background: conic-gradient(from 45deg,
    var(--amber) 0deg 50deg,
    transparent 50deg 100deg,
    var(--indigo) 100deg 180deg,
    transparent 180deg 220deg,
    var(--violet) 220deg 300deg,
    transparent 300deg 360deg
  );
  mask: radial-gradient(transparent 55%, black 56%, black 100%);
  -webkit-mask: radial-gradient(transparent 55%, black 56%, black 100%);
  animation-duration: 45s;
  animation-direction: reverse;
}

.disk-ring:nth-child(3) {
  inset: 28%;
  background: conic-gradient(from 90deg,
    var(--rose) 0deg 40deg,
    transparent 40deg 120deg,
    var(--amber) 120deg 200deg,
    transparent 200deg 280deg,
    var(--indigo) 280deg 360deg
  );
  mask: radial-gradient(transparent 40%, black 41%, black 100%);
  -webkit-mask: radial-gradient(transparent 40%, black 41%, black 100%);
  animation-duration: 35s;
}

.disk-center {
  position: absolute;
  inset: 40%;
  background: var(--bg-surface);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  box-shadow: 0 0 60px hsla(250, 70%, 50%, 0.2);
}

.disk-center span {
  font-family: 'Fraunces', serif;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--indigo-glow), var(--amber));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.disk-center small {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@keyframes rotateRing {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   Pillars Section
   ========================================================================== */
.pillars {
  padding: 6rem 0;
  position: relative;
}

.pillars-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .pillars-grid { grid-template-columns: repeat(3, 1fr); }
}

.pillar-card {
  position: relative;
  padding: 2.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 2rem;
  text-align: center;
  transition: all 0.4s;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--indigo), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.pillar-card:hover {
  transform: translateY(-8px);
  border-color: var(--indigo);
  box-shadow: var(--shadow-xl);
}

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

.pillar-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.pillar-icon svg {
  width: 100%;
  height: 100%;
}

.pillar-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.pillar-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
  padding: 6rem 0;
  background: var(--bg-surface);
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}

.feature-card:hover {
  border-color: hsla(250, 70%, 60%, 0.3);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, hsla(250, 70%, 60%, 0.2), hsla(280, 60%, 55%, 0.2));
  border-radius: 50%;
  margin-bottom: 1.25rem;
}

.feature-icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--indigo-glow);
}

.feature-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ==========================================================================
   How it Works Section
   ========================================================================== */
.how-it-works {
  padding: 6rem 0;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  position: relative;
}

@media (min-width: 768px) {
  .steps {
    flex-direction: row;
    gap: 0;
  }
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
}

@media (min-width: 768px) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2.5rem;
    right: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, var(--indigo), transparent);
  }
  
  .step:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    left: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--indigo));
  }
}

.step-number {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 2px solid var(--indigo);
  border-radius: 50%;
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--indigo-glow);
  position: relative;
  z-index: 1;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.step p {
  color: var(--text-secondary);
  max-width: 250px;
  margin: 0 auto;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta {
  padding: 6rem 0;
}

.cta-box {
  position: relative;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-surface));
  border: 1px solid var(--border);
  border-radius: 3rem;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-rings {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.cta-rings .ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid hsla(250, 70%, 60%, 0.2);
}

.cta-rings .ring:nth-child(1) {
  width: 300px;
  height: 300px;
  top: -150px;
  left: -50px;
}

.cta-rings .ring:nth-child(2) {
  width: 400px;
  height: 400px;
  bottom: -200px;
  right: -100px;
}

.cta-content {
  position: relative;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.cta-content > p {
  color: var(--text-secondary);
  font-size: 1.125rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.cta-note {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-top: 1rem;
  max-width: 280px;
}

.footer-column h4 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

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

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   WordPress Specific
   ========================================================================== */
.wp-block-button__link {
  background: linear-gradient(135deg, var(--indigo), var(--violet));
  color: white;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
}

.alignwide {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
}

/* Admin bar adjustment */
body.admin-bar .navbar {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .navbar {
    top: 46px;
  }
}

/* ==========================================================================
   Widget Areas
   ========================================================================== */

/* General Widget Styles */
.widget {
  margin-bottom: 2rem;
}

.widget-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: var(--text-secondary);
  transition: color 0.2s;
}

.widget ul li a:hover {
  color: var(--indigo);
}

/* Sidebar */
.sidebar {
  padding: 2rem;
  background: var(--bg-elevated);
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Page/Post Layout with Sidebar */
.content-with-sidebar {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .content-with-sidebar {
    grid-template-columns: 1fr 320px;
  }
}

/* Footer Widgets */
.footer-widgets {
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
}

.footer-widgets-grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 640px) {
  .footer-widgets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-widgets-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-widget {
  color: var(--text-secondary);
}

.footer-widget .widget-title {
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

.footer-widget ul li {
  border-bottom: none;
  padding: 0.375rem 0;
}

.footer-widget a {
  color: var(--text-secondary);
}

.footer-widget a:hover {
  color: var(--indigo);
}

/* After Hero Widget Area */
.after-hero-widgets {
  padding: 4rem 0;
  background: var(--bg-surface);
}

.after-hero-widgets .container {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .after-hero-widgets .container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

.after-hero-widget {
  padding: 2rem;
  background: var(--bg-elevated);
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Before CTA Widget Area */
.before-cta-widgets {
  padding: 4rem 0;
}

.before-cta-widgets .container {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .before-cta-widgets .container {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

.before-cta-widget {
  padding: 2rem;
  background: var(--bg-elevated);
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Search Widget */
.widget_search .search-form {
  display: flex;
  gap: 0.5rem;
}

.widget_search .search-field {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 0.9375rem;
}

.widget_search .search-field:focus {
  outline: none;
  border-color: var(--indigo);
}

.widget_search .search-submit {
  padding: 0.75rem 1rem;
  background: var(--indigo);
  color: white;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.widget_search .search-submit:hover {
  background: var(--violet);
}
