/* IP Filing Services - Main Stylesheet */
/* Color Scheme: Burnt Orange (#D95D39) & Slate Grey (#708090) */

:root {
  --burnt-orange: #D95D39;
  --burnt-orange-light: #E87B5A;
  --burnt-orange-dark: #B84525;
  --slate-grey: #4A5568;
  --slate-grey-light: #64748B;
  --slate-grey-dark: #2D3748;
  --off-white: #F5F5F5;
  --charcoal: #1A202C;
  --white: #FFFFFF;
  --light-grey: #E2E8F0;
  --border-color: #CBD5E0;
  --shadow: rgba(0, 0, 0, 0.15);
  --shadow-hover: rgba(0, 0, 0, 0.25);
  --text-primary: #1A202C;
  --text-secondary: #2D3748;
  --bg-light: #F7FAFC;
  --bg-section: #EDF2F7;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg-light);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography - Consistent sizes throughout */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}

h1 { 
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2 { 
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

h3 { 
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h4 { 
  font-size: 1.25rem;
  font-weight: 600;
}

h5 { 
  font-size: 1.125rem;
  font-weight: 600;
}

h6 { 
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 1.0625rem !important;
  max-width: 75ch;
  font-weight: 450;
}

.lead-text {
  font-size: 1.0625rem !important;
  line-height: 1.7;
  font-weight: 450;
  color: var(--text-secondary);
}

.small-text {
  font-size: 1.0625rem !important;
  line-height: 1.7;
}

/* Force consistent heading sizes throughout */
h1 {
  font-size: 3rem !important;
}

h2 {
  font-size: 2.25rem !important;
}

h3 {
  font-size: 1.5rem !important;
}

h4 {
  font-size: 1.25rem !important;
}

h5 {
  font-size: 1.125rem !important;
}

h6 {
  font-size: 1rem !important;
}

/* Pricing Features Scrollbar */
.pricing-features {
  scrollbar-width: thin;
  scrollbar-color: var(--burnt-orange) #F5F5F5;
}

.pricing-features::-webkit-scrollbar {
  width: 8px;
}

.pricing-features::-webkit-scrollbar-track {
  background: #F5F5F5;
  border-radius: 10px;
}

.pricing-features::-webkit-scrollbar-thumb {
  background: var(--burnt-orange);
  border-radius: 10px;
}

.pricing-features::-webkit-scrollbar-thumb:hover {
  background: var(--burnt-orange-dark);
}

.pricing-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pricing-features li {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #E5E7EB;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.pricing-features li:last-child {
  border-bottom: none;
}

a {
  color: var(--burnt-orange);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--burnt-orange-dark);
}

/* Override for pricing buttons - MUST be white always */
a.pricing-btn,
a.pricing-btn:link,
a.pricing-btn:visited,
a.pricing-btn:hover,
a.pricing-btn:active,
a.pricing-btn:focus {
  color: #FFFFFF !important;
}

/* Header */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--charcoal);
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--burnt-orange), var(--burnt-orange-light));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 1.25rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  color: var(--charcoal);
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--burnt-orange);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--burnt-orange);
  transition: width 0.3s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Dropdown Menu - Horizontal */
