:root {
    --font-serif: 'Lora', serif;
    --font-script: 'Caveat', cursive;
    --color-cream: #F5EFE6;
    --color-terracotta: #E8A07E;
    --color-chocolate: #5D4037;
    --color-warm-grey: #A1887F;
    --color-dark-text: #3E2723;
    --color-light-text: #FAF3E0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-serif);
    background-color: var(--color-cream);
    color: var(--color-dark-text);
    line-height: 1.7;
    font-size: 16px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    line-height: 1.3;
}

h1 {
    font-family: var(--font-script);
    font-size: 4rem;
    color: var(--color-chocolate);
}

.section-title {
    font-family: var(--font-script);
    font-size: 3rem;
    color: var(--color-chocolate);
    text-align: center;
    margin-bottom: 50px;
}

section {
    padding: 80px 0;
}

.btn {
    display: inline-block;
    background-color: var(--color-terracotta);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.btn:hover {
    background-color: #d88f6d;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-chocolate);
    border: 2px solid var(--color-chocolate);
}

.btn-secondary:hover {
    background-color: var(--color-chocolate);
    color: white;
}

.btn-light {
    background-color: var(--color-cream);
    color: var(--color-chocolate);
}

.btn-light:hover {
     background-color: #e4dccc;
}

/* Header */
.site-header {
    background-color: #f5efe6e0;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
    border-bottom: 1px solid #e4dccc;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo svg text {
    transition: fill 0.3s;
}

.logo:hover svg text:first-child {
    fill: var(--color-terracotta);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-dark-text);
    font-weight: 600;
    position: relative;
    padding-bottom: 5px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="5_5" viewBox="0 0 100 5.5"><path d="M0 3.5 C 25 1, 75 5, 100 2.5" stroke="%23E8A07E" stroke-width="2" fill="none"/></svg>');
    background-repeat: repeat-x;
    transition: width 0.4s ease-in-out;
}

.main-nav a:hover::after, .main-nav a.active::after {
    width: 100%;
}

.burger-menu {
    display: none;
    background: none; border: none; cursor: pointer;
}

/* Hero */
.hero {
    padding-top: 60px;
    padding-bottom: 100px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text { flex: 1; }
.hero-text h1 { margin-bottom: 20px; }
.hero-text p { font-size: 1.2rem; margin-bottom: 30px; }

.hero-image-wrapper {
    flex-basis: 45%;
    position: relative;
}

.polaroid {
    background-color: white;
    padding: 15px 15px 60px 15px;
    box-shadow: 5px 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.hero-polaroid-1 {
    transform: rotate(4deg);
}

.polaroid:hover {
    transform: rotate(0) scale(1.05);
}

.polaroid img {
    width: 100%;
    display: block;
}

.polaroid figcaption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-script);
    font-size: 1.5rem;
}

.washi-tape {
    position: absolute;
    width: 100px;
    height: 30px;
    background-color: #e8a07e88;
    box-shadow: 0 1px 1px rgba(0,0,0,0.2);
    opacity: 0.8;
}

.washi-tape-1 {
    top: -15px;
    left: 50%;
    transform: translateX(-50%) rotate(-3deg);
}

.hand-drawn-arrow {
    position: absolute;
    width: 100px; height: 80px;
    bottom: -60px; right: -40px;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="100" height="80" viewBox="0 0 100 80" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.5 76.5C11.1667 45.3333 46.5 -17.5 96.5 7.5" stroke="%23E8A07E" stroke-width="4" stroke-linecap="round"/><path d="M82.5 16.5L97 7L91.5 0.5" stroke="%23E8A07E" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
}

/* Manifesto */
.manifesto {
    background-color: #fff;
}
.manifesto blockquote {
    font-family: var(--font-script);
    font-size: 2.8rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}
.quote-mark {
    font-size: 8rem;
    color: var(--color-terracotta);
    position: absolute;
    line-height: 1;
}
.start-quote { top: -20px; left: -40px; }
.end-quote { bottom: -20px; right: -40px; }

/* Services Preview */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.paper-card {
    background-color: #fff;
    padding: 30px;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.08);
    position: relative;
    border: 1px solid #eee;
    transition: transform 0.3s, box-shadow 0.3s;
}
.paper-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 5px 5px 15px rgba(0,0,0,0.12);
}
.paper-card .washi-tape {
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.paper-card h3 { font-family: var(--font-script); font-size: 2rem; margin-bottom: 10px; }
.paper-card a { text-decoration: none; color: var(--color-terracotta); font-weight: bold; margin-top: 15px; display: inline-block; }

/* About Preview */
.about-preview-content {
    display: flex;
    align-items: center;
    gap: 50px;
}
.scrapbook-layout { flex: 1; position: relative; height: 400px; }
.about-preview-text { flex: 1; }

.scrapbook-layout img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 10px solid white;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
}

.scrapbook-image-1, .scrapbook-image-2 { position: absolute; width: 70%; height: 70%; }
.scrapbook-image-1 { top: 0; left: 0; transform: rotate(-8deg); z-index: 1; }
.scrapbook-image-2 { bottom: 0; right: 0; transform: rotate(5deg); }

