/* RESET & NORMALIZE */
html {
  box-sizing: border-box;
  font-size: 16px;
  scroll-behavior: smooth;
}
*, *:before, *:after {
  box-sizing: inherit;
  margin: 0;
  padding: 0;
}
body {
  background: #faf7f0;
  color: #2B5065;
  font-family: 'Roboto', Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}
ul, ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}
a {
  color: #D16A28;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #B34D0F;
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

/* BRAND COLORS (CSS Vars) */
:root {
  --primary: #2B5065;
  --secondary: #EADAB2;
  --accent: #D16A28;
  --accent-dark: #B34D0F;
  --white: #FFF;
  --off-white: #faf7f0;
  --black: #181818;
  --shadow: 0 4px 24px 0 rgba(43,80,101,0.10);
  --radius: 18px;
}

/* TYPOGRAPHY & ARTISTIC FONTS */
h1, h2, h3, h4 {
  font-family: 'Montserrat', 'Roboto', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--primary);
}
h1 { font-size: 2.4rem; line-height: 1.15; margin-bottom: 0.5em; }
h2 { font-size: 1.7rem; line-height: 1.2; margin-bottom: 0.7em; }
h3 { font-size: 1.2rem; line-height: 1.3; margin-bottom: 0.5em; }
h4 { font-size: 1rem; margin-bottom: 0.5em; }

p, ul, ol, li { font-size: 1rem; margin-bottom: 1.25em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

strong, b { font-weight: 700; }

/* CONTAINER AND LAYOUTS */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* FLEX LAYOUTS */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
  flex: 1 1 280px;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: transform 0.18s cubic-bezier(.4,0,.2,1), box-shadow 0.18s;
}
.card:hover, .card:focus-within {
  transform: translateY(-3px) scale(1.03) rotate(-1deg);
  box-shadow: 0 8px 32px 0 rgba(209,106,40,.13);
}
.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;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--secondary);
  box-shadow: var(--shadow);
  border-radius: 22px;
  margin-bottom: 20px;
  min-width: 260px;
  max-width: 420px;
  position: relative;
  border-left: 7px solid var(--accent);
}
.testimonial-card.featured {
  border-left: 7px solid var(--primary);
  background: #FFF3EA;
  box-shadow: 0 4px 24px 0 rgba(209,106,40,.18);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* HERO */
.hero {
  background: linear-gradient(112deg, var(--secondary) 60%, #fffbe2 100%);
  padding-top: 62px;
  padding-bottom: 60px;
}
.hero .content-wrapper {
  align-items: flex-start;
  gap: 22px;
  max-width: 630px;
}

/* FEATURES */
.features ul.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin: 32px 0 0 0;
  list-style: none;
}
.features ul.feature-grid li {
  background: linear-gradient(96deg, #fff, #fadbd6 110%);
  flex: 1 1 210px;
  min-width: 195px;
  max-width: 266px;
  border-radius: 19px;
  box-shadow: var(--shadow);
  padding: 28px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
  transition: box-shadow .17s, transform .17s;
  position: relative;
  margin-bottom: 20px;
  border-left: 6px solid var(--primary);
}
.features ul.feature-grid li:hover {
  box-shadow: 0 12px 36px 0 rgba(209,106,40,.15);
  transform: translateY(-2px) scale(1.02);
}
.features ul.feature-grid img {
  width: 38px;
  height: 38px;
  margin-bottom: 8px;
}

/* ABOUT SECTION */
.about-highlight, .about, .team-introduction, .why-choose-us {
  background: linear-gradient(88deg, #fff 80%, #f9eed9 100%);
}
.text-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}
.text-section ul {
  list-style: disc inside;
  margin-bottom: 14px;
}
.text-section li {
  margin-bottom: 6px;
}

/* SERVICES */
.services-overview .service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 18px;
}
.services-overview .service-card {
  background: #fff;
  border-radius: 17px;
  box-shadow: var(--shadow);
  padding: 26px 20px 18px 20px;
  flex:1 1 225px;
  min-width: 180px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 20px;
  transition: box-shadow .16s, transform .16s;
}
.services-overview .service-card:hover {
  box-shadow: 0 8px 32px 0 rgba(43,80,101,0.12);
  transform: scale(1.04) rotate(0.5deg);
}
.services-overview .service-card img {
  width: 42px;
  height: 42px;
  margin-bottom: 8px;
}

.services ul {
  list-style: none;
}
.services ul li {
  background: #fffbe8;
  border-radius: 14px;
  padding: 20px 19px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(209,106,40,.08);
  border-left: 6px solid var(--primary);
}

.process ol {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: none;
  margin-top: 18px;
}
.process ol li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  padding: 16px 12px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.process ol li img {
  width: 29px;
  height: 29px;
}

/*********** GALLERY PAGES ************/
.project-highlights, .materials-showcase {
  background: #faf7f0;
}

/*********** TESTIMONIALS ***********/
.testimonials, .testimonials-preview {
  background: #fffbe8;
}
.testimonial-slider, .testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 22px;
}

