/* ============================================================
 * Cortidea: extended service-page section styles
 * Loaded via cortidea-service-styles.php mu-plugin
 * Brand red: #d72323
 * ============================================================ */

/* ===== Width breakout: escape Breakdance container max-width ===== */

.cortidea-intro,
.cortidea-types,
.cortidea-areas,
.cortidea-trust,
.cortidea-faqs {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  box-sizing: border-box;
  /* Flex-column with center alignment guarantees children center
     regardless of Breakdance parent quirks affecting margin: auto */
  display: flex;
  flex-direction: column;
  align-items: center;
}

html, body {
  overflow-x: hidden;
}

/* ===== Intro paragraph ===== */

.cortidea-intro {
  padding: 64px 32px;
  background: #ffffff;
}

.cortidea-intro-inner {
  width: 100%;
  max-width: 880px;
  font-size: 17px;
  line-height: 1.75;
  color: #2a2f3a;
}

.cortidea-intro-inner p {
  margin: 0 0 20px;
}

.cortidea-intro-inner p:last-child {
  margin-bottom: 0;
}

.cortidea-intro-inner p:first-child {
  font-size: 20px;
  line-height: 1.6;
  color: #1c2533;
  margin-bottom: 24px;
  font-weight: 500;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid #d72323;
}

.cortidea-intro-inner strong {
  color: #d72323;
  font-weight: 600;
}

/* ===== Section padding + backgrounds ===== */

.cortidea-types,
.cortidea-areas,
.cortidea-trust,
.cortidea-faqs {
  padding: 80px 32px;
}

.cortidea-types  { background: #ffffff; }
.cortidea-areas  { background: #f6f4f0; }
.cortidea-trust  { background: #ffffff; }
.cortidea-faqs   { background: #f6f4f0; }

/* ===== Section heading ===== */

.cortidea-section-heading {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 48px;
  color: #1c2533;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 18px;
  width: 100%;
  max-width: 1100px;
}

.cortidea-section-heading::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  background: #d72323;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* ===== Service Types: card grid ===== */

.cortidea-types-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
  max-width: 1280px;
}

@media (min-width: 760px) {
  .cortidea-types-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
}

@media (min-width: 1100px) {
  .cortidea-types-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.cortidea-type {
  background: #ffffff;
  border: 1px solid #e7e3da;
  border-radius: 4px;
  padding: 32px 28px 28px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.cortidea-type::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 3px;
  background: #d72323;
}

.cortidea-type:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(28, 37, 51, 0.08);
}

.cortidea-type-heading {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #1c2533;
  line-height: 1.3;
}

.cortidea-type-body {
  font-size: 15px;
  line-height: 1.65;
  color: #4a5260;
}

.cortidea-type-body p {
  margin: 0;
}

/* ===== Local Areas ===== */

.cortidea-areas-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
  max-width: 1280px;
}

@media (min-width: 760px) {
  .cortidea-areas-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

.cortidea-area {
  background: #ffffff;
  border-radius: 6px;
  padding: 36px 32px;
  border-left: 4px solid #d72323;
  box-shadow: 0 2px 12px rgba(28, 37, 51, 0.04);
  box-sizing: border-box;
}

.cortidea-area-heading {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 14px;
  color: #1c2533;
  letter-spacing: -0.01em;
}

.cortidea-area-body {
  font-size: 16px;
  line-height: 1.65;
  color: #4a5260;
}

.cortidea-area-body p {
  margin: 0 0 12px;
}

.cortidea-area-body p:last-child {
  margin-bottom: 0;
}

/* ===== Why Cortidea ===== */

.cortidea-trust-body {
  width: 100%;
  max-width: 880px;
}

.cortidea-trust-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cortidea-trust-body ul li {
  position: relative;
  padding: 22px 24px 22px 64px;
  border-bottom: 1px solid #e7e3da;
  font-size: 17px;
  line-height: 1.55;
  color: #1c2533;
}

.cortidea-trust-body ul li:last-child {
  border-bottom: none;
}

.cortidea-trust-body ul li::before {
  content: "\2713";
  position: absolute;
  left: 24px;
  top: 22px;
  width: 28px;
  height: 28px;
  background: #d72323;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.cortidea-trust-body ul li strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  color: #1c2533;
}

/* ===== FAQs ===== */

.cortidea-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 980px;
}

.cortidea-faq {
  border: 1px solid #e7e3da;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.cortidea-faq[open] {
  border-color: #d72323;
}

.cortidea-faq-q {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 600;
  font-size: 17px;
  color: #1c2533;
  user-select: none;
}

.cortidea-faq-q::-webkit-details-marker {
  display: none;
}

.cortidea-faq-q-text {
  flex: 1;
}

.cortidea-faq-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #d72323;
  color: #d72323;
  font-size: 18px;
  line-height: 1;
  font-weight: 600;
  transition: all 0.2s ease;
}

.cortidea-faq[open] .cortidea-faq-icon {
  background: #d72323;
  color: #fff;
}

.cortidea-faq-a {
  padding: 0 24px 22px;
  font-size: 15px;
  line-height: 1.65;
  color: #4a5260;
}

.cortidea-faq-a p {
  margin: 0 0 10px;
}

.cortidea-faq-a p:last-child {
  margin-bottom: 0;
}

/* ===== Mobile ===== */

@media (max-width: 760px) {
  .cortidea-intro {
    padding: 40px 20px;
  }
  .cortidea-intro-inner {
    font-size: 16px;
  }
  .cortidea-intro-inner p:first-child {
    font-size: 18px;
  }
  .cortidea-types,
  .cortidea-areas,
  .cortidea-trust,
  .cortidea-faqs {
    padding: 56px 20px;
  }
  .cortidea-section-heading {
    font-size: 28px;
    margin-bottom: 36px;
  }
  .cortidea-area {
    padding: 28px 24px;
  }
  .cortidea-area-heading {
    font-size: 22px;
  }
  .cortidea-trust-body ul li {
    padding: 18px 0 18px 48px;
    font-size: 16px;
  }
  .cortidea-trust-body ul li::before {
    left: 0;
    top: 18px;
    width: 24px;
    height: 24px;
    font-size: 12px;
  }
  .cortidea-faq-q {
    padding: 16px 18px;
    font-size: 16px;
  }
  .cortidea-faq-a {
    padding: 0 18px 18px;
  }
}

/* ============================================================
 * Phase G content pages: hero banner + body styling + CTA
 * Used on /best-blinds-spain-2026/, /blackout-blinds-costa-del-sol/, /marbella/
 * ============================================================ */

.cortidea-cp-hero {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  height: 480px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cortidea-cp-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(28,37,51,0.05) 0%, rgba(28,37,51,0.35) 100%);
}

