/* Gill's Professionals Landing Page - Enhanced Design */
:root {
  --primary-blue: #1e40af;
  --secondary-blue: #3b82f6;
  --light-blue: #60a5fa;
  --accent-blue: #0ea5e9;
  --dark-blue: #1e3a8a;
  --white: #ffffff;
  --light-gray: #f8fafc;
  --medium-gray: #64748b;
  --dark-gray: #1f2937;
  --text-dark: #111827;
  --success-green: #10b981;
  --shadow-light: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --gradient-primary: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 50%, var(--light-blue) 100%);
  --gradient-hero: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-blue) 50%, var(--secondary-blue) 100%);
  --section-padding: 120px 0;
  --container-padding: 0 40px;
  --top-bar-height: 40px; /* New variable for top bar height */
  --main-header-height: 120px; /* Height for the new logo header */
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  overflow-x: hidden;
  background-color: var(--white);
  padding-top: calc(var(--top-bar-height) + var(--main-header-height)); /* Adjust padding for both bars */
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--primary-blue);
  font-weight: 800;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--secondary-blue);
  font-weight: 700;
}

h4 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--text-dark);
  font-weight: 600;
}

p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  color: var(--medium-gray);
  line-height: 1.8;
  font-weight: 400;
}

.large-text {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-dark);
}

/* New Top Bar */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--top-bar-height);
  background: var(--dark-blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000; /* Higher than header */
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: var(--shadow-light);
}

.top-bar a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap; /* Ensure phone number stays on one line */
}

.top-bar a:hover {
  color: var(--light-blue);
}

/* Main Header with Full-Width Logo */
.main-header {
  position: fixed;
  top: var(--top-bar-height); /* Position below the top bar */
  left: 0;
  right: 0;
  height: var(--main-header-height);
  background: var(--white);
  z-index: 9999;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--container-padding);
}

.main-header.scrolled {
  height: 90px; /* Smaller height when scrolled */
  box-shadow: var(--shadow-medium);
}

.main-header .logo {
  height: 100%; /* Logo takes full height of header */
  width: auto;
  max-width: 100%; /* Ensure logo doesn't overflow */
  object-fit: contain; /* Maintain aspect ratio */
}

/* Navigation (now part of the main header or separate below it) */
.header-nav {
  position: fixed;
  top: calc(var(--top-bar-height) + var(--main-header-height)); /* Position below main header */
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  z-index: 9998; /* Below main header, above content */
  padding: 1rem 0;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(30, 64, 175, 0.1);
}

.header-nav.scrolled {
  top: calc(var(--top-bar-height) + 90px); /* Adjust when main header is scrolled */
  box-shadow: var(--shadow-medium);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--container-padding);
  display: flex;
  justify-content: center; /* Center navigation links */
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 3rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover {
  color: var(--primary-blue);
  transform: translateY(-2px);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section with proper spacing */
.hero {
  min-height: 100vh;
  background: var(--gradient-hero);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--section-padding) + var(--top-bar-height) + var(--main-header-height)); /* Adjusted for both headers */
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--container-padding);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

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

.hero-title {
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 900;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #ffffff 0%, #e0f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 2.5rem;
  color: rgba(255, 255, 255, 0.95);
  animation: fadeInUp 1s ease-out 0.2s both;
  font-weight: 600;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 4rem;
  color: rgba(255, 255, 255, 0.85);
  animation: fadeInUp 1s ease-out 0.4s both;
  line-height: 1.8;
  max-width: 90%;
}

/* MASSIVE Phone Number with better spacing */
.phone-container {
  text-align: center;
  margin: 4rem 0;
  animation: fadeInUp 1s ease-out 0.6s both;
  padding: 2rem 0;
}

.phone-number {
  display: inline-block;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--white);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.15);
  padding: 2rem 4rem;
  border-radius: 25px;
  border: 4px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
}

.phone-number::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.phone-number:hover::before {
  left: 100%;
}

.phone-number:hover {
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.25);
}

.phone-label {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 3px;
}

/* CTA Buttons with proper spacing */
.cta-buttons {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease-out 0.8s both;
  margin-top: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 2.5rem;
  border: none;
  border-radius: 60px;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  min-width: 200px;
  justify-content: center;
}

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

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-heavy);
  background: var(--light-gray);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 3px solid rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  transform: translateY(-4px);
}

/* Hero Image Slider */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 400px; /* Fixed height for the slider */
  border-radius: 25px;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
}

.slider-container {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 25px; /* Ensure images inside slider also have border-radius */
}

.slider-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.slider-dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.slider-dot.active {
  background-color: var(--white);
  transform: scale(1.2);
}

/* Sections with proper spacing */
.section {
  padding: var(--section-padding);
  position: relative;
}

