/* =====================================================================
   HobiFlash Creative Artistic CSS (v1.0)
   Author: Senior CSS Developer & UI Designer
   Description: Creative, artistic, vibrant CSS for HobiFlash web
   ===================================================================== */

/* ----------- 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;
}
html { scroll-behavior: smooth; height: 100%; }
body { min-height: 100%; background: #FFF; color: #1A4D8F; }
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg {max-width: 100%; height: auto; display: block;}
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit;}
input, textarea, select, button { font-family: inherit; }
:focus { outline: none; }

/* ----------- BRAND VARS ----------- */
:root {
  --primary: #1A4D8F;
  --primary-dark: #15386B;
  --secondary: #F6B326;
  --secondary-dark: #CA9600;
  --accent: #F2F2F2;
  --accent-dark: #e6e6e6;
  --white: #FFF;
  --black: #181818;
  --error: #CC2A2F;
  --success: #1CB15D;
  --shadow: 0 8px 24px 0 rgba(26, 77, 143, 0.09),0 2px 6px rgba(246,179,38,0.07);
  --radius: 18px;
  --radius-sm: 10px;
  --card-radius: 19px;

  --font-display: "Montserrat",Arial,sans-serif;
  --font-body: "Open Sans",Helvetica,sans-serif;
}

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

/* ----------- TYPOGRAPHY ----------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--primary);
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  line-height: 1.13;
}
h1 { font-size: 2.3rem; margin-bottom: 24px; }
h2 { font-size: 1.7rem; margin-bottom: 18px; }
h3 { font-size: 1.23rem; margin-bottom: 10px; }
h4, h5, h6 { font-size: 1.12rem; margin-bottom: 8px; font-weight: 700;}
p, li, ul, ol, a, span, label {
  font-family: var(--font-body);
  font-size: 1.09rem;
  line-height: 1.65;
  color: var(--primary-dark);
}
p {margin-bottom:16px;}
strong { color: var(--secondary); font-weight: 700; }
em { color: var(--primary); font-style: italic; }

/* --------- UTILITIES --------- */
.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.content-wrapper {
  width: 100%;
  display: flex; flex-direction: column;
  gap: 20px;
}
.text-section {
  margin-bottom: 18px;
  color: var(--primary-dark);
}

/* --------- CREATIVE/ARTISTIC ELEMENTS --------- */
.hero {
  background: linear-gradient(103deg, var(--secondary) 30%, var(--primary) 100%);
  color: var(--white);
  border-radius: var(--radius);
  margin: 38px 0 48px 0;
  box-shadow: 0 8px 30px rgba(26,77,143,0.13);
  padding: 45px 0;
  position: relative;
  overflow: hidden;
}
.hero:before {
  content: '';
  display: block;
  position: absolute;
  right: -70px; top: 20px;
  width: 210px; height: 210px;
  background: rgba(255,255,255,0.06);
  border-radius: 54% 46% 43% 57%/56% 45% 55% 44%;
  z-index: 0;
  filter: blur(1px);
  pointer-events: none;
  transition: background 0.4s;
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero .content-wrapper > * {
  color: var(--white) !important;
}
.hero h1 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 2.5rem;
  text-shadow: 1px 2px 12px rgba(26,77,143,.22);
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.13rem;
  margin-bottom: 32px;
  color: var(--accent);
}

/* ----------- FLEXBOX CARD AND FEATURE CONTAINERS ----------- */
.card-container, .content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}
.card-container { gap: 24px; margin-bottom: 32px; }
.content-grid { gap: 20px; }
.card {
  margin-bottom: 20px;
  position: relative;
  background: var(--accent);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  min-width: 250px;
  transition: transform 0.23s cubic-bezier(.85,.1,.41,1), box-shadow 0.23s;
  cursor: pointer;
}
.card:hover, .card:focus {
  transform: scale(1.035) rotate(-1.4deg);
  box-shadow: 0 12px 38px 0 rgba(246,179,38,.17);
  z-index: 3;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--accent);
  border-left: 6px solid var(--secondary);
  border-radius: var(--radius-sm);
  padding: 22px 18px 18px 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  font-family: var(--font-body);
  font-size: 1rem;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

/* ----------- PRIMARY CTA BUTTONS ----------- */
.primary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.14rem;
  letter-spacing: 0.03em;
  padding: 14px 34px;
  border-radius: 100px;
  border: none;
  box-shadow: 0 4px 18px 0 rgba(246, 179, 38, 0.15);
  margin: 12px 0 0 0;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, box-shadow 0.21s, transform 0.16s;
}
.primary-cta:hover, .primary-cta:focus {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-2px) scale(1.03) rotate(-1.1deg);
  box-shadow: 0 8px 28px 0 rgba(26,77,143,0.11);
}

