/* ===================================
   Scandinavian Clean CSS for Al Cabbe’s Pi Juwelen
   =================================== */
/* RESET & BASELINE NORMALIZATION */
html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
}
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, blockquote, figure, pre, table, th, td, input, textarea, button {
  margin: 0;
  padding: 0;
  font-weight: normal;
  outline: none;
}
body {
  background: #F4F1ED;
  color: #204060;
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: #204060;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #D4AF37;
  text-decoration: underline;
}
button, .cta, input[type="submit"] {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 16px;
  border: none;
  cursor: pointer;
}
strong, b {
  font-weight: 600;
}
ul, ol {
  list-style: none;
}


/* TYPOGRAPHY - HIERARCHY */
h1, .h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 18px;
  color: #204060;
  letter-spacing: -0.5px;
}
h2, .h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: #204060;
}
h3, .h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 500;
  color: #204060;
  margin-bottom: 10px;
}
h4, .h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #204060;
}
p, ul, ol, li, blockquote {
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #29405d;
}
blockquote {
  padding-left: 20px;
  border-left: 3px solid #D4AF37;
  font-style: italic;
  color: #204060;
}

@media (max-width: 600px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.5rem; }
  h3, .h3 { font-size: 1.13rem; }
}

/* ============ LAYOUT CONTAINERS =========== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 3px 16px rgba(32,64,96,0.07);
  transition: box-shadow 0.22s;
}
.section:last-child {
  margin-bottom: 0;
}
/* RESPONSIVE for section gap */
@media (max-width: 600px) {
  .section {
    padding: 22px 8px;
    margin-bottom: 36px;
    border-radius: 14px;
  }
}

/* FLEXBOX MANDATORIES */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(32,64,96,0.06);
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 260px;
  min-width: 260px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  transition: box-shadow 0.2s, transform 0.19s;
}
.card:hover {
  box-shadow: 0 8px 32px rgba(32,64,96,0.16);
  transform: translateY(-2px) scale(1.015);
}
@media (max-width: 900px) {
  .card {
    max-width: 100%;
    min-width: 0;
    flex-basis: 100%;
  }
}
.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) {
  .content-grid, .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

/* FEATURE GRID & LISTS */
.feature-grid, .service-list, .service-overview, .collection-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  padding: 0;
  margin: 0;
}
.feature-grid li, .collection-list li {
  background: #F4F1ED;
  border-radius: 14px;
  padding: 26px 24px;
  box-shadow: 0 1px 7px rgba(32,64,96,0.07);
  flex: 1 1 260px;
  min-width: 240px;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: box-shadow 0.17s;
}
.feature-grid li img, .collection-list li img {
  width: 36px;
  height: 36px;
  filter: grayscale(0.15);
  margin-bottom: 8px;
}
.feature-grid li:hover, .collection-list li:hover {
  box-shadow: 0 6px 26px rgba(32,64,96,0.13);
}

.service-list li, .service-overview li {
  background: #F4F1ED;
  padding: 18px 20px;
  border-radius: 9px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: #29405d;
  border-left: 3px solid #D4AF37;
}

.text-section ul, .text-section ol, .content-wrapper ul, .content-wrapper ol {
  margin: 0 0 0 0;
  padding: 0;
}
.text-section ul li, .content-wrapper ul li, .text-section ol li, .content-wrapper ol li {
  margin-bottom: 8px;
  line-height: 1.65;
  padding-left: 22px;
  position: relative;
}
.text-section ul li:before, .content-wrapper ul li:before {
  content: '';
  position: absolute;
  left: 0; top: 0.75em;
  width: 7px; height: 7px;
  background: #D4AF37;
  border-radius: 50%;
}
.text-section ol {
  counter-reset: item;
}
.text-section ol li {
  padding-left: 28px;
}
.text-section ol li:before {
  content: counter(item) '.';
  counter-increment: item;
  position: absolute;
  left: 0;
  top: 0;
  color: #D4AF37;
  font-weight: 600;
}

/* TESTIMONIALS */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 30px 22px 26px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 2px 16px rgba(32,64,96,0.11);
  font-size: 1.08rem;
  margin-bottom: 20px;
  color: #204060;
  transition: box-shadow 0.19s;
}
.testimonial-card:hover {
  box-shadow: 0 8px 30px rgba(32,64,96,0.14);
}
.testimonial-card blockquote {
  color: #29405d;
  margin: 0 0 4px 0;
  border-left: 3px solid #D4AF37;
  padding-left: 14px;
  font-style: italic;
}
.testimonial-card span {
  color: #204060;
  opacity: 0.9;
  font-size: 0.98rem;
}

