@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --clr-bg: #F6FAFF;
  --clr-surface: #FFFFFF;
  --clr-text: #1C2A38;
  --clr-muted: #7A8FA4;
  --clr-primary: #6CC1FF;
  --clr-secondary: #AEC9FF;
  --clr-highlight: #E5F2FF;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
  text-align: left;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--clr-text);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(246, 250, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--clr-highlight);
  padding: 1rem 0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-primary);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-menu a {
  color: var(--clr-text);
  font-weight: 500;
  position: relative;
}

.nav-menu a:hover {
  color: var(--clr-primary);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-primary);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--clr-text);
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.mobile-menu-close {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--clr-text);
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1002;
  width: 40px;
  height: 40px;
  padding: 0;
  line-height: 1;
}

.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--clr-bg) 0%, var(--clr-highlight) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,200 600,300 T1200,300 L1200,600 L0,600 Z" fill="%23E5F2FF" opacity="0.3"/></svg>') no-repeat center;
  background-size: cover;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 2rem;
  margin: 0 auto;
  width: 100%;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  color: var(--clr-text);
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: 1.25rem;
  color: var(--clr-muted);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s both;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 100px;
  height: 100px;
  background: var(--clr-primary);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  background: var(--clr-secondary);
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  background: var(--clr-highlight);
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

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

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

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--clr-primary);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn:hover {
  background: var(--clr-secondary);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(108, 193, 255, 0.3);
}

.btn-secondary {
  background: var(--clr-surface);
  color: var(--clr-primary);
  border: 2px solid var(--clr-primary);
}

.btn-secondary:hover {
  background: var(--clr-primary);
  color: white;
}

.section {
  padding: 5rem 0;
  width: 100%;
}

.section > .container {
  width: 100%;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--clr-text);
  width: 100%;
}

.workshops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.workshop-card {
  background: var(--clr-surface);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.workshop-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
}

.workshop-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(108, 193, 255, 0.2);
}

.workshop-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 1.5rem;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.workshop-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--clr-text);
  text-align: left;
}

.workshop-card p {
  color: var(--clr-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  text-align: left;
}

.workshop-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--clr-muted);
  font-size: 0.9rem;
}

.icon-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.icon-block {
  background: var(--clr-surface);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.icon-block::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--clr-highlight) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.icon-block:hover::before {
  opacity: 1;
}

.icon-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(108, 193, 255, 0.2);
}

.icon-block svg {
  width: 60px;
  height: 60px;
  color: var(--clr-primary);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  animation: iconFloat 3s ease-in-out infinite;
}

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

.icon-block h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  text-align: center;
}

.icon-block p {
  color: var(--clr-muted);
  position: relative;
  z-index: 1;
  line-height: 1.7;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto;
}

.gallery-item:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(108, 193, 255, 0.3), rgba(174, 201, 255, 0.3));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  background: var(--clr-surface);
  border-radius: 20px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(108, 193, 255, 0.2);
}

.pricing-card svg {
  width: 60px;
  height: 60px;
  color: var(--clr-primary);
  margin-bottom: 1.5rem;
}

.pricing-card h3 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  text-align: center;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 1.5rem;
  font-family: 'Fraunces', serif;
  text-align: center;
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
  text-align: left;
  padding: 0;
}

.pricing-features li {
  padding: 0.75rem 0;
  color: var(--clr-muted);
  border-bottom: 1px solid var(--clr-highlight);
  line-height: 1.6;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  align-items: start;
}

.contact-form {
  background: var(--clr-surface);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--clr-text);
  text-align: left;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--clr-highlight);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(108, 193, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 150px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.checkbox-group input {
  width: auto;
  margin-top: 0.25rem;
}

.checkbox-group label {
  font-size: 0.9rem;
  color: var(--clr-muted);
}

.contact-info {
  background: var(--clr-surface);
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  width: 100%;
}

.contact-info img {
  width: 100%;
  border-radius: 15px;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.contact-details {
  list-style: none;
}

.contact-details li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  color: var(--clr-muted);
  line-height: 1.6;
}

.contact-details svg {
  width: 24px;
  height: 24px;
  color: var(--clr-primary);
  flex-shrink: 0;
}

.cta-section {
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
  padding: 4rem 2rem;
  border-radius: 20px;
  text-align: center;
  color: white;
  margin-top: 4rem;
}

.cta-section h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-section p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Thank you page styles removed - now uses standard section layout */

.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--clr-bg) 0%, var(--clr-highlight) 100%);
  position: relative;
  overflow: hidden;
}

.error-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: 3rem;
}

.error-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--clr-primary);
}

.yarn-ball {
  width: 100px;
  height: 100px;
  background: var(--clr-secondary);
  border-radius: 50%;
  margin: 2rem auto;
  animation: bounce 2s ease-in-out infinite;
  position: relative;
}

.yarn-ball::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background: var(--clr-primary);
  border-radius: 50%;
}

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

footer {
  background: var(--clr-text);
  color: white;
  padding: 3rem 0 1rem;
  margin-top: 5rem;
}

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

