/* Styles for content added by the SEO content strategy (scripts/seo-content.mjs):
   service pages, the homepage services grid, the Services menu item and the
   header phone number. Matches the Elementor kit: Anton headings, Roboto Slab
   body copy, DM Sans buttons, black/white palette. */

:root {
  --jkc-ink: #000;
  --jkc-text: #191919;
  --jkc-muted: #555;
  --jkc-line: #e4e4e4;
  --jkc-panel: #fcfcfc;
}

/* ---- Header: phone number as clickable text (desktop header) ---- */
.jkc-header-phone {
  display: flex;
  align-items: center;
  margin-inline-end: 18px;
}
.jkc-header-phone a {
  font-family: "DM Sans", Sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #fff;
  white-space: nowrap;
  text-decoration: none;
}
.jkc-header-phone a:hover { text-decoration: underline; }

/* ---- Services submenu in the desktop menu ---- */
.elementor-nav-menu--main .jkc-menu-services > .sub-menu {
  background: #fff;
  border-radius: 14px;
  padding: 8px 0;
  min-width: 250px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}
.elementor-nav-menu--main .jkc-menu-services > .sub-menu a.elementor-sub-item {
  font-family: "DM Sans", Sans-serif;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: #000;
  background: transparent;
  padding: 10px 20px;
  border: 0;
}
.elementor-nav-menu--main .jkc-menu-services > .sub-menu a.elementor-sub-item:hover,
.elementor-nav-menu--main .jkc-menu-services > .sub-menu a.elementor-sub-item.elementor-item-active {
  background: #f1f1f1;
  color: #000;
}

/* ---- Content panels on new pages ---- */
.jkc-article {
  width: min(1140px, 86%);
  margin: 0 auto;
  font-family: "Roboto Slab", Sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--jkc-text);
}
.jkc-section + .jkc-section { margin-top: 64px; }
.jkc-article h2 {
  font-family: "Anton", Sans-serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 2px;
  color: var(--jkc-ink);
  margin: 0 0 24px;
}
.jkc-article h3 {
  font-family: "Anton", Sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 1px;
  color: var(--jkc-ink);
  margin: 32px 0 10px;
}
.jkc-article p { margin: 0 0 16px; }
.jkc-article a { color: var(--jkc-ink); text-decoration: underline; text-underline-offset: 3px; }
.jkc-intro p { font-size: 20px; line-height: 1.6; }

.jkc-list { list-style: none; margin: 0 0 16px; padding: 0; }
.jkc-list li { position: relative; padding: 0 0 10px 28px; }
.jkc-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.65em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--jkc-ink);
}

/* Pill link, same as the site's black buttons. */
.jkc-card-link,
.jkc-article a.jkc-card-link {
  display: inline-block;
  font-family: "DM Sans", Sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: #000;
  border-radius: 50px;
  padding: 9px 18px;
}
.jkc-card-link:hover { background: #333; }
.jkc-card-soon {
  font-family: "DM Sans", Sans-serif;
  font-size: 13px;
  letter-spacing: 0.5px;
  color: var(--jkc-muted);
}

/* Service cards */
.jkc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.jkc-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--jkc-line);
  border-radius: 20px;
  overflow: hidden;
}
.jkc-card-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.jkc-card-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.jkc-card-body h3,
.jkc-article .jkc-card-body h3 { font-size: 22px; margin: 0; }
.jkc-card-body h3 a { font: inherit; letter-spacing: inherit; color: inherit; text-decoration: none; }
.jkc-card-body p { font-size: 15px; line-height: 1.6; margin: 0; flex: 1; }
.jkc-card-body .jkc-card-link,
.jkc-card-body .jkc-card-soon { align-self: flex-start; }

/* Photo grid */
.jkc-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0 8px;
}
.jkc-gallery figure { margin: 0; }
.jkc-gallery img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; display: block; }

/* Project cards */
.jkc-projects { display: grid; gap: 24px; margin-bottom: 20px; }
.jkc-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid var(--jkc-line);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
}
.jkc-project img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.jkc-project > div { padding: 28px 30px; }
.jkc-project h3,
.jkc-article .jkc-project h3 { margin-top: 0; }

/* FAQ accordion */
.jkc-faq { border-top: 1px solid var(--jkc-line); }
.jkc-faq details { border-bottom: 1px solid var(--jkc-line); }
.jkc-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
}
.jkc-faq summary::-webkit-details-marker { display: none; }
.jkc-faq summary::after { content: "+"; font: 400 28px/1 "DM Sans", Sans-serif; }
.jkc-faq details[open] summary::after { content: "\2212"; }
.jkc-faq summary h3,
.jkc-article .jkc-faq summary h3 {
  font-family: "Roboto Slab", Sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
}
.jkc-faq details > div { padding: 0 0 18px; }

/* Closing block (trust + FAQ) above the estimate form */
.jkc-closing { width: 100%; margin-bottom: 40px; }

/* Hero on new pages */
.jkc-hero .elementor-heading-title { font-size: 58px !important; letter-spacing: 5px !important; }