/* BUTTONS / CTA */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  border-radius: 30px;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(32,64,96,0.07);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.14s;
  margin: 10px 0;
  border: none;
  text-align: center;
  cursor: pointer;
}
.cta.primary {
  background: #204060;
  color: #fff;
}
.cta.secondary {
  background: #D4AF37;
  color: #204060;
}
.cta.primary:hover, .cta.primary:focus {
  background: #17405a;
  color: #D4AF37;
  box-shadow: 0 4px 24px rgba(32,64,96,0.19);
  transform: translateY(-1.5px) scale(1.035);
}
.cta.secondary:hover, .cta.secondary:focus {
  background: #c29828;
  color: #fff;
}

/* HEADER & NAVIGATION */
header {
  background: #fff;
  box-shadow: 0 1px 9px rgba(32,64,96,0.09);
  padding: 10px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 1010;
  min-height: 70px;
}
header > a img {
  height: 38px;
  margin-right: 16px;
  vertical-align: middle;
}
.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-left: 32px;
  align-items: center;
}
.main-nav a {
  color: #204060;
  font-size: 1rem;
  padding: 7px 10px;
  border-radius: 14px;
  transition: background 0.13s, color 0.13s;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 500;
}
.main-nav a:hover, .main-nav a:focus {
  background: #F4F1ED;
  color: #D4AF37;
}
header .cta.primary {
  margin-left: 40px;
  min-width: 130px;
}
.mobile-menu-toggle {
  display: none;
  background: #F4F1ED;
  color: #204060;
  border-radius: 50%;
  border: none;
  font-size: 2rem;
  line-height: 1;
  width: 45px;
  height: 45px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 6px rgba(32,64,96,0.08);
  transition: background 0.17s, color 0.17s;
  z-index: 1022;
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  background: #D4AF37;
  color: #fff;
}
@media (max-width: 950px) {
  .main-nav {
    display: none;
  }
  header .cta.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
/* MOBILE MENU OVERLAY */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(244, 241, 237, 0.97);
  backdrop-filter: blur(1px);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transform: translateX(-100vw);
  transition: transform 0.35s cubic-bezier(.77,0,.18,1);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: all;
}
.mobile-menu-close {
  align-self: flex-end;
  background: #D4AF37;
  color: #fff;
  font-size: 2.1rem;
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  margin: 22px 22px 5px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.13s;
  z-index: 1201;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #204060;
  color: #D4AF37;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 35px 36px 0 36px;
  gap: 19px;
  margin-top: 25px;
}
.mobile-nav a {
  font-size: 1.25rem;
  color: #204060;
  font-family: 'Open Sans', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 0;
  border-radius: 10px;
  transition: background 0.13s, color 0.13s;
  width: 100%;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #D4AF37;
  color: #fff;
}
@media (min-width: 951px) {
  .mobile-menu {
    display: none !important;
  }
}

/* MAIN & SECTION SPACING */
main {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-height: 70vh;
  margin-top: 20px;
  margin-bottom: 20px;
}
section {
  margin-bottom: 60px;
  padding: 0;
  background: none;
  border-radius: 0;
  box-shadow: none;
}
.container > h1, .container > h2 {
  margin-bottom: 26px;
  margin-top: 12px;
}

/* FOOTER */
footer {
  background: #fff;
  box-shadow: 0 -2px 20px rgba(32,64,96,0.03);
  padding: 40px 0 24px 0;
}
footer .container {
  padding-left: 20px;
  padding-right: 20px;
}
footer .content-wrapper {
  display: flex;
  flex-direction: row;
  gap: 26px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
footer nav a {
  color: #204060;
  opacity: 0.84;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 3px;
  transition: color 0.18s;
}
footer nav a:hover, footer nav a:focus {
  color: #D4AF37;
}
footer .legal-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 6px;
}
footer .legal-links a {
  font-size: 0.98rem;
  color: #4572a2;
  text-decoration: underline;
  opacity: 0.8;
  margin-bottom: 2px;
  transition: color 0.16s;
}
footer .legal-links a:hover, footer .legal-links a:focus {
  color: #D4AF37;
}
footer .brand-signature {
  font-family: 'Playfair Display', serif;
  font-size: 1.06rem;
  color: #204060;
  opacity: 0.75;
  margin-top: 10px;
}
@media (max-width: 900px) {
  footer .content-wrapper {
    flex-direction: column;
    gap: 22px;
    align-items: flex-start;
  }
}

/* =====================
   Cookie Consent Banner
   ===================== */
