/*
Theme Name: Unique Cooling Experts
Theme URI: https://uniquecoolingexperts.co.ke/
Description: Unique Cooling Experts - HVAC, Cold Room & Air Conditioning WordPress Theme
Version: 1.0
Author: Unique Cooling Experts
Author URI: https://uniquecoolingexperts.co.ke/
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: unique-cooling-experts
Tags: custom-background, custom-logo, featured-images, theme-options, translation-ready, two-columns
*/

/* ============================================================
   IMPORTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Archivo+Expanded:wght@600;700;800&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================
   ROOT VARIABLES
   ============================================================ */
:root {
  --white: #FFFFFF;
  --paper: #F7F9FA;
  --ink: #0B1F2A;
  --slate: #5B6B74;
  --line: #E3E9EC;
  --teal: #0C8599;
  --teal-deep: #086573;
  --ice: #E6F7F9;
  --amber: #F2A93C;
  --amber-deep: #D98F1E;
  --radius: 6px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --navy: #0b1120;
  --shadow-sm: 0 2px 8px rgba(11,31,42,0.06);
  --shadow-md: 0 8px 30px rgba(11,31,42,0.08);
  --shadow-lg: 0 25px 70px rgba(11,31,42,0.10);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.mono {
  font-family: 'IBM Plex Mono', monospace;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Archivo Expanded', 'Inter', sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--ink);
}

/* ============================================================
   UTILITY
   ============================================================ */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.container-fluid {
  width: 100%;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible,
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'IBM Plex Sans', sans-serif;
  text-decoration: none;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.btn-primary {
  background: var(--amber);
  color: #20150A;
  border-color: var(--amber);
}

.btn-primary:hover {
  background: var(--amber-deep);
  border-color: var(--amber-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242, 169, 60, 0.35);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover svg {
  transform: translateX(4px);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
}

.btn-teal:hover {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(12, 133, 153, 0.28);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius);
}

/* ============================================================
   HEADER / TOPBAR
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  transition: box-shadow 0.2s ease, padding 0.2s ease;
}

.topbar.scrolled {
  box-shadow: 0 4px 20px rgba(11, 31, 42, 0.06);
  padding: 8px 0;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cspt-main-logo {
  max-height: 80px;
  width: auto;
  height: auto;
}

@media (max-width: 900px) {
  .cspt-main-logo {
    max-height: 52px;
    max-width: 60%;
  }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  color: var(--ink);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--teal);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

/* ============================================================
   CONTACT PAGE - MAIN
   ============================================================ */
.contact-page {
  background: var(--paper);
  min-height: 100vh;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 32px 80px;
}

/* ============================================================
   CONTACT HEADER
   ============================================================ */
.contact-section-head {
  max-width: 780px;
  margin: 0 auto 48px;
  text-align: center;
}

.contact-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--teal);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.contact-eyebrow::before,
.contact-eyebrow::after {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--teal);
  opacity: 0.4;
}

.contact-h1 {
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 16px;
}

.contact-h1::after {
  content: ".";
  color: var(--amber);
}

.contact-supporting {
  max-width: 680px;
  margin: 0 auto;
  color: var(--slate);
  font-size: 16px;
  line-height: 1.8;
}

/* ============================================================
   CTA ROW
   ============================================================ */
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.cta-row .btn {
  min-width: 160px;
}

/* ============================================================
   CONTACT GRID
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  margin-bottom: 30px;
}

/* ============================================================
   CONTACT INFO CARD
   ============================================================ */
.contact-info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  height: 100%;
  transition: var(--transition);
}

.contact-info-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.contact-info-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--ink);
  position: relative;
  padding-bottom: 16px;
}

.contact-info-card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  border-radius: 2px;
}

.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-info-row:first-child {
  padding-top: 0;
}

.contact-info-icon {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--ice);
  color: var(--teal);
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
}

.contact-info-body {
  min-width: 0;
  flex: 1;
}

.contact-info-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}

.contact-info-value a {
  color: var(--teal);
  font-weight: 500;
  transition: var(--transition);
}

.contact-info-value a:hover {
  color: var(--amber);
}

/* ============================================================
   CONTACT FORM CARD
   ============================================================ */
.contact-form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-md);
  height: 100%;
  transition: var(--transition);
}

.contact-form-card:hover {
  box-shadow: var(--shadow-lg);
}

.contact-form-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--ink);
  position: relative;
  padding-bottom: 16px;
}

.contact-form-card h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  border-radius: 2px;
}

/* ============================================================
   FORM FIELDS
   ============================================================ */
.contact-field {
  margin-bottom: 18px;
}

.contact-field:last-of-type {
  margin-bottom: 24px;
}

.contact-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.contact-field .required {
  color: #dc3545;
  margin-left: 2px;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.contact-field input:hover,
.contact-field select:hover,
.contact-field textarea:hover {
  border-color: var(--teal);
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(12, 133, 153, 0.12);
  background: var(--white);
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--slate);
  opacity: 0.5;
}

.contact-field input {
  height: 50px;
}

.contact-field textarea {
  min-height: 140px;
  resize: vertical;
}

/* Select */
.contact-field select {
  height: 50px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235B6B74' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.contact-field select option {
  background: var(--white);
  color: var(--ink);
  padding: 8px;
}

