/* Helio Portfolio Warm & Friendly - Complete Responsive Flexbox CSS */
/* === 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,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,
menu,nav,output,ruby,section,summary,
time,mark,audio,video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section {
  display: block;
}
body {
  line-height: 1.6;
  background: #FFFDFB;
  min-height: 100vh;
  color: #1A2639;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  letter-spacing: 0.01em;
}
a {
  color: #1A2639;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B05412;
}
img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}
ul, ol {
  margin-bottom: 16px;
  padding-left: 24px;
}
li {
  margin-bottom: 8px;
}

/* === VARS: Pale warm oranges, teal, blue, and off-white === */
:root {
  --primary: #1A2639;
  --secondary: #39C7D1;
  --accent: #F8F8FC;
  --warm1: #FFD8B0;
  --warm2: #FFF2E0;
  --warm3: #FFEDD7;
  --warm4: #FFE2C5;
  --brand-orange: #FFAE51;
  --brand-coral: #FF713B;
  --brand-bg: #FFFDFB;
  --brand-shadow: 0 6px 24px 0 rgba(255,178,72,0.11);
  --brand-radius-l: 20px;
  --brand-radius-m: 14px;
  --brand-radius-s: 8px;
  --shadow: 0 3px 24px 0 rgba(52, 81, 107, 0.13);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  color: #1A2639;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.4rem;
  margin-bottom: 24px;
  line-height: 1.15;
}
h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}
h3 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}
h4, h5, h6 {
  font-weight: 600;
}
p, .content-wrapper > p, .text-section > p, .author {
  font-family: 'Roboto', Arial, sans-serif;
  margin-bottom: 16px;
  color: #46300B;
}
strong {
  color: #B05412;
}

/* === CONTAINER & LAYOUT === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
section {
  background: none;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--warm2);
  border-radius: var(--brand-radius-l);
}
@media (max-width: 640px) {
  .section {
    padding: 28px 8px;
  }
}

/* === HERO SECTIONS === */
.hero {
  background: linear-gradient(120deg, var(--warm1) 90%, var(--brand-bg) 100%);
  border-radius: 0 0 var(--brand-radius-l) var(--brand-radius-l);
  box-shadow: var(--brand-shadow);
  margin-bottom: 44px;
  padding: 44px 0 36px 0;
}
.hero h1 {
  color: #B05412;
}
.hero .cta {
  margin-top: 24px;
}

/* === NAVIGATION === */
header {
  background: var(--accent);
  box-shadow: 0 2px 12px 0 rgba(255,174,81,0.09);
  position: sticky;
  top: 0;
  z-index: 90;
}
header > .container {
  flex-direction: row;
  align-items: center;
  min-height: 64px;
  gap: 28px;
}
.logo img {
  height: 44px;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #65481E;
  padding: 7px 15px;
  border-radius: var(--brand-radius-s);
  transition: background 0.18s, color 0.18s;
}
.main-nav a.cta {
  background: var(--brand-orange);
  color: #fff;
  border-radius: var(--brand-radius-m);
  padding: 8px 22px;
  font-weight: bold;
  box-shadow: var(--shadow);
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--brand-coral);
  color: #fff;
}
.main-nav a.cta:hover, .main-nav a.cta:focus {
  background: #ff9082;
}

/* === MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  background: var(--brand-orange);
  color: #fff;
  border: none;
  border-radius: var(--brand-radius-s);
  padding: 6px 15px;
  margin-left: 16px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.2s, color 0.2s;
  z-index: 91;
}
.mobile-menu-toggle:focus, .mobile-menu-toggle:hover {
  background: var(--brand-coral);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FFFDFB;
  box-shadow: 0 0 0 999px rgba(26,38,57,0.22), var(--shadow);
  transform: translateX(-120vw);
  transition: transform 0.35s cubic-bezier(.7,.03,.23,.98);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding: 32px 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  right: 18px;
  top: 18px;
  font-size: 2rem;
  border: none;
  background: var(--warm1);
  color: #B05412;
  border-radius: var(--brand-radius-s);
  width: 46px;
  height: 46px;
  cursor: pointer;
  transition: background .17s;
  z-index: 201;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--brand-coral);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 44px 34px 0 34px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.18rem;
  color: #1A2639;
  font-weight: 500;
  border-radius: var(--brand-radius-s);
  padding: 14px 8px;
  background: transparent;
  transition: background .18s, color .18s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: var(--brand-orange);
  color: #fff;
}
@media (max-width: 1020px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1020px) {
  .mobile-menu {
    display: none !important;
  }
}

/* === GENERAL FLEX PATTERNS === */
.features-grid, .review-list, .review-grid, .article-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 16px;
}
.features-grid > div, .review-list > div, .review-grid > div, .article-grid > div {
  background: var(--warm1);
  border-radius: var(--brand-radius-m);
  box-shadow: var(--shadow);
  padding: 24px 22px;
  flex: 1 1 280px;
  min-width: 260px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.2s, transform 0.2s;
}
.features-grid > div:hover, .review-list > div:hover, .review-grid > div:hover, .article-grid > div:hover{
  box-shadow: 0 8px 32px 0 rgba(69, 51, 24, 0.13);
  transform: translateY(-2px) scale(1.016);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--warm3);
  border-radius: var(--brand-radius-m);
  box-shadow: var(--shadow);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: box-shadow 0.17s, transform 0.15s;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px 0 rgba(69, 51, 24, 0.14);
  transform: translateY(-2px) scale(1.012);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

