/* ==========================================================================
   Seattle Fridge Repair — style.css
   ========================================================================== */

:root {
  --primary-blue: #1a365d;
  --primary-blue-hover: #2b6cb0;
  --accent-red: #c53030;
  --accent-red-hover: #e53e3e;
  --success-green: #28a745;
  --success-green-hover: #23913d;
  --bg-light: #f7fafc;
  --surface: #ffffff;
  --text-dark: #2d3748;
  --text-muted: #718096;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --font-main: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ==========================================================================
   Base & Reset
   ========================================================================== */

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

html {
  width: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg-light);
}

img, svg, video, iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  margin: 20px auto;
  border-radius: var(--radius-sm);
}

main, section, article, aside, header, footer, nav, 
.container, .content-block, .page-content, .hero-cta-buttons, 
.silos-grid, .features-grid, .brands-grid, .footer-grid, 
.cta-content, .cta-actions, .logo, .contact-header, .silo-titles, .feature-text {
  min-width: 0;
}

.container {
  width: 100%;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--primary-blue-hover);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

p, h1, h2, h3, h4, li {
  overflow-wrap: anywhere;
}

.logo a, .phone-link, .main-nav .nav-link, .btn, 
.btn-cta-main, .cta-phone, .mobile-call-bar {
  overflow-wrap: normal;
  word-break: normal;
}

ul, ol {
  padding-left: 1.2rem;
}

/* ==========================================================================
   Typography
   ========================================================================== */

.page-content {
  margin-top: 10px;
}

.page-content p {
  margin: 0 0 18px;
}

.page-content h2 {
  margin: 40px 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--bg-light);
  color: var(--primary-blue);
  font-size: clamp(26px, 4vw, 28px);
  font-weight: 800;
  line-height: 1.2;
}

.page-content h3 {
  margin: 26px 0 12px;
  color: var(--text-dark);
  font-size: clamp(20px, 3.6vw, 22px);
  font-weight: 800;
  line-height: 1.25;
}

.page-content ul, .page-content ol {
  margin: 0 0 18px 20px;
}

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

.page-title {
  margin-bottom: 18px;
  color: var(--primary-blue);
  font-size: clamp(30px, 6vw, 38px);
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  padding: 20px 0;
}

