/* ============================================
   REFRIGERATION PROFESSIONALS LLC
   Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
  --primary-blue: #0056b3;
  --secondary-blue: #003d82;
  --light-blue: #e8f4fc;
  --accent-blue: #2196F3;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --dark-gray: #333333;
  --text-color: #212529;
  --border-color: #dee2e6;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
  --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-blue);
}

ul, ol {
  list-style-position: inside;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--dark-gray);
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1rem;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-blue);
  color: var(--white);
  padding: 8px 16px;
  z-index: 1000;
  transition: var(--transition);
}

.skip-link:focus {
  top: 0;
}

/* ============================================
   HEADER STYLES
   ============================================ */
.header {
  background-color: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1.2;
}

.logo-text span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--dark-gray);
}

/* Navigation */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-blue);
  transition: var(--transition);
}

.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--white);
  box-shadow: var(--shadow);
}

.nav.active {
  display: block;
}

.nav-list {
  list-style: none;
  padding: 20px;
}

.nav-list li {
  margin-bottom: 10px;
}

.nav-list a {
  display: block;
  padding: 10px 15px;
  color: var(--text-color);
  font-weight: 500;
  border-radius: 5px;
  transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
  background-color: var(--light-blue);
  color: var(--primary-blue);
}

/* Header CTA */
.header-cta {
  display: none;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--primary-blue);
  font-weight: 600;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: linear-gradient(rgba(0, 86, 179, 0.85), rgba(0, 61, 130, 0.9)),
              url('../assets/AdobeStock_122316224.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 80px 20px;
  text-align: center;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  color: var(--white);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--white);
  color: var(--primary-blue);
}

.btn-primary:hover {
  background-color: var(--light-blue);
  color: var(--secondary-blue);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-secondary:hover {
  background-color: var(--white);
  color: var(--primary-blue);
}

.btn-blue {
  background-color: var(--primary-blue);
  color: var(--white);
}

.btn-blue:hover {
  background-color: var(--secondary-blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
  padding: 60px 20px;
}

.section-light {
  background-color: var(--light-gray);
}

.section-blue {
  background-color: var(--primary-blue);
  color: var(--white);
}

.section-blue h2,
.section-blue h3 {
  color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--primary-blue);
}

.section-blue .section-title h2::after {
  background-color: var(--white);
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-card-content {
  padding: 25px;
}

.service-card h3 {
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-color);
  margin-bottom: 15px;
}

.service-card .btn {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* ============================================
   FEATURES / WHY CHOOSE US
   ============================================ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-item {
  text-align: center;
  padding: 30px;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background-color: var(--light-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
}

.feature-item h3 {
  color: var(--primary-blue);
  margin-bottom: 10px;
}

/* ============================================
   LEAD FORM
   ============================================ */
.lead-form-section {
  background: linear-gradient(rgba(0, 86, 179, 0.9), rgba(0, 61, 130, 0.95)),
              url('../assets/img-media-savings-efficiency_2.jpg') center/cover no-repeat;
  padding: 60px 20px;
}

.lead-form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--white);
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-hover);
}

.lead-form-container h2 {
  text-align: center;
  color: var(--primary-blue);
  margin-bottom: 10px;
}

.lead-form-container > p {
  text-align: center;
  color: var(--text-color);
  margin-bottom: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  transition: var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  padding: 15px;
  font-size: 1.125rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px;
  background-color: #d4edda;
  color: #155724;
  border-radius: 5px;
  margin-top: 20px;
}

