/* Qattye Tricks - Creative Artistic CSS Theme */

/* === FONT IMPORTS === */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Source+Sans+Pro:wght@400;600&display=swap');

:root {
  --color-primary: #36844F;
  --color-primary-dark: #276338;
  --color-secondary: #F5F6EF;
  --color-bg: #FFFFFF;
  --color-accent: #DAA520;
  --color-accent-dark: #B8860B;
  --color-creative1: #FF6F61;
  --color-creative2: #6A5ACD;
  --color-creative3: #00BFAE;
  --color-creative4: #FFB347;
  --color-creative5: #E94F37;
  --color-text: #222;
  --color-text-light: #fff;
  --color-muted: #888;
  --shadow-card: 0 6px 32px 0 rgba(54,132,79,0.10), 0 1.5px 4px 0 rgba(218,165,32,0.10);
  --shadow-hover: 0 8px 36px 0 rgba(54,132,79,0.18), 0 2px 8px 0 rgba(218,165,32,0.12);
  --radius-lg: 32px;
  --radius-md: 18px;
  --radius-sm: 8px;
  --transition: all 0.25s cubic-bezier(.6,.2,.1,1);
  --font-display: 'Montserrat', Arial, sans-serif;
  --font-body: 'Source Sans Pro', Arial, sans-serif;
}

html {
  box-sizing: border-box;
  font-size: 18px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  background: var(--color-secondary);
  color: var(--color-text);
  font-family: var(--font-body);
  min-height: 100vh;
  line-height: 1.7;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-primary-dark);
  margin-top: 0;
  margin-bottom: 0.5em;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.4rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--color-creative1), var(--color-primary), var(--color-creative2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  margin-bottom: 0.3em;
}
h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-creative2);
  margin-bottom: 0.5em;
}
h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-creative3);
}
h4, h5, h6 {
  color: var(--color-primary-dark);
}

.subheadline {
  font-size: 1.2rem;
  color: var(--color-creative1);
  font-family: var(--font-display);
  margin-bottom: 1.2em;
  font-weight: 600;
  letter-spacing: 0.03em;
}

p, ul, ol {
  margin-top: 0;
  margin-bottom: 1.1em;
  font-size: 1rem;
}

ul, ol {
  padding-left: 1.5em;
}

strong {
  color: var(--color-primary);
}

/* === LINKS & BUTTONS === */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover, a:focus {
  color: var(--color-accent);
  text-decoration: underline;
}

.cta {
  display: inline-block;
  background: linear-gradient(90deg, var(--color-accent), var(--color-creative1) 80%);
  color: var(--color-text-light) !important;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  padding: 0.85em 2.2em;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: none;
  cursor: pointer;
  margin-top: 1em;
  letter-spacing: 0.02em;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.cta:after {
  content: '';
  position: absolute;
  left: -50%;
  top: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}
.cta:hover, .cta:focus {
  background: linear-gradient(90deg, var(--color-creative1), var(--color-accent) 80%);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px) scale(1.03) rotate(-1deg);
}
.cta:hover:after, .cta:focus:after {
  opacity: 1;
}

/* === LAYOUT CONTAINERS === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 16px 0 rgba(106,90,205,0.06);
  position: relative;
}

/* === FLEXBOX PATTERNS === */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--color-secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 28px 24px;
  min-width: 260px;
  flex: 1 1 320px;
  transition: var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px) scale(1.02) rotate(-1deg);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(90deg, #fff 70%, var(--color-creative2) 100%);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  min-width: 260px;
  flex: 1 1 320px;
  color: #222;
  font-size: 1.05rem;
  position: relative;
  z-index: 1;
}
.testimonial-card p {
  color: #222;
  font-style: italic;
  margin-bottom: 0.5em;
}
.testimonial-card span {
  color: var(--color-creative2);
  font-weight: 700;
  font-size: 0.98em;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--color-secondary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  margin-bottom: 20px;
  min-width: 220px;
  flex: 1 1 260px;
}

/* === HEADER & NAVIGATION === */
header {
  background: linear-gradient(90deg, var(--color-secondary) 80%, var(--color-creative3) 120%);
  box-shadow: 0 2px 12px 0 rgba(54,132,79,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.main-nav a {
  color: var(--color-primary-dark);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.main-nav a.cta {
  margin-left: 16px;
}
.main-nav a:not(.cta):hover, .main-nav a:not(.cta):focus {
  background: var(--color-creative1);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px 0 rgba(255,111,97,0.10);
}
.main-nav img {
  height: 38px;
  margin-right: 18px;
}

/* === MOBILE NAVIGATION === */
.mobile-menu-toggle {
  display: none;
  background: var(--color-accent);
  color: #fff;
  border: none;
  font-size: 2rem;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: 18px;
  top: 14px;
  z-index: 120;
  box-shadow: 0 2px 8px 0 rgba(218,165,32,0.12);
  cursor: pointer;
  transition: var(--transition);
}
.mobile-menu-toggle:active {
  background: var(--color-creative1);
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, var(--color-creative2) 60%, var(--color-creative1) 100%);
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 2000;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: transparent;
  color: #fff;
  border: none;
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-close:hover {
  color: var(--color-accent);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin: 48px 0 0 36px;
}
.mobile-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: color 0.2s, text-shadow 0.2s;
  padding: 8px 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-accent);
  text-shadow: 0 4px 16px rgba(218,165,32,0.18);
}

/* === MAIN SECTIONS === */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  background: var(--color-secondary);
  box-shadow: 0 2px 16px 0 rgba(106,90,205,0.06);
}

