/* Rin Vizurla Vintage - Soft Pastel Style 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,
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 {
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  background: #FAF7F3;
  color: #355C48;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0.01em;
}
img, picture, video, canvas, svg {
  display: inline-block;
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}
a {
  color: #A53641;
  text-decoration: underline;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #355C48;
}
ul, ol {
  margin: 0 0 16px 24px;
  padding: 0;
}
li {
  margin-bottom: 8px;
}
button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  background: none;
  border: none;
  outline: none;
  color: inherit;
  margin: 0;
  padding: 0;
  appearance: none;
}

/* VARIABLES (with fallbacks) */
:root {
  --rvv-main: #355C48;
  --rvv-bg: #FDF9F5;
  --rvv-pastel-mint: #E6F3E6;
  --rvv-pastel-yellow: #F4E6C4;
  --rvv-pastel-pink: #FDE5EA;
  --rvv-pastel-blue: #E4EDF7;
  --rvv-pastel-purple: #EDE8F5;
  --rvv-accent: #A53641;
  --rvv-secondary: #F4D5A2;
  --rvv-highlight: #B93846;
  --rvv-card: #FFF8F3;
  --rvv-box-shadow: 0 2px 16px 0 rgba(53, 92, 72, 0.10), 0 1.5px 8px 0 rgba(165,54,65,0.02);
  --rvv-radius-lg: 22px;
  --rvv-radius-md: 16px;
  --rvv-radius-sm: 7px;
  --rvv-transition: 0.23s cubic-bezier(0.4, 0.2, 0.2, 1);
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  color: #355C48;
}
h1 { font-size: 2.5rem; font-weight: 700; line-height: 1.2; margin-bottom: 18px; }
h2 { font-size: 2rem; font-weight: 600; line-height: 1.22; margin-bottom: 16px; }
h3 { font-size: 1.38rem; font-weight: 500; margin-bottom: 12px; }
h4 { font-size: 1.15rem; font-weight: 500; margin-bottom: 8px; }
p, ul, li, span {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #355C48;
  font-size: 1rem;
}
strong {
  font-weight: 600;
}
small {
  font-size: 0.88rem;
  color: #A53641;
}

/* LAYOUT CONTAINERS */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: transparent;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--rvv-pastel-blue, #E4EDF7);
  border-radius: var(--rvv-radius-lg);
  box-shadow: var(--rvv-box-shadow);
}
main .section:nth-child(2n) { background: var(--rvv-pastel-mint, #E6F3E6); }

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--rvv-card, #FFF8F3);
  border-radius: var(--rvv-radius-md);
  box-shadow: var(--rvv-box-shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 25px 22px;
  min-width: 260px;
  transition: box-shadow var(--rvv-transition), transform var(--rvv-transition);
}
.card:hover {
  box-shadow: 0 4px 32px 0 rgba(165,54,65,0.13);
  transform: translateY(-5px) scale(1.018);
}

.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.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;
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #FFF8F3;
  border-radius: var(--rvv-radius-md);
  box-shadow: 0 2px 10px 0 rgba(53, 92, 72, 0.06);
  margin-bottom: 20px;
  position: relative;
  font-size: 1.08rem;
  color: #224033;
  transition: box-shadow var(--rvv-transition), transform var(--rvv-transition);
}
.testimonial-card p   { color: #224033; }
.testimonial-card span { color: #B93846; font-weight: 600; }
.testimonial-card:hover { box-shadow: 0 6px 20px 0 rgba(53, 92, 72,0.13); transform: translateY(-3px) scale(1.01); }

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: #FDE5EA;
  border-radius: var(--rvv-radius-sm);
}

/* BUTTONS AND CTAs */
.cta, .primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  background: linear-gradient(90deg,#F4D5A2 10%,#E4EDF7 100%);
  color: #355C48;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.11rem;
  font-weight: 600;
  border-radius: var(--rvv-radius-md);
  border: none;
  box-shadow: 0 1.5px 8px rgba(165,54,65,0.03);
  cursor: pointer;
  text-decoration: none;
  margin-top: 16px;
  transition: background var(--rvv-transition), color var(--rvv-transition), transform var(--rvv-transition);
}
.cta.primary:hover, .cta.primary:focus {
  background: linear-gradient(90deg,#FDE5EA 0%,#F4E6C4 100%);
  color: #A53641;
  transform: translateY(-3px) scale(1.01);
}

.cta.secondary {
  background: #EDE8F5;
  color: #355C48;
  border: 1.5px solid #B93846;
}
.cta.secondary:hover {
  background: #B93846;
  color: #FDF9F5;
}

button, .cta { outline: none; }

/* HEADER/NAVIGATION */
header {
  background: #F4E6C4;
  box-shadow: 0 2px 10px 0 rgba(165,54,65,0.04);
  position: sticky;
  top: 0;
  z-index: 998;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
}
header img {
  max-height: 48px;
}
nav {
  display: flex;
  flex-direction: row;
  gap: 14px;
}
header nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #355C48;
  text-decoration: none;
  font-weight: 550;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: var(--rvv-radius-sm);
  transition: background var(--rvv-transition), color var(--rvv-transition);
}
header nav a:hover, header nav a:focus, header nav a.active {
  background: #FDE5EA;
  color: #A53641;
}

.mobile-menu-toggle {
  display: none;
  font-size: 2.1rem;
  color: #A53641;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 14px;
  z-index: 1101;
  transition: color var(--rvv-transition);
}

/* MOBILE NAVIGATION */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0 0 0 0;
  background: rgba(244,229,196, 0.98);
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  z-index: 1100;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.5,0,0,1);
}
.mobile-menu.open {
  display: flex;
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.3rem;
  background: none;
  border: none;
  color: #A53641;
  align-self: flex-end;
  margin: 18px 22px 10px 0;
  cursor: pointer;
  transition: color var(--rvv-transition), transform var(--rvv-transition);
}
.mobile-menu-close:hover {
  color: #355C48;
  transform: rotate(17deg) scale(1.08);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 20px 32px 40px 35px;
  gap: 20px;
}
.mobile-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  color: #224033;
  font-size: 1.4rem;
  font-weight: 600;
  background: none;
  padding: 12px 0;
  border-radius: var(--rvv-radius-sm);
  text-decoration: none;
  transition: background var(--rvv-transition), color var(--rvv-transition);
}
.mobile-nav a:hover {
  color: #A53641;
  background: #FDE5EA;
}

