/* === 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 {box-sizing: border-box;}
*, *::before, *::after {box-sizing: inherit;}
article,aside,details,figcaption,figure,
footer,header,hgroup,menu,nav,section {display:block;}
body {line-height: 1.5;}
ol,ul {list-style:none;}
a {text-decoration: none; color: inherit;}
img {max-width: 100%; display: block; border: none;}
h1,h2,h3,h4,h5,h6 {font-weight: inherit;}
button,input,select,textarea {font-family: inherit; font-size: 100%;}

/* === BRAND COLORS & VINTAGE RETRO PALETTE === */
:root {
  --primary: #296144;
  --secondary: #E6DDD2;
  --accent: #B28238;
  --accent-dark: #8B5E13;
  --offwhite: #fff8ef;
  --brown: #8C6849;
  --green-muted: #5C8356;
  --error: #B32821;
  --shadow: rgba(44,30,8,0.13);
}

body {
  background: var(--offwhite);
  color: #4A3B28;
  font-family: 'Lato', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  letter-spacing: 0.01em;
  scroll-behavior: smooth;
}

/* === TYPOGRAPHY (Vintage/Romantic Aesthetic) === */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Roboto Slab', 'Times New Roman', serif;
  color: var(--primary);
  font-weight: 700;
}
h1 {font-size: 2.7rem; margin-bottom: 24px; letter-spacing:0.01em;}
h2 {font-size: 2rem; margin-bottom: 18px;}
h3 {font-size: 1.25rem; margin-bottom: 10px; color: var(--accent-dark);}
h4, h5, h6 {font-size: 1rem; margin-bottom: 10px;}
p, ul, ol, li, address, .note, blockquote {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  color: #4A3B28;
  line-height: 1.7;
}
.subheadline {
  font-family: 'Roboto Slab', serif;
  color: var(--accent-dark);
  font-size: 1.27rem;
  margin-bottom: 20px;
  text-shadow: 0 1px 0 #f1e8d9;
  letter-spacing: 0.03em;
}

blockquote {
  font-style: italic;
  font-size: 1.1rem;
  color: var(--brown);
  border-left: 5px solid var(--accent);
  padding-left: 16px;
  margin-bottom: 6px;
  background: #faf3ea;
  border-radius: 6px;
}

/* === LAYOUT SPACING PATTERNS (MANDATORY) === */
.section, main > section { 
  margin-bottom: 60px; 
  padding: 40px 20px; 
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  background: var(--secondary);
  border-radius: 18px;
  box-shadow: 0 4px 28px var(--shadow);
  padding: 36px 32px;
}

.text-section {
  background: #f1e8d1;
  border-radius: 16px;
  padding: 28px 28px 18px 28px;
  box-shadow: 0 3px 14px var(--shadow);
  margin-bottom: 20px;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: #f8ecde;
  border-radius: 14px;
  box-shadow: 0 2px 10px var(--shadow);
  padding: 22px 22px 14px 22px;
  min-width: 250px;
  flex: 1 0 210px;
  transition: transform 0.18s cubic-bezier(.45,.18,.23,.89), box-shadow 0.16s;
}
.feature-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 4px;
  filter: sepia(0.25) contrast(1.07) hue-rotate(-5deg);
}
.feature-item:hover {
  transform: translateY(-4px) scale(1.025) rotate(-1deg);
  box-shadow: 0 6px 26px var(--shadow);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff7eb;
  border: 2px solid var(--accent);
  border-radius: 18px;
  box-shadow: 0 3px 16px var(--shadow);
  padding: 30px 22px 24px 22px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.18s, transform 0.15s;
}
.card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 40px var(--shadow);
}

.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;
}