.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.dropdown-arrow {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu-horizontal {
  position: absolute;
  top: calc(100% + 1rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 1rem;
  min-width: 700px;
  max-width: 900px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.dropdown:hover .dropdown-menu-horizontal {
  opacity: 1;
  visibility: visible;
  top: calc(100% + 0.5rem);
}

.service-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 10px;
  transition: all 0.2s ease;
  color: var(--text-primary);
  text-decoration: none;
  border: 1px solid transparent;
}

.service-item:hover {
  background: linear-gradient(135deg, #FFF5F0, #FFF8F5);
  transform: translateY(-2px);
  border-color: var(--burnt-orange);
  box-shadow: 0 4px 12px rgba(217, 93, 57, 0.15);
}

.service-item::after {
  display: none;
}

.service-icon {
  font-size: 1.4rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--burnt-orange), var(--burnt-orange-light));
  border-radius: 10px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.service-item:hover .service-icon {
  transform: scale(1.08) rotate(5deg);
}

.service-details {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: left;
}

.service-details strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.service-details small {
  font-size: 0.75rem;
  color: var(--slate-grey);
  font-weight: 400;
  line-height: 1.3;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.cta-button {
  background: linear-gradient(135deg, var(--burnt-orange), var(--burnt-orange-light));
  color: var(--white) !important;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(217, 93, 57, 0.3);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  text-decoration: none;
  display: inline-block;
  line-height: 1.2;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(217, 93, 57, 0.4);
  background: linear-gradient(135deg, var(--burnt-orange-dark), var(--burnt-orange));
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #EDF2F7 0%, #F7FAFC 50%, #E2E8F0 100%);
  padding: 2rem 2rem 2rem 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(217, 93, 57, 0.15) 0%, rgba(217, 93, 57, 0.05) 40%, transparent 70%);
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(112, 128, 144, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 15s ease-in-out infinite reverse;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(5deg); }
  66% { transform: translate(-20px, 20px) rotate(-5deg); }
}

.hero-container {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1.15;
  position: relative;
  z-index: 2;
}

.hero-content .highlight {
  color: var(--burnt-orange);
  position: relative;
}

.hero-content p {
  font-size: 1.05rem;
  color: var(--slate-grey-dark);
  margin-bottom: 1rem;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.hero-features {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--slate-grey-dark);
}

.hero-feature svg {
  color: var(--burnt-orange);
  min-width: 24px;
}

/* Form Card */
.form-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #FFFAF8 100%);
  padding: 1.25rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 15px 50px rgba(217, 93, 57, 0.15), 0 5px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 10;
  border: 1px solid rgba(217, 93, 57, 0.1);
  height: fit-content;
  overflow: visible;
  max-width: 450px;
}

.form-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--burnt-orange), var(--burnt-orange-light), var(--slate-grey));
  border-radius: 18px;
  z-index: -1;
  opacity: 0.1;
}

.form-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 0.375rem;
}

.form-card > p {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--slate-grey-dark);
}

.form-card h3 {
  margin-bottom: 1.5rem;
  color: var(--charcoal);
}

.form-group {
  margin-bottom: 0.65rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 700;
  color: var(--charcoal);
  font-size: 0.8125rem;
  letter-spacing: -0.01em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--light-grey);
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--burnt-orange);
  box-shadow: 0 0 0 3px rgba(217, 93, 57, 0.1);
}

/* Intel Phone Input */
.intel-phone-input {
  position: relative;
  width: 100%;
  overflow: visible;
}

/* Ensure parent containers also allow overflow */
.form-group .intel-phone-input,
.popup-content .intel-phone-input {
  overflow: visible;
  z-index: 1;
}

.phone-input-container {
  display: flex;
  border: 2px solid var(--light-grey);
  border-radius: 8px;
  overflow: visible;
  background: var(--white);
  transition: all 0.3s ease;
}

.phone-input-container:focus-within {
  border-color: var(--burnt-orange);
  box-shadow: 0 0 0 3px rgba(217, 93, 57, 0.1);
}