/* Character counter */
.char-count {
  text-align: right;
  font-size: 12px;
  color: var(--slate);
  margin-top: 6px;
  font-family: 'IBM Plex Mono', monospace;
  transition: var(--transition);
}

/* ============================================================
   PRODUCT NOTE
   ============================================================ */
.contact-product-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  background: var(--ice);
  border: 1px solid rgba(12, 133, 153, 0.2);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink);
}

.contact-product-note svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--teal);
}

.contact-product-note strong {
  color: var(--teal);
}

/* ============================================================
   FORM RESPONSES
   ============================================================ */
.form-response {
  display: none;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 16px;
}

.form-response.show {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-response svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.form-response.success {
  color: #0a6b3a;
  background: #e6f7ed;
  border: 1px solid #b8e6cd;
}

.form-response.error {
  color: #a11f2a;
  background: #fde8ea;
  border: 1px solid #f5c6cb;
}

/* ============================================================
   SUBMIT BUTTON
   ============================================================ */
.contact-submit-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.contact-submit-btn {
  min-width: 180px;
  padding: 14px 32px;
  font-size: 15px;
}

.contact-submit-btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================================
   MAP
   ============================================================ */
.contact-map {
  position: relative;
  margin-top: 30px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--white);
}

.contact-map::before {
  content: "📍 Our Location";
  position: absolute;
  z-index: 2;
  top: 18px;
  left: 18px;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--white);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
  filter: saturate(0.9) contrast(1.05);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .contact-container {
    padding: 40px 20px 60px;
  }
  
  .contact-info-card,
  .contact-form-card {
    padding: 28px 24px;
  }
}

@media (max-width: 768px) {
  .contact-container {
    padding: 30px 16px 50px;
  }
  
  .contact-section-head {
    margin-bottom: 32px;
  }
  
  .contact-h1 {
    font-size: 34px;
  }
  
  .contact-supporting {
    font-size: 14px;
  }
  
  .cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 32px;
  }
  
  .cta-row .btn {
    width: 100%;
    justify-content: center;
  }
  
  .contact-info-card,
  .contact-form-card {
    padding: 24px 18px;
    border-radius: var(--radius-lg);
  }
  
  .contact-info-card h3,
  .contact-form-card h3 {
    font-size: 18px;
  }
  
  .contact-info-row {
    padding: 14px 0;
    gap: 14px;
  }
  
  .contact-info-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
  }
  
  .contact-info-icon svg {
    width: 17px;
    height: 17px;
  }
  
  .contact-field input,
  .contact-field select {
    height: 46px;
  }
  
  .contact-field textarea {
    min-height: 120px;
  }
  
  .contact-submit-row {
    justify-content: stretch;
  }
  
  .contact-submit-btn {
    width: 100%;
    justify-content: center;
  }
  
  .contact-map {
    border-radius: var(--radius-lg);
    margin-top: 24px;
  }
  
  .contact-map::before {
    top: 12px;
    left: 12px;
    font-size: 10px;
    padding: 6px 12px;
  }
  
  .contact-map iframe {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .contact-container {
    padding: 20px 12px 40px;
  }
  
  .contact-h1 {
    font-size: 28px;
  }
  
  .contact-eyebrow {
    font-size: 10px;
    gap: 8px;
  }
  
  .contact-eyebrow::before,
  .contact-eyebrow::after {
    width: 20px;
  }
  
  .contact-info-card,
  .contact-form-card {
    padding: 20px 14px;
    border-radius: 14px;
  }
  
  .contact-info-row {
    padding: 12px 0;
    gap: 12px;
  }
  
  .contact-info-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 8px;
  }
  
  .contact-info-icon svg {
    width: 15px;
    height: 15px;
  }
  
  .contact-info-value {
    font-size: 13px;
  }
  
  .contact-field input,
  .contact-field select {
    height: 42px;
    padding: 10px 14px;
    font-size: 13px;
  }
  
  .contact-field textarea {
    padding: 10px 14px;
    font-size: 13px;
    min-height: 100px;
  }
  
  .contact-submit-btn {
    padding: 12px 20px;
    font-size: 14px;
  }
  
  .contact-map iframe {
    height: 220px;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--white);
  padding: 48px 0 24px;
}

.footer-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 32px;
  margin-bottom: 24px;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-widget h3 {
  color: var(--white);
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-widget p,
.footer-widget li {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.8;
}

.footer-widget ul {
  list-style: none;
}

.footer-widget ul li {
  margin-bottom: 8px;
}

.footer-widget ul a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-widget ul a:hover {
  color: var(--ice);
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.04em;
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-md);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--teal);
  transform: translateY(-3px);
}

/* ============================================================
   FLOATING CTA
   ============================================================ */
.floating-cta {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.float-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.float-phone {
  background: var(--teal);
}

.float-whatsapp {
  background: #25D36F;
}

.float-btn svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 768px) {
  .floating-cta {
    right: 14px;
    bottom: 80px;
    gap: 10px;
  }
  
  .float-btn {
    width: 46px;
    height: 46px;
  }
  
  .float-btn svg {
    width: 20px;
    height: 20px;
  }
  
  body {
    padding-bottom: 120px;
  }
}