/*
Theme Name: Chillcorp
Theme URI: https://chillcorp.co.nz/
Author: Caddie Digital
Author URI: https://www.caddiedigital.co.nz/
Description: Bespoke plugin-free WordPress theme for Chillcorp — Hawke's Bay HVAC & refrigeration specialists. Home, About, Contact and 10 service pages (Commercial & Residential), all content editable in the CMS via the theme's own native editing screens — no plugins required.
Version: 1.3.3
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: chillcorp
Tags: business, custom-colors, custom-menu, custom-logo, featured-images, full-width-template, two-columns, three-columns

This theme's visual styling lives in /assets/css/main.css (and vendor/plugin CSS).
This style.css is the WordPress theme header + the Chillcorp brand overrides:
main.css is fully CSS-variable-driven, so the rebrand happens in :root below.
*/

/* ============================================================
   Chillcorp brand palette
   Primary (logo petrol blue) #005479  ·  Secondary (logo cool grey) #B3B6BF
   Buttons/accents use the logo blue itself #005479 (hover #003D58); #1CA0D4 is kept for link hovers only
   ============================================================ */
:root {
  --rs-theme-blue: #005479;
  --rs-theme-cyan: #005479;        /* header buttons (has-theme-cyan) */
  --rs-theme-light-blue: #1CA0D4;
  --rs-theme-medium-blue: #003D58;
  --rs-theme-orange: #005479;      /* accent slots throughout the theme */
  --light-blue: #005479;           /* base-theme button/footer var */
  --dark-blue: #005479;            /* base-theme loader/decoration var */
  --cc-accent: #005479;
  --cc-accent-dark: #003D58;
  --cc-grey: #B3B6BF;
}

/* ---- WordPress core helper classes (admin bar, alignments, captions) ---- */
.admin-bar .rs-sticky-header.rs-sticky { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .rs-sticky-header.rs-sticky { top: 46px; }
}

.alignnone { margin: 5px 20px 20px 0; }
.aligncenter, div.aligncenter { display: block; margin: 5px auto; }
.alignright { float: right; margin: 5px 0 20px 20px; }
.alignleft { float: left; margin: 5px 20px 20px 0; }
.wp-caption { max-width: 100%; }
.wp-caption-text { text-align: center; font-size: 0.9em; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute;
}

/* Contact / review form status messages */
#form-messages .cc-ok, #reviewMsg.cc-ok { color: #1a7f37; margin-top: 12px; }
#form-messages .cc-err, #reviewMsg.cc-err { color: #c0392b; margin-top: 12px; }

/* "Book a Job" header CTA: smaller than the stock header button so it sits
   with clear white space around it instead of filling the header bar */
.rs-header-right .rs-header-btn .rs-btn.cc-book-btn {
  padding: 11px 22px;
  font-size: 16px;
  margin: 9px 0;
  border-radius: 4px;
}

/* "Book a Job" header CTA — ice-blue accent so it stands apart from "Get a Quote" */
.rs-header-btn .rs-btn.cc-book-btn,
.rs-header-btn .rs-btn.cc-book-btn:hover,
.rs-header-btn .rs-btn.cc-book-btn:focus {
  background: var(--cc-accent) !important;
  background-color: var(--cc-accent) !important;
  background-image: none !important;
  border-color: var(--cc-accent) !important;
  color: #fff !important;
}
.rs-header-btn .rs-btn.cc-book-btn::before,
.rs-header-btn .rs-btn.cc-book-btn::after { background: var(--cc-accent-dark) !important; }
.rs-header-btn .rs-btn.cc-book-btn:hover { background-color: var(--cc-accent-dark) !important; }

/* In-content SEO links (brand -> home, service mentions -> service pages):
   make them visibly clickable against the grey body text */