.country-selector-btn {
  display: flex;
  align-items: center;
  padding: 0.75rem 0.875rem;
  background: linear-gradient(135deg, #FAFAFA 0%, #F5F5F5 100%);
  border-right: 2px solid var(--light-grey);
  cursor: pointer;
  user-select: none;
  gap: 0.5rem;
  min-width: 100px;
  font-weight: 600;
  color: var(--charcoal);
  transition: background-color 0.2s ease;
}

.country-selector-btn:hover {
  background: linear-gradient(135deg, #F5F5F5 0%, #F0F0F0 100%);
}

.selected-flag {
  font-size: 1.5rem;
  line-height: 1;
}

.selected-code {
  font-size: 0.95rem;
  color: var(--slate-grey-dark);
}

.dropdown-arrow {
  font-size: 0.75rem;
  color: var(--slate-grey);
  transition: transform 0.3s ease;
}

.country-selector-btn.open .dropdown-arrow {
  transform: rotate(180deg);
}

.phone-input-container input[type="tel"] {
  flex: 1;
  border: none;
  padding: 0.75rem 0.875rem;
  font-size: 0.9375rem;
  outline: none;
}

.country-dropdown {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: var(--white);
  border: 2px solid var(--light-grey);
  border-radius: 8px;
  box-shadow: 0 -10px 30px var(--shadow);
  z-index: 10000;
  max-height: 300px;
  overflow: hidden;
  display: none;
  font-size: 0.9rem;
}

/* Higher z-index when inside popup */
.popup-content .country-dropdown {
  z-index: 99999;
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.25);
}

.country-dropdown.show {
  display: block;
  animation: slideUp 0.3s ease;
}

/* Animation for upward slide */
@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.country-search {
  width: 100%;
  padding: 1rem;
  border: none;
  border-bottom: 2px solid var(--light-grey);
  font-size: 0.9rem;
  outline: none;
}

.country-search:focus {
  border-bottom-color: var(--burnt-orange);
}

.country-list {
  max-height: 240px;
  overflow-y: auto;
}

.country-group {
  margin-bottom: 0.5rem;
}

.group-title {
  padding: 0.75rem 1rem;
  background: var(--off-white);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--slate-grey-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.country-option {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--charcoal);
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.country-option:hover {
  background: linear-gradient(135deg, rgba(217, 93, 57, 0.05) 0%, rgba(217, 93, 57, 0.1) 100%);
}

.country-option.selected {
  background: linear-gradient(135deg, rgba(217, 93, 57, 0.1) 0%, rgba(217, 93, 57, 0.15) 100%);
  font-weight: 600;
}

.country-flag {
  font-size: 1.2rem;
  line-height: 1;
}

.country-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.country-name {
  color: var(--charcoal);
  font-size: 0.9rem;
  font-weight: 500;
}

.country-code {
  color: var(--slate-grey);
  font-size: 0.85rem;
}

/* Loading state */
.intel-phone-input.loading .country-selector-btn {
  opacity: 0.7;
  pointer-events: none;
}

.intel-phone-input.loading .country-selector-btn::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border: 2px solid var(--burnt-orange);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: translateY(-50%) rotate(360deg); }
}

.submit-button {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, var(--burnt-orange), var(--burnt-orange-light));
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(217, 93, 57, 0.3);
  position: relative;
  overflow: hidden;
}

.submit-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.submit-button:hover::before {
  left: 100%;
}

.submit-button:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 6px 20px rgba(217, 93, 57, 0.4);
}

.submit-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Form Validation Styles */
.form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.form-group input.error,
.form-group textarea.error {
  border-color: #EF4444;
  background-color: #FEF2F2;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-group input.error:focus,
.form-group textarea.error:focus {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
  outline: none;
}

.error-message {
  display: none;
  color: #EF4444;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  padding-left: 0.25rem;
  font-weight: 500;
}

.error-message:before {
  content: "⚠ ";
  margin-right: 0.25rem;
}

.success-message {
  display: none;
  background: #059669 !important;
  border: 1px solid #047857 !important;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  color: #FFFFFF !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.2);
}

.success-message * {
  color: #FFFFFF !important;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.intel-phone-input .phone-input-container input.error {
  border-color: #EF4444;
  background-color: #FEF2F2;
}

/* Form Loading States */
.form-group button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--burnt-orange);
  box-shadow: 0 0 0 3px rgba(217, 93, 57, 0.1);
  outline: none;
}

/* Validation Success States */
.form-group input.valid,
.form-group textarea.valid {
  border-color: #10B981;
  background-color: #F0FDF4;
}

/* Popup Form Specific Styles */
.popup-content .error-message {
  font-size: 0.8rem;
  margin-top: 0.375rem;
}

.popup-content .success-message {
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

/* Services Section */
.services-section {
  padding: 3rem 2rem;
  background: var(--bg-section);
  position: relative;
}

/* About Service Section - Full Background Image */
.about-service-bg {
  background-size: cover;
  background-position: center;
  min-height: 350px;
  display: flex;
  align-items: center;
  padding: 0;
}

.about-service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.82) 0%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 0;
}

.about-service-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 4rem 2rem;
  color: white;
}

.about-service-content h2 {
  color: white;
  margin-bottom: 1.25rem;
  font-size: 2.25rem;
}

