/* =====================================
   Spherix Portfolio - style.css
   "creative_artistic" aesthetic
   Author: Senior CSS Developer
   ===================================== */

/***************************
  1. CSS RESET & NORMALIZE
***************************/
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, menu, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
main, menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body {
  line-height: 1.6;
  background: #F4F4FA;
  color: #222353;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  min-height: 100vh;
}
*, *:before, *:after {
  box-sizing: inherit;
}
a {
  color: #E7852D;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #222353;
}
ul, li {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
  border: 0;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/**********************************
 2. TYPOGRAPHY
***********************************/
@import url('https://fonts.googleapis.com/css?family=Montserrat:700,900|Open+Sans:400,600,700&display=swap');

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 900;
  color: #222353;
  letter-spacing: -0.5px;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 22px;
  line-height: 1.2;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #E7852D;
  text-shadow: 0 2px 5px #ffe8d0;
}
h4, h5, h6 {
  font-size: 1rem;
  margin-bottom: 6px;
}
p, .subheadline, li {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  color: #222353;
  margin-bottom: 14px;
}
.subheadline {
  font-size: 1.15rem;
  color: #7C3AED;
  font-style: italic;
  margin-bottom: 24px;
}
strong, b {
  font-weight: 700;
  color: #222353;
}
blockquote {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.2rem;
  padding: 20px 32px;
  margin: 0 0 20px 0;
  border-left: 6px solid #E7852D;
  background: #fffbea;
  color: #222353;
  border-radius: 12px;
  font-style: italic;
  box-shadow: 0 2px 14px 0 rgba(231, 133, 45, 0.12);
}

/**********************************
 3. COLOR & ARTISTIC ELEMENTS
***********************************/
:root {
  --primary: #222353;
  --secondary: #E7852D;
  --accent: #F4F4FA;
  --highlight: #7C3AED; /* Artistic pop (purple) */
  --card-bg: #fff;
  --shadow: 0 6px 24px rgba(34,35,83,0.07);
  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 8px;
  --transition: 0.26s cubic-bezier(.49,.01,.38,1.19);
}

/**********************************
 4. LAYOUT CONTAINERS
***********************************/
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
  /* Ensure content aligns per section's internal rules */
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

/**********************************
 5. HEADER & NAVIGATION
***********************************/
header {
  background: #ffffff;
  box-shadow: 0 2px 22px rgba(34, 35, 83, 0.09);
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  min-height: 82px;
}
header img {
  height: 46px;
  width: auto;
}
.main-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.main-nav a {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #222353;
  position: relative;
  padding: 8px 0;
  transition: color 0.18s, background 0.18s;
}
.main-nav a:after {
  content: '';
  display: block;
  height: 3px;
  width: 0;
  background: #E7852D;
  border-radius: 2px;
  transition: width 0.22s;
  margin-top: 2px;
}
.main-nav a:hover:after, .main-nav a:focus:after {
  width: 100%;
}
.main-nav a:hover, .main-nav a:focus {
  color: #E7852D;
}

.cta-btn.primary {
  background: linear-gradient(100deg,#E7852D 68%,#222353 105%);
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-size: 1.18rem;
  padding: 14px 30px;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 15px 0 rgba(231, 133, 45, 0.13);
  margin-left: 12px;
  letter-spacing: 0.03em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
}
.cta-btn.primary:hover, .cta-btn.primary:focus {
  background: linear-gradient(95deg,#222353 57%,#E7852D 140%);
  color: #fff;
  transform: translateY(-2px) scale(1.04) rotate(-1deg);
  box-shadow: 0 6px 24px 0 rgba(124,58,237,0.11);
}

/**********************************
 6. BURGER & MOBILE NAV
***********************************/
.mobile-menu-toggle {
  display: none;
  background: #E7852D;
  color: #fff;
  border-radius: var(--radius-lg);
  font-size: 2rem;
  padding: 10px 20px;
  cursor: pointer;
  border: none;
  margin-left: 16px;
  transition: background var(--transition);
  z-index: 110;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #222353;
  color: #fff;
}
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(34,35,83,0.96);
  z-index: 200;
  flex-direction: column;
  align-items: flex-end;
  padding: 0;
  transition: transform 0.28s cubic-bezier(.53,.32,.44,1.08), opacity 0.21s;
  opacity: 0;
  transform: translateX(100%);
}
.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateX(0);
}
.mobile-menu-close {
  background: transparent;
  color: #E7852D;
  font-size: 2.3rem;
  padding: 20px 26px 2px 0;
  cursor: pointer;
  border: none;
  font-weight: 900;
  align-self: flex-end;
  z-index: 220;
  transition: color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  align-items: flex-end;
  padding: 32px 44px 32px 0;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: right;
  padding: 9px 0;
  border-radius: var(--radius-sm);
  transition: background 0.18s, color 0.18s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #E7852D;
  color: #222353;
}

/* Responsive Hide Main Nav, Show Burger */
@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-block;
  }
}

