/* 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, main, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section {
  display: block;
}
body {
  line-height: 1.5; background: #fff; color: #332e29;
}
*, *:before, *:after { box-sizing: border-box; }
a { color: inherit; text-decoration: none; }
img { border: 0; max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

/* BRAND FONTS */
@import url('https://fonts.googleapis.com/css?family=Playfair+Display:700,900&display=swap');
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,600,700&display=swap');

body {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  background: #fbf9f6;
}
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: #332e29;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.7rem; line-height: 1.1; }
h2 { font-size: 2rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.125rem; }
p, ul, ol, li {
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1.7;
}
p {
  margin-bottom: 18px;
  font-size: 1rem;
}
strong {
  font-weight: 700;
}

/* Universal container spacing */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 3px 20px 0 rgba(51,46,41,0.05);
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.text-section, .text-image-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.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;
    gap: 18px;
  }
}

/* MAIN MENU & HEADER */
header {
  width: 100%;
  background: #fff;
  box-shadow: 0 6px 24px 0 rgba(230,210,170,0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 16px 0 16px 0;
  z-index: 1002;
}
header .main-menu {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-left: 36px;
}
header .main-menu a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #332e29;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  position: relative;
}
header .main-menu a:hover,
header .main-menu a:focus {
  background: #e9e0d1;
  color: #a6947a;
}

header .cta-btn {
  background: #a6947a;
  color: #fff;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 22px;
  font-size: 1.1rem;
  margin-left: 32px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.16s;
  box-shadow: 0 2px 12px 0 rgba(166,148,122, 0.11);
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
}
header .cta-btn:hover, header .cta-btn:focus {
  background: #332e29;
  color: #fff;
  box-shadow: 0 2px 24px 0 #a6947a44;
  transform: translateY(-2px) scale(1.05);
}

header img[alt="Pensive Barn Studio"] {
  height: 48px;
}

/* BURGER MENU for mobile */
.mobile-menu-toggle {
  display: none;
  background: #a6947a;
  color: #fff;
  font-size: 2.1rem;
  border: none;
  border-radius: 20px;
  padding: 4px 10px;
  margin-left: 18px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
  background: #e9e0d1;
  color: #a6947a;
  transform: scale(1.14);
}
@media (max-width: 1024px) {
  header .main-menu, header .cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: #fff;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(.4,1,.4,1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100vw;
  height: 100vh;
  padding-top: 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.5rem;
  background: none;
  border: none;
  color: #a6947a;
  position: absolute;
  right: 22px;
  top: 20px;
  z-index: 2010;
  cursor: pointer;
  transition: color 0.2s, transform 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: #e77c53;
  transform: scale(1.12);
}
.mobile-nav {
  margin-top: 60px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-left: 30px;
}
.mobile-nav a {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  color: #332e29;
  padding: 7px 0;
  border-radius: 10px;
  transition: background 0.18s, color 0.18s, transform 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #e9e0d1;
  color: #a6947a;
  transform: translateX(5px);
}

/* Utility Responsive Containers */
@media (max-width: 600px) {
  .container { padding-left: 10px; padding-right: 10px; }
  .section { padding: 30px 6px; margin-bottom: 38px; }
}

/* CARD CONTAINERS (FLEX ONLY) */
.card-container,
.card-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  box-shadow: 0 4px 16px 0 rgba(230,210,170,0.16);
  border-radius: 24px;
  padding: 30px 24px 24px 24px;
  transition: box-shadow 0.2s, transform 0.13s;
  margin-bottom: 20px;
  position: relative;
  min-width: 250px;
  flex: 1 1 300px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 32px 0 #a6947a30;
  transform: translateY(-2px) scale(1.019);
}

/* Service list (index/services) */
.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;
  margin: 12px 0 0 0;
}
.service-list li {
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 320px;
  background: #fffefd;
  border: 2.5px solid #e9e0d1;
  border-radius: 20px;
  box-shadow: 0 3px 14px 0 rgba(230,210,170,0.10);
  padding: 22px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  transition: box-shadow 0.24s, border-color 0.22s, transform 0.17s;
}
.service-list li:hover, .service-list li:focus-within {
  border-color: #ffbe4c;
  box-shadow: 0 7px 24px 0 #ffe27e33;
  transform: scale(1.02) translateY(-3px) rotate(-1deg);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: #ffe27e;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 7px;
  animation: bounceIn 0.7s 1;
}
.feature-icon img {
  width: 24px; height: 24px;
}
@keyframes bounceIn {
  0%   { transform: scale(0.7); opacity: 0; }
  60%  { transform: scale(1.10); opacity: 1; }
  100% { transform: scale(1.0); }
}

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