.form-error {
  display: none;
  text-align: center;
  padding: 20px;
  background-color: #f8d7da;
  color: #721c24;
  border-radius: 5px;
  margin-top: 20px;
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-hero {
  background: linear-gradient(rgba(0, 86, 179, 0.85), rgba(0, 61, 130, 0.9)),
              url('../assets/commercial-refrigeration-technician-adjusting-system-components.jpg') center/cover no-repeat;
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
}

.about-hero h1 {
  color: var(--white);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.about-content h2 {
  color: var(--primary-blue);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.values-list {
  list-style: none;
  padding: 0;
}

.values-list li {
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.values-list li::before {
  content: '✓';
  color: var(--primary-blue);
  font-weight: bold;
  font-size: 1.25rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info {
  padding: 30px;
  background-color: var(--light-gray);
  border-radius: 10px;
}

.contact-info h2 {
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-item h3 {
  font-size: 1rem;
  color: var(--dark-gray);
  margin-bottom: 5px;
}

.contact-item p,
.contact-item a {
  color: var(--text-color);
  margin: 0;
}

.contact-item a:hover {
  color: var(--primary-blue);
}

/* Map */
.map-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  height: 300px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================================
   SERVICES PAGE
   ============================================ */
.service-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border-color);
}

.service-detail:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.service-detail img {
  border-radius: 10px;
  box-shadow: var(--shadow);
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.service-detail-content h2 {
  color: var(--primary-blue);
}

.service-detail-content ul {
  margin: 20px 0;
  padding-left: 20px;
}

.service-detail-content li {
  margin-bottom: 10px;
}

/* ============================================
   LEGAL PAGES (Privacy, Terms, Cookie Policy)
   ============================================ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.legal-content h1 {
  color: var(--primary-blue);
  margin-bottom: 30px;
}

.legal-content h2 {
  color: var(--secondary-blue);
  font-size: 1.5rem;
  margin-top: 30px;
  margin-bottom: 15px;
}

.legal-content h3 {
  color: var(--dark-gray);
  font-size: 1.25rem;
  margin-top: 20px;
  margin-bottom: 10px;
}

.legal-content p,
.legal-content ul,
.legal-content ol {
  margin-bottom: 15px;
}

.legal-content ul,
.legal-content ol {
  padding-left: 30px;
}

.legal-content li {
  margin-bottom: 8px;
}

.last-updated {
  color: var(--dark-gray);
  font-style: italic;
  margin-bottom: 30px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 50px 20px 30px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.footer-section h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 10px;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--white);
  box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
  padding: 20px;
  z-index: 1000;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-content h3 {
  font-size: 1.125rem;
  margin-bottom: 10px;
}

.cookie-content p {
  margin-bottom: 15px;
  font-size: 0.875rem;
  color: var(--text-color);
}

.cookie-content a {
  color: var(--primary-blue);
}

.cookie-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-buttons .btn {
  padding: 10px 20px;
  font-size: 0.875rem;
}

/* Cookie Settings Modal */
.cookie-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal.show {
  display: flex;
}

.cookie-modal-content {
  background-color: var(--white);
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 30px;
}

.cookie-modal-content h2 {
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.cookie-option {
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.cookie-option:last-of-type {
  border-bottom: none;
}

.cookie-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.cookie-option h4 {
  margin: 0;
  font-size: 1rem;
}

.cookie-option p {
  font-size: 0.875rem;
  color: var(--text-color);
  margin: 0;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 50px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: var(--transition);
  border-radius: 26px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: var(--white);
  transition: var(--transition);
  border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary-blue);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.cookie-modal-buttons .btn {
  flex: 1;
}

/* ============================================
   PAGE HEADER (for inner pages)
   ============================================ */
.page-header {
  background: linear-gradient(rgba(0, 86, 179, 0.85), rgba(0, 61, 130, 0.9)),
              var(--light-gray);
  color: var(--white);
  padding: 40px 20px;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 10px;
}

.page-header p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   BUSINESS MODEL PAGE
   ============================================ */
.business-model-section {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
}

.business-model-section h2 {
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.business-model-section p {
  margin-bottom: 20px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet (768px and up) */
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.25rem; }
  
  .hero {
    padding: 100px 20px;
    min-height: 600px;
  }
  
  .hero h1 {
    font-size: 2.75rem;
  }
  
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .map-container {
    height: 400px;
  }
  
  .service-detail {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  
  .service-detail:nth-child(even) {
    direction: rtl;
  }
  
  .service-detail:nth-child(even) > * {
    direction: ltr;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cookie-content {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .cookie-content p {
    flex: 1;
    margin-bottom: 0;
  }
  
  .cookie-buttons {
    flex-shrink: 0;
  }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
  .header-container {
    padding: 15px 40px;
  }
  
  .nav-toggle {
    display: none;
  }
  
  .nav {
    display: flex;
    position: static;
    box-shadow: none;
    background: transparent;
  }
  
  .nav-list {
    display: flex;
    gap: 5px;
    padding: 0;
  }
  
  .nav-list li {
    margin-bottom: 0;
  }
  
  .nav-list a {
    padding: 10px 15px;
  }
  
  .header-cta {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  
  .hero {
    padding: 120px 20px;
  }
  
  .hero h1 {
    font-size: 3.25rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
  .container {
    padding: 0 40px;
  }
  
  .section {
    padding: 80px 40px;
  }
}

/* Print Styles */
@media print {
  .header,
  .footer,
  .cookie-banner,
  .cookie-modal {
    display: none;
  }
  
  body {
    font-size: 12pt;
  }
  
  a {
    color: inherit;
    text-decoration: underline;
  }
}