/* ----------- HEADER & NAVIGATION ----------- */
header {
  background: var(--white);
  padding: 0.5rem 0;
  border-bottom: 2px solid var(--secondary);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: var(--font-body);
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--primary-dark);
  position: relative;
  padding: 7px 12px;
  border-radius: 17px;
  transition: background 0.18s, color 0.17s;
}
.main-nav a:not(.primary-cta):hover, .main-nav a:not(.primary-cta):focus {
  background: var(--secondary);
  color: var(--white);
}
.main-nav .primary-cta {
  margin-left: 18px;
  box-shadow: none;
}

/* ----------- MOBILE MENU ----------- */
.mobile-menu-toggle {
  display: none;
  background: var(--secondary);
  color: var(--primary);
  font-size: 2.1rem;
  border-radius: 10px;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  z-index: 20;
  transition: background .15s, color .15s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: var(--primary);
  color: var(--secondary);
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(26,77,143, 0.965);
  transform: translateX(-103vw);
  transition: transform 0.4s cubic-bezier(.52,.08,.37,1.14);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  padding: 35px 25px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 12px;
  width: 48px; height: 48px;
  position: absolute;
  top: 22px; right: 25px;
  font-size: 2.18rem;
  z-index: 3100;
  box-shadow: 0 2px 14px 0 rgba(246,179,38,0.14);
  transition: background 0.16s, color 0.16s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--primary);
  color: var(--secondary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 90px;
}
.mobile-nav a {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.34rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  padding: 12px 0;
  border-bottom: 1px solid rgba(246,179,38,0.26);
  border-radius: 0;
  transition: color 0.14s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--secondary);
  background: transparent;
}

/* Hide normal nav on mobile, burger visible */
@media (max-width: 991px) {
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 992px) {
  .mobile-menu { display: none !important; }
}

/* --------- TESTIMONIAL CARDS --------- */
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px 0 rgba(26,77,143,0.09);
  margin-bottom: 20px;
  position: relative;
  border-left: 6px solid var(--secondary);
  min-width: 280px;
  transition: transform .19s, box-shadow .22s;
}
.testimonial-card p {
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.13rem;
  margin: 0 0 4px 0;
  line-height: 1.67;
}
.testimonial-card .testimonial-meta {
  color: var(--primary);
  font-size: 0.93rem;
  font-weight: 600;
  font-family: var(--font-body);
  margin-top: 6px;
}
.testimonial-card:hover {
  box-shadow: 0 6px 30px 0 rgba(246,179,38,.14);
  transform: scale(1.031) rotate(0.5deg);
}

/* ----------- LISTS ----------- */
ul, ol {
  margin-left: 19px;
  margin-bottom: 16px;
  padding-left: 0;
}
ul li, ol li {
  margin-bottom: 9px; line-height: 1.7; position: relative; padding-left: 24px;
  font-size: 1.04rem;
}
ul li:before {
  content: "\2022";
  color: var(--secondary);
  font-weight: bold;
  display: inline-block;
  width: 18px;
  margin-left: -22px;
}

ol li:before {
  content: counter(li) ". ";
  color: var(--primary);
  font-weight: bold;
  display: inline-block;
  width: 22px;
  margin-left: -22px;
  counter-increment: li;
}
ol {
  counter-reset: li;
}

/* ----------- FORMS & LINKS ----------- */
a { transition: color .18s, text-decoration .18s; }
a:focus { outline: 2px solid var(--secondary-dark); }
input, textarea, select {
  border: 2px solid var(--secondary);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 1rem;
  margin-bottom: 16px;
  font-family: var(--font-body);
  background: var(--accent);
  transition: border 0.19s;
}
input:focus, textarea:focus, select:focus {
  border: 2px solid var(--primary);
}
label { font-weight: 700; color: var(--primary-dark); }

/* ---------- FOOTER ---------- */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 42px 0 16px 0;
  border-radius: var(--radius) var(--radius) 0 0;
  margin-top: 55px;
}
footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 6px;
  justify-content: center;
}
.footer-nav a {
  color: var(--secondary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  transition: color .14s;
}
.footer-nav a:hover {
  color: var(--white);
  text-decoration: underline;
}
.social-links {
  display: flex;
  gap: 14px;
  margin-bottom: 11px;
}
.social-links a img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 10px 0 rgba(26,77,143,0.14);
  transition: transform .15s;
}
.social-links a:hover img {
  transform: scale(1.11) rotate(-8deg);
}
.legal-notice {
  margin-top: 8px;
  color: var(--accent-dark);
  font-size: 0.95rem;
  text-align: center;
}