.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fffbe9;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 3px 14px var(--shadow);
  border-left: 8px solid var(--primary);
  position: relative;
  min-height: 70px;
  color: #222;
}
.testimonial-card blockquote {
  color: #4A3B28;
  background: transparent;
  border: none;
  padding: 0 0 0 0;
  font-size: 1.1rem;
}
.testimonial-info {
  color: var(--accent-dark);
  font-family: 'Roboto Slab', serif;
  font-size: 0.97rem;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 24px;
  margin-top: 24px;
}
.service-list .text-section {
  flex: 1 1 260px;
  background: #f7ebd8;
  border-left: 6px double var(--accent);
  box-shadow: 0 2px 10px var(--shadow);
}

.footer-brand {
  min-width: 60px;
  margin-bottom: 10px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 18px;
}
.footer-nav a {
  font-family: 'Lato', Arial, sans-serif;
  font-size: 1rem;
  color: #edd0b6;
  border-bottom: 2px dotted var(--accent);
  padding-bottom: 2px;
  transition: color 0.14s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--accent-dark);
}

address {
  font-style: normal;
  font-size: 1em;
  margin-bottom: 10px;
  color: #75603F;
}

/* === HEADER & NAVIGATION === */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary);
  color: #fff;
  padding: 18px 24px;
  position: sticky;
  top: 0;
  z-index: 28;
  box-shadow: 0 2px 18px var(--shadow);
}
.logo {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-right: 18px;
}
.logo img {
  height: 48px;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.main-nav a {
  color: #fff8ed;
  font-family: 'Roboto Slab', serif;
  font-size: 1.07rem;
  border-radius: 0;
  padding: 6px 4px;
  border-bottom: 2px solid transparent;
  letter-spacing: 0.025em;
  transition: color 0.18s, border 0.16s;
}
.main-nav a:hover,
.main-nav a:focus {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.cta-button {
  font-family: 'Roboto Slab', serif;
  font-weight: 700;
  font-size: 1.11rem;
  border-radius: 28px;
  padding: 10px 30px;
  outline: none;
  border: none;
  box-shadow: 0 3px 9px var(--shadow);
  cursor: pointer;
  transition: background 0.21s, color 0.19s, box-shadow 0.19s, transform 0.15s;
  margin-left: 22px;
  margin-right: 2px;
  letter-spacing: 0.07em;
  display: inline-block;
  position: relative;
}
.cta-button.primary {
  background: var(--accent);
  color: #fff8f0;
  border-bottom: 4px solid var(--accent-dark);
}
.cta-button.primary:hover,
.cta-button.primary:focus {
  background: var(--primary);
  color: #fffbe5;
  border-bottom: 4px solid var(--accent);
  box-shadow: 0 8px 30px #A97422aa;
  transform: translateY(-1px) scale(1.04) rotate(-2deg);
}
.cta-button.secondary {
  background: var(--secondary);
  color: var(--primary);
  border-bottom: 4px solid var(--accent);
}
.cta-button.secondary:hover,
.cta-button.secondary:focus {
  background: var(--accent);
  color: #fff;
  border-bottom: 4px solid var(--accent-dark);
}

/* === HAMBURGER MOBILE MENU === */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.3rem;
  color: #fff;
  padding: 8px 12px;
  cursor: pointer;
  line-height: 1;
  z-index: 1002;
  margin-left: 15px;
}

.mobile-menu {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #fffaf4;
  box-shadow: 0 4px 32px #2b1a1060;
  z-index: 1005;
  transform: translateX(-100vw);
  transition: transform 0.39s cubic-bezier(.77,.2,.36,1.03);
  padding: 25px 26px 22px 26px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  font-size: 2.2rem;
  color: #90460d;
  background: none;
  border: none;
  align-self: flex-end;
  margin-bottom: 16px;
  cursor: pointer;
  z-index: 1006;
  transition: color 0.16s;
}
.mobile-menu-close:hover,
.mobile-menu-close:focus {
  color: var(--primary);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}
.mobile-nav a {
  font-family: 'Roboto Slab', serif;
  font-size: 1.32rem;
  padding: 11px;
  border-radius: 9px;
  color: var(--primary);
  background: #F5E8DA;
  margin: 0 0 3px 0;
  transition: background 0.15s, color 0.14s;
  min-width: 155px;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--accent);
  color: #fff8f0;
}

