/* ==========================================================================
   RWD Fixes — Planer Studio
   Supplementary responsive improvements for the Inovado theme
   ========================================================================== */

/* --- Sticky header smooth transition --- */
#header-v6 {
  transition: box-shadow 0.3s ease;
}
#header-v6.stuck {
  background: #fff;
}

/* --- Breadcrumb bar --- */
#breadcrumb-bar {
  background: #f7f7f7;
  border-bottom: 1px solid #e4e4e4;
  padding: 10px 0;
  font-size: 13px;
  color: #999;
}
#breadcrumb-bar a {
  color: #999;
  text-decoration: none;
}
#breadcrumb-bar a:hover {
  color: #289dcc;
}
#breadcrumb-bar .current {
  color: #289dcc;
}

/* --- Better mobile container: fluid instead of fixed 300px --- */
@media only screen and (max-width: 767px) {
  .container {
    width: 90% !important;
    max-width: 540px;
    padding: 0 5%;
    box-sizing: border-box;
  }
  .container .columns,
  .container .column {
    width: 100% !important;
    margin-left: 0;
    margin-right: 0;
  }
  /* Fix two-column layouts stacking on mobile */
  .container .one_third,
  .container .two_third,
  .container .one_half,
  .container .one_fourth,
  .container .three_fourth {
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 20px;
  }
  /* Breadcrumb bar on mobile */
  #breadcrumb-bar {
    padding: 8px 0;
    font-size: 12px;
  }
  /* Better touch targets */
  #nav li a,
  .select-menu {
    min-height: 44px;
    line-height: 44px;
  }
  /* Map responsive */
  #map.google_map.full,
  .google_map {
    height: 250px !important;
  }
  /* CTA bar: stack vertically on mobile */
  .cta-bar .cta-bar__inner {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  /* Fix images overflowing on mobile */
  img {
    max-width: 100%;
    height: auto;
  }
  /* Portfolio grid: single column on mobile */
  .portfolio-item {
    width: 100% !important;
    margin-bottom: 20px;
  }
  /* Footer widgets: full width */
  #footer .one-third {
    width: 100% !important;
    float: none !important;
    margin-bottom: 20px;
  }
  /* Topbar: center on mobile */
  #topbar .callus {
    text-align: center;
    font-size: 13px;
  }
  #topbar .social-icons {
    text-align: center;
    float: none !important;
  }
}

/* --- Landscape phone: slightly wider --- */
@media only screen and (min-width: 480px) and (max-width: 767px) {
  .container {
    width: 92% !important;
    max-width: 580px;
  }
}

/* --- Tablet improvements --- */
@media only screen and (min-width: 768px) and (max-width: 959px) {
  /* Footer widgets: 2-column on tablet */
  #footer .one-third {
    width: 48% !important;
  }
  #footer .one-third:nth-child(3) {
    width: 100% !important;
    clear: both;
  }
}

/* --- Large desktop (1200px+) --- */
@media only screen and (min-width: 1200px) {
  /* Bigger logo area */
  .header .logo img {
    max-height: 70px;
  }
}

/* === CASE STUDY PORTFOLIO LAYOUT === */
/* Override Inovado 960 grid for case study pages */

/* Fix dark html background bleeding through on portfolio pages */
html { background: #fff !important; }

/* Hero: slider + meta sidebar — keep theme's float layout for flexslider compat */
.portfolio-detail .portfolio-sidebyside {
  overflow: hidden; /* clearfix for floated children */
  clear: both;
  margin-bottom: 30px;
  padding-top: 30px;
}
/* Use theme's default column widths on 960px grid; just ensure proper float */
.portfolio-detail .portfolio-sidebyside .ten.columns {
  float: left;
  margin-left: 10px;
  margin-right: 10px;
  box-sizing: content-box;
}
.portfolio-detail .portfolio-sidebyside .six.columns {
  float: left;
  margin-left: 10px;
  margin-right: 10px;
  box-sizing: content-box;
}

/* Flexslider: border-radius, min-height prevents collapse from lazy-loaded slides */
.portfolio-detail #portfolio-slider {
  border-radius: 6px;
  overflow: hidden;
  background: #f7f7f7;
  min-height: 250px;
}
.portfolio-detail .flexslider .slides img {
  width: 100%;
  height: auto;
  display: block;
}

/* All full-width sections below hero: override theme .sixteen.columns (940px fixed) */
.portfolio-detail .sixteen.columns {
  width: auto !important;
  float: none !important;
  clear: both !important;
  margin-left: 10px !important;
  margin-right: 10px !important;
  padding: 0;
  display: block !important;
}
.portfolio-detail .cs-section {
  clear: both;
  margin-bottom: 30px;
}

