/* Peakline Roofing - Inspired by IrelandContracting.com Premium Trade UI/UX */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand Palette - Deep Forest & Emerald Green Trust System */
  --green-topbar: #16361C;
  --green-primary: #0F7A23;
  --green-hover: #0B5E1A;
  --green-light-bg: #F0FDF4;
  --green-border: #BBF7D0;
  
  --bg-dark: #0F172A;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-card: #FFFFFF;
  
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-white: #FFFFFF;
  
  --border-color: #E2E8F0;
  --border-hover: #CBD5E1;
  
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.12);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-light);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top Announcement Bar (Forest Green) */
.top-announcement {
  background-color: var(--green-topbar);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  padding: 0.55rem 0;
  font-weight: 500;
}

.top-announcement .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.top-phone-link {
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* Header & Main Navigation (Crisp White Sticky Header) */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.header-logo-img {
  height: 65px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--green-primary);
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-green {
  background-color: var(--green-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(15, 122, 35, 0.25);
}

.btn-green:hover {
  background-color: var(--green-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 122, 35, 0.35);
}

.btn-phone-outline {
  background-color: #FFFFFF;
  border-color: #CBD5E1;
  color: var(--text-dark);
}

.btn-phone-outline:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
}

/* Mobile Toggle */
.mob-toggle-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: 1.8rem;
  cursor: pointer;
}

/* Dedicated Mobile Drawer */
.mob-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mob-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mob-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  background-color: #FFFFFF;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 30px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mob-drawer-overlay.active .mob-drawer {
  transform: translateX(0);
}

.mob-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
}

.mob-drawer-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2rem;
  cursor: pointer;
}

.mob-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: auto;
}

.mob-drawer-link {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}

/* Hero Section (IrelandContracting Style) */
.hero-section {
  position: relative;
  padding: 5.5rem 0 6.5rem;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.65) 50%, rgba(15, 23, 42, 0.75) 100%), url('./images/hero.jpg');
  background-size: cover;
  background-position: center;
  color: #FFFFFF;
}

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

.hero-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--green-primary);
  color: #FFFFFF;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  color: #FFFFFF;
  margin-bottom: 1.25rem;
  line-height: 1.1;
  font-weight: 800;
}

.hero-subtext {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Full Service Company Introduction Section */
.section-pad {
  padding: 5.5rem 0;
}

.intro-section {
  background-color: #FFFFFF;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.intro-box {
  max-width: 900px;
  margin: 0 auto;
}

.intro-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1.5rem;
}

.intro-text {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.intro-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: 0.98rem;
}

.intro-link-item {
  color: var(--green-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.intro-link-item:hover {
  color: var(--green-hover);
}

/* Services Cards Section (IrelandContracting Clean Cards) */
.services-section {
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-primary);
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--text-dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.service-img-box {
  height: 220px;
  overflow: hidden;
  position: relative;
}

.service-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img-box img {
  transform: scale(1.05);
}

.service-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.service-card-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-card-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--green-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
}

.service-card-link:hover {
  color: var(--green-hover);
}

/* Why Homeowners Choose Peakline Roofing Section */
.why-section {
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.why-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.why-icon-bubble {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--green-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}

.why-card-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
}

/* Before & After Interactive Slider Section */
.ba-section {
  background-color: var(--bg-light);
}

.ba-slider-wrapper {
  position: relative;
  width: 100%;
  max-width: 960px;
  height: 480px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  user-select: none;
  touch-action: pan-y;
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-before {
  z-index: 1;
}

.ba-after-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 2;
}

.ba-after-container .ba-image {
  width: 960px;
  max-width: none;
}

.ba-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: #FFFFFF;
  z-index: 3;
  cursor: ew-resize;
  transform: translateX(-50%);
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.ba-handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #FFFFFF;
  border: 2px solid var(--green-primary);
  color: var(--green-primary);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}

.ba-badge {
  position: absolute;
  top: 1.25rem;
  padding: 0.4rem 0.9rem;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(6px);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 4;
}

.ba-badge-before { right: 1.25rem; }
.ba-badge-after { left: 1.25rem; }

/* Customer Reviews Section */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.review-card {
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.review-stars {
  color: #F59E0B;
  font-size: 1.1rem;
}

.review-verified {
  font-size: 0.75rem;
  color: var(--green-primary);
  font-weight: 700;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.review-author {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
  border-top: 1px solid var(--border-color);
  padding-top: 1rem;
}

.review-loc {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Contact & Inspection Form Section */
.contact-section {
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-color);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-card {
  padding-right: 2rem;
}

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

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--green-light-bg);
  color: var(--green-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.contact-val {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-dark);
}

.contact-form {
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background-color: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-dark);
  font-size: 16px;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--green-primary);
  box-shadow: 0 0 0 3px rgba(15, 122, 35, 0.15);
}

/* Footer Section (Forest Green Dark Footer) */
.site-footer {
  background-color: var(--green-topbar);
  color: rgba(255, 255, 255, 0.85);
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-logo-img {
  height: 75px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  background-color: #FFFFFF;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
}

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.75);
  transition: var(--transition);
}

.footer-link:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Sticky Mobile Bottom Action Bar */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-color);
  padding: 0.75rem 1rem;
  z-index: 900;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
}

.mobile-sticky-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* Toast Bar */
.toast-bar {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  left: 1.5rem;
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--text-dark);
  color: #FFFFFF;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(120px);
  opacity: 0;
  transition: var(--transition);
}

.toast-bar.active {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive System */
@media (max-width: 1024px) {
  .services-grid, .why-grid, .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .top-announcement { display: none; }
  .nav-menu, .header-cta-group { display: none; }
  .mob-toggle-btn { display: block; }
  .mobile-sticky-bar { display: block; }
  
  .services-grid, .why-grid, .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .ba-slider-wrapper {
    height: 320px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .site-footer {
    padding-bottom: 5.5rem;
  }
}