/* === MOBILE FIRST: HIDE desktop nav/show mobile === */
@media (max-width: 980px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: inline-block; }
  .cta-button { margin-left: auto; /* push to right */ }
}
@media (max-width: 650px){
  header { flex-direction: column; align-items: flex-start; padding: 10px 10px; gap: 9px; }
  .logo img { height: 38px; }
  .cta-button { font-size:1rem; padding:8px 17px;}
}

/* === FOOTER === */
footer {
  background: var(--primary);
  color: #fff8ee;
  padding: 38px 12px 22px 12px;
  box-shadow: 0 -3px 20px #472c1980;
  margin-top: 60px;
}
footer .container {
  flex-direction: row;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
}
@media (max-width: 980px) {
  footer .container { flex-direction: column; gap: 18px; }
}
footer address {color: #edd0b6; margin-bottom: 6px;}

/* === GENERAL INTERACTIONS === */
a, .cta-button, .main-nav a, .mobile-nav a {
  transition: box-shadow 0.20s, background 0.13s, color 0.13s, transform 0.15s;
}

/* === CARD & FLEX LAYOUTS: ADAPTIVE FLEX ONLY === */
@media (max-width: 1000px){
  .feature-grid { gap: 20px; }
  .content-wrapper, .text-section { padding: 18px 12px; }
}
@media (max-width: 768px){
  .feature-grid, .content-grid, .card-container, .service-list, .footer-nav {
    flex-direction: column;
    gap:20px;
  }
  .section, main > section { padding: 24px 7px; }
  .content-wrapper, .text-section { margin: 0; }
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 7px;
    gap: 9px;
  }
  .footer-brand { margin-bottom: 0.5em; }
}
@media (max-width: 480px){
  h1 { font-size: 1.47rem; }
  h2 { font-size: 1.15rem; }
  h3 { font-size: 1.09rem; }
  .cta-button { font-size: 0.97rem; padding:8px 13px;}
}

/* === LISTS, UL, LI, ETC. === */
ul, ol {
  margin: 16px 0 16px 20px;
  padding: 0;
}
ul li, ol li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 24px;
  color: #493722;
  font-size:1rem;
}
ul li:before {
  content: "\25A0";
  position: absolute;
  left:0;
  top:0.31em;
  color: var(--accent);
  font-size:0.79em;
  margin-right:8px;
}
@media (max-width: 480px) {
  ul, ol { margin-left:16px; }
  ul li, ol li { padding-left: 18px; }
}

/* === ACCESSIBLE FOCUS OUTLINES === */
a:focus, button:focus, .cta-button:focus, .mobile-menu-close:focus {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
}

/* === COOKIE CONSENT BANNER: fixed bottom === */
.cookie-banner {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100vw;
  z-index: 1300;
  background: #faedda;
  color: #493722;
  box-shadow: 0 -2px 28px #684d2d2f;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 22px 20px 22px 20px;
  animation: slideInUp 0.8s cubic-bezier(.7,.11,.32,1.16);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}
.cookie-banner p {
  margin-bottom: 5px;
  font-size: 1rem;
}
.cookie-banner .cookie-btn-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.cookie-banner button {
  font-family: 'Roboto Slab', serif;
  border: none;
  font-size: 1rem;
  border-radius: 14px;
  padding: 8px 18px;
  margin-top: 0;
  margin-bottom: 0;
  cursor: pointer;
  background: var(--accent);
  color: #fffbe0;
  box-shadow: 0 2px 9px #c7a26518;
  transition: background 0.13s, color 0.12s, transform 0.14s;
}
.cookie-banner button.accept {
  background: var(--primary);
}
.cookie-banner button.reject {
  background: #b32821;
}
.cookie-banner button.setting {
  background: var(--accent);
}
.cookie-banner button:hover,
.cookie-banner button:focus {  
  background: var(--accent-dark);
  color: #fff;
}
.cookie-banner button.reject:hover,
.cookie-banner button.reject:focus {
  background: #8a1814;
}

