/* --- 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;
}
/* Make HTML5 elements display block */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  background: #fff; 
  color: #223649;
  font-family: 'Open Sans', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  font-size: 16px;
}

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

/* --- COLOR VARIABLES (with fallbacks) --- */
:root {
  --primary: #223649;
  --secondary: #EBE7D0;
  --accent: #F36B28;
  --neutral: #ffffff;
  --shadow: rgba(34,54,73,0.10);
  --shadow-strong: rgba(34,54,73,0.18);
}

/* --- GENERAL TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 16px;
}
h1 { font-size: 2.5rem; line-height: 1.18; }
h2 { font-size: 2rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.17rem; }
h5 { font-size: 1.08rem; }
h6 { font-size: 1rem; }

p, ul, ol, li, blockquote, .text-section {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 12px;
}

strong, b {
  color: var(--accent);
  font-weight: 700;
}


/* --- CONTAINERS --- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
@media (max-width: 768px) {
  .content-wrapper {
    gap: 16px;
  }
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- HEADER --- */
header {
  background: var(--secondary);
  box-shadow: 0 2px 8px var(--shadow);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1002;
  border-radius: 0 0 24px 24px;
}
header .container {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  padding: 18px 20px;
}
header img[alt="Glow Magnet"] {
  height: 48px;
  border-radius: 14px;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
}
nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary);
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
nav a:hover, nav a:focus {
  background: var(--accent);
  color: #fff;
}

/* CTA Button Styles */
.cta {
  display: inline-block;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  padding: 13px 28px;
  border-radius: 32px;
  cursor: pointer;
  border: none;
  outline: none;
  text-decoration: none;
  transition: background 0.18s, color 0.18s, box-shadow 0.22s;
  box-shadow: 0 2px 6px var(--shadow);
  margin-left: 8px;
}
.cta.primary {
  background: var(--accent);
  color: #fff;
}
.cta.primary:hover, .cta.primary:focus {
  background: #d35b1d;
  box-shadow: 0 4px 16px var(--shadow-strong);
}
.cta.secondary {
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--accent);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px var(--shadow-strong);
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
  display: none;
  background: var(--accent);
  color: #fff;
  font-size: 2rem;
  border: none;
  border-radius: 12px;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
  transition: background 0.2s; 
  z-index: 1102;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #d35b1d;
}
/* Show mobile menu button on small screens */
@media (max-width: 1024px) {
  .mobile-menu-toggle {
    display: flex;
  }
  header nav, header .cta.primary {
    display: none;
  }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100vw;
  background: var(--secondary);
  box-shadow: -2px 0 40px var(--shadow-strong);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.61,.1,.24,1.09);
  z-index: 1201;
  display: flex;
  flex-direction: column;
  padding: 32px 24px 24px 24px;
  gap: 30px;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  align-self: flex-end;
  font-size: 2rem;
  background: var(--accent);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 1202;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #d35b1d;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.28rem;
  font-weight: 600;
  padding: 16px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--primary);
  transition: background 0.19s, color 0.19s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 768px) {
  header .container {
    padding: 10px 10px;
    gap: 10px;
  }
  header img[alt="Glow Magnet"] {
    height: 36px;
  }
}

/* --- HERO/INTRO SECTIONS --- */
.hero {
  background: linear-gradient(180deg, #FFF8F4 60%, #EBE7D0 100%);
  border-radius: 0 0 32px 32px;
  box-shadow: 0 2px 12px var(--shadow-strong);
  margin-bottom: 50px;
}
.hero .container {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 46px 12px 32px 12px;
}
.hero h1 {
  color: var(--accent);
  margin-bottom: 18px;
  font-size: 2.2rem;
  line-height: 1.18;
  text-align: left;
}
.hero p {
  color: var(--primary);
  max-width: 700px;
  font-size: 1.15rem;
  margin-bottom: 20px;
}

/* --- FEATURES --- */
.features {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fffdf6;
  border-radius: 40px;
  box-shadow: 0 6px 24px var(--shadow);
}
.features h2, .features h3 {
  margin-bottom: 12px;
}
.features ul {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  flex-direction: column;
  margin-top: 16px;
}
.features li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--secondary);
  border-radius: 18px;
  padding: 15px 22px;
  color: var(--primary);
  font-size: 1.08rem;
  line-height: 1.55;
  box-shadow: 0 2px 7px var(--shadow);
}
.features img {
  height: 30px;
  width: 30px;
  border-radius: 8px;
  background: #fff1e5;
  margin-right: 5px;
}
@media (min-width: 620px) {
  .features ul {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .features li {
    min-width: 270px;
    flex: 1 1 270px;
  }
}

/* --- SERVICES / CARDS --- */
.services {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.services h2 {
  margin-bottom: 16px;
}
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.service-card {
  background: var(--secondary);
  border-radius: 22px;
  padding: 30px 22px 22px 22px;
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 320px;
  box-shadow: 0 2px 12px var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.12s, box-shadow 0.22s;
}
.service-card:hover, .service-card:focus-within {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 10px 26px var(--shadow-strong);
}
.service-card h3 {
  color: var(--accent);
  margin-bottom: 6px;
}
.service-price {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.12rem;
  color: var(--primary);
  margin-top: 6px;
}

/* Text sections */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--primary);
}
@media (max-width: 768px) {
  .service-list {
    flex-direction: column;
    gap: 20px;
  }
}