/* Highlight block (no .columns class — lives outside float context) */
.portfolio-detail .cs-highlight {
  clear: both;
  border-radius: 6px;
  margin: 30px 10px;
  /* Softer gradient to blend with theme */
  background: linear-gradient(135deg, #289dcc 0%, #1e7fa8 100%);
}

/* Stats flex row */
.portfolio-detail .cs-stats {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.portfolio-detail .cs-stat {
  flex: 1 1 120px;
  min-width: 120px;
}

/* Two-column scope section */
.portfolio-detail .one_half {
  width: 48% !important;
  float: left !important;
  margin-right: 2%;
  margin-left: 0 !important;
  box-sizing: border-box;
}
.portfolio-detail .one_half.last {
  margin-right: 0 !important;
}

/* Meta sidebar list: prevent text wrapping onto separate lines */
.portfolio-detail .cs-meta-list li {
  display: flex;
  gap: 8px;
  align-items: baseline;
  line-height: 1.5;
}
.portfolio-detail .cs-meta-list li strong {
  width: 110px;
  min-width: 110px;
  flex-shrink: 0;
  font-size: 13px;
}

/* CTA box */
.portfolio-detail .cs-cta {
  clear: both;
  margin: 30px 10px;
}

/* Quote block */
.portfolio-detail .cs-quote {
  clear: both;
  margin-left: 10px;
  margin-right: 10px;
}

/* Related projects — fix float accumulation from above */
.portfolio-detail #portfolio-related-post {
  clear: both;
  overflow: hidden;
}

/* Comments section */
.portfolio-detail .portfolio-comments {
  width: auto !important;
  float: none !important;
  clear: both !important;
}

/* Portfolio case study mobile */
@media only screen and (max-width: 767px) {
  .portfolio-detail .portfolio-sidebyside .ten.columns,
  .portfolio-detail .portfolio-sidebyside .six.columns {
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 20px !important;
  }
  .portfolio-detail .sixteen.columns {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .portfolio-detail .cs-highlight {
    margin-left: 0;
    margin-right: 0;
  }
  .portfolio-detail .cs-cta {
    margin-left: 0;
    margin-right: 0;
  }
  .portfolio-detail .cs-quote {
    margin-left: 0;
    margin-right: 0;
  }
  .portfolio-detail .one_half,
  .portfolio-detail .one_half.last {
    width: 100% !important;
    float: none !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    margin-bottom: 15px !important;
  }
  .cs-stats {
    flex-direction: column !important;
  }
  .cs-meta-list li {
    flex-direction: column !important;
    gap: 2px !important;
  }
  .cs-meta-list li strong {
    width: auto !important;
    min-width: auto !important;
    display: block !important;
  }
  .cs-highlight {
    padding: 20px !important;
  }
}

/* === RENTAL PAGES — equipment cards + CTA === */

/* Equipment card grid */
.rental-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}
.rental-card {
  background: #f8fafb;
  border: 1px solid #e8eef2;
  border-radius: 8px;
  padding: 24px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.rental-card:hover {
  border-color: #289dcc;
  box-shadow: 0 4px 16px rgba(40, 157, 204, 0.10);
}
.rental-card--active {
  border-color: #289dcc;
  background: #eef7fb;
  box-shadow: 0 4px 16px rgba(40, 157, 204, 0.15);
}
.rental-card--active .rental-card__title {
  color: #1e7fa8;
}

/* CTA pulse animation on card click */
@keyframes ctaPulse {
  0%   { box-shadow: 0 0 0 0 rgba(40, 157, 204, 0.4); }
  70%  { box-shadow: 0 0 0 15px rgba(40, 157, 204, 0); }
  100% { box-shadow: 0 0 0 0 rgba(40, 157, 204, 0); }
}
.rental-cta--pulse {
  animation: ctaPulse 0.8s ease-out;
}
.rental-card__icon {
  font-size: 28px;
  margin-bottom: 10px;
}
.rental-card__title {
  font-size: 17px;
  font-weight: 700;
  color: #222;
  margin: 0 0 8px 0;
}
.rental-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: #555;
  margin: 0;
}

/* Benefits row */
.rental-benefits {
  display: flex;
  gap: 20px;
  margin: 30px 0;
  padding: 24px 0;
  border-top: 1px solid #e8eef2;
  border-bottom: 1px solid #e8eef2;
}
.rental-benefit {
  flex: 1;
  text-align: center;
}
.rental-benefit strong {
  display: block;
  font-size: 15px;
  color: #222;
  margin-bottom: 6px;
}
.rental-benefit span {
  font-size: 13px;
  line-height: 1.5;
  color: #666;
}

/* CTA box */
.rental-cta {
  background: linear-gradient(135deg, #289dcc 0%, #1e7fa8 100%);
  border-radius: 10px;
  padding: 40px;
  margin: 30px 0;
  text-align: center;
}
.rental-cta__title {
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px 0;
}
.rental-cta__desc {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 24px auto;
}
.rental-cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.rental-cta__btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.1s ease;
  cursor: pointer;
}
.rental-cta__btn:hover {
  transform: translateY(-1px);
}
.rental-cta__btn--primary {
  background: #fff;
  color: #1e7fa8;
}
.rental-cta__btn--primary:hover {
  background: #f0f8fc;
}
.rental-cta__btn--secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.rental-cta__btn--secondary:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Rental pages mobile */
@media only screen and (max-width: 767px) {
  .rental-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .rental-benefits {
    flex-direction: column;
    gap: 16px;
  }
  .rental-cta {
    padding: 28px 20px;
  }
  .rental-cta__title {
    font-size: 20px;
  }
  .rental-cta__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .rental-cta__btn {
    text-align: center;
  }
}

/* Rental pages tablet */
@media only screen and (min-width: 768px) and (max-width: 959px) {
  .rental-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .rental-card {
    padding: 20px;
  }
}

/* === CONTACT PAGE IMPROVEMENTS === */

/* Form layout */
.contact-form-row {
  margin-bottom: 18px;
}
.contact-form-row label {
  display: block;
  font-size: 14px;
  white-space: nowrap;
  font-weight: 600;
  color: #333;
  margin-bottom: 6px;
}
.contact-form-row label .required {
  color: #e74c3c;
}
.contact-form-row input[type="text"],
.contact-form-row input[type="email"],
.contact-form-row textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.contact-form-row input:focus,
.contact-form-row textarea:focus,
.contact-form-row select:focus {
  border-color: #289dcc;
  outline: none;
  box-shadow: 0 0 0 3px rgba(40, 157, 204, 0.1);
}
.contact-form-row input::placeholder,
.contact-form-row textarea::placeholder {
  color: #aaa;
}
/* Checkbox row */
.contact-form-checkbox label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px !important;
  color: #777;
  cursor: pointer;
  line-height: 1.3;
}
.contact-form-checkbox input[type="checkbox"] + a,
.contact-form-checkbox label a {
  white-space: nowrap;
}
.contact-form-checkbox input[type="checkbox"] {
  margin: 0;
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  accent-color: #289dcc;
}
.contact-form-checkbox a {
  color: #289dcc;
  text-decoration: underline;
}
.contact-form-checkbox a:hover {
  color: #1e7fa8;
}