/* MAIN */
main {
  width: 100%;
}
main .section, main section {
  margin-bottom: 60px;
}

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

/* FOOTER */
footer {
  background: #EDE8F5;
  border-top: 4px solid #FDE5EA;
  padding: 0;
  box-shadow: 0 -2px 10px 0 rgba(165,54,65,0.04);
  margin-top: 56px;
}
footer .container {
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 54px 18px 32px 18px;
}
footer nav {
  margin: 15px 0 6px;
  gap: 18px;
}
footer nav a {
  color: #A53641;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: underline;
  transition: color var(--rvv-transition);
}
footer nav a:hover { color: #224033; }
footer p, footer small { color: #355C48; }
footer img {
  max-height: 36px;
  margin-bottom: 6px;
}

/* COOKIE CONSENT BANNER */
.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #FFF8F3;
  border-top: 3px solid #F4D5A2;
  box-shadow: 0 -1.5px 9px rgba(165,54,65,0.06);
  z-index: 1200;
  padding: 22px 16px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  animation: cookie-fadein 0.7s;
}
@keyframes cookie-fadein {
  0% { transform: translateY(28px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
.cookie-consent p {
  color: #355C48;
  font-size: 1rem;
  margin-bottom: 2px;
}
.cookie-buttons {
  display: flex;
  gap: 16px;
}
.cookie-btn {
  background: #FDE5EA;
  color: #355C48;
  border: none;
  border-radius: var(--rvv-radius-md);
  padding: 10px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--rvv-transition), color var(--rvv-transition), box-shadow var(--rvv-transition);
  box-shadow: 0 0.5px 3px rgba(53, 92, 72, 0.09);
}
.cookie-btn.accept {
  background: #F4D5A2;
  color: #224033;
}
.cookie-btn.accept:hover {
  background: #FDE5EA;
  color: #A53641;
}
.cookie-btn.reject {
  background: #FDE5EA;
  color: #A53641;
}
.cookie-btn.reject:hover {
  background: #F4E6C4;
  color: #355C48;
}
.cookie-btn.settings {
  background: #EDE8F5;
  color: #355C48;
}
.cookie-btn.settings:hover {
  background: #B93846;
  color: #FDF9F5;
}

/* COOKIE MODAL OVERLAY */
.cookie-modal-overlay {
  position: fixed;
  inset: 0 0 0 0;
  background: rgba(44,38,42,0.24);
  z-index: 1250;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: modal-fadein 0.4s;
}
@keyframes modal-fadein {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
.cookie-modal {
  background: #FFF8F3;
  border-radius: var(--rvv-radius-lg);
  box-shadow: 0 4px 48px rgba(53,92,72,0.08);
  max-width: 410px;
  padding: 38px 28px 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top: 15px;
  right: 21px;
  font-size: 1.7rem;
  color: #A53641;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--rvv-transition), transform var(--rvv-transition);
}
.cookie-modal-close:hover {
  color: #355C48;
  transform: rotate(-15deg) scale(1.13);
}
.cookie-modal h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  margin-bottom: 10px;
  color: #224033;
}
.cookie-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0 8px 0;
  border-bottom: 1px solid #F4E6C4;
}
.cookie-category:last-child {
  border-bottom: none;
}
.cookie-category label{
  color: #355C48;
  font-weight: 600;
}
.cookie-toggle {
  margin-left: 12px;
}
/* Switch style */
.switch {
  position: relative;
  display: inline-block;
  width: 39px;
  height: 20px;
}
.switch input { display: none; }
.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #EDE8F5;
  border-radius: 20px;
  transition: background 0.19s;
}
.switch-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2.25px;
  bottom: 2.2px;
  background: #F4D5A2;
  border-radius: 50%;
  transition: transform 0.19s, background 0.19s;
}
.switch input:checked + .switch-slider {
  background: #F4D5A2;
}
.switch input:checked + .switch-slider:before {
  background: #A53641;
  transform: translateX(18px);
}