.logo a {
  display: block;
  color: var(--primary-blue);
  font-size: clamp(24px, 5.5vw, 26px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  text-decoration: none;
}

.contact-header {
  display: flex;
  align-items: center;
  gap: 15px;
  max-width: 100%;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.phone-link {
  display: inline-block;
  color: var(--accent-red);
  font-size: clamp(22px, 5vw, 24px);
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}

.phone-link:hover {
  color: var(--accent-red-hover);
  text-decoration: none;
}

.main-nav {
  background: var(--primary-blue);
  padding: 12px 0;
}

.main-nav .container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.main-nav .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 6px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}

.main-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.main-nav .btn-nav {
  margin-left: auto;
  background: var(--accent-red);
  box-shadow: 0 4px 6px rgba(197, 48, 48, 0.2);
}

.main-nav .btn-nav:hover {
  background: var(--accent-red-hover);
  box-shadow: 0 6px 8px rgba(197, 48, 48, 0.3);
  transform: translateY(-1px);
}

/* ==========================================================================
   Layout Blocks
   ========================================================================== */

.content-block {
  margin: 40px auto;
  padding: 50px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.btn, .btn-cta-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 900;
  letter-spacing: 0.2px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn:hover, .btn-cta-main:hover {
  text-decoration: none;
  filter: brightness(0.98);
  transform: translateY(-1px);
}

.btn-primary { background: #0056b3; color: #fff; }
.btn-primary:hover { color: #fff; }

.btn-success { background: var(--success-green); color: #fff; }
.btn-success:hover { color: #fff; }

/* ==========================================================================
   Components (Silos, Promos, Features, Brands)
   ========================================================================== */

.silos-section { margin: 10px 0 35px; }

.silos-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.silo-tile {
  position: relative;
  display: block;
  height: 100%;
  padding: 20px 20px 20px 22px;
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  text-decoration: none;
  transition: all 0.25s ease;
}

.silo-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
  border-color: rgba(43, 108, 176, 0.5);
  text-decoration: none;
}

.silo-tile::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: var(--border-color);
  border-radius: 12px 0 0 12px;
}

.silo-tile__top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.silo-icon {
  display: inline-flex;
  margin-top: 2px;
  opacity: 0.95;
  flex-shrink: 0;
}

.silo-icon svg { width: 44px; height: 44px; }

.silo-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.silo-title {
  margin: 8px 0 0;
  color: var(--primary-blue);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.silo-desc {
  margin: 10px 0 12px;
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.5;
}

.silo-links {
  margin: 0;
  padding-left: 18px;
  color: var(--accent-red);
  font-size: 16px;
  font-weight: 800;
}

.silo-links li { margin: 6px 0; }

.silo-tile[data-silo="refrigeration"]::before { background: #2b6cb0; }
.silo-tile[data-silo="refrigeration"] .silo-icon { color: #2b6cb0; }

.silo-tile[data-silo="fridge"]::before { background: #3182ce; }
.silo-tile[data-silo="fridge"] .silo-icon { color: #3182ce; }

.silo-tile[data-silo="walkin-cooler"]::before { background: #38a169; }
.silo-tile[data-silo="walkin-cooler"] .silo-icon { color: #38a169; }

.silo-tile[data-silo="freezer"]::before { background: #805ad5; }
.silo-tile[data-silo="freezer"] .silo-icon { color: #805ad5; }

.silo-tile[data-silo="walkin-freezer"]::before { background: #dd6b20; }
.silo-tile[data-silo="walkin-freezer"] .silo-icon { color: #dd6b20; }

.silo-tile[data-silo="maintenance"]::before { background: #e53e3e; }
.silo-tile[data-silo="maintenance"] .silo-icon { color: #e53e3e; }

.promo-blocks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin: 40px 0;
}

.promo-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 30px 20px;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  text-align: center;
}

.promo-card strong {
  display: block;
  margin-bottom: 10px;
  color: #1a1a1a;
  font-size: 1.1rem;
}

.promo-card p {
  margin-bottom: 20px;
  color: #4a4a4a;
  line-height: 1.5;
}

.promo-card-link {
  margin-top: auto;
  color: var(--accent-red);
  font-weight: 900;
  text-decoration: none;
}

.promo-card-link:hover {
  color: var(--accent-red-hover);
  text-decoration: underline;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 30px 0;
}

.feature-tile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.feature-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(43, 108, 176, 0.3);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  background-color: var(--bg-light);
  border-radius: 50%;
}

.feature-icon svg { width: 26px; height: 26px; }

.feature-text strong {
  display: block;
  margin-bottom: 4px;
  color: var(--primary-blue);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
}

.feature-text span {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.3;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  padding: 20px;
  background-color: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  color: var(--primary-blue);
  font-size: 1.1rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.brand-card:hover {
  border-color: rgba(43, 108, 176, 0.3);
  box-shadow: var(--shadow-md);
  color: var(--accent-red);
  transform: translateY(-3px);
  text-decoration: none;
}

.brand-logo {
  max-width: 100%;
  max-height: 60px;
  margin: 0;
  object-fit: contain;
}

.related-brands-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.brand-tag {
  display: inline-block;
  padding: 8px 18px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 99px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  color: var(--text-dark);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.brand-tag:hover {
  background: var(--bg-light);
  border-color: var(--primary-blue);
  color: var(--primary-blue);
  transform: scale(1.05);
  text-decoration: none;
}

/* ==========================================================================
   Contact CTA
   ========================================================================== */

.contact-cta-card {
  position: relative;
  overflow: hidden;
  margin: 50px 0;
  padding: 40px;
  background: var(--primary-blue);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(26, 54, 93, 0.15);
  color: #fff;
}

.contact-cta-card::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.cta-label {
  display: block;
  margin-bottom: 5px;
  opacity: 0.8;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.cta-heading {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 4vw, 28px);
  line-height: 1.2;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 280px;
}

.cta-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-size: clamp(22px, 4.5vw, 24px);
  font-weight: 900;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.cta-phone:hover {
  opacity: 0.85;
  text-decoration: none;
}

.cta-phone svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.btn-cta-main {
  padding: 14px 25px;
  background: var(--accent-red);
  border-radius: var(--radius-sm);
  color: #fff;
  text-transform: uppercase;
}

.btn-cta-main:hover {
  background: var(--accent-red-hover);
  color: #fff;
}

/* ==========================================================================
   Pricing Table
   ========================================================================== */

.pricing-table-container {
  margin: 40px 0;
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  -webkit-overflow-scrolling: touch;
}

.pricing-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background-color: var(--bg-light);
  text-align: left;
}

.pricing-table th, .pricing-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.pricing-table th {
  background-color: #f8f9fa;
  color: #1a1a1a;
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-table th:not(:first-child),
.pricing-table td:not(:first-child) {
  text-align: center;
}

.pricing-table .gold-plan {
  background-color: #fffbf0;
  font-weight: 700;
}

.pricing-table th.gold-plan {
  border-top: 3px solid #f5d061;
  color: #b8860b;
}

.pricing-table tr:hover td { background-color: #f9f9f9; }
.pricing-table tr:hover td.gold-plan { background-color: #fff6d9; }
.pricing-table tr:last-child td { border-bottom: none; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  margin-top: 80px;
  padding: 60px 0 20px;
  background: var(--primary-blue);
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.site-footer h4 {
  margin-bottom: 20px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.site-footer p { color: #e2e8f0; font-size: 15px; }
.site-footer a { color: #cbd5e0; font-size: 15px; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 10px; }

.footer-multi-column { column-count: 2; column-gap: 20px; }

.footer-bottom {
  margin-top: 20px;
  padding-top: 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-links { margin-top: 10px; }
.copyright { color: #a0aec0; font-size: 14px; text-align: center; }

/* ==========================================================================
   Mobile Call Button
   ========================================================================== */

.mobile-call-bar { display: none; }

/* ==========================================================================
   Media Queries
   ========================================================================== */

@media (max-width: 900px) {
  .contact-cta-card {
    padding: 30px 20px;
    text-align: center;
  }
  .cta-content { flex-direction: column; }
  .cta-actions { width: 100%; min-width: 0; }
  .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  body {
    font-size: 17px;
    padding-bottom: 92px;
  }
  .container { padding: 0 12px; }
  .site-header { position: static; }
  .header-inner {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
  }
  .logo { width: 100%; }
  .logo a {
    display: block;
    font-size: 22px;
    line-height: 1.2;
    text-align: center;
  }
  .contact-header { display: none; }
  .main-nav .container {
    flex-direction: column;
    width: 100%;
    gap: 6px;
  }
  .main-nav .nav-link, .main-nav .btn-nav {
    width: 100%;
    margin-left: 0;
    padding: 12px;
    text-align: center;
  }
  .content-block {
    margin: 20px 0;
    padding: 28px 18px;
  }
  .page-title { font-size: 28px; }
  .btn, .btn-cta-main {
    width: 100%;
    white-space: normal;
  }
  .silos-grid, .promo-blocks-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .feature-tile { align-items: flex-start; }
  .footer-grid { gap: 26px; text-align: center; }
  .footer-multi-column { column-count: 1; }
  
  .mobile-call-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 14px 16px;
    background: var(--success-green);
    color: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
    text-decoration: none;
  }
  .mobile-call-bar:hover, 
  .mobile-call-bar:focus, 
  .mobile-call-bar:active {
    background: var(--success-green-hover);
    color: #fff;
    text-decoration: none;
  }
}

@media (min-width: 769px) {
  html { scroll-padding-top: 140px; }
  .site-header { position: sticky; top: 0; }
  .promo-blocks-grid { grid-template-columns: 1fr 1fr; }
}