/* === 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;
}
/* Set display block for HTML5 elements */
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section,main {
  display: block;
}
body {
  line-height: 1.6;
  background: #F4F1DE;
  color: #264653;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 16px;
  min-height: 100vh;
}

*, *::before, *::after {
  box-sizing: inherit;
}

img, picture, video {
  max-width: 100%;
  display: block;
}
ul,ol {
  padding-left: 24px;
}

/* Typography */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  color: #264653;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.5rem; margin-bottom: 20px; line-height: 1.18; }
h2 { font-size: 2rem; margin-bottom: 16px; line-height: 1.22; }
h3 { font-size: 1.375rem; margin-bottom: 8px; line-height: 1.24; }
h4 { font-size: 1.10rem; font-weight: 600;}

p {
  margin-bottom: 16px;
  color: #264653;
  font-size: 1.05rem;
  line-height: 1.7;
}
strong, b {
  font-weight: 600;
}

a {
  color: #C2791B;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #E76F51;
  text-decoration: underline;
  outline: none;
}

/* ================= BRAND COLORS ======================== */
:root {
  --clr-primary: #264653;
  --clr-secondary: #E9C46A;
  --clr-accent: #F4F1DE;
  --clr-tertiary: #F7B267;
  --clr-warning: #E77639;
  --clr-danger: #DA5A32;
  --clr-success: #60A878;
  --clr-dark: #1C2931;
  --clr-light: #F9F7F4;
}

/* ========== LAYOUT/CONTAINER SYSTEM =============== */
.container {
  width: 100%;
  padding: 0 16px;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* =================== HEADER ==================== */
header {
  background: var(--clr-accent);
  padding: 0;
  border-bottom: 2px solid var(--clr-secondary);
  box-shadow: 0 1px 6px rgba(41, 45, 60, 0.06);
  position: relative;
}
header .container {
  min-height: 72px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}
.logo img {
  height: 48px;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(233,196,106,0.05);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.main-nav a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #264653;
  padding: 10px 10px;
  border-radius: 6px;
  transition: background 0.17s, color .17s;
}
.main-nav a:hover, .main-nav a:focus {
  background: var(--clr-secondary);
}

.button.primary {
  background: var(--clr-primary);
  color: #fff;
  border-radius: 32px;
  padding: 12px 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  box-shadow: 0 6px 32px rgba(233,196,106,.13);
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
  margin-left: 18px;
  outline: none;
}
.button.primary:hover, .button.primary:focus {
  background: #345260;
  box-shadow: 0 10px 36px rgba(233,196,106, 0.16);
  transform: translateY(-1px) scale(1.045);
}
.button.secondary {
  background: var(--clr-secondary);
  color: var(--clr-primary);
  border-radius: 32px;
  padding: 12px 32px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  box-shadow: 0 6px 32px rgba(39,30,24,0.09);
  cursor: pointer;
  margin-left: 0;
  margin-top: 20px;
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}
.button.secondary:hover, .button.secondary:focus {
  background: #E9B765;
  color: #1C2931;
  transform: translateY(-1px) scale(1.045);
  box-shadow: 0 12px 46px rgba(41,45,60, 0.12);
}
a.button {
  display: inline-block;
  text-align: center;
  text-decoration: none;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: #264653;
  cursor: pointer;
  margin-left: 16px;
}
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: #F4F1DE;
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transform: translateX(100vw);
  transition: transform 0.35s cubic-bezier(.82,.09,.45,1.07);
  box-shadow: 0 8px 36px rgba(38,70,83,.15);
  pointer-events: none;
  opacity: 0;
}
.mobile-menu.active {
  transform: translateX(0);
  pointer-events: all;
  opacity: 1;
}
.mobile-menu-close {
  font-size: 2.1rem;
  background: none;
  border: none;
  color: #E77639;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: #fdf6e2;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 40px 32px;
  gap: 16px;
}
.mobile-nav a {
  font-size: 1.25rem;
  padding: 12px 12px;
  color: #264653;
  border-radius: 7px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 500;
  width: 100%;
  transition: background 0.17s;
}
.mobile-nav a:active, .mobile-nav a:hover {
  background: var(--clr-secondary);
  color: #1C2931;
}