/* ----------- COOKIE CONSENT BANNER ----------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--primary);
  color: var(--white);
  z-index: 11100;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 18px 22px 18px;
  box-shadow: 0 -5px 22px 0 rgba(26,77,143,.15);
  gap: 32px;
  transition: transform .33s cubic-bezier(.60,.09,.43,1.17);
  transform: translateY(108%);
}
.cookie-banner.visible {
  transform: translateY(0);
}
.cookie-banner .cookie-text {
  max-width: 520px;
  font-size: 1.03rem;
  font-family: var(--font-body);
  margin-right: 22px;
}
.cookie-actions {
  display: flex;
  gap: 12px;
}
.cookie-btn {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 100px;
  padding: 10px 28px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  margin-right: 4px;
  transition: background 0.17s, color 0.17s, transform .16s;
}
.cookie-btn.reject {
  background: var(--error);
  color: var(--white);
}
.cookie-btn.settings {
  background: var(--white);
  color: var(--primary);
  border: 1.5px solid var(--secondary);
}
.cookie-btn:hover, .cookie-btn:focus {
  background: var(--primary-dark);
  color: var(--secondary);
  transform: translateY(-2px) scale(1.04);
}
.cookie-btn.reject:hover { background: #a21822; color: #fff; }
.cookie-btn.settings:hover { background: var(--secondary); color: var(--primary); }

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  left: 50%; top: 50%;
  transform: translate(-50%, -52%) scale(0.93);
  background: var(--white);
  color: var(--primary-dark);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px 0 rgba(26,77,143,.18);
  z-index: 12000;
  min-width: 350px; max-width: 93vw;
  min-height: 120px;
  padding: 36px 30px 26px 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .27s, transform .23s;
}
.cookie-modal.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.cookie-modal h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 800;
}
.cookie-modal label {
  display: flex; align-items: center; gap: 14px; margin-bottom: 17px;
  font-family: var(--font-body); font-size: 1.02rem;
}
.cookie-modal input[type=checkbox] {
  width: 20px; height: 20px; accent-color: var(--secondary);
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 11px;
  margin-top: 22px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  background: none;
  color: var(--primary);
  font-size: 1.43rem;
  position: absolute; right: 15px; top: 10px;
  border-radius: 8px;
  padding: 5px 9px;
  border: none;
  cursor: pointer;
  transition: background .13s;
}
.cookie-modal .close-modal:hover {
  background: var(--secondary);
  color: var(--primary);
}

/* ----------- RESPONSIVE DESIGN ----------- */
@media (max-width: 991px) {
  .container { max-width: 95vw; padding: 0 7vw; }
  .main-nav { display: none !important; }
  .mobile-menu-toggle { display: flex; }
}
@media (max-width: 900px) {
  .content-grid, .card-container {
    flex-direction: column;
    gap: 21px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  .section {
    padding: 34px 6vw;
    margin-bottom: 38px;
  }
  .hero {
    padding: 25px 0;
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .hero h1 { font-size: 2rem; }
  .footer-nav, .social-links { gap: 15px; }
  .content-wrapper { gap: 11px; }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 19px;
  }
  .card { min-width: 80vw; }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    padding: 16px 9px;
  }
}
@media (max-width:480px) {
  .container { padding: 0 11px; }
  .footer-nav { flex-direction: column; gap: 9px; }
  .hero h1 { font-size: 1.29rem; }
  .primary-cta { font-size: 1rem; padding: 11px 19px; }
  .section { padding: 22px 2vw; }
  .cookie-banner { flex-direction: column; gap: 17px; padding: 15px 4px 17px 4px; }
  .cookie-banner .cookie-text { max-width: 98vw; margin-right: 0; }
}

/* ----------- ANIMATIONS & MICRO-INTERACTIONS ----------- */
.card, .testimonial-card, .feature-item {
  will-change: transform, box-shadow;
}
.section, .hero, .card, .content-wrapper, .card-content, .feature-item, .testimonial-card {
  transition: box-shadow .22s, transform .19s, background .21s;
}
.primary-cta, .cookie-btn {
  transition: background .17s, color .17s, box-shadow .16s, transform .15s;
}

/* --- Accessibility: Color Contrast for Testimonial Cards --- */
.testimonial-card, .testimonial-card p, .testimonial-card .testimonial-meta {
  background: var(--white);
  color: var(--primary-dark);
}

/* --- Misc: Custom Artistic Details --- */
.card, .testimonial-card, .feature-item {
  border-bottom: 3.5px solid var(--secondary);
  border-right: 2.5px solid var(--primary);
  border-radius: var(--card-radius) var(--radius-sm) var(--radius) var(--card-radius);
  position: relative;
  overflow: visible;
}
.card:after, .testimonial-card:after {
  content: "";
  position: absolute;
  top: -12px; right: -12px;
  width: 33px; height: 33px;
  background: var(--secondary);
  opacity: .22;
  border-radius: 60%;
  z-index: 0;
}

/* --- Artistic Doodle SVG behind hero (decor) --- */
.hero:after {
  content: '';
  position: absolute;
  left: -68px; bottom: -38px; z-index: 0;
  width: 172px; height: 60px;
  background: url("data:image/svg+xml,%3Csvg width='172' height='60' viewBox='0 0 172 60' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cellipse cx='86' cy='30' rx='86' ry='30' fill='%23F6B326' fill-opacity='0.21'/%3E%3C/svg%3E") no-repeat center/contain;
}

/* ---- End of CSS ---- */