.contact-submit-btn {
  background: linear-gradient(135deg, #289dcc 0%, #1e7fa8 100%) !important;
  color: #fff !important;
  border: none !important;
  padding: 14px 36px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s;
  width: 100%;
}
.contact-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 157, 204, 0.3);
}

/* Sidebar contact info cards */
.contact-info-card {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.contact-info-card:last-child {
  border-bottom: none;
}
.contact-info-phone {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: #289dcc;
  text-decoration: none;
  margin-bottom: 4px;
}
.contact-info-phone:hover {
  color: #1e7fa8;
}
.contact-info-email {
  display: block;
  font-size: 17px;
  font-weight: 600;
  color: #289dcc;
  text-decoration: none;
  margin-bottom: 4px;
}
.contact-info-email:hover {
  color: #1e7fa8;
}
.contact-info-address {
  font-size: 15px;
  line-height: 1.5;
  color: #333;
  margin: 0 0 4px 0;
}
.contact-info-note {
  font-size: 13px;
  color: #888;
  margin: 0;
}

/* Contact page mobile */
@media only screen and (max-width: 767px) {
  .contact-submit-btn {
    padding: 12px 20px !important;
  }
  .contact-info-phone {
    font-size: 20px;
  }
}

/* --- Print styles --- */
@media print {
  #topbar,
  .cta-bar,
  #header-v6,
  #footer,
  .social-icons,
  #breadcrumb-bar {
    display: none !important;
  }
  .container {
    width: 100% !important;
  }
  a[href]:after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
}
