/* Custom styles for C Tech Development Corporation */

/* Orange accent colors (from logo ".com" text) */
:root {
  --accent-orange: #e37d4b;
  --accent-orange-hover: #d95e22;
}

/* Top bar */
#top {
  background: #555;
}

/* Top-level navbar menu items in all caps */
.navbar ul.nav > li > a {
  text-transform: uppercase;
}

/* Remove all-caps from dropdown menu items */
.navbar ul.dropdown-menu li,
.navbar .yamm-content h3,
.navbar .yamm-content h5,
.navbar .yamm-content ul li {
  text-transform: none;
}

/* Mega menu column-count variants (set via params.columns in menu config) */
.navbar .yamm-cols-2 .dropdown-menu,
.navbar .yamm-cols-3 .dropdown-menu {
  padding: 0;
}
@media (min-width: 768px) {
  .yamm-cols-2 .dropdown-menu {
    min-width: 520px;
  }
  .yamm-cols-3 .dropdown-menu {
    min-width: 720px;
  }
}

/* Box shortcode styling */
.box {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1.5rem;
  margin: 1rem 0;
  background-color: #f9f9f9;
}

.box.box-download {
  border-left: 4px solid var(--accent-orange);
  background-color: #f0f7ff;
}

.box.box-has-icon {
  display: flex;
  align-items: center;
}

.box-icon {
  flex-shrink: 0;
  margin-right: 15px;
  font-size: 28px;
  color: var(--accent-orange, #e8792f);
  line-height: 1;
}

.box-content {
  flex: 1;
}

.box-content p:last-child {
  margin-bottom: 0;
}

/* Testimonial styling */
blockquote.testimonial {
  border-left: 4px solid var(--primary-accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background-color: #f9f9f9;
  font-style: italic;
}

blockquote.testimonial p:last-child {
  font-style: normal;
  font-weight: 600;
  margin-top: 1rem;
}

/* Carousel: 50% desaturated background image, 80% opaque color mask */
.home-carousel {
  background: none;
}
.home-carousel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/photogrid.jpg') center center / cover repeat;
  filter: grayscale(80%);
  z-index: 0;
}
.home-carousel .dark-mask {
  opacity: 0.8;
}

/* Carousel CTA button: orange accent */
.home-carousel .item a .btn-carousel {
  border-color: var(--accent-orange);
  background: var(--accent-orange);
  color: #fff !important;
}
.home-carousel .item a:hover .btn-carousel,
.home-carousel .item a:focus .btn-carousel {
  background: var(--accent-orange-hover);
  border-color: var(--accent-orange-hover);
  color: #fff !important;
}

/* Testimonial quote marks: orange accent */
.testimonials .item .testimonial .bottom .icon {
  color: var(--accent-orange);
}
/* Tighten testimonial card spacing */
.testimonials .item .testimonial {
  padding: 10px 20px;
}
.testimonials .item {
  padding-bottom: 45px;
}
.testimonials .item .testimonial .text {
  margin-bottom: 50px;
}
.testimonials .item .testimonial .name-picture h5 {
  margin-bottom: 2px;
}

/* Details/summary (learn_more) styling */
details {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  margin: 0.5rem 0;
}

details summary {
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary-accent, #4565c4);
}

details summary::-webkit-details-marker {
  display: none;
}

details summary::after {
  content: "\f078"; /* chevron-down */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.8em;
  color: #999;
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(180deg);
}

details[open] summary {
  border-bottom: 1px solid #ddd;
  margin-bottom: 0.5rem;
}

/* Footer: reduce height and center copyright */
#footer {
  padding: 20px 0;
}

#copyright {
  padding: 15px 0;
  text-align: center;
}

#copyright p {
  float: none !important;
  text-align: center;
}

