/* Penguin PHC - Main Stylesheet */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;800&family=Lato:wght@300;400;700&display=swap');

/* CSS Variables - Brand Colors */
:root {
  /* Primary Colors */
  --forest-green: #223D2F;
  --mustard-gold: #B4790C;
  --beige: #F0D38A;
  --charcoal-green: #233018;
  --rust-orange: #903A0B;
  
  /* Utility Colors */
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --light-gray: #F5F5F5;
  --medium-gray: #E0E0E0;
  --dark-gray: #333333;
  --black: #000000;
  
  /* Semantic Colors */
  --primary: var(--forest-green);
  --accent: var(--mustard-gold);
  --light-accent: var(--beige);
  --dark: var(--charcoal-green);
  --emergency: var(--rust-orange);
  
  /* Typography */
  --font-logo: 'Montserrat', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Lato', sans-serif;
  
  /* Font Weights */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extra-bold: 800;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 50%;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Component Specific Variables */
  --header-height: 80px;
  --footer-logo-size: 140px;
  --mobile-nav-height: 80px;
  --button-border-radius: var(--radius-md);
  --card-border-radius: var(--radius-lg);
  --input-border-radius: var(--radius-md);
  
  /* Theme Customization */
  --text-primary: var(--dark-gray);
  --text-secondary: var(--forest-green);
  --text-muted: #666666;
  --text-white: var(--white);
  --text-on-dark: var(--white);
  --text-on-primary: var(--white);
  --text-on-accent: var(--white);
  
  /* Background Colors */
  --bg-primary: var(--white);
  --bg-secondary: var(--light-gray);
  --bg-accent: var(--beige);
  --bg-dark: var(--charcoal-green);
  --bg-emergency: var(--rust-orange);
  
  /* Border Colors */
  --border-light: var(--medium-gray);
  --border-dark: var(--dark-gray);
  --border-primary: var(--forest-green);
  --border-accent: var(--mustard-gold);
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: var(--weight-regular);
  line-height: 1.6;
  color: var(--dark-gray);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--forest-green);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--weight-extra-bold);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: var(--weight-bold);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: var(--weight-semibold);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: var(--weight-semibold);
}

p {
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

a {
  color: var(--mustard-gold);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--forest-green);
  text-decoration: underline;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* Ensure footer container has proper width */
.footer .container {
  max-width: 1280px;
  padding: 0 1rem;
}

/* ==========================================================================
   Standardized Icon System
   ========================================================================== */

/* Icon component styling */
.icon {
  display: inline-block;
  width: 1.125em;
  height: 1.125em;
  fill: currentColor;
  vertical-align: middle;
}

.icon-sm {
  width: 1em;
  height: 1em;
}

.icon-lg {
  width: 1.5em;
  height: 1.5em;
}

.icon-xl {
  width: 2em;
  height: 2em;
}

/* Button icon spacing */
.btn .icon {
  margin-right: 0.5em;
}

.btn .icon:last-child {
  margin-right: 0;
  margin-left: 0.5em;
}

/* Standard icon definitions for consistency */
.icon-phone path {
  d: path("M6.62,10.79C8.06,13.62 10.38,15.94 13.21,17.38L15.41,15.18C15.69,14.9 16.08,14.82 16.43,14.93C17.55,15.3 18.75,15.5 20,15.5A1,1 0 0,1 21,16.5V20A1,1 0 0,1 20,21A17,17 0 0,1 3,4A1,1 0 0,1 4,3H7.5A1,1 0 0,1 8.5,4C8.5,5.25 8.7,6.45 9.07,7.57C9.18,7.92 9.1,8.31 8.82,8.59L6.62,10.79Z");
}

.icon-message path {
  d: path("M20,2H4A2,2 0 0,0 2,4V22L6,18H20A2,2 0 0,0 22,16V4C22,2.89 21.1,2 20,2Z");
}

.icon-calendar path {
  d: path("M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1");
}

/* Common CTA button icon combinations */
.cta-phone-icon,
.cta-text-icon,
.cta-schedule-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
  fill: currentColor;
}

/* Theme consistency enforcement */
.service-cta-buttons .btn svg {
  width: 18px !important;
  height: 18px !important;
  margin-right: 8px !important;
  fill: currentColor !important;
}