.about-service-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-service-content .cta-button {
  background: linear-gradient(135deg, var(--burnt-orange), var(--burnt-orange-light));
  color: white;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(217, 93, 57, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.about-service-content .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(217, 93, 57, 0.5);
}

@media (max-width: 768px) {
  .about-service-bg {
    min-height: 280px;
  }
  .about-service-content {
    padding: 3rem 1.5rem;
  }
  .about-service-content h2 {
    font-size: 1.75rem;
  }
  .about-service-content p {
    font-size: 1rem;
  }
}

.services-section.with-pattern {
  background: 
    linear-gradient(135deg, transparent 0%, rgba(217, 93, 57, 0.03) 50%, transparent 100%),
    repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(217, 93, 57, 0.03) 35px, rgba(217, 93, 57, 0.03) 70px);
}

.services-section.gradient-bg {
  background: linear-gradient(180deg, #EDF2F7 0%, #F7FAFC 50%, #EDF2F7 100%);
}

.services-section.slate-gradient {
  background: linear-gradient(180deg, #E2E8F0 0%, #EDF2F7 50%, #E2E8F0 100%);
}

.section-container {
  max-width: 1440px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--burnt-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--burnt-orange), var(--burnt-orange-light));
  border-radius: 2px;
}

.section-header p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--slate-grey-dark);
  max-width: 700px;
  margin: 0 auto;
  font-weight: 400;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.services-grid.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 992px) {
  .services-grid.three-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .services-grid.three-cols {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 16px;
  border: 2px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--burnt-orange), var(--burnt-orange-light), var(--burnt-orange));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(217, 93, 57, 0.03) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover::after {
  opacity: 1;
}

.service-card:hover {
  border-color: var(--burnt-orange);
  box-shadow: 0 15px 40px rgba(217, 93, 57, 0.2), 0 5px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px);
  background: var(--white);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--burnt-orange), var(--burnt-orange-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(217, 93, 57, 0.3);
  transition: all 0.3s ease;
  position: relative;
}

.service-icon::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, var(--burnt-orange-light), var(--burnt-orange));
  border-radius: 14px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 25px rgba(217, 93, 57, 0.4);
}

.service-card:hover .service-icon::before {
  opacity: 1;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.75;
  font-size: 1rem;
  font-weight: 400;
}

.service-link {
  color: var(--burnt-orange);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}

.service-link:hover {
  gap: 0.75rem;
  border-bottom-color: var(--burnt-orange);
}

/* Footer */
.site-footer {
  background: var(--charcoal);
  color: var(--off-white);
  padding: 4rem 2rem 2rem;
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: var(--off-white);
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--burnt-orange);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: var(--slate-grey-light);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero-content h1 {
    font-size: 2.75rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 1rem 1.5rem;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    padding: 1.5rem;
  }
  
  .main-nav.active {
    display: block;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }
  
  .main-nav li {
    width: 100%;
  }
  
  .main-nav a {
    display: block;
    padding: 1rem;
    border-radius: 8px;
  }
  
  .main-nav a:hover {
    background: var(--off-white);
  }
  
  .dropdown-menu-horizontal {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: 0.5rem 0 0 1rem;
    min-width: auto;
    max-width: none;
    grid-template-columns: 1fr;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  
  .dropdown.active .dropdown-menu-horizontal {
    max-height: 2000px;
  }
  
  .service-item {
    padding: 0.75rem;
  }
  
  .dropdown-arrow {
    margin-left: auto;
  }
  
  .dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
  }
  
  .hero-section {
    padding: 4rem 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  /* Maintain consistent sizes on mobile */
  h1 { font-size: 2.5rem !important; }
  h2 { font-size: 2rem !important; }
  h3 { font-size: 1.5rem !important; }
  h4 { font-size: 1.25rem !important; }
  h5 { font-size: 1.125rem !important; }
  h6 { font-size: 1rem !important; }
  p { font-size: 1.0625rem !important; }
}

/* Typography Utilities */
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--burnt-orange);
  margin-bottom: 0.75rem;
  display: inline-block;
}

.gradient-text {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--burnt-orange) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight {
  color: var(--burnt-orange);
  font-weight: 900;
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--burnt-orange), var(--burnt-orange-light));
  border-radius: 2px;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }


/* Hero CTA Buttons */
.hero-btn-primary {
  transition: all 0.3s ease;
}