/*********** FAQS ***********/
.faqs .faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 26px;
}
.faqs .faq-accordion > div {
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 2px 10px rgba(209,106,40,.07);
  padding: 20px 18px;
  border-left: 4px solid var(--accent);
}
.faqs .faq-accordion > div h3 {
  font-size: 1.07rem;
  margin-bottom: 0.5em;
}

/*********** CTA & CONTACT ***********/
.contact-cta, .faq-contact-cta, .testimonial-cta, .cta {
  background: linear-gradient(90deg, #EADAB2 80%, #FFEECC 100%);
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 16px;
}
.contact-summary, .contact-details, .map-location, .hours-table, .phone-email-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-summary img, .contact-details img, .phone-email-links img {
  margin-right: 10px;
  height: 22px;
  width: 22px;
  vertical-align: middle;
}

/*********** FOOTER ***********/
footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 40px 0 18px 0;
  margin-top: 50px;
}
.footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}
.footer-main nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.99rem;
}
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-main img {
  width: 58px;
  height: auto;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  font-size: 0.96rem;
  color: #D16A28;
}
footer a {
  color: var(--secondary);
  transition: color 0.15s;
}
footer a:hover, footer a:focus {
  color: #EADAB2;
}
footer span {
  display: block;
  font-size: 0.92rem;
  opacity: .7;
  margin-top: 10px;
}

/*********** BUTTONS ***********/
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--white) !important;
  font-family: 'Montserrat', 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
  padding: 13px 36px;
  border-radius: 40px;
  box-shadow: 0 2px 8px 0 rgba(209,106,40,0.12);
  transition: background 0.2s, transform 0.18s, box-shadow 0.18s;
  margin-top: 9px;
  border: none;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--accent-dark);
  transform: translateY(-2px) scale(1.035);
  box-shadow: 0 6px 26px 0 rgba(209,93,30,0.14);
}

/*********** NAVIGATION ***********/
header {
  background: var(--white);
  box-shadow: 0 2px 15px 0 rgba(43,80,101,0.06);
  position: sticky;
  top: 0;
  z-index: 1001;
  width: 100%;
}
header .container {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-top: 12px;
  padding-bottom: 12px;
  justify-content: space-between;
}
header nav {
  display: flex;
  gap: 21px;
  align-items: center;
}
header nav a {
  color: var(--primary);
  font-weight: 600;
  letter-spacing: .012em;
  font-family: 'Montserrat', sans-serif;
  padding: 10px 7px;
  border-radius: 4px;
  transition: color 0.16s, background 0.16s;
}
header nav a:hover, header nav a:focus {
  background: #EADAB2;
  color: var(--accent);
}
header .btn-primary {
  margin-left: 18px;
}
header img[alt="PuertaMurcia"] {
  height: 48px;
  width: auto;
}