/* === FEATURE GRID, RECIPE CARDS, BLOG CARDS === */
.feature-grid, .recipe-cards, .blog-post-cards, .tip-cards, .team-member-profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
}
.feature-grid > div, .recipe-cards > div, .blog-post-cards > div, .tip-cards > div, .team-member-profiles > div {
  background: linear-gradient(120deg, var(--color-creative3) 0%, var(--color-secondary) 100%);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 28px 22px;
  min-width: 220px;
  flex: 1 1 260px;
  transition: var(--transition);
  position: relative;
  margin-bottom: 0;
}
.feature-grid > div:hover, .recipe-cards > div:hover, .blog-post-cards > div:hover, .tip-cards > div:hover, .team-member-profiles > div:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px) scale(1.03) rotate(-1deg);
  background: linear-gradient(120deg, var(--color-creative1) 0%, var(--color-secondary) 100%);
}

/* === PAGINATION & FILTERS === */
.pagination {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  font-family: var(--font-display);
  color: var(--color-muted);
  font-size: 1.05rem;
}
.filters, .category-filter, .categories-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  margin: 18px 0 0 0;
  font-size: 1rem;
  color: var(--color-creative2);
  font-family: var(--font-display);
}
.filters label {
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-right: 6px;
}

/* === SEARCH BARS === */
.search-bar, .blog-search, .tips-search {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 0 0;
}
.search-bar input, .blog-search input, .tips-search input {
  font-family: var(--font-body);
  font-size: 1.1rem;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  border: 2px solid var(--color-creative3);
  outline: none;
  background: #fff;
  color: var(--color-primary-dark);
  transition: border 0.2s;
  width: 260px;
  max-width: 100%;
}
.search-bar input:focus, .blog-search input:focus, .tips-search input:focus {
  border: 2px solid var(--color-accent);
}
.search-bar input[disabled], .blog-search input[disabled], .tips-search input[disabled] {
  background: #f0f0f0;
  color: #aaa;
  cursor: not-allowed;
}

/* === ACCORDION (FAQ) === */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.faq-accordion > div {
  background: linear-gradient(90deg, var(--color-secondary) 80%, var(--color-creative3) 100%);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 22px 20px;
  transition: var(--transition);
  cursor: pointer;
}
.faq-accordion > div:hover {
  box-shadow: var(--shadow-hover);
  background: linear-gradient(90deg, var(--color-creative3) 10%, var(--color-secondary) 100%);
}
.faq-accordion h3 {
  margin-bottom: 0.4em;
  color: var(--color-creative2);
}

/* === IMAGE GALLERY === */
.image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 18px;
}
.image-gallery img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  width: 180px;
  height: 120px;
  object-fit: cover;
  transition: var(--transition);
}
.image-gallery img:hover {
  box-shadow: var(--shadow-hover);
  transform: scale(1.04) rotate(-2deg);
}

/* === FOOTER === */
footer {
  background: linear-gradient(90deg, var(--color-primary-dark) 80%, var(--color-creative2) 120%);
  color: #fff;
  padding: 0;
  margin-top: 60px;
}
.footer-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 48px 18px 28px 18px;
  max-width: 1200px;
  margin: 0 auto;
}
.footer-wrapper > * {
  flex: 1 1 180px;
  min-width: 160px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--color-accent);
}
.footer-contact p {
  margin: 0 0 6px 0;
  font-size: 0.98rem;
}
.newsletter-signup {
  background: linear-gradient(90deg, var(--color-creative1) 60%, var(--color-creative2) 100%);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 18px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 2px 8px 0 rgba(255,111,97,0.10);
  margin-top: 12px;
}
footer img {
  height: 38px;
  margin-bottom: 12px;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  background: linear-gradient(90deg, var(--color-creative2) 60%, var(--color-creative1) 100%);
  color: #fff;
  padding: 24px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  z-index: 3000;
  box-shadow: 0 -2px 16px 0 rgba(54,132,79,0.10);
  animation: cookieBannerIn 0.7s cubic-bezier(.6,.2,.1,1);
}
@keyframes cookieBannerIn {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0 0 8px 0;
  font-size: 1rem;
  text-align: center;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 22px;
  cursor: pointer;
  transition: var(--transition);
  margin: 0;
}
.cookie-banner .accept {
  background: linear-gradient(90deg, var(--color-accent), var(--color-creative1) 80%);
  color: #fff;
}
.cookie-banner .accept:hover {
  background: linear-gradient(90deg, var(--color-creative1), var(--color-accent) 80%);
}
.cookie-banner .reject {
  background: #fff;
  color: var(--color-creative1);
  border: 2px solid var(--color-creative1);
}
.cookie-banner .reject:hover {
  background: var(--color-creative1);
  color: #fff;
}
.cookie-banner .settings {
  background: var(--color-creative2);
  color: #fff;
}
.cookie-banner .settings:hover {
  background: var(--color-creative3);
}

