/* ============================================
   Refrigeration Service Company — Styles
   ============================================ */

:root {
  --color-primary: #0c2340;
  --color-primary-light: #1a3a5c;
  --color-accent: #e87722;
  --color-accent-hover: #d06818;
  --color-bg: #d6dce3;
  --color-light: #c8d1da;
  --color-surface: #e0e6ec;
  --color-white: #eaeef3;
  --color-text: #33465a;
  --color-text-muted: #52657a;
  --color-border: #b0bbc8;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --shadow-sm: 0 2px 8px rgba(12, 35, 64, 0.06);
  --shadow-md: 0 8px 30px rgba(12, 35, 64, 0.1);
  --shadow-lg: 0 16px 48px rgba(12, 35, 64, 0.14);
  --radius: 12px;
  --transition: 0.25s ease;
}

/* ---- Base ---- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  line-height: 1.7;
  overflow-x: hidden;
  background-color: var(--color-bg);
}

.bg-light {
  background-color: var(--color-light) !important;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.25;
}

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

a:hover {
  color: var(--color-accent-hover);
}

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

.section-padding {
  padding: 5rem 0;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1.25rem;
}

.section-text {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

/* ---- Buttons ---- */

.btn-accent {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  border-radius: 8px;
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-accent:hover,
.btn-accent:focus {
  background-color: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* ---- Navigation ---- */

#mainNav {
  background: transparent;
  padding: 1rem 0;
  transition: background-color var(--transition), box-shadow var(--transition), padding var(--transition);
}

#mainNav.scrolled {
  background: rgba(224, 230, 236, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 0.6rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-logo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  object-fit: contain;
  transition: width var(--transition), height var(--transition);
}

#mainNav.scrolled .brand-logo {
  width: 46px;
  height: 46px;
}

.brand-logo-lg {
  width: 68px;
  height: 68px;
}

.brand-text {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-white);
  line-height: 1.2;
  transition: color var(--transition);
}

#mainNav.scrolled .brand-text {
  color: var(--color-primary);
}

.nav-link {
  font-weight: 500;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85) !important;
  padding: 0.5rem 1rem !important;
  transition: color var(--transition);
}

#mainNav.scrolled .nav-link {
  color: var(--color-text) !important;
}

.nav-link:hover {
  color: var(--color-accent) !important;
}

.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#mainNav.scrolled .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2812, 35, 64, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---- Hero ---- */

.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(12, 35, 64, 0.92) 0%, rgba(26, 58, 92, 0.88) 50%, rgba(12, 35, 64, 0.95) 100%),
    url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?w=1920&q=80') center/cover no-repeat;
  color: var(--color-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Fill one screen when there's room, but grow on short screens instead of
   letting content collide with the fixed navbar or the scroll cue. */
.hero > .container {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding-top: 7rem;
  padding-bottom: 6rem;
}

.hero > .container > .row {
  flex: 1 1 auto;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.hero .min-vh-100 {
  min-height: 0 !important;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(232, 119, 34, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  background: rgba(232, 119, 34, 0.15);
  border: 1px solid rgba(232, 119, 34, 0.35);
  color: #f5a623;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  color: var(--color-white);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 540px;
  line-height: 1.75;
}

.hero-stats {
  max-width: 400px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-accent);
}

.stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

/* ---- Hero call card ---- */

.hero-call-card {
  background: rgba(12, 35, 64, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  padding: 2rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.hero-call-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-call-number {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 700;
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--transition);
}

.hero-call-number:hover,
.hero-call-number:focus {
  color: var(--color-accent);
}

.hero-call-number i {
  font-size: 0.85em;
  color: var(--color-accent);
}

.hero-call-hours {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0.75rem 0 1.5rem;
}

/* ---- Scroll cue ---- */

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  animation: scroll-cue-float 2.2s ease-in-out infinite;
}

.scroll-cue-text {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition);
}

.scroll-cue-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 26px;
  background: rgba(232, 119, 34, 0.9);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 14px rgba(12, 35, 64, 0.35);
  transition: background-color var(--transition), transform var(--transition);
}

.scroll-cue-tab i {
  font-size: 1rem;
  color: #fff;
  line-height: 1;
}

.scroll-cue:hover .scroll-cue-text {
  color: #fff;
}

.scroll-cue:hover .scroll-cue-tab {
  background: var(--color-accent);
  transform: translateY(2px);
}

.scroll-cue:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: 8px;
}