/************ MOBILE MENU ************/
.mobile-menu-toggle {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1101;
  background: var(--accent);
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(209,106,40,0.16);
  transition: background 0.16s, color 0.14s, transform 0.16s;
  border: none;
}
.mobile-menu-toggle:active {
  transform: scale(0.96);
}
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 1200;
  transform: translateX(-100vw);
  transition: transform 0.36s cubic-bezier(.91,0,.23,1);
  display: flex;
  flex-direction: column;
  padding: 24px 0 0 0;
  box-shadow: 0 4px 39px 0 rgba(43,80,101,.21);
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  position: absolute;
  top: 16px;
  right: 22px;
  background: var(--accent);
  color: #fff;
  font-size: 2rem;
  border-radius: 7px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1201;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 19px;
  align-items: flex-start;
  margin-top: 68px;
  padding-left: 28px;
}
.mobile-nav a {
  font-size: 1.22rem;
  color: var(--primary);
  font-weight: 600;
  padding: 12px 0;
  border-radius: 4px;
  width: 100%;
  transition: background 0.12s, color 0.12s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: #EADAB2;
  color: var(--accent);
}

/********** HIDE NAV ON MOBILE - SHOW BURGER ********/ 
@media (max-width: 991px) {
  header nav, header .btn-primary {
    display: none !important;
  }
  .mobile-menu-toggle {
    display: flex;
  }
}
@media (min-width: 992px) {
  .mobile-menu-toggle, .mobile-menu {
    display: none !important;
  }
}