/* === TESTIMONIAL CARDS === */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 24px 26px;
  margin-bottom: 22px;
  background: var(--warm4);
  border-radius: var(--brand-radius-m);
  box-shadow: 0 1px 15px 0 rgba(187,139,68,0.12);
  min-width: 255px;
  max-width: 620px;
  color: #51370C;
  font-size: 1.1rem;
}
.testimonial-card p {
  color: #B05412;
  margin: 0;
  font-style: italic;
  font-size: 1.12rem;
  font-weight: 500;
}
.testimonial-card .author {
  color: #46300B;
  font-weight: bold;
  font-size: .98rem;
  margin-top: 2px;
}

/* === PRICING BOX === */
.pricing-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--brand-orange);
  color: #fff;
  border-radius: var(--brand-radius-m);
  box-shadow: var(--shadow);
  padding: 24px 26px 16px 26px;
  margin-top: 20px;
  margin-bottom: 24px;
  font-size: 1.05rem;
  gap: 12px;
}
.pricing-box span {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.11rem;
  font-weight: bold;
  margin-bottom: 8px;
}
.pricing-box ul {
  color: #fff;
}

/* === CTA SECTIONS === */
.cta-banner {
  background: var(--brand-coral);
  color: #FFF;
  border-radius: var(--brand-radius-l);
  box-shadow: var(--brand-shadow);
  text-align: center;
  margin: 38px 0 0 0;
  padding: 42px 0 38px 0;
}
.cta-banner .cta {
  margin-top: 18px;
}
.cta-banner h2, .cta-banner p {
  color: #fff;
}
.sponsored-info {
  display: block;
  background: #FFE0C2;
  color: #B05412;
  padding: 8px 0;
  margin-bottom: 14px;
  border-radius: var(--brand-radius-s);
  font-size: 1rem;
}

/* === BUTTONS === */
.cta, button, input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
  display: inline-block;
  background: var(--brand-orange);
  color: #fff;
  border: none;
  border-radius: var(--brand-radius-m);
  box-shadow: var(--shadow);
  padding: 11px 28px;
  font-weight: bold;
  font-size: 1.13rem;
  cursor: pointer;
  margin-top: 6px;
  margin-bottom: 6px;
  transition: background 0.22s, box-shadow 0.15s, transform 0.18s;
  text-align: center;
}
.cta:hover, .cta:focus, button:hover, input[type="submit"]:hover {
  background: var(--brand-coral);
  color: #fff;
  transform: scale(1.035);
  box-shadow: 0 10px 32px 0 rgba(255,113,59,0.10);
}

/* === FOOTER === */
footer {
  background: var(--primary);
  color: #fff;
  padding: 56px 0 22px 0;
  margin-top: 64px;
  border-radius: var(--brand-radius-l) var(--brand-radius-l) 0 0;
  box-shadow: 0 -2px 20px 0 rgba(26,38,57,0.13);
}
footer .container {
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  justify-content: flex-start;
}
.footer-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  font-size: 1.15rem;
  font-weight: bold;
  margin-bottom: 10px;
}
.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFEDD7;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 12px;
}
.footer-nav a {
  color: #FFD8B0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.16s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #FFAE51;
}
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  font-size: 0.97rem;
  color: #FFF6DF;
}
.footer-contact img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #FFE2C5;
  margin-right: 5px;
}
.footer-newsletter {
  margin-top: 12px;
  background: #FFD8B0;
  color: #864E1A;
  padding: 16px 20px;
  border-radius: var(--brand-radius-m);
  font-size: 1.01rem;
  box-shadow: var(--shadow);
}

/* === FORM ELEMENTS, LINKS === */
input, textarea, select {
  padding: 9px 14px;
  border: 1.5px solid #FFE2C5;
  border-radius: var(--brand-radius-m);
  font-size: 1rem;
  font-family: 'Roboto', Arial, sans-serif;
  background: var(--accent);
  margin-bottom: 16px;
  box-shadow: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--brand-orange);
  outline: none;
}
input[type="submit"] {
  font-family: 'Montserrat', Arial, sans-serif;
}

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #FFEDD7;
  color: #684015;
  border-top: 4px solid var(--brand-orange);
  box-shadow: 0 -3px 22px 0 rgba(255,174,81,0.16);
  padding: 22px 14px 16px 14px;
  z-index: 4000;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  font-size: 1rem;
  animation: slide-up 0.41s cubic-bezier(.72,.07,.23,1);
}
@keyframes slide-up {
  from {transform: translateY(110%);opacity:0;}
  to   {transform: translateY(0);opacity:1;}
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: center;
}
.cookie-banner button {
  background: var(--brand-orange);
  color: #fff;
  border: none;
  border-radius: var(--brand-radius-m);
  padding: 7px 20px;
  font-size: 1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  box-shadow: var(--shadow);
  cursor: pointer;
  margin: 0 2px;
}
.cookie-banner button:hover, .cookie-banner button:focus {
  background: var(--brand-coral);
  color: #fff;
}