/* Button shortcode styling */
a.button {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  margin-right: 10px;
  margin-bottom: 10px;
  background: var(--primary-accent, #4565c4);
  color: #fff;
  border: 2px solid var(--primary-accent, #4565c4);
  transition: all 0.3s ease;
}
a.button:hover, a.button:focus {
  background: transparent;
  color: var(--primary-accent, #4565c4);
  text-decoration: none;
}
a.button.secondary {
  background: transparent;
  color: var(--accent-orange);
  border-color: var(--accent-orange);
}
a.button.secondary:hover, a.button.secondary:focus {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
  text-decoration: none;
}

/* Migration timeline */
.migration-timeline {
  position: relative;
  padding: 20px 0;
  margin: 30px 0;
}
.migration-timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #ddd;
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  position: relative;
}
.timeline-item:last-child {
  margin-bottom: 0;
}
.timeline-year {
  width: 45%;
  text-align: right;
  padding-right: 30px;
  font-size: 1.4em;
  font-weight: 700;
  color: var(--primary-accent, #4565c4);
}
.timeline-dot {
  width: 10%;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.timeline-dot::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary-accent, #4565c4);
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px var(--primary-accent, #4565c4);
}
.timeline-content {
  width: 45%;
  padding-left: 30px;
}
.timeline-content .legacy-name {
  color: #999;
  font-size: 0.9em;
}
.timeline-content .arrow {
  color: var(--primary-accent, #4565c4);
  margin: 0 4px;
}
.timeline-content .replacement-name {
  font-weight: 600;
}
.timeline-content .replacement-name a {
  color: #333;
  text-decoration: none;
}
.timeline-content .replacement-name a:hover {
  color: var(--primary-accent, #4565c4);
}
@media (max-width: 768px) {
  .migration-timeline::before {
    left: 20px;
  }
  .timeline-item {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 50px;
  }
  .timeline-year {
    width: auto;
    text-align: left;
    padding-right: 0;
    font-size: 1.2em;
  }
  .timeline-dot {
    position: absolute;
    left: 0;
    top: 5px;
    width: 40px;
  }
  .timeline-content {
    width: auto;
    padding-left: 0;
  }
}

/* Inline testimonial cards (for use within content pages) */
.testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.testimonial-card {
  border: 1px solid #ddd;
  border-left: 4px solid var(--accent-orange, #e37d4b);
  border-radius: 4px;
  padding: 1.5rem;
  margin: 0;
  background: #f9f9f9;
  font-style: italic;
}
.testimonial-card p {
  margin-bottom: 1rem;
  font-size: 0.95em;
  line-height: 1.6;
}
.testimonial-card footer {
  font-style: normal;
  font-size: 0.85em;
  color: #666;
}
@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* Pricing cards */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.pricing-card {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1.5rem;
  text-align: center;
  background: #f9f9f9;
  transition: border-color 0.2s ease;
}
.pricing-card:hover {
  border-color: var(--primary-accent, #4565c4);
}
.pricing-card.featured {
  border-color: var(--primary-accent, #4565c4);
  border-width: 2px;
  background: #f0f4ff;
}
.pricing-card-header {
  font-weight: 700;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin-bottom: 0.5rem;
}
.pricing-card.featured .pricing-card-header {
  color: var(--primary-accent, #4565c4);
}
.pricing-card-price {
  font-size: 2em;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}
.pricing-card-desc {
  font-size: 0.9em;
  color: #666;
}
.pricing-card-desc a {
  color: var(--primary-accent, #4565c4);
}
@media (max-width: 600px) {
  .pricing-cards {
    grid-template-columns: 1fr;
  }
}

/* Case study callout */
.case-study {
  border: 1px solid #ddd;
  border-left: 4px solid var(--primary-accent, #4565c4);
  border-radius: 4px;
  padding: 2rem 2.5rem 1.5rem;
  margin: 1.5rem 0;
  background: #f8faff;
}
.case-study::before {
  content: "CASE STUDY";
  display: inline-block;
  font-size: 0.7em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary-accent, #4565c4);
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}
.case-study h3 {
  margin-top: 0.5rem;
}
.case-study-quote {
  border-left: none;
  border-top: 2px solid var(--primary-accent, #4565c4);
  background: rgba(69, 101, 196, 0.04);
  margin: 1.5rem 0 0.5rem;
  padding: 1rem 1.25rem;
  font-style: italic;
  color: #444;
}
.case-study-quote p {
  margin: 0 0 0.5rem;
}
.case-study-quote footer {
  font-style: normal;
  font-size: 0.9em;
  font-weight: 600;
  color: #555;
}
@media (max-width: 768px) {
  .case-study {
    padding: 1.5rem 1.5rem 1rem;
  }
}

/* Example gallery grid */
.example-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.example-gallery .example-item {
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  background: #f9f9f9;
  transition: border-color 0.2s ease;
}
.example-gallery .example-item:hover {
  border-color: var(--primary-accent, #4565c4);
}
.example-gallery .example-item a {
  display: block;
  text-decoration: none;
  color: #333;
}
.example-gallery .example-item img {
  width: 100%;
  height: auto;
  display: block;
}
.example-gallery .example-item .example-label {
  padding: 0.6rem 0.8rem;
  font-size: 0.9em;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.example-gallery .example-item .example-label .example-size {
  color: #999;
  font-weight: 400;
  font-size: 0.85em;
}
@media (max-width: 900px) {
  .example-gallery {
    grid-template-columns: 1fr 1fr !important;
  }
}
@media (max-width: 600px) {
  .example-gallery {
    grid-template-columns: 1fr !important;
  }
}

/* Mailchimp mailing list signup form */
#mc_embed_shell {
  max-width: 560px;
}
#mc_embed_signup .indicates-required {
  font-size: 0.85em;
  color: #999;
  margin-bottom: 1rem;
}
#mc_embed_signup .asterisk {
  color: var(--accent-orange, #e37d4b);
}
#mc_embed_signup .mc-field-group {
  margin-bottom: 1.25rem;
}
#mc_embed_signup .mc-field-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9em;
  color: #333;
  margin-bottom: 0.35rem;
}
#mc_embed_signup .mc-field-group input[type="email"],
#mc_embed_signup .mc-field-group input[type="text"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95em;
  font-family: inherit;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}
#mc_embed_signup .mc-field-group input[type="email"]:focus,
#mc_embed_signup .mc-field-group input[type="text"]:focus {
  border-color: var(--primary-accent, #4565c4);
  outline: none;
  box-shadow: 0 0 0 2px rgba(69, 101, 196, 0.15);
}
#mc_embed_signup .gdpr-mergeRow {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eee;
}
#mc_embed_signup .content__gdpr label {
  font-weight: 600;
  font-size: 0.9em;
  color: #333;
  margin-bottom: 0.35rem;
}
#mc_embed_signup .content__gdpr p {
  font-size: 0.85em;
  color: #666;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
#mc_embed_signup .content__gdpr .mc_fieldset {
  border: none;
  padding: 0;
  margin: 0.5rem 0;
}
#mc_embed_signup .mc-field-group label.checkbox,
#mc_embed_signup .content__gdpr label.checkbox {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400 !important;
  font-size: 0.95em;
  cursor: pointer;
  padding: 8px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f9f9f9;
  margin-bottom: 0 !important;
  line-height: 1;
}
#mc_embed_signup .mc-field-group label.checkbox input[type="checkbox"],
#mc_embed_signup .content__gdpr label.checkbox input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px;
  max-width: 16px;
  border: 2px solid #ccc;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  margin: 0 !important;
  padding: 0 !important;
  flex-shrink: 0;
  position: relative;
}
#mc_embed_signup .mc-field-group label.checkbox input[type="checkbox"]:checked,
#mc_embed_signup .content__gdpr label.checkbox input[type="checkbox"]:checked {
  background: var(--primary-accent, #4565c4);
  border-color: var(--primary-accent, #4565c4);
}
#mc_embed_signup .mc-field-group label.checkbox input[type="checkbox"]:checked::after,
#mc_embed_signup .content__gdpr label.checkbox input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
#mc_embed_signup .content__gdprLegal {
  margin-top: 0.75rem;
}
#mc_embed_signup .content__gdprLegal p {
  font-size: 0.8em;
  color: #999;
  line-height: 1.5;
}
#mc_embed_signup .content__gdprLegal a {
  color: var(--primary-accent, #4565c4);
}
#mc_embed_signup input[type="submit"] {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95em;
  font-family: inherit;
  background: var(--primary-accent, #4565c4);
  color: #fff;
  border: 2px solid var(--primary-accent, #4565c4);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}
#mc_embed_signup input[type="submit"]:hover,
#mc_embed_signup input[type="submit"]:focus {
  background: transparent;
  color: var(--primary-accent, #4565c4);
}
#mc_embed_signup input[type="submit"]:disabled {
  background: #ccc;
  border-color: #ccc;
  color: #888;
  cursor: not-allowed;
}
#mc_embed_signup input[type="submit"]:disabled:hover {
  background: #ccc;
  color: #888;
}

/* ===== Content tables (from markdown) ===== */
#content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9em;
}
#content table th {
  background: #f0f4ff;
  color: #333;
  font-weight: 600;
  text-align: left;
  padding: 8px 12px;
  white-space: nowrap;
  border-bottom: 2px solid var(--primary-accent, #4565c4);
}
#content table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}
#content table tr:last-child td {
  border-bottom: none;
}
#content table tr:hover td {
  background: #f8f9fa;
}
#content table td:first-child {
  white-space: nowrap;
  font-weight: 600;
}
#content table td:first-child a {
  color: var(--primary-accent, #4565c4);
  text-decoration: none;
}
#content table td:first-child a:hover {
  text-decoration: underline;
}
#content table td:nth-child(3),
#content table td:nth-child(4),
#content table th:nth-child(3),
#content table th:nth-child(4) {
  white-space: nowrap;
  text-align: center;
  width: 1%;
}
@media (max-width: 768px) {
  #content table {
    font-size: 0.85em;
  }
  #content table td:first-child {
    white-space: normal;
  }
}