/* Buttons & CTA */
.cta-btn {
  background: #ffbe4c;
  color: #332e29;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 22px;
  font-size: 1.14rem;
  margin-top: 8px;
  margin-bottom: 8px;
  transition: background 0.18s, box-shadow 0.22s, color 0.15s, transform 0.13s;
  box-shadow: 0 2px 12px 0 #ffd46b55;
  border: none;
  cursor: pointer;
  letter-spacing: 0.03em;
  display: inline-block;
  animation: ctaPulse 1.25s cubic-bezier(.3,1.6,.4,1) infinite alternate;
}
.cta-btn:hover, .cta-btn:focus {
  background: #e77c53;
  color: #fff;
  box-shadow: 0 4px 26px 0 #ffbe4c44;
  transform: scale(1.06) translateY(-2px) rotate(-1.5deg);
}
@keyframes ctaPulse {
  0%   { box-shadow: 0 2px 14px 0 #ffd46b55; }
  100% { box-shadow: 0 8px 38px 0 #ffbe4c66; }
}

/* Tagline */
.tagline {
  display: inline-block;
  background: #ffe27e;
  color: #a6947a;
  padding: 4px 15px;
  border-radius: 14px;
  font-family: 'Playfair Display', Georgia, serif;
  margin-left: 7px;
  font-size: 1.01rem;
  font-style: italic;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

/* Pricing Table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 26px;
  margin-top: 16px;
}
.pricing-table th, .pricing-table td {
  padding: 13px 14px;
  border-bottom: 2px solid #e9e0d1;
  text-align: left;
  font-size: 1rem;
}
.pricing-table th {
  background: #ffe27e;
  color: #332e29;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.pricing-table tr:nth-child(even) td {
  background: #fff9ed;
}

/* Testimonial Cards */
.testimonials-section {
  margin-bottom: 60px;
  padding: 40px 0 20px 0;
}
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  background: #fffde9;
  border: 2.3px solid #ffd46b;
  border-radius: 18px;
  padding: 20px 28px;
  margin-bottom: 20px;
  box-shadow: 0 2px 14px 0 #ffd46b22;
  position: relative;
  min-width: 210px;
  max-width: 600px;
  color: #332e29;
  font-size: 1.07rem;
  transition: box-shadow 0.18s, border-color 0.17s, transform 0.17s;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  border-color: #e77c53;
  box-shadow: 0 5px 22px 0 #ffbe4c33;
  transform: translateY(-2px) scale(1.018) rotate(0.5deg);
  animation: testimonialShake 1.4s cubic-bezier(.3,1.2,.4,1.2) 1;
}
@keyframes testimonialShake {
  0% { transform: translateY(-2px) scale(1.018) rotate(0.5deg); }
  15% { transform: translateY(-5px) scale(1.03) rotate(-1deg); }
  30% { transform: translateY(1px) scale(1.01) rotate(1deg); }
  40% { transform: translateY(-2px) scale(1.018) rotate(-2.5deg); }
  100% { transform: translateY(-2px) scale(1.018) rotate(0.5deg); }
}
.testimonial-card p { color: #332e29; font-size: 1.13rem; font-style: italic; }
.testimonial-card span { color: #a6947a; font-size: .99rem; font-weight: 600; margin-top: 4px; }

/* Footer */
footer {
  width: 100%; background: #332e29; color: #e9e0d1; padding: 0 0 0 0;
}
footer .container { padding: 0 16px; }
.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 36px 0 18px 0;
}
.footer-main-menu, .footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-main-menu a, .footer-links a {
  color: #ffe27e;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 3px 0;
  border-radius: 5px;
  transition: color 0.16s, background 0.16s;
}
.footer-main-menu a:hover, .footer-links a:hover, .footer-main-menu a:focus, .footer-links a:focus {
  color: #e77c53;
  background: #ffe27e22;
}
.social-links { display: flex; align-items: center; gap: 15px; }
.social-links a {
  display: flex;
  background: #ffe27e;
  border-radius: 12px;
  padding: 7px;
  transition: box-shadow 0.18s, transform 0.13s;
}
.social-links a:hover, .social-links a:focus {
  box-shadow: 0 4px 18px 0 #ffd46b66;
  transform: scale(1.09) rotate(-5deg);
}
.brand-footer-logo img {
  max-height: 38px;
  margin-top: 10px;
  margin-left: 7px;
}
@media (max-width: 900px) {
  .footer-content { gap: 20px; flex-direction: column; align-items: flex-start; }
}

/* Sections & Breathing Room */
section {
  margin-bottom: 60px; padding: 40px 20px; border-radius: 32px;
}
.about-section, .testimonials-section, .contact-section, .why-us-section, .about-philosophy, .team-section, .services-detailed, .decor-concepts-section, .project-list-section, .featured-topics-section, .contact-info-section, .contact-form-section {
  margin-bottom: 60px; padding: 40px 20px; border-radius: 32px;
}
@media (max-width: 768px) {
  section, .about-section, .testimonials-section, .contact-section, .why-us-section, .about-philosophy, .team-section, .services-detailed, .decor-concepts-section, .project-list-section, .featured-topics-section, .contact-info-section, .contact-form-section {
    margin-bottom: 34px;
    padding: 24px 6px 24px 6px;
    border-radius: 20px;
  }
}

/* Blog & Gallery */
.blog-articles-section ul, .featured-topics-section ul, .decor-concepts-section ul {
  list-style: circle inside;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 10px; margin: 12px 0 10px 0;
}
.blog-categories, .style-tips, .featured-posts {
  margin-top: 20px;
}
.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
  padding-left: 0;
}
.topic-tags li {
  background: #ffe27e;
  color: #a6947a;
  border-radius: 16px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  padding: 6px 18px;
  font-size: 1rem;
  margin-right: 0;
  margin-bottom: 6px;
}

/* Map Placeholder (Contact) */
.map-placeholder {
  background: #e9e0d1;
  color: #332e29;
  padding: 24px 15px;
  border-radius: 18px;
  font-style: italic;
  margin-top: 12px;
}

/* Animations for playful_dynamic */
@keyframes wiggle {
  0% { transform: rotate(-2deg) scale(1.02); }
  20% { transform: rotate(1.3deg) scale(1.03); }
  60% { transform: rotate(-0.7deg) scale(1.04); }
  100% { transform: rotate(0deg) scale(1.02); }
}

h1, h2 {
  animation: wiggle 1.3s cubic-bezier(.35,1.6,.4,1.3) 1;
}

/* Responsive Flex for Grids */
.content-grid {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between;
}
.card-content {
  display: flex; flex-direction: column; justify-content: center;
}

/* TABLET & MOBILE RESPONSIVE ADJUSTMENTS */
@media (max-width: 900px) {
  .service-list, .card-container, .card-grid, .content-grid {
    gap: 16px;
  }
  .service-list li, .card {
    min-width: 180px;
    max-width: 97vw;
  }
}
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  .content-wrapper {
    gap: 14px;
  }
  .service-list {
    flex-direction: column;
    gap: 14px;
  }
}

/* COOKIE CONSENT BANNER */
#cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: #ffe27e;
  color: #332e29;
  box-shadow: 0 -2px 16px 0 #ffa91b44;
  padding: 22px 20px 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  z-index: 2080;
  font-size: 1rem;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  animation: slideUpBanner 0.6s cubic-bezier(.41,1.4,.5,1);
}
@keyframes slideUpBanner {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
#cookie-consent-banner p {
  flex: 1 1 auto;
  margin-right: 20px;
}
.cookie-btn {
  background: #e77c53;
  color: #fff;
  border: none;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 18px;
  padding: 11px 24px;
  margin-right: 8px;
  margin-top: 0; margin-bottom: 0;
  cursor: pointer;
  transition: background 0.15s, color 0.14s, transform 0.1s;
  box-shadow: 0 1px 8px 0 #e77c5344;
}
.cookie-btn:last-child { margin-right: 0; }
.cookie-btn:hover, .cookie-btn:focus {
  background: #332e29;
  color: #ffe27e;
  transform: scale(1.06);
}
.cookie-settings-btn {
  background: #332e29; color: #ffe27e;
  border: none;
  font-weight: 600;
  margin-left: 8px;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #ffbe4c; color: #332e29;
}
@media (max-width: 650px) {
  #cookie-consent-banner { flex-direction: column; align-items: stretch; gap: 12px; }
  #cookie-consent-banner p { margin-right: 0; }
}