@keyframes scroll-cue-float {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(7px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue {
    animation: none;
  }
}

/* Short screens (e.g. 1366x768 laptops): compress the hero so the scroll cue
   stays above the fold instead of being pushed below it. */
@media (min-width: 992px) and (max-height: 900px) {
  .hero > .container {
    padding-top: 6rem;
    padding-bottom: 5rem;
  }

  .hero-badge {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: clamp(1.9rem, 3.4vw, 2.6rem);
    margin-bottom: 1rem;
  }

  .hero-lead {
    font-size: 1rem;
    line-height: 1.6;
  }

  .hero-stats {
    margin-top: 2rem !important;
  }
}

/* Very short viewports (small phones, landscape) */
@media (max-height: 700px) {
  .hero > .container {
    padding-top: 5.5rem;
    padding-bottom: 4.5rem;
  }

  .hero-badge {
    font-size: 0.7rem;
    margin-bottom: 0.75rem;
  }

  .hero-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 0.75rem;
  }

  .hero-lead {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hero-stats {
    margin-top: 1.5rem !important;
  }
}

/* Not enough room to show the cue without cramping the hero */
@media (max-height: 600px) {
  .scroll-cue {
    display: none;
  }
}

.btn-outline-light {
  border-radius: 8px;
  font-weight: 600;
  border-width: 2px;
}

.btn-outline-light:hover {
  transform: translateY(-1px);
}

/* ---- About ---- */

.about-image-wrapper {
  position: relative;
  max-width: 460px;
  margin: 0 auto;
}

.about-image {
  aspect-ratio: 4 / 3;
  background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}

.about-image i {
  font-size: 6rem;
  color: rgba(255, 255, 255, 0.15);
}

.about-badge {
  position: absolute;
  bottom: -1.5rem;
  right: -1rem;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.about-badge-year {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.about-badge-text {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.about-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-weight: 500;
  color: var(--color-text);
}

.about-list i {
  color: var(--color-accent);
  font-size: 1.125rem;
  flex-shrink: 0;
}

/* ---- Union Badge ---- */

.union-affiliation {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-left: 4px solid #b91c1c;
  border-radius: var(--radius);
}

.union-badge {
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(12, 35, 64, 0.12));
}

.union-affiliation-label {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #b91c1c;
  margin-bottom: 0.35rem;
}

.union-affiliation-text {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.6;
}

.union-affiliation-text strong {
  color: var(--color-primary);
}

/* ---- Services ---- */

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(232, 119, 34, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-icon i {
  font-size: 1.5rem;
  color: var(--color-accent);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.65;
}

/* ---- Features ---- */

.feature-item {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--color-light);
  height: 100%;
  transition: background-color var(--transition);
}

.feature-item:hover {
  background: rgba(232, 119, 34, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon i {
  font-size: 1.25rem;
  color: var(--color-accent);
}

.feature-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.feature-item p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.6;
}

/* ---- CTA Banner ---- */

.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding: 3.5rem 0;
  color: var(--color-white);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-white);
}

.cta-text {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.cta-banner .btn-light {
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
  background-color: var(--color-surface);
  border-color: var(--color-surface);
  color: var(--color-primary);
}

.cta-banner .btn-light:hover {
  background-color: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-primary);
}

/* ---- Contact ---- */

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(232, 119, 34, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  color: var(--color-accent);
  font-size: 1.125rem;
}

.contact-item strong {
  display: block;
  color: var(--color-primary);
  font-size: 0.9375rem;
  margin-bottom: 0.15rem;
}

.contact-item p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.6;
}

.contact-item a {
  color: var(--color-text-muted);
}

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

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-form .form-control,
.contact-form .form-select {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.9375rem;
  background-color: var(--color-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form .form-label {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-primary);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(232, 119, 34, 0.15);
}

.form-status {
  border-radius: var(--radius);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.form-status.alert-success {
  background-color: #d1e7dd;
  border-color: #badbcc;
  color: #0f5132;
}

.form-status.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c2c7;
  color: #842029;
}

.form-status.alert-warning {
  background-color: #fff3cd;
  border-color: #ffecb5;
  color: #664d03;
}

/* ---- Service Area ---- */

.service-area-text {
  max-width: 640px;
}

.map-frame {
  position: relative;
  height: 460px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-caption {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

@media (max-width: 575.98px) {
  .map-frame {
    height: 320px;
  }
}

/* ---- Footer ---- */

.site-footer {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 2rem;
}

.footer-brand .brand-text {
  color: var(--color-white);
}

.footer-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-heading {
  color: var(--color-white);
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.footer-links li {
  margin-bottom: 0.6rem;
  font-size: 0.9375rem;
}

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

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

.footer-divider {
  border-color: rgba(255, 255, 255, 0.12);
  margin: 2.5rem 0 1.5rem;
}

.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---- Responsive ---- */

@media (max-width: 991.98px) {
  .section-padding {
    padding: 4rem 0;
  }

  #mainNav,
  #mainNav.scrolled {
    background: rgba(12, 35, 64, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
  }

  #mainNav .brand-text,
  #mainNav.scrolled .brand-text {
    color: var(--color-white);
  }

  #mainNav .nav-link,
  #mainNav.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
  }

  /* The mobile navbar stays navy when scrolled, so keep the light icon */
  #mainNav.scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }

  .navbar-collapse {
    background: rgba(12, 35, 64, 0.98);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-top: 0.75rem;
  }

  .about-badge {
    right: 1rem;
    bottom: -1rem;
  }
}

@media (max-width: 575.98px) {
  .section-padding {
    padding: 3rem 0;
  }

  .hero-stats {
    max-width: 100%;
  }

  .about-badge {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: -2rem;
    margin-left: auto;
    margin-right: auto;
    width: fit-content;
  }

  .union-affiliation {
    flex-direction: column;
    text-align: center;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .cta-banner {
    text-align: center;
  }

  .cta-banner .btn-light {
    width: 100%;
  }

  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .navbar-brand .brand-text {
    font-size: 0.95rem;
    line-height: 1.2;
  }

  .brand-logo {
    width: 44px;
    height: 44px;
  }

  .hero-badge {
    font-size: 0.65rem;
    letter-spacing: 0.03em;
    padding: 0.4rem 1rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-call-card {
    padding: 1.5rem 1.25rem;
  }

  .hero-stats {
    margin-top: 2.5rem !important;
  }
}