/* ===== Navbar search icon ===== */
.navbar-search-toggle a {
  font-size: 16px;
  color: #333;
  cursor: pointer;
}
.navbar-search-toggle a:hover {
  color: var(--primary-accent, #4565c4);
}
.navbar-search-toggle.active a .fa-search::before {
  content: "\f00d"; /* switch to X icon */
}

/* ===== Search overlay ===== */
.search-overlay {
  display: none;
  background: #f2f2f2;
  padding: 40px 0;
  border-bottom: 1px solid #ddd;
}
.search-overlay.open {
  display: block;
}
.search-overlay-form {
  max-width: 700px;
  margin: 0 auto;
}
.search-overlay-form input {
  width: 100%;
  border: none;
  border-bottom: 2px solid #ccc;
  background: transparent;
  font-size: 22px;
  padding: 10px 0;
  color: #333;
  outline: none;
  text-align: center;
}
.search-overlay-form input::placeholder {
  color: #aaa;
}
.search-overlay-form input:focus {
  border-bottom-color: var(--primary-accent, #4565c4);
}

/* ===== Search results page ===== */
.search-results-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}
.search-result-item {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-item h4 {
  margin-bottom: 0.25rem;
}
.search-result-item h4 a {
  color: var(--primary-accent, #4565c4);
  text-decoration: none;
}
.search-result-item h4 a:hover {
  text-decoration: underline;
}
.search-result-snippet {
  font-size: 0.9em;
  color: #666;
  margin: 0;
}
#search-query-display {
  color: #555;
  margin-bottom: 0.5rem;
}
#search-query-display h4 {
  margin: 0 0 0.25rem;
  color: #333;
}
#search-query-display p {
  margin: 0;
}