/* FORM INPUTS */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 13px 14px;
  background: #FAF7F3;
  border: 1.4px solid #F4D5A2;
  border-radius: var(--rvv-radius-sm);
  color: #224033;
  font-size: 1rem;
  margin-bottom: 12px;
  box-shadow: 0 0.5px 3px rgba(53, 92, 72, 0.07);
  transition: border-color 0.2s, box-shadow 0.23s;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus, textarea:focus {
  border-color: #A53641;
  box-shadow: 0 2px 14px 0 rgba(53, 92, 72, 0.08);
}

/* ICONS INSIDE LISTS OR TEXT */
.text-section img {
  width: 19px;
  height: 19px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}

/* UTILS, GAPS, AND MISC */
.gap-8 { gap: 8px !important; }
.gap-12 { gap: 12px !important; }
.gap-20 { gap: 20px !important; }
.gap-24 { gap: 24px !important; }
.gap-32 { gap: 32px !important; }
.mt-18 { margin-top: 18px !important; }
.mt-32 { margin-top: 32px !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }

/* ANIMATIONS & MICRO-INTERACTIONS */
.cta, .card, .testimonial-card, .cookie-btn, .mobile-menu-close {
  transition: box-shadow var(--rvv-transition), background var(--rvv-transition), color var(--rvv-transition), transform var(--rvv-transition);
}
.mobile-menu,
.mobile-menu nav a,
.testimonial-card,
.cta.primary {
  will-change: transform;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1100px) {
  .container { max-width: 92vw; }
  section { padding: 32px 7vw; }
}

@media (max-width: 820px) {
  header .container { flex-direction: row; }
  section { padding: 28px 5vw; }
  .testimonial-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .card-container { flex-direction: column; gap: 18px; }
  .content-grid { flex-direction: column; gap: 20px; }
  .footer .container { padding: 40px 5vw 22px 5vw; }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.35rem; }
  header .container { flex-direction: row; }
  nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .container { padding: 0 10px; }
  section { padding: 22px 5vw; }
  .card { min-width: 190px; padding: 17px 11px; font-size: 0.97rem; }
  .testimonial-card, .feature-item { padding: 13px 9px; font-size: 0.98rem; }
  .text-image-section { flex-direction: column; gap: 18px; }
  .footer .container { padding: 34px 6vw 16px 6vw; }
}
@media (max-width: 620px) {
  .card-container, .content-grid { flex-direction: column; gap: 16px !important; }
  .testimonial-card { font-size: 0.97rem; }
  .card { margin-bottom: 14px; }
  section, .section { padding: 16px 2vw; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.25rem; }
  h2 { font-size: 1rem; }
  .container { padding: 0 5px; }
  .cookie-modal { padding: 24px 6px 18px 8px; max-width: 99vw; }
}

/* ACCESSIBILITY */
:focus {
  outline: 2px dashed #A53641;
  outline-offset: 2px;
}

/* Hide visually when not open */
.mobile-menu:not(.open) { display: none !important; }

/* Hide main nav on mobile */
@media (max-width: 768px) { header nav { display: none !important; } }

/* Show mobile menu button only on mobile */
@media (max-width: 768px) { .mobile-menu-toggle { display: block; } }

/* Ensure cookie consent always on top */
.cookie-consent { z-index: 1200; }

/* PREVENT OVERLAPPING */
.card, .section, .testimonial-card, .cookie-consent, .cookie-modal, footer .container, header .container { margin-bottom: 20px; }

/* SCROLLBAR STYLING */
::-webkit-scrollbar { width: 10px; background: #F4E6C4; }
::-webkit-scrollbar-thumb { background: #FDE5EA; border-radius: 12px; }
::-webkit-scrollbar-thumb:hover { background: #E4EDF7; }

/* PRINT OPTIMIZATION */
@media print {
  header, .mobile-menu, .cookie-consent, .cookie-modal, footer { display: none !important; }
}