/* Cookie settings modal */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 4100;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(26,38,57, 0.23);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadein .28s;
}
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal {
  background: #FFEDD7;
  box-shadow: var(--brand-shadow);
  border-radius: var(--brand-radius-l);
  padding: 34px 28px;
  min-width: 290px;
  max-width: 96vw;
  color: #1A2639;
  z-index: 4101;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: popup-bounce .28s cubic-bezier(.76,-0.61,.27,1.55);
}
@keyframes popup-bounce {
 from {transform:scale(0.92) translateY(40px); opacity:0;} to {transform:scale(1) translateY(0); opacity:1;}
}
.cookie-modal .cookie-modal-title {
  font-size: 1.3rem;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: bold;
  margin-bottom: 8px;
  color: #B05412;
}
.cookie-modal .cookie-category {
  margin: 0 0 10px 0;
  font-size: 1.05rem;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  margin-bottom: 2px;
}
.cookie-modal .cookie-toggle {
  margin-left: auto;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.cookie-modal .cookie-modal-close {
  position: absolute;
  top: 13px; right: 13px;
  background: #FFD8B0;
  color: #B05412;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: var(--brand-radius-s);
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  transition: background .15s;
}
.cookie-modal .cookie-modal-close:hover, .cookie-modal .cookie-modal-close:focus {
  background: var(--brand-coral);
  color: #fff;
}

/* === RESPONSIVENESS === */
@media (max-width: 1020px) {
  .container {
    max-width: 98vw;
    padding: 0 8px;
  }
  .footer-newsletter {
    margin-bottom: 20px;
  }
  .main-nav, .footer-nav {
    gap: 11px;
  }
  .footer-brand img {
    width: 30px;
    height: 30px;
  }
}
@media (max-width: 900px) {
  .features-grid, .review-list, .review-grid, .article-grid, .card-container {
    gap: 15px;
  }
  .features-grid > div, .review-list > div, .review-grid > div, .article-grid > div {
    min-width: 175px;
    font-size: .96rem;
    padding: 16px 10px;
  }
}
@media (max-width: 768px) {
  html {font-size: 15px;}
  .hero { padding: 34px 0 24px 0; }
  .features-grid, .review-list, .review-grid, .article-grid, .card-container {
    flex-direction: column;
    gap: 16px;
  }
  .features-grid > div, .review-list > div, .review-grid > div, .article-grid > div  {
    min-width: unset;
    max-width: 100%;
    width: 97%;
  }
  .testimonial-card {
    max-width: 98vw;
    padding: 18px 8px;
  }
  .cta-banner {
    border-radius: var(--brand-radius-m);
    padding: 28px 5px 20px 5px;
  }
  .content-grid, .card-container {
    flex-direction: column;
    gap: 18px;
  }
  .footer-newsletter {
    padding: 10px 5px;
  }
}
@media (max-width: 640px) {
  html { font-size: 14px; }
  .container { padding: 0 2vw; }
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  h3 { font-size: 1.07rem; }
}
@media (max-width: 430px) {
  html {font-size: 12.6px;}
  .mobile-menu {
    padding: 24px 0 0 0;
  }
  .mobile-nav {
    padding: 30px 6px 0 6px;
    gap: 13px;
  }
  .testimonial-card {
    padding: 14px 1vw;
  }
}

/* === UTILITIES + MICRO-INTERACTIONS === */
.rounded {
  border-radius: var(--brand-radius-m) !important;
}
.soft-shadow {
  box-shadow: var(--shadow) !important;
}

/* Scrollbar styling */
body::-webkit-scrollbar {
  width: 8px;
  background: var(--accent);
}
body::-webkit-scrollbar-thumb {
  background: #FFD8B0;
  border-radius: 6px;
}

/* Focus state for accessibility */
a:focus, button:focus, .cta:focus, input:focus {
  outline: 2px solid var(--brand-orange);
  outline-offset: 2px;
}

/* === SPECIAL CONTENT === */
.category-filter {
  margin-top: 10px;
  font-size: 0.98rem;
  color: #9E5C13;
  font-family: 'Roboto', Arial, sans-serif;
}
.text-section img {
  vertical-align: middle;
  margin-right: 7px;
  display: inline-block;
  width: 20px;
  height: 20px;
}
.text-section a {
  color: var(--secondary);
  font-weight: 500;
  text-decoration: underline;
}
.text-section a:hover {
  color: var(--brand-orange);
}

/* === THANK YOU/ERROR INFO === */
.text-section .cta {
  margin-top: 18px;
}

/* ==== END ==== */