/* --- TESTIMONIALS --- */
.testimonials {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff8ef;
  border-radius: 32px;
}
.testimonials h2 {
  margin-bottom: 18px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  background: #fff6e8;
  border-radius: 18px;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 12px var(--shadow);
  transition: box-shadow 0.18s, transform 0.13s;
}
.testimonial-card blockquote {
  margin: 0;
  color: #2d2b25;
  font-size: 1.12rem;
  line-height: 1.6;
  font-style: italic;
}
.testimonial-meta {
  color: var(--primary);
  font-size: 1rem;
  margin-left: 10px;
  font-style: normal;
  font-weight: 600;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 10px 26px var(--shadow-strong);
  transform: translateY(-3px) scale(1.02);
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    margin-bottom: 16px;
  }
}

/* --- CTA BLOCKS --- */
section.cta {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border-radius: 40px;
  text-align: left;
  box-shadow: 0 2px 16px var(--shadow);
  padding: 46px 18px;
  margin-bottom: 48px;
}
section.cta h2 {
  color: #fff;
}
section.cta p {
  color: #fff8f1;
}
section.cta .cta.primary, section.cta .cta.secondary {
  margin-top: 18px;
}
section.cta .cta.primary, section.cta .cta.secondary {
  background: #fff;
  color: var(--accent);
  border: 2px solid #fff;
}
section.cta .cta.primary:hover, section.cta .cta.secondary:hover {
  background: #ffe4d5;
  color: var(--primary);
}
@media (max-width: 768px) {
  section.cta {
    padding: 32px 8px;
    margin-bottom: 36px;
  }
}