/* COOKIE MODAL */
#cookie-modal {
  display: none;
  position: fixed;
  left: 0; right: 0; top: 0; bottom: 0;
  background: rgba(51,46,41,0.44);
  z-index: 2100;
  justify-content: center;
  align-items: center;
  animation: fadeInModalBg 0.3s cubic-bezier(.41,1.2,.5,1);
}
#cookie-modal.open {
  display: flex;
}
@keyframes fadeInModalBg {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.cookie-modal-content {
  background: #fffde9;
  color: #332e29;
  min-width: 300px;
  max-width: 430px;
  border-radius: 18px;
  box-shadow: 0 8px 36px 0 #ffd46b66;
  padding: 30px 22px 26px 22px;
  animation: slideDownModal 0.27s cubic-bezier(.55,1.4,.7,1.1);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}
@keyframes slideDownModal {
  from { transform: translateY(-40px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-modal-content h3 {
  margin-bottom: 8px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.28rem;
  color: #e77c53;
}
.cookie-categories {
  margin-top: 8px;
  width: 100%;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.cookie-category label {
  font-size: 1rem;
  color: #a6947a;
  font-weight: 600;
}
/* Cookie switches */
.cookie-toggle {
  appearance: none;
  width: 40px; height: 22px;
  border-radius: 22px;
  background: #ffeea0;
  outline: none;
  position: relative;
  cursor: pointer;
  vertical-align: middle;
  transition: background 0.16s;
}
.cookie-toggle:checked {
  background: #e77c53;
}
.cookie-toggle:before {
  content: '';
  display: block;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px 0 #ffd46b55;
  position: absolute;
  left: 2px; top: 2px;
  transition: left 0.18s;
}
.cookie-toggle:checked:before {
  left: 20px;
}
/* Cookie Modal Close */
.cookie-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: none;
  color: #a6947a;
  border: none;
  font-size: 1.7rem;
  cursor: pointer;
  transition: color 0.19s, transform 0.13s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  color: #e77c53;
  transform: scale(1.1);
}
.cookie-save-btn, .cookie-cancel-btn {
  background: #ffbe4c;
  color: #332e29;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
  border-radius: 15px;
  padding: 10px 20px;
  margin-right: 15px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.cookie-save-btn:hover, .cookie-save-btn:focus {
  background: #e77c53;
  color: #fff;
}
.cookie-cancel-btn {
  background: #332e29;
  color: #ffe27e;
  margin-right: 0;
}
.cookie-cancel-btn:hover, .cookie-cancel-btn:focus {
  background: #ffbe4c;
  color: #332e29;
}

/* ACCENT COLORS FOR INTERACTIVE / FUN ELEMENTS */
::-webkit-selection { background: #ffe27e; color: #a6947a; }
::selection { background: #ffe27e; color: #a6947a; }

/* Fun Bubble Dots (optional, for playful accent) */
.bubble-dot {
  width: 18px; height: 18px;
  background: #e77c53;
  border-radius: 100%;
  position: absolute;
  z-index: 3;
  animation: floatBubble 2.8s infinite alternate cubic-bezier(.4,0,.7,1.1);
}
@keyframes floatBubble {
  0% { transform: translateY(0) scale(1); opacity: 0.5; }
  70% { transform: translateY(-12px) scale(1.08); opacity: 0.89; }
  100% { transform: translateY(-24px) scale(0.93); opacity: 0.52; }
}

/* Accessibility */
:focus { outline: 2.5px solid #ffbe4c; outline-offset: 2px; }

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
  background: #ffe27e;
}
::-webkit-scrollbar-thumb {
  background: #e77c53;
  border-radius: 9px;
}

/* END */