@keyframes slideInUp {
  from { transform: translateY(64px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* === COOKIE MODAL === */
.cookie-modal {
  position: fixed;
  top: 0; left:0; right:0; bottom:0;
  width:100vw; height:100vh;
  z-index: 1355;
  background: rgba(41,43,40,0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
.cookie-modal.open { opacity:1; pointer-events:auto; }
.cookie-modal .cookie-modal-content {
  background: #fffaf3;
  color: #4A3B28;
  box-shadow: 0 7px 44px #46332355;
  border-radius: 20px;
  padding: 38px 22px;
  max-width: 98vw;
  width: 400px;
  animation: modalPop 0.32s cubic-bezier(.45,.64,.21,1.18);
  position: relative;
}
.cookie-modal-close {
  position: absolute;
  top:12px;
  right:13px;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--accent);
  cursor: pointer;
  z-index:2;
}
.cookie-modal-close:focus { color: var(--accent-dark);}
.cookie-modal-content h2 {
  font-size:1.23rem;
  margin-bottom: 18px;
  color: var(--primary);
}
.cookie-modal-content .cookie-category {
  margin-bottom: 13px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cookie-modal-content label {
  font-size:1rem;
}
.cookie-modal-content .toggle-switch {
  position: relative;
  display: inline-block;
  width: 41px; height: 22px;
}
.toggle-switch input {
  opacity: 0; width:0; height:0;
}
.toggle-slider {
  position: absolute;
  cursor:pointer;
  top:0; left:0; right:0; bottom:0;
  background: var(--secondary);
  border-radius: 22px;
  transition: background 0.21s;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--primary);
}
.toggle-slider:before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 15px; height: 15px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.17s;
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(17px);
}
@keyframes modalPop {
  0%{ transform:scale(.75); opacity:0; }
  80%{ transform:scale(1.08);} 
  100%{ transform:scale(1); opacity: 1;}
}

/* === NOSTALGIC DESIGN ELEMENTS === */
/* Subtle pattern bg to add retro feel to content cards */
.content-wrapper,.card,.testimonial-card,.text-section {
  background-image: repeating-linear-gradient(135deg, #f7eee2 0 22px, #f3e6d2 24px, transparent 30px);
  background-blend-mode: multiply;
}

/* Vintage borders & decorative underline */
h2, .subheadline {
  border-bottom: 3px double var(--accent);
  display: inline-block;
  padding-bottom: 4px;
  margin-bottom: 18px;
}

/* Decorative accent under logo */
.logo:after {
  content:'';
  display:inline-block;
  vertical-align: middle;
  width:28px; height:5px;
  border-bottom:2.5px solid var(--accent);
  border-radius: 2px; margin-left:6px;
}


/* === RESPONSIVE TYPOGRAPHY === */
@media (max-width: 540px) {
  h1 { font-size: 1.14rem; }
  h2 { font-size:0.98rem; }
  .subheadline { font-size:1rem; }
}

/* === FAQ, NOTE, ERRORS, ETC. === */
.note {
  font-size: 0.94rem;
  color: var(--error);
  margin-top: 12px;
}

/* === CUSTOM SCROLLBARS ON RETRO BGs === */
::-webkit-scrollbar {
  width: 13px;
  background: #eee8db;
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 7px;
}

/* === ANIMATIONS / MICRO-INTERACTIONS === */
.card, .feature-item, .cta-button,
.main-nav a, .footer-nav a, .mobile-nav a {
  will-change: transform, box-shadow;
}

/* === PRINT STYLES === */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display:none!important;}
  body { background:#fff; color:#222; }
}