/* === COOKIE MODAL === */
.cookie-modal-overlay {
  position: fixed;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(54,132,79,0.18);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: var(--color-primary-dark);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 48px 0 rgba(54,132,79,0.18);
  padding: 38px 28px 28px 28px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: cookieModalIn 0.5s cubic-bezier(.6,.2,.1,1);
}
@keyframes cookieModalIn {
  from { transform: scale(0.8) translateY(40px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--color-creative2);
  margin-bottom: 0.5em;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category label {
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: 1.05rem;
}
.cookie-modal .cookie-toggle {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: var(--color-creative3);
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  margin-left: 8px;
}
.cookie-modal .cookie-toggle[aria-checked="true"] {
  background: var(--color-accent);
}
.cookie-modal .cookie-toggle .toggle-knob {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.2s;
}
.cookie-modal .cookie-toggle[aria-checked="true"] .toggle-knob {
  left: 22px;
}
.cookie-modal .cookie-actions {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}
.cookie-modal .cookie-actions button {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 22px;
  cursor: pointer;
  transition: var(--transition);
}
.cookie-modal .cookie-actions .accept {
  background: linear-gradient(90deg, var(--color-accent), var(--color-creative1) 80%);
  color: #fff;
}
.cookie-modal .cookie-actions .reject {
  background: #fff;
  color: var(--color-creative1);
  border: 2px solid var(--color-creative1);
}
.cookie-modal .cookie-actions .close {
  background: var(--color-creative2);
  color: #fff;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
  .footer-wrapper {
    gap: 24px;
    padding: 38px 8px 18px 8px;
  }
  .main-nav {
    gap: 18px;
    font-size: 0.98rem;
  }
}
@media (max-width: 900px) {
  .footer-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .main-nav {
    gap: 10px;
    font-size: 0.95rem;
  }
}
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }
  .container {
    padding: 0 8px;
  }
  .section, section {
    padding: 28px 6px;
    margin-bottom: 36px;
  }
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .feature-grid, .recipe-cards, .blog-post-cards, .tip-cards, .team-member-profiles, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .footer-wrapper {
    flex-direction: column;
    gap: 18px;
    padding: 28px 8px 12px 8px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .testimonial-card {
    flex-direction: column;
    gap: 10px;
    padding: 16px;
  }
}
@media (max-width: 480px) {
  html {
    font-size: 15px;
  }
  h1 {
    font-size: 1.5rem;
  }
  h2 {
    font-size: 1.2rem;
  }
  .footer-wrapper {
    padding: 18px 2px 8px 2px;
  }
  .cookie-modal {
    padding: 18px 6px 12px 6px;
    min-width: 0;
  }
}

/* === MICRO-INTERACTIONS === */
.card, .feature-grid > div, .recipe-cards > div, .blog-post-cards > div, .tip-cards > div, .team-member-profiles > div, .testimonial-card, .faq-accordion > div {
  transition: box-shadow 0.22s cubic-bezier(.6,.2,.1,1), transform 0.22s cubic-bezier(.6,.2,.1,1), background 0.22s;
}
.cta, .cookie-banner button, .cookie-modal .cookie-actions button {
  transition: background 0.22s, color 0.22s, box-shadow 0.22s, transform 0.22s;
}

/* === UNIQUE ARTISTIC ELEMENTS === */
.section:before {
  content: '';
  display: block;
  position: absolute;
  top: -28px;
  left: -28px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, var(--color-creative1) 0%, transparent 80%);
  opacity: 0.13;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.section:after {
  content: '';
  display: block;
  position: absolute;
  bottom: -28px;
  right: -28px;
  width: 80px;
  height: 80px;
  background: radial-gradient(circle, var(--color-creative2) 0%, transparent 80%);
  opacity: 0.13;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* === MISCELLANEOUS === */
::-webkit-scrollbar {
  width: 10px;
  background: var(--color-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--color-creative2);
  border-radius: 8px;
}

/* === Z-INDEX LAYERS === */
header { z-index: 100; }
.mobile-menu { z-index: 2000; }
.cookie-banner { z-index: 3000; }
.cookie-modal-overlay { z-index: 4000; }

/* === PREVENT OVERLAPPING === */
.card, .feature-grid > div, .recipe-cards > div, .blog-post-cards > div, .tip-cards > div, .team-member-profiles > div, .testimonial-card, .faq-accordion > div {
  margin-bottom: 20px;
}

/* === END QATTYE TRICKS CREATIVE ARTISTIC THEME === */