.footer-section h3 {
  color: white;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-section a:hover {
  color: var(--clr-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

.divider {
  width: 100%;
  height: 100px;
  position: relative;
  margin: 4rem 0;
  overflow: hidden;
}

.divider svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: rgba(246, 250, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 3rem 2rem 2rem;
    transition: left 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    gap: 1.5rem;
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .mobile-menu-close {
    display: block;
  }

  .hero {
    min-height: 60vh;
    padding: 3rem 0;
  }

  .hero-content {
    padding: 1.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }

  .contact-form,
  .contact-info {
    padding: 2rem;
  }

  .workshop-card {
    padding: 1.5rem;
  }

  .workshop-card > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .workshop-card img {
    margin-bottom: 1.5rem;
    width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .workshops-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .icon-blocks {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .icon-block {
    padding: 2rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pricing-card {
    padding: 2rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-section {
    text-align: left;
  }

  /* Improve alignment for grid layouts with images and text */
  .section > .container > div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    align-items: center;
  }

  .section > .container > div[style*="grid-template-columns: 1fr 1fr"] img {
    order: 0 !important;
    width: 100%;
    height: auto;
    margin-bottom: 1.5rem;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .section > .container > div[style*="grid-template-columns: 1fr 1fr"] > div {
    text-align: left;
    width: 100%;
  }

  .section > .container > div[style*="grid-template-columns: 1fr 1fr"] > div > h2,
  .section > .container > div[style*="grid-template-columns: 1fr 1fr"] > div > .section-title {
    text-align: left;
  }

  /* Center align stats and numbers */
  .section > .container > div[style*="display: flex"] {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
  }

  /* Improve CTA section */
  .cta-section {
    padding: 3rem 1.5rem;
  }

  /* Better alignment for thank you and error pages */
  .thank-you-content,
  .error-content {
    padding: 2rem;
    margin: 2rem 1rem;
  }

  .thank-you-content h1 {
    font-size: 2.5rem;
  }

  .error-content h1 {
    font-size: 3rem;
  }

  /* 404 page responsive for 768px */
  .section > .container > div[style*="max-width: 600px"] > div {
    padding: 2rem !important;
  }

  .yarn-ball {
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 1.5rem !important;
  }

  .section > .container > div[style*="max-width: 600px"] h2 {
    font-size: 1.75rem !important;
  }

  .section > .container > div[style*="max-width: 600px"] p {
    font-size: 1rem !important;
  }

  .section > .container > div[style*="max-width: 600px"] .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  /* Thank you page responsive */
  .section > .container > div[style*="max-width: 600px"] {
    max-width: 100% !important;
    padding: 0 1rem;
  }

  .section > .container > div[style*="max-width: 600px"] > div {
    padding: 2rem !important;
  }

  .section > .container > div[style*="max-width: 600px"] svg {
    width: 60px !important;
    height: 60px !important;
  }

  .section > .container > div[style*="max-width: 600px"] h2 {
    font-size: 1.75rem !important;
  }

  .section > .container > div[style*="max-width: 600px"] p {
    font-size: 1rem !important;
  }

  .section > .container > div[style*="max-width: 600px"] .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  /* Contact page grid improvements */
  .section > .container > div[style*="grid-template-columns: repeat(auto-fit"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0 12px;
  }

  .hero {
    min-height: 50vh;
    padding: 2rem 0;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    width: 100%;
    text-align: center;
    display: block;
  }

  .logo {
    font-size: 1.25rem;
  }

  .nav-menu {
    padding: 1.5rem;
    gap: 1rem;
  }

  .workshop-card,
  .icon-block,
  .pricing-card {
    padding: 1.25rem;
  }

  .workshop-card h3,
  .icon-block h3,
  .pricing-card h3 {
    font-size: 1.25rem;
  }

  .workshop-card p,
  .icon-block p {
    font-size: 0.9rem;
  }

  .workshops-grid,
  .icon-blocks,
  .pricing-grid {
    gap: 1.25rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .contact-section {
    gap: 1.5rem;
  }

  .contact-form,
  .contact-info {
    padding: 1.25rem;
  }

  .contact-form h2,
  .contact-info h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

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

  .form-group label {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.875rem;
    font-size: 0.95rem;
    width: 100%;
  }

  .form-group textarea {
    min-height: 120px;
  }

  .checkbox-group {
    margin-bottom: 1.25rem;
  }

  .checkbox-group label {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .contact-details {
    padding: 0;
  }

  .contact-details li {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .contact-details li span {
    word-break: break-word;
    line-height: 1.5;
  }

  .contact-details svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 0.2rem;
  }

  .footer-content {
    gap: 1.5rem;
  }

  .footer-section {
    font-size: 0.9rem;
  }

  .footer-section h3 {
    font-size: 1.1rem;
  }

  /* Improve all grid layouts */
  .section > .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    align-items: center;
  }

  .section > .container > div[style*="grid-template-columns: repeat"] {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Image handling */
  .section > .container > div[style*="grid-template-columns"] img,
  .section img {
    width: 100%;
    height: auto;
    margin-bottom: 1.25rem;
    margin-left: auto;
    margin-right: auto;
    border-radius: 15px;
    display: block;
  }

  /* Text alignment in grid sections */
  .section > .container > div[style*="grid-template-columns"] > div {
    text-align: left;
    width: 100%;
  }

  .section > .container > div[style*="grid-template-columns"] > div[style*="text-align: center"] {
    text-align: center !important;
  }

  .section > .container > div[style*="grid-template-columns"] > div > h2,
  .section > .container > div[style*="grid-template-columns"] > div > .section-title {
    text-align: left;
    font-size: 1.5rem;
  }

  /* Stats and numbers */
  .section > .container > div[style*="display: flex"] {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
  }

  .section > .container > div[style*="display: flex"] > div {
    width: 100%;
    text-align: center;
  }

  /* CTA sections */
  .cta-section {
    padding: 2rem 1rem;
  }

  .cta-section h2 {
    font-size: 1.75rem;
  }

  .cta-section p {
    font-size: 1rem;
  }

  /* Thank you and error pages */
  .thank-you-content,
  .error-content {
    padding: 1.5rem;
    margin: 1.5rem 0.75rem;
  }

  .thank-you-content h1 {
    font-size: 2rem;
  }

  .error-content h1 {
    font-size: 2.5rem;
  }

  .error-content h2 {
    font-size: 1.5rem;
  }

  /* 404 page responsive for 320px */
  .section > .container > div[style*="max-width: 600px"] {
    max-width: 100% !important;
    padding: 0 0.5rem;
  }

  .section > .container > div[style*="max-width: 600px"] > div {
    padding: 1.5rem !important;
  }

  .yarn-ball {
    width: 60px !important;
    height: 60px !important;
    margin-bottom: 1.25rem !important;
  }

  .section > .container > div[style*="max-width: 600px"] h2 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }

  .section > .container > div[style*="max-width: 600px"] p {
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
  }

  .section > .container > div[style*="max-width: 600px"] .btn {
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  .hero h1 {
    font-size: 3rem !important;
  }

  /* Thank you page responsive for 320px */
  .section > .container > div[style*="max-width: 600px"] {
    max-width: 100% !important;
    padding: 0 0.5rem;
  }

  .section > .container > div[style*="max-width: 600px"] > div {
    padding: 1.5rem !important;
  }

  .section > .container > div[style*="max-width: 600px"] svg {
    width: 50px !important;
    height: 50px !important;
    margin-bottom: 1.5rem !important;
  }

  .section > .container > div[style*="max-width: 600px"] h2 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }

  .section > .container > div[style*="max-width: 600px"] p {
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
  }

  .section > .container > div[style*="max-width: 600px"] .btn {
    width: 100%;
    margin-bottom: 0.75rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Contact page specific fixes for 320px */
  .contact-section {
    gap: 1.25rem !important;
  }

  .contact-form h2,
  .contact-info h2 {
    font-size: 1.5rem !important;
    margin-bottom: 1.5rem !important;
  }

  .contact-details li {
    font-size: 0.9rem !important;
    flex-wrap: wrap;
  }

  .contact-details li span {
    word-break: break-word;
  }

  .section > .container > div[style*="display: flex; flex-direction: column"] {
    gap: 0.75rem !important;
  }

  .section > .container > div[style*="display: flex; flex-direction: column"] > div {
    font-size: 0.9rem !important;
  }

  .section > .container > div[style*="display: flex; flex-direction: column"] svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
  }

  .section > .container > div[style*="grid-template-columns: 1fr 1fr"] img {
    margin-bottom: 1rem !important;
  }

  .section > .container > div[style*="grid-template-columns: repeat(auto-fit"] > div {
    padding: 1.5rem !important;
  }

  .section > .container > div[style*="grid-template-columns: repeat(auto-fit"] h3 {
    font-size: 1.25rem !important;
  }

  .section > .container > div[style*="grid-template-columns: repeat(auto-fit"] p {
    font-size: 0.9rem !important;
  }

  /* Workshop process sections */
  .section[style*="position: relative"] > div {
    min-height: 300px !important;
  }

  .section[style*="position: relative"] > div > div {
    margin: 1.5rem 0.75rem !important;
    padding: 1.5rem 1rem !important;
  }

  .section[style*="position: relative"] > div > div h2 {
    font-size: 1.75rem !important;
  }

  .section[style*="position: relative"] > div > div p {
    font-size: 0.95rem !important;
  }

  /* Special section handling */
  .section[style*="background: var(--clr-highlight)"] .section-title {
    font-size: 1.5rem;
  }

  .section[style*="background: var(--clr-highlight)"] > div > div > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* Pricing price font size */
  .pricing-price {
    font-size: 2rem;
  }

  /* Meta items */
  .meta-item {
    font-size: 0.85rem;
  }

  /* Icon block SVG */
  .icon-block svg {
    width: 48px;
    height: 48px;
  }
}