/* ---- Homepage hero: the keyword H1 is longer than the old slogan ---- */
body .elementor-83 .elementor-element.elementor-element-1d02ce42 .elementor-heading-title { font-size: 72px; }
@media (max-width: 1024px) { body .elementor-83 .elementor-element.elementor-element-1d02ce42 .elementor-heading-title { font-size: 56px; } }
@media (max-width: 880px) { body .elementor-83 .elementor-element.elementor-element-1d02ce42 .elementor-heading-title { font-size: 44px; } }
@media (max-width: 767px) {
  body .elementor-83 .elementor-element.elementor-element-1d02ce42 .elementor-heading-title { font-size: 32px; letter-spacing: 3px; }
  body .elementor-83 .elementor-element.elementor-element-1d02ce42 br { display: none; }
}

/* ---- Homepage services band ---- */
.jkc-home-services {
  position: relative;
  z-index: 40;
  background: var(--jkc-panel);
  border-radius: 60px 60px 0 0;
  margin-top: -60px;
  padding: 110px 7% 160px;
}
.jkc-home-services .jkc-article { width: 100%; max-width: 1240px; }
.jkc-home-services .jkc-eyebrow {
  font-family: "DM Sans", Sans-serif;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.jkc-home-services .jkc-cards { grid-template-columns: repeat(4, 1fr); }
.jkc-home-services .jkc-all { margin-top: 32px; text-align: center; }

@media (max-width: 1024px) {
  .jkc-article h2 { font-size: 36px; }
  .jkc-gallery { grid-template-columns: repeat(2, 1fr); }
  .jkc-home-services { border-radius: 30px 30px 0 0; padding: 80px 5% 120px; }
  .jkc-home-services .jkc-cards { grid-template-columns: repeat(2, 1fr); }
  .jkc-hero .elementor-heading-title { font-size: 48px !important; }
}

@media (max-width: 767px) {
  .jkc-article { width: 88%; font-size: 16px; }
  .jkc-intro p { font-size: 18px; }
  .jkc-article h2 { font-size: 30px; letter-spacing: 1px; }
  .jkc-section + .jkc-section { margin-top: 48px; }
  .jkc-project { grid-template-columns: 1fr; }
  .jkc-home-services { border-radius: 25px 25px 0 0; margin-top: -40px; padding: 60px 6% 100px; }
  .jkc-home-services .jkc-cards { grid-template-columns: 1fr; }
  .jkc-hero .elementor-heading-title { font-size: 38px !important; letter-spacing: 2px !important; }
}

/* Single feature photo and comparison table (service pages) */
.jkc-feature { margin: 24px 0 8px; }
.jkc-feature img { display: block; width: 100%; max-width: 560px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; }
.jkc-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; margin: 0 0 16px; background: #fff; }
.jkc-table th, .jkc-table td { border: 1px solid var(--jkc-line); padding: 12px 14px; text-align: left; vertical-align: top; }
.jkc-table thead th { font-family: "DM Sans", Sans-serif; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; background: #f4f4f4; }
.jkc-table tbody th { font-weight: 600; white-space: nowrap; }
@media (max-width: 767px) { .jkc-table { display: block; overflow-x: auto; font-size: 14px; } }

/* ---- Header phone: a pill, not loose text ----
   It used to sit as two bare white lines between the menu and the
   "START A PROJECT" button, which read as something that had come
   adrift rather than a control. Boxing it gives the header two
   deliberate actions — a ghost pill for the call, the solid pill for
   the form — and keeps "Hablamos español" inside the same shape
   instead of floating under it. */
.jkc-header-phone {
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 7px 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  line-height: 1.15;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
/* The whole pill is the hit area, not just the digits. */
.jkc-header-phone a { display: block; }
.jkc-header-phone:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.7); }
.jkc-header-phone a:hover { text-decoration: none; }
.jkc-header-phone .jkc-es { font-family: "DM Sans", Sans-serif; font-size: 10px; letter-spacing: 1px; color: #fff; opacity: 0.8; }
/* The pill is wider than the bare text it replaced, which was enough to
   wrap "START A PROJECT" onto two lines. It is a two-word label on one
   line by design, so hold it there. */
.elementor-element-33ddfdce .elementor-button-text { white-space: nowrap; }

/* ---- Hero: the two CTAs sit side by side ----
   The estimate and call buttons stacked down the middle of the hero.
   Setting the widgets to inline-block does nothing on its own: their
   parent is an Elementor flex container in column direction, so the
   children are laid out by the parent regardless of their own display.
   They are wrapped in .jkc-hero-cta-row in content/pages/home.ts and
   that wrapper is the row. flex-wrap so the pair drops to two lines on
   a narrow phone rather than overflowing the hero. */
.jkc-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.jkc-hero-cta-row > .elementor-widget-button { width: auto; margin: 0; }
/* Laptop widths: the menu needs the room; the phone stays in page content and
   the tablet/mobile menu. */
@media (max-width: 1366px) { .jkc-header-phone { display: none; } }
/* "Services" is longer than the "Home" it replaced; tighten item padding on
   small laptops so the menu stays on one line (live wraps below ~1060px). */
@media (min-width: 1025px) and (max-width: 1280px) {
  .elementor-81 .elementor-element.elementor-element-854afdb nav.elementor-nav-menu--main .elementor-item { padding-left: 10px; padding-right: 10px; }
}