@media (max-width: 1000px) {
  .container {
    max-width: 92vw;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .button.primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

/* ============== HERO =================== */
.hero {
  width: 100%;
  background: linear-gradient(150deg,#F4F1DE 70%, #E9C46A 100%);
  padding: 0 0 48px 0;
  border-bottom-left-radius: 40px;
  border-bottom-right-radius: 40px;
  margin-bottom: 60px;
  box-shadow: 0 18px 44px -14px #E9C46A77;
}
.hero .container {
  min-height: 290px;
  align-items: center;
  justify-content: center;
  padding-top: 36px;
  padding-bottom: 36px;
}
.hero h1 {
  color: #264653;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.3rem;
  margin-bottom: 18px;
}
.hero p {
  font-size: 1.20rem;
  color: #264653;
  margin-bottom: 24px;
  max-width: 640px;
}

/* === SECTION STRUCTURE & SPACING (REQUIRED) === */
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 4px 24px 0 rgba(38, 70, 83, 0.07);
}
main > .hero,
.hero {
  background: linear-gradient(142deg, #FFFBEA, #FFE6A3 90%);
  border-bottom-left-radius: 38px;
  border-bottom-right-radius: 38px;
  box-shadow: 0 8px 60px -18px #E9C46AAA;
}

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

@media (max-width: 768px) {
  section, .section { padding: 28px 6px; margin-bottom: 32px; }
  .hero { padding-bottom: 18px; }
  .hero h1 { font-size: 2rem; }
}

/* ============ FEATURES / CARDS / FLEX GRIDS ============= */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  margin-bottom: 10px;
  width: 100%;
  align-items: stretch;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  padding: 28px 22px 22px 22px;
  background: #F9F7F4;
  border-radius: 20px;
  flex: 1 1 260px;
  min-width: 220px;
  box-shadow: 0 2px 15px 0 rgba(233,196,106,0.08);
  transition: box-shadow 0.18s, transform 0.15s;
  margin-bottom: 20px;
  border: 1px solid #F3DCB1;
  position: relative;
}
.feature-item img {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #FFF9E6;
  box-shadow: 0 2px 12px rgba(233,196,106,0.07);
  padding: 7px;
  margin-bottom: 4px;
}
.feature-item h3 {
  font-size: 1.125rem;
  margin-bottom: 4px;
  color: #E77639;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 700;
}
.feature-item p {
  color: #264653;
  font-size: 1rem;
}
.feature-item:hover, .feature-item:focus-within {
  box-shadow: 0 10px 30px 0 rgba(233,196,106,0.18);
  transform: translateY(-3px) scale(1.03);
}

/* Card-specific for other containers */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: 20px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 2px 12px 0 rgba(38, 70, 83, 0.06);
  padding: 32px 24px;
}
.card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

.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, .features-grid, .card-container {
    flex-direction: column;
    gap: 20px;
  }
  .feature-item, .card {
    min-width: 95%;
    width: 100%;
  }
  .text-image-section {
    flex-direction: column;
    gap: 18px;
  }
}

/* ============= TESTIMONIALS =============== */
.testimonials {
  background: #FEF8E3;
  padding: 40px 20px 30px 20px;
  border-radius: 20px;
  margin-bottom: 60px;
  box-shadow: 0 2px 14px 0 #E9C46A33;
}
.testimonials h2 {
  color: #264653;
  margin-bottom: 28px;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 32px 22px 20px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 12px #E9C46A28;
  margin-bottom: 20px;
  position: relative;
  min-height: 82px;
  border: 1px solid #F3DCB1;
  transition: box-shadow 0.18s;
}
.testimonial-card p {
  font-size: 1.08rem;
  color: #1c2931;
  font-style: italic;
  flex: 1 1 auto;
  margin-bottom: 0;
}
.testimonial-card strong {
  color: #E77639;
  font-size: 1rem;
  margin-left: auto;
  white-space: nowrap;
  font-family: 'Montserrat', Arial, sans-serif;
}
.testimonial-stars {
  display: flex;
  align-items: center;
  gap: 4px;
}
.testimonial-stars img {
  width: 22px;
  height: 22px;
  vertical-align: middle;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 8px 32px #E9C46A38;
}
@media (max-width: 768px) {
  .testimonial-card {
    flex-direction: column;
    align-items: flex-start;
    min-height: 100px;
    gap: 10px;
    padding: 18px 16px;
  }
}