/* --- GENERIC FLEX CONTAINERS (as specified) --- */
.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;
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
  }
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: #fff;
  border-radius: 32px 32px 0 0;
  padding: 30px 0 0 0;
  box-shadow: 0 -2px 14px var(--shadow);
  margin-top: 50px;
  font-size: 1rem;
}
footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 42px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 26px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #fff8f1;
  text-decoration: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  transition: color 0.18s;
  padding: 3px 0;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: var(--accent);
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.97rem;
  color: #fff;
}
.footer-contact a {
  color: #ffd7be;
  text-decoration: underline;
}
.footer-social {
  display: flex;
  gap: 17px;
}
.footer-social a {
  background: #fff1e5;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.17s, transform 0.13s;
  box-shadow: 0 1px 3px var(--shadow);
}
.footer-social a:hover, .footer-social a:focus {
  background: var(--accent);
  transform: scale(1.1);
}
.footer-social img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
}
@media (max-width: 900px) {
  footer .container {
    gap: 14px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* --- LINKS & INTERACTIONS --- */
a {
  color: var(--accent);
  text-decoration: underline;
  transition: color 0.18s, background 0.17s;
}
a:hover, a:focus {
  color: #b14318;
}

/* --- FORMS & INPUTS (if present in future) --- */
input, select, textarea {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  padding: 11px 15px;
  border-radius: 8px;
  border: 1.5px solid #dfdfdf;
  outline: none;
  margin-bottom: 18px;
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 3px var(--shadow);
  transition: border-color 0.19s, box-shadow 0.17s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 2px 8px var(--shadow);
}
button {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 12px 24px;
  border-radius: 32px;
  cursor: pointer;
  box-shadow: 0 1px 5px var(--shadow);
  transition: background 0.17s;
}
button:hover, button:focus {
  background: #d35b1d;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: #FFF4E7;
  color: var(--primary);
  box-shadow: 0 -2px 18px var(--shadow-strong);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 26px;
  padding: 24px 18px 24px 18px;
  z-index: 2100;
  border-radius: 24px 24px 0 0;
  animation: cookie-slide-in 0.6s cubic-bezier(.52,1.57,.57,1);
  font-size: 1.06rem;
}
@keyframes cookie-slide-in {
  from {
    transform: translateY(80px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.cookie-banner .cookie-text {
  flex: 1 1 280px;
  color: var(--primary);
}
.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.cookie-banner .cookie-action {
  font-size: 1rem;
  border-radius: 24px;
  padding: 12px 20px;
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.18s, color 0.18s;
}
.cookie-banner .cookie-action.secondary {
  background: #fff5ee;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.cookie-banner .cookie-action.secondary:hover, .cookie-banner .cookie-action.secondary:focus {
  background: var(--accent);
  color: #fff;
}
.cookie-banner .cookie-action:hover, .cookie-banner .cookie-action:focus {
  background: #d35b1d;
}
@media (max-width: 650px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.98rem;
    padding: 18px 10px 18px 10px;
  }
}

/* Cookie Modal Popup */
.cookie-modal {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 140%) scale(0.92);
  min-width: 300px;
  max-width: 96vw;
  max-height: 92vh;
  z-index: 2200;
  background: #fff4e7;
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -2px 32px var(--shadow-strong);
  padding: 32px 22px 26px 22px;
  opacity: 0;
  transition: transform 0.35s cubic-bezier(.61,.1,.24,1.09), opacity 0.27s;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cookie-modal.open {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
}
.cookie-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.cookie-modal-header h3 {
  color: var(--accent);
  font-size: 1.2rem;
  margin-bottom: 0;
}
.cookie-modal-close {
  font-size: 2rem;
  background: var(--accent);
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #d35b1d;
}
.cookie-modal-categories {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 5px var(--shadow);
}
.cookie-category label {
  color: var(--primary);
  font-weight: 600;
  flex: 1;
}
.cookie-toggle {
  appearance: none;
  width: 46px;
  height: 26px;
  background: #eee;
  border-radius: 20px;
  position: relative;
  outline: none;
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.19s;
}
.cookie-toggle:checked {
  background: var(--accent);
}
.cookie-toggle:before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s;
  box-shadow: 0 1px 4px var(--shadow);
}
.cookie-toggle:checked:before {
  transform: translateX(20px);
}
.cookie-category input[disabled], .cookie-category input[readonly] {
  cursor: not-allowed;
  opacity: 0.7;
}
.cookie-modal-actions {
  display: flex;
  gap: 11px;
  margin-top: 10px;
}
.cookie-modal-actions button {
  font-size: 1rem;
  border-radius: 24px;
  padding: 11px 20px;
}

@media (max-width: 550px) {
  .cookie-modal {
    padding: 23px 6px 18px 6px;
    min-width: 90vw;
  }
}

/* --- Utilities and Extras --- */
.rounded {
  border-radius: 65px !important;
}
.soft-shadow {
  box-shadow: 0 2px 13px var(--shadow) !important;
}
.text-accent {
  color: var(--accent);
}
.bg-accent {
  background: var(--accent);
  color: #fff;
}
.bg-secondary {
  background: var(--secondary);
}
.bg-primary {
  background: var(--primary);
  color: #fff;
}

/* --- Responsive Typography --- */
@media (max-width: 1200px){
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  .hero h1 { font-size: 1.7rem; }
}
@media (max-width: 900px){
  h1 { font-size: 1.45rem; }
  h2 { font-size: 1.22rem; }
  h3 { font-size: 1.09rem; }
  .hero h1 { font-size: 1.27rem; }
}
@media (max-width: 700px){
  body { font-size: 15px; }
}
@media (max-width: 550px) {
  h1 { font-size: 1.11rem; }
  h2 { font-size: 1.03rem; }
}

/* --- Accessibility Focus Support --- */
:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --- Hide elements by .hidden class --- */
.hidden {
  display: none !important;
}

/* --- Thank You Page --- */
.text-section ul {
  margin-top: 10px;
  margin-left: 18px;
  list-style: disc outside;
  padding-left: 22px;
}
.text-section li {
  margin-bottom: 7px;
  line-height: 1.5;
}

/* --- END OF CSS --- */