.hero-btn-primary:hover {
  background: var(--burnt-orange-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 93, 57, 0.4) !important;
}

.hero-btn-secondary {
  transition: all 0.3s ease;
}

.hero-btn-secondary:hover {
  background: var(--burnt-orange) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(217, 93, 57, 0.3);
}

/* ====== MOBILE & TABLET RESPONSIVENESS ====== */

/* --- Hide scrollbar for mobile sliders --- */
[data-mobile-slider]::-webkit-scrollbar { display: none; }
[data-mobile-slider] { scrollbar-width: none; }

/* --- Tablet (769px - 992px) --- */
@media (max-width: 992px) {
  /* Hero: form first, content below */
  .hero-container {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }
  .hero-form { order: -1; }
  .hero-content { order: 1; }
  .form-card { max-width: 100% !important; }

  /* Section padding */
  .services-section { padding: 2.5rem 1.25rem; }
  .section-header h2 { font-size: 1.75rem; }
  .section-header p { font-size: 1rem; }

  /* Services grid */
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  /* 2-col grids → stack with image first */
  section div[style*="grid-template-columns: 1fr 1.5fr"],
  section div[style*="grid-template-columns: 1fr 1fr"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }
  section div[style*="grid-template-columns: 1fr 1.5fr"] img,
  section div[style*="grid-template-columns: 1fr 1fr"] img {
    height: 280px !important;
  }

  /* Benefits grid */
  section div[style*="grid-template-columns: repeat(auto-fit"] {
    grid-template-columns: 1fr !important;
  }

  /* Key features grid in hero */
  .hero-content div[style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }

  /* CTA buttons stack */
  .hero-content div[style*="display: flex; gap: 1rem; margin-top"] {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  /* Pricing cards wrap */
  .pricing-grid {
    flex-wrap: wrap !important;
  }
  .pricing-card {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }

  /* Page title banners */
  .page-title-banner h1 { font-size: 1.5rem !important; }

  /* About service BG sections */
  .about-service-bg { min-height: 280px !important; }
  .about-service-content { padding: 2.5rem 1.25rem !important; }
  .about-service-content h2 { font-size: 1.5rem !important; }
  .about-service-content p { font-size: 0.95rem !important; }

  /* Contact hero */
  .contact-hero > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 1.5rem !important; }
}

/* --- Mobile (max 768px) --- */
@media (max-width: 768px) {
  .hero-section { padding: 1.5rem 1rem !important; }
  .hero-content h1 { font-size: 1.75rem !important; }
  .hero-content p { font-size: 0.95rem !important; }

  .hero-btn-primary, .hero-btn-secondary {
    padding: 0.875rem 1.5rem !important;
    font-size: 0.95rem !important;
    width: 100%;
    text-align: center;
  }

  /* Section headers */
  .section-header h2 { font-size: 1.5rem; }
  .section-header p { font-size: 0.9rem; }
  .services-section { padding: 2rem 1rem; }

  /* Key features → single column */
  .hero-content div[style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
  }

  /* CTA sections text */
  section h2[style*="font-size: 2.5rem"] { font-size: 1.5rem !important; }

  /* Images in sections */
  section div[style*="grid-template-columns"] img {
    height: 220px !important;
  }

  /* Popup responsive */
  .popup-modal {
    grid-template-columns: 1fr !important;
    max-height: 95vh !important;
  }
  .popup-image-side { display: none !important; }
  .popup-content { padding: 1.25rem !important; }

  /* Navbar */
  .nav-links { display: none; }
}

/* --- Small phones (max 480px) --- */
@media (max-width: 480px) {
  .hero-section { padding: 1rem 0.75rem !important; }
  .hero-content h1 { font-size: 1.5rem !important; }
  .form-card { padding: 1rem !important; }
  .form-card h3 { font-size: 1.1rem !important; }

  .section-header h2 { font-size: 1.25rem; }
  .services-section { padding: 1.5rem 0.75rem; }

  .pricing-card { padding: 1.25rem !important; }
  .page-title-banner { padding: 1.5rem 1rem !important; }
  .page-title-banner h1 { font-size: 1.25rem !important; }
}

.mb-4 { margin-bottom: 2rem; }