/* ==================================================
   RadioMass Studio – Gradient Modern CSS Theme
   --------------------------------------------------
   Brand Colors:
   --primary:   #22515C;
   --secondary: #E1DED5;
   --accent:    #C9BC9C;
   Fonts:
   --display:   'Montserrat', Arial, sans-serif;
   --body:      'Roboto', Arial, sans-serif;
   ================================================== */

/* CSS RESET & BASES */
html { box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; margin: 0; padding: 0; }
body {
  font-family: 'Roboto', Arial, sans-serif;
  background: linear-gradient(135deg, #E1DED5 0%, #ffffff 100%);
  color: #22515C;
  min-height: 100vh;
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  display: block;
}
a { color: #22515C; text-decoration: none; transition: color 0.25s; }
a:hover, a:focus { color: #C9BC9C; }
ul { padding-left: 24px; margin-bottom: 20px; }
li { margin-bottom: 10px; }

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #22515C;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.5rem; margin-bottom: 24px; }
h2 { font-size: 2rem;  margin-bottom: 20px; }
h3 { font-size: 1.25rem; margin-bottom: 18px; }
h4, h5, h6 { font-size: 1.1rem; }
p { font-size: 1rem; margin-bottom: 16px; }
strong { font-weight: 700; }

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  h3 { font-size: 1.1rem; }
}

/* ----------------------------------
   CONTAINER & FLEX LAYOUTS
---------------------------------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: linear-gradient(125deg, #F5F3ED 40%, #E1DED5 100%);
  border-radius: 20px;
  box-shadow: 0 4px 24px 0 rgba(34, 81, 92, 0.05);
}

@media (max-width: 768px) {
  .section { padding: 28px 8px; margin-bottom: 38px; }
  .container { padding: 0 8px; }
}

/* ----------------------------------
   HEADER & NAVIGATION
---------------------------------- */
header {
  background: #22515C;
  color: #fff;
  box-shadow: 0 2px 12px rgba(34, 81, 92, 0.06);
  z-index: 1000;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  min-height: 80px;
}
header nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
header nav a {
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
header nav a:hover,
header nav a.active {
  color: #C9BC9C;
  border-bottom: 2px solid #C9BC9C;
}
header img { height: 44px; width: auto; margin-right: 16px; }
.btn-primary {
  background: linear-gradient(90deg, #22515C 80%, #C9BC9C 100%);
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 36px;
  padding: 12px 32px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(34, 81, 92, 0.12);
  margin-left: 18px;
  transition: background 0.3s, box-shadow 0.2s, transform 0.2s;
  letter-spacing: 0.05em;
  text-align: center;
  outline: none;
  display: inline-block;
}
.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(90deg, #22515C 40%, #C9BC9C 100%);
  box-shadow: 0 4px 24px rgba(34, 81, 92, 0.22);
  transform: translateY(-2px) scale(1.02);
}
.btn-secondary {
  background: #fff;
  color: #22515C;
  border: 2px solid #22515C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 36px;
  padding: 10px 28px;
  cursor: pointer;
  margin-right: 14px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.btn-secondary:hover,
.btn-secondary:focus {
  background: #C9BC9C;
  color: #22515C;
  border-color: #C9BC9C;
  box-shadow: 0 2px 10px rgba(34,81,92,0.11);
}

/* Hamburger burger menu */
.mobile-menu-toggle {
  display: none;
  background: #C9BC9C;
  color: #22515C;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 1.6rem;
  font-weight: bold;
  cursor: pointer;
  margin-left: 12px;
  transition: background 0.2s;
  z-index: 1102;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: #fff;
}

@media (max-width: 1024px) {
  header nav { gap: 16px; }
  .btn-primary { padding: 10px 24px; margin-left: 10px; }
}
@media (max-width: 900px) {
  header nav { display: none; }
  .btn-primary { display: none; }
  .mobile-menu-toggle { display: block; }
}
/* ----------- Mobile Slide-in Menu ----------- */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #22515C;
  color: #fff;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px 24px 24px 24px;
  box-shadow: 0 4px 32px rgba(34,81,92,0.12);
}
.mobile-menu.active {
  transform: translateX(0);
}
.mobile-menu-close {
  background: none;
  color: #fff;
  border: none;
  font-size: 2.2rem;
  align-self: flex-end;
  cursor: pointer;
  margin-bottom: 24px;
  transition: color 0.2s;
  z-index: 1102;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: #C9BC9C;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
}
.mobile-nav a {
  color: #fff;
  font-size: 1.15rem;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 12px;
  border-radius: 10px;
  transition: background 0.16s, color 0.2s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: #C9BC9C;
  color: #22515C;
}
@media (min-width: 901px) {
  .mobile-menu,
  .mobile-menu-close,
  .mobile-menu-toggle { display: none !important; }
}


/* ----------------------------------
   SECTIONS & FLEX SPACING
---------------------------------- */
.feature-grid, .category-grid, .team-grid, .product-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.feature-grid > div,
.category-grid > div,
.team-grid > div,
.product-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(34,81,92,0.08);
  padding: 30px 22px;
  flex: 1 1 270px;
  min-width: 240px;
  max-width: 340px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.26s, transform 0.22s;
  border: 1px solid #E1DED5;
  position: relative;
}
.feature-grid > div:hover,
.category-grid > div:hover,
.team-grid > div:hover,
.product-card:hover {
  box-shadow: 0 8px 30px rgba(34,81,92,0.18);
  transform: translateY(-4px) scale(1.016);
}
.product-cards { /* ensures consistent spacing */ }

@media (max-width: 900px) {
  .feature-grid, .category-grid, .product-cards, .team-grid { gap: 16px; }
  .feature-grid > div, .category-grid > div, .team-grid > div, .product-card { max-width: 100%; }
}
@media (max-width: 600px) {
  .feature-grid, .category-grid, .product-cards, .team-grid { flex-direction: column; gap: 18px; }
  .feature-grid > div, .category-grid > div, .team-grid > div, .product-card { width: 100%; min-width: unset; }
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(34,81,92,0.07);
  padding: 24px 18px;
  flex: 1 1 280px;
}
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .content-grid { flex-direction: column; gap: 16px; }
}

/* ----------------------------------
   TESTIMONIALS & CARDS
---------------------------------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 20px;
  margin-bottom: 20px;
  background: #F5F3ED;
  border-radius: 16px;
  box-shadow: 0 2px 18px rgba(34,81,92,0.07);
  font-size: 1.08rem;
  color: #1C3238;
}
.testimonial-card > div {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 5px rgba(34,81,92,0.06);
  padding: 18px 20px;
  min-width: 210px;
  flex: 1 1 240px;
  margin-bottom: 0;
  color: #1C3238;
}
.testimonial-card span {
  display: block;
  margin-top: 10px;
  font-size: 0.96em;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #22515C;
}
.testimonial-card span:last-child {
  color: #C9BC9C;
  letter-spacing: 0.08em;
}

/* ----------------------------------
   FOOTER
---------------------------------- */
footer {
  background: linear-gradient(90deg, #F5F3ED 70%, #E1DED5 100%);
  color: #22515C;
  box-shadow: 0 -2px 12px rgba(34,81,92,0.05);
  padding: 0 0 24px 0;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 36px 0 18px 0;
}
.footer-main nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-main nav a {
  color: #22515C;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.14s;
}
.footer-main nav a:hover { color: #C9BC9C; }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.footer-links a {
  color: #22515C;
  font-size: 0.97rem;
}
.footer-links a:hover { color: #C9BC9C; }
.social-media-links {
  display: flex;
  gap: 16px;
  margin-top: 4px;
  align-items: center;
}
.social-media-links a {
  display: inline-flex;
  align-items: center;
  border-radius: 50%;
  background: #C9BC9C22;
  padding: 7px;
  transition: background 0.16s;
}
.social-media-links a:hover {
  background: #C9BC9C;
}
.social-media-links img { width: 24px; height: 24px; }
.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.93rem;
  color: #444E55;
  opacity: 0.7;
  margin-top: 8px;
}
@media (max-width: 768px) {
  .footer-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 0 10px 0;
  }
}

/* ----------------------------------
   FORMS, INPUTS & BUTTONS
---------------------------------- */
input[type="text"],
input[type="email"],
select, textarea {
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #C9BC9C;
  background: #fff;
  color: #22515C;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  transition: border 0.2s;
  width: 100%;
}
input[type="text"]:focus,
input[type="email"]:focus,
select:focus, textarea:focus {
  border: 1.5px solid #22515C;
  outline: none;
}
button, input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  background: #22515C;
  color: #fff;
  border: none;
  border-radius: 32px;
  padding: 12px 30px;
  cursor: pointer;
  box-shadow: 0 1px 8px rgba(34,81,92,0.08);
  transition: background 0.20s, box-shadow 0.2s, transform 0.20s;
}
button:hover,
button:focus {
  background: #C9BC9C;
  color: #22515C;
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 4px 16px rgba(201,188,156,0.16);
}
.newsletter-signup {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.newsletter-signup input[type="email"] {
  width: 240px;
  flex: 1 1 160px;
  min-width: 100px;
}
@media (max-width: 600px) {
  .newsletter-signup {
    flex-direction: column;
    gap: 12px;
  }
  .newsletter-signup input[type="email"] {
    width: 100%;
  }
}

/* ----------------------------------
   INFOBOX, LISTS
---------------------------------- */
.infobox {
  background: #E1DED5;
  border-left: 4px solid #C9BC9C;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  color: #22515C;
  box-shadow: 0 1px 5px rgba(34,81,92,0.05);
  font-size: 1rem;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}
.filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
  font-size: 1rem;
}
.filters a {
  color: #22515C;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.filters a:hover,
.filters a:focus {
  background: #C9BC9C;
  color: #22515C;
}
@media (max-width: 800px) {
  .filters { flex-direction: column; gap: 6px; }
}

/* ----------------------------------
   POST PREVIEWS
---------------------------------- */
.post-preview {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(34,81,92,0.07);
  padding: 24px 18px 16px 18px;
  margin-bottom: 20px;
  transition: box-shadow 0.17s, transform 0.17s;
}
.post-preview:hover {
  box-shadow: 0 8px 36px rgba(34,81,92,0.15);
  transform: translateY(-2px) scale(1.014);
}
.post-preview h3 {
  font-size: 1.2rem;
  margin-bottom: 9px;
}
.post-preview a {
  color: #C9BC9C;
  font-weight: 500;
  display: inline-block;
  margin-top: 8px;
  transition: color 0.15s;
}
.post-preview a:hover { color: #22515C; }

/* ----------------------------------
   MISC/IMAGE ICONS
---------------------------------- */
.text-section p, .text-section ul, .text-section img {
  margin-bottom: 14px;
}
.text-section img {
  vertical-align: baseline;
  height: 20px;
  width: 20px;
  margin-right: 8px;
  display: inline-block;
}
.category-grid img, .feature-grid img {
  height: 40px; width: 40px; margin-bottom: 10px;
}

/* ----------------------------------
   COOKIE BANNER
---------------------------------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0;
  bottom: 0;
  width: 100vw;
  background: #22515C;
  color: #fff;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 18px 18px 30px;
  box-shadow: 0 -2px 22px rgba(34,81,92,0.14);
  gap: 24px;
  flex-wrap: wrap;
  transition: transform 0.4s, opacity 0.28s;
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}
.cookie-banner .cookie-text {
  max-width: 680px;
  font-size: 1rem;
  margin-right: 18px;
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.cookie-banner button, .cookie-banner .btn {
  min-width: 112px;
  padding: 8px 22px;
  border-radius: 30px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  margin-right: 3px;
  margin-bottom: 2px;
  cursor: pointer;
  background: #C9BC9C;
  color: #22515C;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.cookie-banner button.accept {
  background: #C9BC9C;
  color: #22515C;
}
.cookie-banner button.accept:hover,
.cookie-banner button.accept:focus {
  background: #fff;
  color: #22515C;
}
.cookie-banner button.reject {
  background: #fff;
  color: #22515C;
}
.cookie-banner button.reject:hover,
.cookie-banner button.reject:focus {
  background: #C9BC9C;
  color: #22515C;
}
.cookie-banner button.settings {
  background: transparent;
  color: #C9BC9C;
  border: 2px solid #C9BC9C;
}
.cookie-banner button.settings:hover,
.cookie-banner button.settings:focus {
  background: #C9BC9C;
  color: #22515C;
}
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; padding: 18px 8px 18px 12px; gap: 12px; }
  .cookie-banner .cookie-text { margin-right: 0; max-width: 100%; }
}

/* COOKIE MODAL (shown if .cookie-modal.active) */
.cookie-modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(34,81,92,0.56);
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.cookie-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: #fff;
  color: #22515C;
  border-radius: 20px;
  box-shadow: 0 12px 60px rgba(34,81,92,0.20);
  max-width: 420px;
  padding: 36px 28px 28px 28px;
  z-index: 4100;
  animation: modalFadeIn 0.4s cubic-bezier(0.62,0.34,0.36,1);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}
@keyframes modalFadeIn {
  0% { transform: translateY(80px) scale(0.98); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-modal h2 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 1rem;
}
.cookie-modal .cookie-toggle {
  appearance: none;
  width: 34px;
  height: 18px;
  background: #E1DED5;
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 0.17s;
}
.cookie-modal .cookie-toggle:checked {
  background: #C9BC9C;
}
.cookie-modal .cookie-toggle:before {
  content: '';
  position: absolute;
  left: 3px;
  top: 2px;
  width: 15px;
  height: 15px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(34,81,92,0.09);
  transition: left 0.18s;
}
.cookie-modal .cookie-toggle:checked:before {
  left: 16px;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: #22515C;
  font-size: 2rem;
  cursor: pointer;
  z-index: 4150;
  padding: 0 3px;
  opacity: 0.7;
}
.cookie-modal .close-modal:hover { color: #C9BC9C; opacity: 1; }
.cookie-modal .cookie-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 10px;
}
@media (max-width: 480px) {
  .cookie-modal { padding: 22px 6px 18px 12px; min-width: 20vw; }
}

/* Z-INDEX QA
header: 1000+
.mobile-menu: 1100+, cookie banner: 3000, cookie modal: 4000+
*/
/* ----------------------------------
   ACCESSIBILITY & MISC
---------------------------------- */
:focus { outline: 2px solid #C9BC9C; outline-offset: 2px; }
::-webkit-input-placeholder { color: #757575; opacity: 1; }
::-moz-placeholder { color: #757575; opacity:1; }
:-ms-input-placeholder { color: #757575; opacity:1; }
::placeholder { color: #757575; opacity:1; }

/* ----------------------------------
   UTILITY CLASSES
---------------------------------- */
.d-flex   { display: flex !important; }
.flex-row { flex-direction: row !important; }
.flex-col { flex-direction: column !important; }
.gap-8   { gap: 8px !important;  }
.gap-16  { gap: 16px !important; }
.gap-24  { gap: 24px !important; }
.align-center    { align-items: center !important; }
.align-start     { align-items: flex-start !important; }
.justify-center  { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.mt-20 { margin-top: 20px !important; }
.mb-20 { margin-bottom: 20px !important; }

/* ----------------------------------
   CUSTOM SCROLLBAR FOR MODERN FEEL
---------------------------------- */
::-webkit-scrollbar {
  width: 7px;
  background: #E1DED5;
}
::-webkit-scrollbar-thumb {
  background: #C9BC9C;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #22515C;
}

/* END RADIO MASS STUDIO THEME */