/********** COOKIE CONSENT BANNER *********/
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2001;
  background: #fffbe8;
  color: var(--primary);
  box-shadow: 0 -2px 16px 0 rgba(43,80,101,0.13);
  padding: 22px 16px 15px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  animation: cookieSlideIn 0.58s cubic-bezier(.7,0,.21,1);
}
@keyframes cookieSlideIn {
  from { transform: translateY(90px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cookie-banner .cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 8px;
}
.cookie-banner button, .cookie-banner .btn-cookie {
  padding: 10px 27px;
  font-size: 1rem;
  border-radius: 22px;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.14s;
}
.cookie-banner .btn-accept {
  background: var(--accent);
  color: #fff;
}
.cookie-banner .btn-accept:hover, .cookie-banner .btn-accept:focus {
  background: var(--accent-dark);
}
.cookie-banner .btn-reject {
  background: var(--primary);
  color: #fff;
}
.cookie-banner .btn-reject:hover, .cookie-banner .btn-reject:focus {
  background: #1e3644;
}
.cookie-banner .btn-settings {
  background: #fff;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.cookie-banner .btn-settings:hover, .cookie-banner .btn-settings:focus {
  background: #fff3ea;
  color: #B34D0F;
}

/******** COOKIE MODAL ************/
.cookie-modal-overlay {
  position: fixed;
  z-index: 2200;
  left: 0; right: 0; top:0; bottom:0;
  background: rgba(43,80,101,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cookieModalOverlayIn 0.32s;
}
@keyframes cookieModalOverlayIn {
  from { opacity: 0; } to { opacity: 1; }
}
.cookie-modal {
  background: #fff;
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 410px;
  box-shadow: 0 12px 60px 0 rgba(43,80,101,.17);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookieModalIn 0.36s cubic-bezier(.8,0,.2,1);
}
@keyframes cookieModalIn {
  from { transform: translateY(64px) scale(.95); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h3 {
  font-family: 'Montserrat';
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.cookie-modal .cookie-categories {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 18px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1rem;
}
.cookie-modal .cookie-category input[type="checkbox"] {
  width: 1.1em;
  height: 1.1em;
  accent-color: var(--accent);
}
.cookie-modal .category-essential label {
  color: var(--primary);
  font-weight: 600;
}
.cookie-modal .category-essential input[type="checkbox"] {
  display: none;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
}
.cookie-modal .btn-cookie {
  padding: 9px 22px;
}

/******** THANK YOU PAGE ********/
.thank-you {
  background: #fffbe8;
  border-radius: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 60px;
  padding: 40px 18px;
  text-align: center;
}
.thank-you .text-section {
  margin-top: 30px;
  align-items: center;
}

/************* ARTISTIC ELEMENTS **************/
h1, h2, .btn-primary, .feature-item h3, .service-card h3, .testimonial-card h3, .testimonial-card span {
  font-family: 'Montserrat', 'Roboto', sans-serif;
  letter-spacing: 1px;
  text-shadow: 0 1px 0 rgb(255 255 255 / 7%);
}
.section, .about-highlight, .features, .testimonials, .testimonials-preview, .services-overview, .cta {
  border-radius: 18px;
  box-shadow: var(--shadow);
}

/************ SPACING & FLEX GAPS *************/
.section, .about-highlight, .features, .testimonials, .services-overview, .cta, .contact-cta, .faq-contact-cta, .testimonial-cta {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container, .content-grid, .text-image-section, .testimonial-slider, .feature-grid, .service-cards, .testimonial-list, .faq-accordion {
  gap: 20px;
}
.card, .service-card, .testimonial-card {
  margin-bottom: 20px;
}

/************ RESPONSIVE DESIGN **************/
@media (max-width: 1200px) {
  .container { max-width: 97vw; }
}
@media (max-width: 991px) {
  .content-grid, .footer-main {
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
  }
  .feature-grid, .service-cards, .testimonial-slider, .testimonial-list {
    flex-direction: column;
    gap: 19px;
  }
  .footer-main nav {
    gap: 14px;
    margin-top: 13px;
  }
}
@media (max-width: 768px) {
  .container {
    padding: 0 7px;
  }
  .section, .about-highlight, .features, .testimonials, .services-overview, .cta, .contact-cta, .faq-contact-cta, .testimonial-cta {
    padding: 27px 6px 25px 6px;
    margin-bottom: 34px;
  }
  .content-wrapper { gap: 13px; }
  .hero {
    padding-top: 37px;
    padding-bottom: 32px;
    background-position: center 41px;
  }
  .about-highlight, .about, .team-introduction, .why-choose-us, .project-highlights, .materials-showcase {
    padding-right: 5px;
    padding-left: 5px;
  }
  .card, .service-card, .testimonial-card {
    min-width: unset;
    max-width: unset;
    padding: 17px 13px;
  }
  .testimonial-card, .testimonial-card.featured {
    min-width: 95%;
    max-width: 98vw;
    padding: 16px 10px;
  }
  .feature-grid, .service-cards, .testimonial-slider, .testimonial-list, .faq-accordion {
    flex-direction: column;
    gap: 13px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .footer-contact, .footer-legal {
    gap: 10px;
  }
  .footer-main {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 12px;
  }
  .cookie-modal, .cookie-banner { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.2rem; }
  .btn-primary { font-size: 1rem; padding: 9px 17px; }
}

/************** MICRO-INTERACTIONS & ANIMATION ******/
.btn-primary, .card, .service-card, .feature-item, .testimonial-card {
  transition: box-shadow 0.15s, background 0.12s, color 0.12s, transform 0.19s;
}
.card:hover, .service-card:hover, .testimonial-card:hover, .testimonial-card.featured:hover {
  box-shadow: 0 10px 30px 0 rgba(43,80,101,0.095);
  transform: translateY(-4px) scale(1.035) rotate(-2deg);
  background: #fef6ea;
}
.testimonial-card:hover, .testimonial-card.featured:hover {
  background: #fff3ea;
}

/****** ADDITIONAL: ENSURE NO OVERLAPS & SAFE TOUCH AREAS ******/
.card, .service-card, .feature-grid li, .footer-main, .footer-legal, .testimonial-card, .btn-primary {
  touch-action: manipulation;
}

/********* ACCORDION for FAQS *********/
.faqs .faq-accordion > div {
  cursor: pointer;
  transition: background 0.12s;
}
.faqs .faq-accordion > div:hover {
  background: #fff3ea;
}

/********* COOKIES: MODAL CLOSE *********/
.cookie-modal-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: var(--accent);
  color: #fff;
  border-radius: 12px;
  width: 33px;
  height: 33px;
  border: none;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/************ UTILITY CLASSES ***********/
.text-center { text-align: center; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.w-100 { width: 100%; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.align-center { align-items: center; }

/* END */