/* ============== ABOUT & LEGAL SECTIONS ============== */
.about-short, .about-story, .features-brand, .services-list, .guides-tips, .inspirations-list, .gallery-projects, .contact-details-section, .why-us, .legal {
  margin-bottom: 60px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 #e9c46a13;
}

.about-short ul, .about-story ul, .legal ul {
  margin: 16px 0 0 0;
  padding-left: 20px;
  font-size: 1.08rem;
  color: #264653;
}

.callout-inspirations, .callout {
  background: linear-gradient(120deg, #FFE3B3 40%, #F4F1DE 100%);
  border-radius: 18px;
  box-shadow: 0 2px 14px #e9c46a0f;
  text-align: left;
  padding-bottom: 36px;
}
.callout h2, .callout-inspirations h2 { color: #264653; }

@media (max-width: 768px) {
  .about-short, .about-story, .features-brand, .services-list, .guides-tips, .inspirations-list, .gallery-projects, .contact-details-section, .why-us, .legal, .callout, .callout-inspirations {
    margin-bottom: 32px;
    border-radius: 14px;
    padding: 18px 8px 22px 8px;
  }
}

/* ===================== CONTACT ========================= */
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.contact-details div {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
}
.contact-details img {
  width: 20px;
  height: 20px;
}

/* ==================== FOOTER ========================= */
footer {
  background: var(--clr-accent);
  padding: 38px 0 24px 0;
  border-top: 2px solid var(--clr-secondary);
  box-shadow: 0 -1px 8px #E9C46A11;
  width: 100%;
}
footer .container {
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 52px;
}
footer a img {
  width: 54px; height: 54px; border-radius: 14px;
  box-shadow: 0 2px 10px #E9C46A11;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
}
.footer-nav a {
  color: #264653;
  font-size: 0.98rem;
  opacity: 0.95;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 6px 0;
  border-radius: 4px;
}
.footer-nav a:hover {
  background: #FFF8E1;
  color: #E77639;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 1rem;
  color: #264653;
}
.footer-contact img {
  width: 18px;
  height: 18px;
  margin-right: 5px;
}

@media (max-width: 800px) {
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}

/* =================== COOKIE CONSENT BANNER =================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  width: 100vw;
  background: #fff2d2;
  border-top: 2px solid #E9C46A;
  box-shadow: 0 -1px 30px #e9c46a14;
  z-index: 1300;
  padding: 22px 12px 12px 12px;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: center;
  min-height: 72px;
  animation: slideUpBanner 0.5s cubic-bezier(.5,1.9,.6,1) 1;
  font-size: 1.02rem;
}
@keyframes slideUpBanner {
  from { transform: translateY(90px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  margin: 0;
  color: #264653;
  max-width: 400px;
  font-size: 1rem;
}
.cookie-btn,
.cookie-settings-btn {
  padding: 8px 26px;
  border-radius: 24px;
  font-size: 1rem;
  border: none;
  background: #E9C46A;
  color: #264653;
  font-weight: bold;
  font-family: 'Montserrat', Arial, sans-serif;
  margin-left: 8px;
  margin-top: 0;
  box-shadow: 0 1px 7px 0 #E9C46A18;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.13s, color 0.13s;
}
.cookie-btn:hover, .cookie-btn:focus {
  background: #f5d290;
  color: #1C2931;
}
.cookie-reject-btn {
  background: #fff;
  color: #E77639;
  border: 1.5px solid #E77639;
  margin-left: 8px;
}
.cookie-reject-btn:hover, .cookie-reject-btn:focus {
  background: #FFE3B3;
  color: #d15324;
}
.cookie-settings-btn {
  background: #fff;
  color: #264653;
  border: 1.5px solid #E9C46A;
}
.cookie-settings-btn:hover, .cookie-settings-btn:focus {
  background: #FFEFDA;
  color: #E77639;
}

.cookie-modal {
  position: fixed;
  left: 0; top: 0; width: 100vw; height: 100vh;
  z-index: 1400;
  background: rgba(38,70,83,.34);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal.active {
  opacity: 1;
  pointer-events: all;
}
.cookie-modal-content {
  background: #fffbf3;
  border-radius: 18px;
  max-width: 420px;
  width: 95%;
  padding: 36px 28px 28px 28px;
  position: relative;
  box-shadow: 0 10px 40px 0 #e9c46a38;
  animation: modalAppear 0.27s cubic-bezier(.65,1.1,.5,1);
}
@keyframes modalAppear {
  from { transform: translateY(60px) scale(0.89); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.cookie-modal-close {
  position: absolute;
  top: 14px; right: 12px;
  font-size: 1.7rem;
  color: #E77639;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: 7px;
  transition: background 0.14s;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: #FFF8E1;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 14px 0;
  font-size: 1.07rem;
}
.cookie-category input[type=checkbox][disabled] {
  accent-color: #E9C46A;
  opacity: 0.8;
  cursor: not-allowed;
}
.cookie-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 24px;
}

@media (max-width: 540px) {
  .cookie-banner { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 6px 12px 6px; font-size: 0.99rem; }
  .cookie-modal-content { padding: 18px 10px 18px 14px; min-width: 95vw;}
}

/* =================== MISC UTILITIES ==================== */
::-webkit-input-placeholder { color: #88898a; opacity: 1; }
::-moz-placeholder { color: #88898a; opacity: 1; }
:-ms-input-placeholder { color: #88898a; opacity: 1; }
::placeholder { color: #88898a; opacity: 1; }

hr {
  border: 0;
  border-top: 1.5px solid #F6DD9E;
  margin: 16px 0 16px 0;
}

.next-steps h2 {
  margin-top: 32px;
  font-size: 1.3rem;
  color: #264653;
}
.next-steps ul {
  margin-top: 7px;
  list-style: disc inside;
  color: #49596C;
  font-size: 1.07rem;
}
.next-steps li {
  margin-bottom: 6px;
}

/* ===================== FORMS / INPUTS ================== */
form input, form textarea, form select {
  width: 100%;
  border-radius: 8px;
  border: 1.5px solid #F3DCB1;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1rem;
  background: #FDF7E8;
  color: #1C2931;
  transition: border 0.16s, box-shadow 0.16s;
}
form input:focus, form textarea:focus, form select:focus {
  border-color: #E9C46A;
  box-shadow: 0 2px 12px #e9c46a25;
  outline: none;
}
form textarea {
  min-height: 100px;
  resize: vertical;
}
form label {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 8px;
}

/* ===================== ANIMATIONS ===================== */
.button, .button.primary, .button.secondary, .feature-item, .card, .testimonial-card {
  transition: box-shadow 0.18s, background 0.21s, color 0.19s, transform 0.13s;
}

/* =============== SCROLLBAR (subtle styling) =============== */
::-webkit-scrollbar {
  width: 9px;
  background: #f4f1de;
  border-radius: 7px;
}
::-webkit-scrollbar-thumb {
  background: #e9c46a77;
  border-radius: 7px;
}
html {
  scrollbar-width: thin;
  scrollbar-color: #e9c46a77 #f4f1de;
}

/* =================== ACCESSIBILITY =================== */
:focus-visible {
  outline: 3px solid #E9C46A;
  outline-offset: 2px;
}

/* ================ UTILITIES FOR FLEX SPACING (MANDATORY) ================ */
.card-container { gap: 24px; }
.card { margin-bottom: 20px; }
.content-grid { gap: 20px; }
.text-image-section { gap: 30px; }
.testimonial-card { gap: 20px; padding: 20px; }
.feature-item { gap: 15px; }
.section { margin-bottom: 60px; padding: 40px 20px; }

/* ============== PRINT FRIENDLY ============== */
@media print {
  header, footer, .cookie-banner, .mobile-menu, .mobile-menu-toggle { display: none !important; }
  section { box-shadow: none !important; }
}