.tape-corner {
    position: absolute;
    width: 50px;
    height: 25px;
    background-color: #e8a07e55;
    opacity: 0.7;
}
.tl { top: -10px; left: -10px; transform: rotate(-45deg); }
.tr { top: -10px; right: -10px; transform: rotate(45deg); }
.bl { bottom: -10px; left: -10px; transform: rotate(45deg); }
.br { bottom: -10px; right: -10px; transform: rotate(-45deg); }

/* Process Section */
.process-path-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 20px 0;
}
.process-path-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    width: 80%;
    height: 4px;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="100" height="5_5" viewBox="0 0 100 5.5"><path d="M0 3.5 C 25 1, 75 5, 100 2.5" stroke="%23E8A07E" stroke-width="2" fill="none" stroke-dasharray="5,5"/></svg>');
    z-index: -1;
}

.process-step {
    flex-basis: 23%;
}

.sticky-note {
    background-color: #FFFACD;
    padding: 20px;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}
.sticky-note:hover { transform: scale(1.05) rotate(2deg); }
.sticky-note h4 { font-family: var(--font-script); font-size: 1.5rem; margin-bottom: 10px; }

.process-step:nth-child(even) .sticky-note { transform: rotate(-2deg); background-color: #d8f4ff; }
.process-step:nth-child(odd) .sticky-note { transform: rotate(2deg); margin-top: 10px; }

/* Stats Section */
.stats-section { background-color: #fff; }
.stats-section .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}
.stat-circle {
    width: 150px; height: 150px;
    border-radius: 50%;
    background-color: var(--color-terracotta);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: bold;
    font-family: var(--font-serif);
    margin: 0 auto 15px;
    transition: transform 0.3s;
}
.stat-item:hover .stat-circle { transform: scale(1.1); }
.stat-item p { font-size: 1.1rem; color: var(--color-chocolate); }

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.postcard {
    background-color: #fffaf0;
    padding: 25px;
    border: 1px solid #eee;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.07);
    position: relative;
    font-style: italic;
}
.postcard::before {
    content: '';
    position: absolute;
    right: 20px;
    bottom: 10px;
    width: 100px; height: 1px;
    background: #ccc;
    transform: rotate(45deg);
}
.postcard cite { display: block; text-align: right; margin-top: 15px; font-family: var(--font-script); font-size: 1.3rem; font-style: normal; }

.stamp {
    position: absolute;
    top: 15px; right: 15px;
    width: 50px; height: 60px;
    border: 2px dashed var(--color-warm-grey);
}

/* FAQ Preview */
.faq-preview { background-color: white; }
.notebook-accordion {
    max-width: 800px;
    margin: 0 auto;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 20px;
    background-image: repeating-linear-gradient(#F5EFE6 0px, #F5EFE6 29px, #A1887F44 30px);
}
.accordion-item { border-bottom: 1px solid #ddd; }
.accordion-header {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 15px 0;
    font-size: 1.2rem;
    font-family: var(--font-serif);
    font-weight: bold;
    cursor: pointer;
    position: relative;
    padding-right: 30px;
}
.accordion-header::after {
    content: '+';
    position: absolute;
    right: 0; top: 15px;
    font-size: 1.5rem;
    color: var(--color-terracotta);
    transition: transform 0.3s;
}
.accordion-header.active::after { transform: rotate(45deg); }
.accordion-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.accordion-content p { padding: 0 0 15px 10px; }

/* Blog Preview */
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.journal-entry { background: #fff; box-shadow: 2px 2px 8px rgba(0,0,0,0.07); display: flex; }
.journal-entry img { width: 40%; object-fit: cover; }
.journal-content { padding: 20px; }
.journal-content h3 { font-size: 1.3rem; margin-bottom: 10px; }
.journal-content a { text-decoration: none; color: var(--color-terracotta); font-weight: bold; margin-top: 10px; display: inline-block; }

/* CTA Section */
.cta-section {
    background-color: var(--color-terracotta);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-decoration {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.2;
    width: 300px;
}
.cta-section h2 { font-family: var(--font-script); font-size: 3rem; margin-bottom: 15px; }
.cta-section p { max-width: 600px; margin: 0 auto 30px auto; }

/* Footer */
.site-footer-dark {
    background-color: var(--color-chocolate);
    color: var(--color-light-text);
    padding: 25px 20px 0;
    font-size: 0.85rem;
    min-height: auto !important;
    height: auto !important;
    max-height: none !important;
}

.site-footer-dark > .container {
    min-height: auto !important;
    height: auto !important;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
    gap: 20px;
    margin-bottom: 15px;
    align-items: start;
    min-height: auto !important;
    height: auto !important;
}

.footer-title {
    font-family: var(--font-script);
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--color-terracotta);
}

.footer-col p {
    margin-bottom: 8px;
    line-height: 1.4;
}

.footer-col a {
    color: var(--color-light-text);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-col a:hover { color: var(--color-terracotta); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 5px; }

.footer-col address {
    font-style: normal;
    line-height: 1.5;
}

.footer-bottom {
    border-top: 1px solid #73554a;
    padding: 12px 0;
    text-align: center;
    font-size: 0.75rem;
}

/* Pages: Services, About, Contact, Legal */
.page-hero {
    background-color: #e4dccc;
    padding: 60px 0;
    text-align: center;
}
.page-hero h1 { margin-bottom: 10px; }

.service-detail { padding: 60px 0; border-bottom: 1px solid #e4dccc; }
.service-detail.alt-layout .service-detail-grid { grid-template-areas: 'image text'; }
.service-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; grid-template-areas: 'text image'; }
.service-text { grid-area: text; }
.service-image { grid-area: image; }
.service-detail img { width: 100%; border-radius: 5px; box-shadow: 3px 3px 10px rgba(0,0,0,0.1); }
.service-detail h3 { font-family: var(--font-script); font-size: 2.5rem; color: var(--color-chocolate); margin-bottom: 15px; }
.service-detail ul { list-style-position: inside; padding-left: 10px; margin-top: 15px; }
.service-detail ul li { margin-bottom: 5px; }

.content-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: center; }
.content-text p { margin-bottom: 15px; }
.content-image img { width: 100%; border-radius: 5px; }

.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; text-align: center; }
.value-item { background: #fff; padding: 30px; }
.value-item h3 { font-family: var(--font-script); color: var(--color-terracotta); font-size: 2rem; }

.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.team-member { text-align: center; }
.team-member img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; margin-bottom: 15px; }
.team-member h4 { font-size: 1.4rem; }
.team-member span { color: var(--color-warm-grey); display: block; margin-bottom: 10px; }

.contact-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}
.contact-image { width: 100%; margin-bottom: 20px; }
.contact-details-wrapper address p { margin-bottom: 15px; }

.map-placeholder { width: 100%; height: 400px; background: #e4dccc; display: flex; flex-direction: column; align-items: center; justify-content: center; }

.legal-page .container { max-width: 800px; }
.legal-page h1, .legal-page h2 { margin-top: 30px; margin-bottom: 15px; }
.legal-page p, .legal-page li { margin-bottom: 10px; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.legal-page th, .legal-page td { border: 1px solid #ddd; padding: 8px; text-align: left; }
.legal-page th { background-color: #f2f2f2; }

/* 404 Page */
.not-found-page { padding: 100px 0; text-align: center; }
.not-found-code { font-size: 10rem; font-weight: bold; color: var(--color-terracotta); line-height: 1; }
.not-found-content h1 { font-size: 3rem; margin-bottom: 20px; }
.not-found-content p { max-width: 500px; margin: 0 auto 30px auto; }

/* Responsive */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 15px; }
    .footer-title { font-size: 1.3rem; }
    .about-preview-content, .service-detail-grid, .content-grid, .contact-grid { grid-template-columns: 1fr; text-align: center; }
    .scrapbook-layout { height: 300px; margin-bottom: 30px; }
    .service-detail.alt-layout .service-detail-grid, .service-detail-grid { grid-template-areas: 'text' 'image'; }
    .service-image { order: -1; }
    .process-path-container { flex-direction: column; gap: 20px; align-items: center; }
    .process-path-container::before { display: none; }
    .blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    h1 { font-size: 3rem; }
    .section-title { font-size: 2.5rem; }

    .main-nav { display: none; }
    .burger-menu { display: block; }
    .main-nav.active { display: block; position: absolute; top: 100%; left: 0; background: var(--color-cream); width: 100%; padding: 20px; text-align: center; }
    .main-nav.active ul { flex-direction: column; }
    .hero-content { flex-direction: column; }
    .stats-section .container { flex-direction: column; gap: 30px; }
    .manifesto blockquote { font-size: 2rem; }
    .quote-mark { font-size: 5rem; }
    .start-quote { left: -10px; }
    .end-quote { right: -10px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 15px; }
    .journal-entry { flex-direction: column; }
    .journal-entry img { width: 100%; height: 200px; }
}

@media (max-width: 576px) {
    .services-grid { grid-template-columns: 1fr; }
    .polaroid { padding: 10px 10px 50px 10px; }
    .polaroid figcaption { font-size: 1.2rem; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 20px; }
}

.map-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 3px 3px 10px rgba(0,0,0,0.1);
}
.map-container iframe {
    display: block;
}

.map-section {
    padding: 60px 0;
}

/* Disclaimer */
.footer-disclaimer {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}
/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #e0e0e0;
    padding: 1.5rem;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    transition: bottom 0.5s ease;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}
.cookie-banner.show { bottom: 0; }
.cookie-banner__content { text-align: center; max-width: 600px; font-size: 0.9rem; color: #333; }
.cookie-banner__content a { color: var(--color-primary, #007bff); }
.cookie-banner__actions { display: flex; gap: 1rem; }
.cookie-banner__actions button { 
    padding: 0.75rem 1.5rem; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
    font-size: 0.9rem; 
    transition: all 0.3s ease; 
}
.cookie-banner__actions button:first-child { background: var(--color-primary, #007bff); color: white; }
.cookie-banner__actions button:last-child { background: #f0f0f0; color: #333; }
@media (max-width: 768px) { .cookie-banner { flex-direction: column; text-align: center; } }