@media (max-width: 760px) {
  .cortidea-cp-hero { height: 280px; }
}

.cortidea-cp-titleband {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  background: #1c2533;
  padding: 40px 24px;
  text-align: center;
}

.cortidea-cp-h1 {
  margin: 0;
  color: #ffffff;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: -0.01em;
}

@media (max-width: 760px) {
  .cortidea-cp-h1 { font-size: 26px; }
  .cortidea-cp-titleband { padding: 28px 20px; }
}

.cortidea-cp-content {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  background: #ffffff;
  padding: 72px 24px 56px;
}

.cortidea-cp-content > * {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.cortidea-cp-content p {
  font-size: 17px;
  line-height: 1.75;
  color: #2a2f3a;
  margin: 0 0 22px;
}

.cortidea-cp-content p:first-child {
  font-size: 20px;
  line-height: 1.6;
  color: #1c2533;
  margin-bottom: 28px;
  font-weight: 500;
  padding: 0 0 0 20px;
  border-left: 3px solid #d72323;
}

.cortidea-cp-content h2 {
  font-size: 30px;
  line-height: 1.25;
  margin: 56px auto 20px;
  color: #1c2533;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding-bottom: 14px;
  border-bottom: 3px solid #d72323;
  display: block;
  width: 100%;
  max-width: 820px;
}

.cortidea-cp-content h2:first-child { margin-top: 0; }

.cortidea-cp-content h3 {
  font-size: 22px;
  line-height: 1.3;
  margin: 36px auto 12px;
  color: #1c2533;
  font-weight: 700;
}

.cortidea-cp-content ul,
.cortidea-cp-content ol {
  font-size: 17px;
  line-height: 1.75;
  color: #2a2f3a;
  margin: 0 auto 22px;
  max-width: 820px;
  padding-left: 24px;
}

.cortidea-cp-content ul li,
.cortidea-cp-content ol li { margin-bottom: 10px; }

.cortidea-cp-content ul li strong,
.cortidea-cp-content ol li strong {
  color: #1c2533;
  font-weight: 700;
}

.cortidea-cp-content a {
  color: #d72323;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(215, 35, 35, 0.35);
  text-underline-offset: 3px;
}

.cortidea-cp-content a:hover { text-decoration-color: #d72323; }

@media (max-width: 760px) {
  .cortidea-cp-content { padding: 48px 20px 36px; }
  .cortidea-cp-content p,
  .cortidea-cp-content ul,
  .cortidea-cp-content ol { font-size: 16px; }
  .cortidea-cp-content p:first-child { font-size: 18px; }
  .cortidea-cp-content h2 { font-size: 24px; margin: 40px auto 16px; }
  .cortidea-cp-content h3 { font-size: 19px; margin: 28px auto 10px; }
}

.cortidea-cp-cta {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  background: #f6f4f0;
  padding: 64px 24px;
  text-align: center;
}

.cortidea-cp-cta h2 {
  font-size: 32px;
  line-height: 1.2;
  color: #1c2533;
  margin: 0 0 16px;
  font-weight: 700;
}

.cortidea-cp-cta p {
  font-size: 17px;
  line-height: 1.6;
  color: #2a2f3a;
  margin: 0 auto 16px;
  max-width: 720px;
}

.cortidea-cp-cta a { color: #d72323; }

.cortidea-cp-cta-btn {
  display: inline-block;
  background: #d72323;
  color: #ffffff !important;
  padding: 14px 32px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 4px;
  margin-top: 8px;
  transition: background 0.15s ease;
}

.cortidea-cp-cta-btn:hover { background: #b31c1c; }

@media (max-width: 760px) {
  .cortidea-cp-cta { padding: 48px 20px; }
  .cortidea-cp-cta h2 { font-size: 24px; }
}

/* ============================================================
 * Phase G content pages - centering + visibility fixes
 * ============================================================ */

.cortidea-cp-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cortidea-cp-titleband {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Force the H1 colour with high specificity — Breakdance's heading styles
   often colour h1 dark by default. */
.cortidea-cp-titleband .cortidea-cp-h1,
h1.cortidea-cp-h1 {
  color: #ffffff !important;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 400;
  margin: 0;
  letter-spacing: -0.01em;
  text-align: center;
}

@media (max-width: 760px) {
  .cortidea-cp-titleband .cortidea-cp-h1,
  h1.cortidea-cp-h1 {
    font-size: 26px;
  }
}

.cortidea-cp-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
}