/**********************************
 7. SECTIONS, FLEXBOX & SPACING
***********************************/
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  border-radius: var(--radius-lg);
  position: relative;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 26px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: 0 7px 26px 0 rgba(124,58,237,0.09),0 0 0 2px #E7852D;
  transform: translateY(-3px) 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: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border-left: 7px solid #7C3AED;
  font-style: italic;
}
.testimonial-card p {
  color: #222353;
  font-size: 1.08rem;
  margin-bottom: 4px;
  flex: 1;
}
.testimonial-card strong {
  color: #E7852D;
  font-weight: 700;
  font-size: 1rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 18px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 200px;
}

/*****************************************
 8. PAGE-SPECIFIC COMPONENTS & GRIDS
******************************************/
.feature-grid, .benefit-grid, .category-grid, .blogger-cards, .team-bios {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  margin-bottom: 10px;
}
.feature, .benefit, .category-card, .blogger-card, .bio {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 26px 24px 22px 24px;
  min-width: 250px;
  flex: 1 1 250px;
  max-width: 355px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.feature:hover, .benefit:hover, .category-card:hover, .blogger-card:hover {
  box-shadow: 0 8px 30px #f1e5ff80;
  transform: translateY(-3px) scale(1.02) rotate(-1.5deg);
}
.feature img, .benefit img, .category-card img {
  width: 48px;
  height: 48px;
  margin-bottom: 8px;
}
.blogger-card span {
  font-size: 0.98rem;
  color: #7C3AED;
  margin-top: 8px;
  font-style: italic;
}

.team-bios {
  gap: 24px;
  margin-top: 10px;
}
.bio-links {
  margin-top: 10px;
}
.bio-links a {
  color: #7C3AED;
  font-weight: 600;
  border-bottom: 2px dashed #E7852D;
  padding-bottom: 2px;
  transition: color 0.14s, border 0.14s;
}
.bio-links a:hover, .bio-links a:focus {
  color: #E7852D;
  border-bottom: 2px solid #7C3AED;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.04rem;
}
.filter-options a {
  display: inline-block;
  padding: 6px 16px;
  background: #fffbea;
  color: #222353;
  border-radius: 6px;
  border: 1px solid #E7852D;
  transition: background 0.15s, color 0.15s, border 0.15s;
  margin-right: 3px;
}
.filter-options a:hover, .filter-options a:focus {
  background: #E7852D;
  color: #fff;
  border: 1px solid #7C3AED;
}

.category-card h3, .feature h3, .benefit h3, .blogger-card h3 {
  color: #7C3AED;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1.12rem;
  margin-bottom: 4px;
  font-weight: 900;
}
.feature p, .benefit p, .category-card p, .blogger-card p {
  font-size: 1rem;
  color: #222353;
}

.inspirational-stories {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 1.06rem;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: #222353;
}
.contact-details img {
  width: 28px;
  height: 28px;
}

.confirmation-message {
  margin-top: 18px;
  background: #e9e8ff;
  padding: 26px 18px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

/**********************************
 9. FOOTER STYLES
***********************************/
footer {
  background: #222353;
  color: #fff;
  padding: 44px 0 22px 0;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  margin-top: 50px;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 38px;
  flex-wrap: wrap;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #E7852D;
  font-weight: 700;
  font-size: 1rem;
  transition: color 0.15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
}
.footer-contact {
  display: flex;
  align-items: flex-start;
  flex-direction: row;
  gap: 14px;
  font-size: 1rem;
  color: #fff;
  margin-bottom: 10px;
}
.footer-contact img {
  width: 48px;
  margin-right: 10px;
}
.footer-copy {
  width: 100%;
  color: #ccccff;
  font-size: 0.96rem;
  margin-top: 18px;
  text-align: right;
}

/**********************************
 10. COOKIE BANNER & MODAL
***********************************/
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0;
  width: 100vw;
  padding: 24px 18px 18px 18px;
  background: linear-gradient(90deg,#E7852D 70%,#fff9ec 100%);
  color: #222353;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 -4px 22px rgba(34,35,83,0.08);
  z-index: 3000;
  font-size: 1rem;
  border-radius: var(--radius) var(--radius) 0 0;
  animation: cookieSlideIn 0.45s cubic-bezier(.36,1.45,.43,.97);
}
@keyframes cookieSlideIn {
  0% { transform: translateY(100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-btn {
  margin-left: 16px;
  margin-right: 7px;
  background: #222353;
  color: #fff;
  padding: 9px 22px;
  border-radius: 18px;
  border: none;
  font-weight: 700;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cookie-banner .cookie-btn.cookie-settings {
  background: #fff;
  color: #E7852D;
  border: 2px solid #E7852D;
  margin-left: 0;
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: #7C3AED;
  color: #fff;
}
.cookie-banner .cookie-btn.cookie-settings:hover, .cookie-banner .cookie-btn.cookie-settings:focus {
  background: #E7852D;
  color: #fff;
  border: 2px solid #E7852D;
}

.cookie-modal-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34,35,83,0.85);
  position: fixed;
  z-index: 4010;
  left: 0; top: 0; right: 0; bottom: 0;
  min-height: 100vh;
  min-width: 100vw;
  opacity: 1;
  animation: fadeIn 0.25s cubic-bezier(.36,1.45,.43,.97);
}
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
.cookie-modal {
  background: #fffbea;
  padding: 38px 28px 28px 28px;
  border-radius: var(--radius-lg);
  min-width: 340px;
  max-width: 96vw;
  color: #222353;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  box-shadow: 0 8px 32px 0 rgba(34,35,83,.13);
  animation: modalIn 0.35s cubic-bezier(.36,1.45,.43,.97);
}
@keyframes modalIn {
  from {transform: translateY(30px) scale(0.98); opacity: 0;}
  to {transform: translateY(0) scale(1); opacity: 1;}
}
.cookie-modal h3 {
  margin-bottom: 16px;
  color: #7C3AED;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}
.cookie-modal .cookie-cat {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  font-size: 1.02rem;
}
.cookie-cat input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: #E7852D;
}
.cookie-cat label {
  color: #222353;
}
.cookie-cat.essential label {
  font-weight: 600;
  color: #7C3AED;
}
.cookie-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  background: #E7852D;
  color: #fff;
  border-radius: 18px;
  border: none;
  padding: 9px 22px;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.cookie-modal .cookie-btn.cookie-cancel {
  background: #fff;
  color: #222353;
  border: 2px solid #E7852D;
}
.cookie-modal .cookie-btn:hover, .cookie-modal .cookie-btn:focus {
  background: #222353;
  color: #fff;
}

/**********************************
 11. RESPONSIVE DESIGN
***********************************/
@media (max-width: 1050px) {
  .container {
    max-width: 95vw;
  }
}
@media (max-width: 900px) {
  .container {
    max-width: 99vw;
    padding-left: 8px;
    padding-right: 8px;
  }
  .card, .feature, .benefit, .category-card, .blogger-card, .bio {
    min-width: 180px;
    max-width: 99vw;
    padding: 18px 12px 14px 12px;
  }
}
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    gap: 20px;
    padding: 0 4vw;
  }
  header .container {
    flex-direction: row;
  }
  section {
    padding: 30px 8px;
    margin-bottom: 38px;
  }
  .main-nav, footer .container {
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .footer-copy {
    text-align: left;
    margin-top: 20px;
  }
  .feature-grid, .benefit-grid, .category-grid, .blogger-cards, .team-bios {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }
  .testimonial-slider, .inspirational-stories {
    gap: 14px;
  }
  .card-container, .content-grid {
    flex-direction: column;
    gap: 18px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
}
@media (max-width: 510px) {
  h1 {
    font-size: 1.42rem;
  }
  h2 {
    font-size: 1.09rem;
  }
  .cta-btn.primary {
    font-size: 1rem;
    padding: 10px 16px;
  }
  .mobile-nav {
    padding: 24px 14px 18px 0;
  }
  .mobile-menu-close {
    padding: 13px 14px 2px 0;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 10px 10px 10px;
  }
}

/**********************************
 12. MICRO-INTERACTIONS
***********************************/
.cta-btn, .card, .feature, .benefit, .category-card, .blogger-card, .testimonial-card {
  transition: box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
}

.cta-btn.primary:active {
  transform: scale(0.97);
  filter: brightness(0.95);
}
.card:active, .feature:active, .benefit:active, .category-card:active {
  transform: scale(0.98) rotate(-1deg);
}

/**********************************
 13. UTILITIES
***********************************/
.section {
  margin-bottom: 60px !important;
  padding: 40px 20px !important;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/**********************************
 14. ARTISTIC ELEMENTS
***********************************/
section:before, section:after {
  content: '';
  display: block;
  position: absolute;
  pointer-events: none;
  z-index: 1;
}
section:before {
  left: 2%; top: 3%;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #E7852D;
  opacity: 0.12;
  filter: blur(2px);
}
section:after {
  right: 1%; bottom: 1%;
  width: 32px; height: 32px;
  border-radius: 60% 8% 45% 78%;
  background: #7C3AED;
  opacity: 0.10;
  filter: blur(1.5px);
}

/* Example highlight for active nav link - implement in HTML */
.main-nav a.active,
.footer-nav a.active,
.mobile-nav a.active {
  color: #7C3AED !important;
  border-bottom: 2px solid #E7852D;
}

/***********************************
 FORMS (contact details only)
***********************************/
input, textarea, select {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid #E7852D;
  margin-bottom: 16px;
  background: #fff;
  transition: border-color 0.16s;
}
input:focus, textarea:focus, select:focus {
  border-color: #7C3AED;
}

/***********************************
 15. MISC
***********************************/
::-webkit-scrollbar {width: 12px; background: #F4F4FA;}
::-webkit-scrollbar-thumb {background: #E7852D; border-radius: 6px;}
::-webkit-selection {background: #E7852D; color: #fff;}
::selection {background: #E7852D; color: #fff;}

/***********************************
 END OF STYLE FILE
***********************************/