.cookie-banner {
  position: fixed;
  z-index: 2000;
  bottom: 0; left: 0;
  width: 100vw;
  background: #204060;
  color: #fff;
  box-shadow: 0 -2px 12px rgba(32,64,96,0.12);
  padding: 24px 18px 19px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 34px;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.34s;
}
.cookie-banner.hide {
  transform: translateY(150%);
  pointer-events: none;
}
.cookie-banner .cookie-text {
  max-width: 600px;
  flex: 2 2 auto;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 16px;
  flex: 1 1 auto;
  justify-content: flex-end;
}
.cookie-banner button {
  padding: 8px 22px;
  font-size: 1rem;
  border-radius: 20px;
  border: none;
  margin-left: 0;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 0.5px 5px rgba(32,64,96,0.15);
  transition: background 0.14s, color 0.13s;
}
.cookie-banner .accept {
  color: #fff;
  background: #D4AF37;
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: #C29828;
}
.cookie-banner .reject {
  color: #204060;
  background: #fff;
  border: 1.5px solid #D4AF37;
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: #D4AF37;
  color: #fff;
}
.cookie-banner .settings {
  color: #204060;
  background: #F4F1ED;
  border: 1.5px solid #204060;
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: #204060;
  color: #fff;
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    font-size: 0.95rem;
    padding: 19px 8px 13px 8px;
  }
  .cookie-banner .cookie-actions {
    justify-content: flex-start;
    gap: 9px;
  }
}

/* Cookie modal styles */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  z-index: 2100;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(44,60,96,0.25);
  align-items: center;
  justify-content: center;
}
.cookie-modal-overlay.open {
  display: flex;
}
.cookie-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 13px 60px rgba(32,64,96,0.21);
  padding: 35px 30px 29px 30px;
  min-width: 312px;
  max-width: 410px;
  width: 90%;
  color: #204060;
  display: flex;
  flex-direction: column;
  gap: 23px;
  animation: modalFadeIn 0.45s cubic-bezier(0.56,0.43,0.24,1.13);
}
@keyframes modalFadeIn {
  0% { opacity: 0; transform: scale(0.88) translateY(22px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.cookie-modal h2 {
  font-size: 1.28rem;
  margin-bottom: 13px;
}
.cookie-modal label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  margin: 0 0 7px 0;
  font-weight: 500;
  cursor: pointer;
}
.cookie-modal input[type='checkbox'] {
  width: 21px;
  height: 21px;
}
.cookie-modal .cookie-buttons {
  display: flex;
  flex-direction: row;
  gap: 13px;
  justify-content: flex-end;
  margin-top: 18px;
}
.cookie-modal .save, .cookie-modal .cancel {
  padding: 8px 23px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  box-shadow: 0 0.5px 5px rgba(32,64,96,0.13);
  cursor: pointer;
  background: #204060;
  color: #fff;
  transition: background 0.13s, color 0.13s;
}
.cookie-modal .cancel {
  background: #F4F1ED;
  color: #214070;
  border: 1.5px solid #204060;
}
.cookie-modal .save:hover, .cookie-modal .save:focus {
  background: #D4AF37;
  color: #204060;
}
.cookie-modal .cancel:hover, .cookie-modal .cancel:focus {
  background: #204060;
  color: #fff;
}
.cookie-modal .category-label.disabled {
  opacity: 0.64;
  cursor: not-allowed;
}

/* ========== MISCELLANEOUS SECTION DESIGN ========== */
.text-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

/* Feature Item (generic) */
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Responsive tweaks for spacing and container size */
@media (max-width: 700px) {
  .container {
    padding-left: 7px;
    padding-right: 7px;
  }
  main, .content-wrapper {
    gap: 19px;
  }
}

/* Accessibility: Focus Styles */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid #D4AF37;
  outline-offset: 1px;
  z-index: 2;
}
/* Input, textarea, select styles */
input, textarea, select {
  font-size: 1rem;
  font-family: inherit;
  border: 1.5px solid #D4AF37;
  border-radius: 7px;
  padding: 9px 13px;
  background: #F4F1ED;
  transition: border 0.16s;
  margin-bottom: 12px;
  width: 100%;
  box-sizing: border-box;
}
input:focus, textarea:focus, select:focus {
  border-color: #204060;
}

/* Table (for some legal pages) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.2rem;
  font-size: 0.99rem;
}
th, td {
  border: 1px solid #e2e0db;
  padding: 9px 10px;
  text-align: left;
}
th {
  background: #F4F1ED;
}

/* =========== Micro-Interactions ============ */
.card, .feature-grid li, .collection-list li,
.cta, .testimonial-card,
.cookie-banner, .mobile-menu {
  transition-timing-function: cubic-bezier(.7,.26,.46,1.22);
}

/* =========== Hide Non-Styled System Elements When Used ============ */
[hidden] { display: none !important; }

/* Utility */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-30 { margin-bottom: 30px; }

/* END OF STYLE */