.services {
  background: var(--light-gray);
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.section-header {
  text-align: center;
  margin-bottom: 6rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  margin-bottom: 2rem;
}

.section-subtitle {
  font-size: 1.3rem;
  color: var(--medium-gray);
  line-height: 1.8;
  font-weight: 500;
}

/* Enhanced Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.service-card {
  background: var(--white);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-light);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(30, 64, 175, 0.1);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-heavy);
  border-color: rgba(30, 64, 175, 0.2);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--white);
  box-shadow: var(--shadow-medium);
}

.service-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
  font-weight: 700;
}

.service-description {
  color: var(--medium-gray);
  line-height: 1.8;
  font-size: 1.1rem;
}

.service-features {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(30, 64, 175, 0.1);
}

.service-features ul {
  list-style: none;
  padding: 0;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--text-dark);
  font-weight: 500;
  position: relative;
  padding-left: 2rem;
}

.service-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success-green);
  font-weight: bold;
  font-size: 1.2rem;
}

/* Guarantees Section */
.guarantees {
  background: var(--white);
  position: relative;
  z-index: 1;
}

.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.guarantee-item {
  text-align: center;
  padding: 3rem;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--white) 100%);
  transition: all 0.4s ease;
  border: 1px solid rgba(30, 64, 175, 0.1);
}

.guarantee-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
  border-color: rgba(30, 64, 175, 0.2);
}

.guarantee-icon {
  width: 100px;
  height: 100px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.5rem;
  color: var(--white);
  box-shadow: var(--shadow-medium);
}

.guarantee-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
  font-weight: 700;
}

.guarantee-description {
  color: var(--medium-gray);
  line-height: 1.8;
  font-size: 1.1rem;
}

/* Contact Section */
.contact {
  background: var(--gradient-hero);
  color: var(--white);
  text-align: center;
  position: relative;
  z-index: 1;
}

.contact .section-title,
.contact .section-subtitle {
  color: var(--white);
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
}

.contact-item {
  padding: 3rem;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.5);
}

.contact-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2rem;
}

.contact-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--white);
  font-weight: 700;
}

.contact-description {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  font-size: 1.1rem;
}

/* Modal with proper z-index */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 99999;
  backdrop-filter: blur(10px);
}

.modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--white);
  padding: 4rem;
  border-radius: 25px;
  max-width: 600px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-heavy);
  animation: slideInUp 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2.5rem;
  cursor: pointer;
  color: var(--medium-gray);
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--primary-blue);
}

.modal-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-blue);
  font-weight: 800;
}

.modal-phone {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-blue);
  margin: 2rem 0;
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.modal-phone:hover {
  color: var(--secondary-blue);
  transform: scale(1.05);
}

.modal-description {
  color: var(--medium-gray);
  margin-bottom: 3rem;
  font-size: 1.2rem;
  line-height: 1.8;
}

/* Footer */
.footer {
  background: var(--dark-gray);
  color: var(--white);
  padding: 4rem 0 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--container-padding);
}

.footer-logo {
  height: 100px;
  margin-bottom: 3rem;
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3rem;
  font-size: 1.2rem;
  line-height: 1.8;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 3rem;
  margin-top: 3rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-25px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* Enhanced Responsive Design */
@media (max-width: 1200px) {
  :root {
    --container-padding: 0 30px;
  }
  
  .hero-container {
    gap: 4rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    --top-bar-height: 35px; /* Adjust top bar height for smaller screens */
    --main-header-height: 80px; /* Adjust main header height for smaller screens */
  }

  body {
    padding-top: calc(var(--top-bar-height) + var(--main-header-height));
  }

  .main-header {
    height: var(--main-header-height);
  }

  .header-nav {
    top: calc(var(--top-bar-height) + var(--main-header-height));
  }
  
  .nav-links {
    display: none; /* Hide nav links on small screens, can add hamburger menu later if needed */
  }
  
  .hero {
    padding-top: calc(100px + var(--top-bar-height) + var(--main-header-height));
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  
  .phone-number {
    font-size: clamp(2rem, 8vw, 3rem);
    padding: 1.5rem 2.5rem;
  }
  
  .cta-buttons {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .services-grid,
  .guarantees-grid,
  .contact-info {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .service-card,
  .guarantee-item,
  .contact-item {
    padding: 2rem;
  }
  
  .modal-content {
    padding: 2.5rem;
    margin: 1rem;
  }
  
  .section-header {
    margin-bottom: 4rem;
  }

  .top-bar {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .phone-number {
    font-size: 1.8rem;
    padding: 1rem 2rem;
  }
  
  .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  .service-card,
  .guarantee-item,
  .contact-item {
    padding: 1.5rem;
  }

  .top-bar {
    font-size: 0.8rem;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Focus styles for accessibility */
.btn:focus,
.phone-number:focus,
.nav-links a:focus {
  outline: 3px solid var(--accent-blue);
  outline-offset: 3px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --primary-blue: #0000ff;
    --secondary-blue: #0066cc;
    --white: #ffffff;
    --text-dark: #000000;
    --medium-gray: #333333;
  }
}

/* Print styles */
@media print {
  .header,
  .modal,
  .cta-buttons,
  .top-bar,
  .header-nav { /* Hide all fixed headers in print */
    display: none;
  }
  
  .hero {
    background: white;
    color: black;
  }
  
  .phone-number {
    color: black;
    background: none;
    border: 2px solid black;
  }

  body {
    padding-top: 0; /* Remove padding for print */
  }
}