.rs-about-content-wrapper p a,
.rs-services-tab-content p a,
.rs-services-details-wrapper p a,
.rs-services-details-feature-list p a,
.rs-history-tab-content p a,
.rs-work-step-descrip p a,
.rs-services-item p a,
.cta-content .descrip a,
.rs-contact-form .descrip a {
  color: var(--rs-theme-blue, #005479);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s ease;
}
.rs-about-content-wrapper p a:hover,
.rs-services-tab-content p a:hover,
.rs-services-details-wrapper p a:hover,
.rs-services-details-feature-list p a:hover,
.rs-history-tab-content p a:hover,
.rs-work-step-descrip p a:hover,
.rs-services-item p a:hover,
.cta-content .descrip a:hover,
.rs-contact-form .descrip a:hover {
  color: #1CA0D4;
}
/* Sections on dark/accent backgrounds keep white links, underlined */
.has-theme-orange .cta-content .descrip a { color: #fff; }
.has-theme-orange .cta-content .descrip a:hover { color: rgba(255,255,255,.8); }

/* Top bar: contact details right-aligned (address removed) */
.rs-header-top.cc-topbar-right { justify-content: flex-end; padding-inline-start: 0; }
.rs-header-info-item li span { color: inherit; }

/* Trustindex / reviews widget container (replaces testimonials slider when set) */
.cc-reviews-widget { width: 100%; background: #fff; border-radius: 10px; padding: 30px 26px; }

/* Commercial vs Residential split cards (home) */
.cc-split-card { height: 100%; }
.cc-split-card .rs-services-thumb img { width: 100%; height: 320px; object-fit: cover; }
.cc-split-points { margin-bottom: 20px; }
.cc-split-points ul li { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cc-split-points ul li i { color: var(--cc-accent); }

/* ============================================================
   Hero banner — cinematic media, centered content, Google
   rating pill, bottom trust bar
   ============================================================ */
.cc-hero {
  position: relative;
  min-height: 780px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cc-hero-video,
.cc-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
}
.cc-hero-scrim {
  position: absolute;
  inset: 0;
  /* Dark over the text on the left, fading to nothing on the right so the
     equipment in the photo stays clear */
  background: linear-gradient(90deg, rgba(7,22,31,.82) 0%, rgba(7,22,31,.6) 40%, rgba(7,22,31,0) 72%);
}
@media (max-width: 767px) {
  .cc-hero-scrim { background: rgba(7,22,31,.6); }
}
.cc-hero-inner {
  position: relative;
  text-align: left;
  color: #fff;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 70px 30px 140px;
}
.cc-hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #1F1F1F;
  border-radius: 100px;
  padding: 10px 22px;
  margin: 34px 0 0; /* clear space between the CTA buttons and the pill */
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.cc-g-logo { font-weight: 600; font-size: 19px; letter-spacing: -.5px; line-height: 1; }
.cc-g-logo span:nth-child(1) { color: #4285F4; }
.cc-g-logo span:nth-child(2) { color: #EA4335; }
.cc-g-logo span:nth-child(3) { color: #FBBC05; }
.cc-g-logo span:nth-child(4) { color: #4285F4; }
.cc-g-logo span:nth-child(5) { color: #34A853; }
.cc-g-logo span:nth-child(6) { color: #EA4335; }
.cc-g-stars { color: #FBBC05; font-size: 16px; letter-spacing: 2px; line-height: 1; }
.cc-g-score { font-weight: 700; font-size: 16px; line-height: 1; }
.cc-hero-title {
  font-size: clamp(38px, 4.2vw, 66px);
  line-height: 1.05;
  font-weight: 700;
  color: #fff;
  margin-bottom: 22px;
  max-width: 720px;
}
.cc-hero-text {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(255,255,255,.85);
  max-width: 620px;
  margin: 0 0 36px;
}
.cc-hero-btns { display: flex; gap: 16px; justify-content: flex-start; flex-wrap: wrap; }
.cc-hero-btn {
  display: inline-block;
  padding: 17px 34px;
  font-size: 17px;
  font-weight: 600;
  border-radius: 4px;
  background: var(--cc-accent);
  color: #fff;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.cc-hero-btn:hover { background: var(--cc-accent-dark); color: #fff; }
.cc-hero-btn.ghost { background: transparent; border: 2px solid rgba(255,255,255,.85); padding: 15px 32px; }
.cc-hero-btn.ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.cc-hero-trustbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,.15);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 70px;
  padding: 18px 30px;
  color: #fff;
  font-size: 15px;
}
.cc-hero-trustbar span { display: inline-flex; align-items: center; gap: 10px; opacity: .92; }
.cc-hero-trustbar i { color: #6FCDEB; }
@media (max-width: 991px) {
  .cc-hero { min-height: 640px; }
  .cc-hero-inner { padding-bottom: 170px; }
  .cc-hero-trustbar { gap: 10px 34px; }
}
@media (max-width: 575px) {
  .cc-hero { min-height: 560px; }
  .cc-hero-text { font-size: 17px; }
  .cc-hero-btn { padding: 14px 26px; font-size: 16px; }
  .cc-hero-trustbar { flex-direction: column; align-items: center; gap: 8px; }
}

/* Trustindex widget: let the reviews fill the full section width.
   The widget measures its container once on load and locks in fixed card
   widths; these rules open its containers to the full column and the theme
   nudges the widget to re-measure after page load (see cc_ti_relayout in
   functions.php), so it lays the cards out across the whole row itself. */
.cc-reviews-widget { padding: 30px 26px; }
.cc-reviews-widget .ti-widget,
.cc-reviews-widget .ti-widget-container,
.cc-reviews-widget .ti-reviews-container {
  width: 100% !important;
  max-width: 100% !important;
}

/* Contact page: keep the phone number on one line, hours note underneath */
.cont-tel a { white-space: nowrap; }
.cont-tel small { display: block; margin-top: 6px; color: #737373; }

/* Preloader: 4th brand logo joins the main.css cert1–3 slide-in sequence */
.cert4 {
  animation: slideIn 0.8s ease forwards;
  animation-delay: 2.5s;
}

/* Footer: flat dark steel background + light text so the content stays readable */
footer .rs-footer-area {
  background-image: none;
  background: linear-gradient(180deg, #00405C, #002A3E);
}
footer .rs-footer-widget-title,
.rs-footer-two .rs-footer-widget-title,
footer .rs-footer-area .rs-footer-widget-title { color: #fff; }
footer .rs-footer-widget-links ul li a,
footer .rs-footer-widget-contact-info ul li,
footer .rs-footer-widget-contact-info ul li a,
footer .rs-footer-widget-contact-info ul li span,
footer .copyright .copy {
  color: rgba(255, 255, 255, 0.82);
}
footer .rs-footer-widget-links ul li a:hover { color: #6FCDEB; }
footer .rs-footer-widget-contact-info ul li i { color: #6FCDEB; }

/* SiteWise Green badge under the footer logo */
.cc-footer-badge { margin-top: 20px; }
.cc-footer-badge img { max-width: 220px; width: 100%; height: auto; border-radius: 6px; display: block; }

/* Smaller navigation logo (base theme allows up to 320px) */
.rs-header-logo img { max-width: 200px; }
@media (max-width: 767px) {
  .rs-header-logo img { max-width: 160px; }
}

/* Projects page: card grid, each card carries its own image carousel */
.cc-project-card { height: 100%; }
.cc-project-slider { position: relative; }
.cc-project-slider .swiper { width: 100%; }
.cc-project-slider img { width: 100%; height: 380px; object-fit: cover; display: block; }
@media (max-width: 767px) {
  .cc-project-slider img { height: 260px; }
}
.cc-project-slider .swiper-pagination { bottom: 14px !important; }
.cc-project-slider .swiper-pagination-bullet { background: #fff; opacity: .6; }
.cc-project-slider .swiper-pagination-bullet-active { background: var(--cc-accent); opacity: 1; }
.cc-project-slider .swiper-button-prev,
.cc-project-slider .swiper-button-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  margin: 0;
}
/* main.js swaps nextEl/prevEl, so -next sits left (back) and -prev sits right (forward) */
.cc-project-slider .swiper-button-next { left: 14px; right: auto; }
.cc-project-slider .swiper-button-prev { right: 14px; left: auto; }
.cc-project-slider .swiper-button-prev::after,
.cc-project-slider .swiper-button-next::after { content: none; }

/* Service pages: FAQ + Get a Quote section */
.cc-faq-heading { margin-bottom: 26px; }
.rs-accordion-one .accordion-body { padding: 0 20px 20px; }
.cc-quote-panel {
  background: #fff;
  border: 1px solid rgba(21, 42, 64, 0.08);
  border-radius: 8px;
  padding: 34px 30px;
  box-shadow: 0 14px 40px rgba(0, 40, 60, 0.08);
}
.cc-quote-title { margin-bottom: 10px; }
.cc-quote-panel .descrip { margin-bottom: 22px; }
.cc-quote-panel .rs-contact-input { margin-bottom: 16px; }
.cc-quote-panel .rs-contact-input input,
.cc-quote-panel .rs-contact-input textarea {
  width: 100%;
  border: 1px solid rgba(21, 42, 64, 0.12);
  border-radius: 4px;
  padding: 13px 16px;
  background: #fafbfc;
}
.cc-quote-panel .rs-contact-input textarea { min-height: 110px; }
#quote-messages.cc-ok, #quote-messages .cc-ok { color: #1a7f37; margin-top: 12px; }
#quote-messages.cc-err, #quote-messages .cc-err { color: #c0392b; margin-top: 12px; }

/* Why Choose Us: Font Awesome icons inside the icon boxes (images also supported) */
.rs-why-choose-icon i { font-size: 32px; color: var(--rs-theme-blue); line-height: 1; }

/* Plandroid design-software note (home HVAC Design tab + service page) */
.cc-plandroid {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-weight: 600;
  color: var(--rs-theme-blue);
}
.cc-plandroid img { height: 26px; width: auto; }

/* Embedded form shortcode (e.g. Gravity Forms) on the contact page: match the
   theme's input and button styling without fighting the plugin's own CSS */
.cc-form-embed input[type="text"],
.cc-form-embed input[type="email"],
.cc-form-embed input[type="tel"],
.cc-form-embed input[type="number"],
.cc-form-embed select,
.cc-form-embed textarea {
  width: 100%;
  border: 1px solid rgba(21, 42, 64, 0.12);
  border-radius: 4px;
  padding: 13px 16px;
  background: #fafbfc;
}
.cc-form-embed input[type="submit"],
.cc-form-embed button[type="submit"] {
  background: var(--cc-accent);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 15px 30px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease;
}
.cc-form-embed input[type="submit"]:hover,
.cc-form-embed button[type="submit"]:hover { background: var(--cc-accent-dark); }