/* Prevent emoji fallbacks */
.btn {
  font-feature-settings: "liga" off;
}

.btn .emoji {
  display: none !important;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: var(--weight-semibold);
  padding: var(--spacing-md) var(--spacing-xl);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--mustard-gold);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--forest-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--forest-green);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--charcoal-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-emergency {
  background-color: var(--rust-orange);
  color: var(--white);
  font-size: 1.1rem;
  animation: none !important;
}

.btn-emergency:hover {
  transform: scale(1.05);
}

.btn-schedule-pulse {
  animation: pulse 2s infinite !important;
}

.btn-schedule-pulse:hover {
  animation: none;
  transform: scale(1.05);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--forest-green);
  color: var(--forest-green);
}

.btn-outline:hover {
  background-color: var(--forest-green);
  color: var(--white);
}

.btn-lg {
  padding: var(--spacing-lg) var(--spacing-2xl);
  font-size: 1.125rem;
}

.btn-sm {
  padding: var(--spacing-sm) var(--spacing-lg);
  font-size: 0.875rem;
}

/* Service-specific button styles - Homepage only */
.btn.btn-plumbing {
  background-color: #3E8E8B !important;
  border-color: #3E8E8B !important;
  color: white !important;
  box-shadow: var(--shadow-md);
}

.btn.btn-plumbing:hover {
  background-color: #2C6866 !important;
  border-color: #2C6866 !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.btn.btn-heating {
  background-color: var(--mustard-gold) !important;
  border-color: var(--mustard-gold) !important;
  color: white !important;
  box-shadow: var(--shadow-md);
}

.btn.btn-heating:hover {
  background-color: #8F5F09 !important;
  border-color: #8F5F09 !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.btn.btn-cooling {
  background-color: #A7C4B5 !important;
  border-color: #A7C4B5 !important;
  color: white !important;
  box-shadow: var(--shadow-md);
}

.btn.btn-cooling:hover {
  background-color: #7FA392 !important;
  border-color: #7FA392 !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

/* Service Icon Theming */
.service-icon-plumbing {
  color: #3E8E8B !important;
}

.service-icon-heating {
  color: var(--mustard-gold) !important;
}

.service-icon-cooling {
  color: #A7C4B5 !important;
}

.service-icon-large {
  font-size: 60px !important;
}

.service-icon-hero {
  font-size: 200px !important;
  opacity: 0.8;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--forest-green); }
.text-accent { color: var(--mustard-gold); }
.text-white { color: var(--white); }
.text-emergency { color: var(--rust-orange); }

.bg-primary { background-color: var(--forest-green); }
.bg-accent { background-color: var(--mustard-gold); }
.bg-light { background-color: var(--light-gray); }
.bg-white { background-color: var(--white); }
.bg-beige { background-color: var(--beige); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }
.mt-5 { margin-top: var(--spacing-2xl); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }
.mb-5 { margin-bottom: var(--spacing-2xl); }

.pt-0 { padding-top: 0; }
.pt-1 { padding-top: var(--spacing-sm); }
.pt-2 { padding-top: var(--spacing-md); }
.pt-3 { padding-top: var(--spacing-lg); }
.pt-4 { padding-top: var(--spacing-xl); }
.pt-5 { padding-top: var(--spacing-2xl); }

.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: var(--spacing-sm); }
.pb-2 { padding-bottom: var(--spacing-md); }
.pb-3 { padding-bottom: var(--spacing-lg); }
.pb-4 { padding-bottom: var(--spacing-xl); }
.pb-5 { padding-bottom: var(--spacing-2xl); }

/* Grid System */
.grid {
  display: grid;
  gap: var(--spacing-lg);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Flexbox Utilities */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  flex-direction: column;
}

.gap-1 { gap: var(--spacing-sm); }
.gap-2 { gap: var(--spacing-md); }
.gap-3 { gap: var(--spacing-lg); }

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
}

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

/* Animations */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(144, 58, 11, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(144, 58, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(144, 58, 11, 0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Hide on mobile/desktop utilities */
@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .hide-desktop {
    display: none !important;
  }
}

/* Section Spacing */
.section {
  padding: var(--spacing-3xl) 0;
}

.section-sm {
  padding: var(--spacing-2xl) 0;
}

.section-lg {
  padding: calc(var(--spacing-3xl) * 1.5) 0;
}