/* Documentation and tips search links */
#search-docs-links,
#search-tips-links {
  background: #f8faff;
  border: 1px solid #dde4f0;
  border-radius: 4px;
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
}
#search-docs-links h4,
#search-tips-links h4 {
  margin: 0 0 0.35rem;
  color: #333;
}
#search-docs-links > p,
#search-tips-links > p {
  color: #666;
  margin: 0 0 1rem;
  font-size: 0.95em;
}
.search-docs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.search-doc-btn {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 12px 18px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: var(--primary-accent, #4565c4);
  font-weight: 600;
  font-size: 0.9em;
  text-decoration: none;
  transition: all 0.2s ease;
}
.search-doc-btn:hover,
.search-doc-btn:focus {
  border-color: var(--primary-accent, #4565c4);
  background: var(--primary-accent, #4565c4);
  color: #fff;
  text-decoration: none;
}
.search-doc-btn i {
  font-size: 1.1em;
  width: 1.2em;
  text-align: center;
  opacity: 0.8;
}
.search-doc-btn:hover i,
.search-doc-btn:focus i {
  opacity: 1;
}
@media (max-width: 480px) {
  .search-docs-grid {
    grid-template-columns: 1fr;
  }
}

/* Credit card payment form */
.cc-payment-form {
  max-width: 520px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 1.5rem 2rem;
  margin: 1.5rem 0;
  background: #f9f9f9;
}
.cc-payment-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9em;
  color: #333;
  margin-bottom: 0.35rem;
}
.cc-payment-form .cc-input-row {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}
.cc-payment-form input[type="text"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.95em;
  font-family: inherit;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}
.cc-payment-form input[type="text"]:focus {
  border-color: var(--primary-accent, #4565c4);
  outline: none;
  box-shadow: 0 0 0 2px rgba(69, 101, 196, 0.15);
}
.cc-pay-button {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95em;
  font-family: inherit;
  background: var(--accent-orange, #e37d4b);
  color: #fff;
  border: 2px solid var(--accent-orange, #e37d4b);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.cc-pay-button:hover,
.cc-pay-button:focus {
  background: var(--accent-orange-hover, #d95e22);
  border-color: var(--accent-orange-hover, #d95e22);
  color: #fff;
}
.cc-pay-button i {
  margin-right: 0.4em;
}
@media (max-width: 480px) {
  .cc-payment-form .cc-input-row {
    flex-direction: column;
  }
}
