/**
 * PHX Door & Trim - Enhanced Professional Stylesheet
 * Premium design for door installation & carpentry services
 */

/* ==========================================================================
   CSS VARIABLES FOR EASY THEMING
   ========================================================================== */

:root {
  --primary-color: #d4901c;
  --primary-dark: #b87815;
  --primary-light: #f4a742;
  --secondary-color: #1a1a1a;
  --secondary-dark: #0d0d0d;
  --text-dark: #1a1a1a;
  --text-medium: #4a4a4a;
  --text-light: #666;
  --border-color: #e0e0e0;
  --bg-light: #f9f9f9;
  --bg-white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Helvetica Neue', sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg-white);
  overflow-x: hidden;
}

::selection {
  background: var(--primary-color);
  color: white;
}

/* ==========================================================================
   ENHANCED TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1.25rem;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 1rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: 2px;
}

h2.centered::after {
  left: 50%;
  transform: translateX(-50%);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 600;
}

p {
  margin-bottom: 1.25rem;
  color: var(--text-medium);
  font-size: 1.0625rem;
  line-height: 1.8;
}

strong {
  color: var(--text-dark);
  font-weight: 600;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

a:hover {
  color: var(--primary-dark);
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.75rem;
}

li {
  margin-bottom: 0.75rem;
  color: var(--text-medium);
  line-height: 1.7;
}

/* ==========================================================================
   LAYOUT CONTAINERS
   ========================================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

/* ==========================================================================
   ENHANCED HEADER & NAVIGATION
   ========================================================================== */

header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  padding: 24px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 144, 28, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 40px;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo::before {
  content: '🚪';
  font-size: 32px;
}

.logo:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
  text-decoration: none;
}

nav {
  display: flex;
  gap: 36px;
  align-items: center;
  flex-wrap: wrap;
}

nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.3s;
  position: relative;
  padding: 8px 0;
  letter-spacing: 0.3px;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

nav a:hover::after {
  width: 100%;
}

/* ==========================================================================
   STUNNING HERO SECTION
   ========================================================================== */

.hero {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, var(--primary-dark) 100%);
  color: white;
  padding: 120px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(45deg, transparent 48%, rgba(212, 144, 28, 0.03) 49%, rgba(212, 144, 28, 0.03) 51%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(212, 144, 28, 0.03) 49%, rgba(212, 144, 28, 0.03) 51%, transparent 52%);
  background-size: 60px 60px;
  opacity: 0.5;
  animation: heroPattern 20s linear infinite;
}

@keyframes heroPattern {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 24px;
  color: white;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero .subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  margin-bottom: 40px;
  opacity: 0.95;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 36px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1.0625rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
  border: none;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  text-decoration: none;
}

.hero-cta.primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
}

.hero-cta.primary:hover {
  filter: brightness(1.1);
  color: white;
}

.hero-cta.phone {
  background: white;
  color: var(--text-dark);
  font-size: 1.25rem;
  padding: 20px 40px;
  font-weight: 700;
}

.hero-cta.phone::before {
  content: '📞';
  font-size: 1.5rem;
}

.hero-cta.phone:hover {
  background: #f5f5f5;
  color: var(--text-dark);
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.breadcrumbs {
  background: var(--bg-light);
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9375rem;
}

.breadcrumbs a {
  color: var(--text-light);
  transition: color 0.3s;
}

.breadcrumbs a:hover {
  color: var(--primary-color);
}

.breadcrumbs span {
  color: #999;
  margin: 0 10px;
}

.breadcrumbs .current {
  color: var(--text-dark);
  font-weight: 500;
}

/* ==========================================================================
   ENHANCED CONTENT SECTIONS
   ========================================================================== */

section {
  padding: 100px 24px;
  position: relative;
}

section:nth-child(even) {
  background: linear-gradient(180deg, var(--bg-light) 0%, #ffffff 100%);
}

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

.section-header .badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(212, 144, 28, 0.1), rgba(244, 167, 66, 0.1));
  color: var(--primary-color);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  border: 1px solid rgba(212, 144, 28, 0.2);
}

.section-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 24px;
}

.section-header h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-light);
  line-height: 1.8;
}

/* ==========================================================================
   CONTENT GRID
   ========================================================================== */

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  margin-top: 50px;
}

.main-content {
  background: white;
  padding: 50px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
}

/* ==========================================================================
   PREMIUM CARDS & BOXES
   ========================================================================== */

.info-box {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
  border-left: 5px solid var(--primary-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.info-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(212, 144, 28, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(50%, -50%);
}

.info-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.info-box h3 {
  margin-top: 0;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
}

.info-box h3::before {
  content: '✦';
  color: var(--primary-light);
  font-size: 1.25rem;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  padding: 50px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 50px 0;
  box-shadow: 0 8px 32px rgba(212, 144, 28, 0.3);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, 20px); }
}

.cta-box h3 {
  color: white;
  margin-bottom: 20px;
  font-size: 2rem;
  position: relative;
  z-index: 1;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 30px;
  font-size: 1.125rem;
  position: relative;
  z-index: 1;
}

.cta-box .phone-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 2.25rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
  margin: 20px 0;
  transition: all 0.3s;
  background: rgba(0, 0, 0, 0.15);
  padding: 20px 40px;
  border-radius: var(--radius-md);
  position: relative;
  z-index: 1;
}

.cta-box .phone-link::before {
  content: '📞';
  font-size: 2rem;
}

.cta-box .phone-link:hover {
  transform: scale(1.05);
  background: rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

/* ==========================================================================
   STUNNING FEATURES GRID
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  margin: 60px 0;
}

.feature-card {
  background: white;
  padding: 40px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

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

.feature-icon {
  font-size: 3.5rem;
  margin-bottom: 24px;
  display: inline-block;
  transition: all 0.4s;
}

.feature-card:hover .feature-icon {
  transform: scale(1.15) rotate(5deg);
}

.feature-card h3 {
  margin-bottom: 16px;
  font-size: 1.375rem;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-light);
  margin: 0;
  line-height: 1.7;
}

/* ==========================================================================
   PREMIUM PRICING
   ========================================================================== */

.pricing-box {
  background: linear-gradient(135deg, #f0f8ff 0%, #ffffff 100%);
  border: 2px solid var(--primary-color);
  padding: 45px;
  border-radius: var(--radius-lg);
  margin: 40px 0;
  box-shadow: var(--shadow-md);
  position: relative;
}

.pricing-box::before {
  content: 'TRANSPARENT PRICING';
  position: absolute;
  top: -14px;
  left: 30px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.pricing-box h3 {
  margin-top: 10px;
  font-size: 1.5rem;
}

.price {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 25px 0;
  display: inline-block;
}

.pricing-details {
  color: var(--text-light);
  font-size: 0.9375rem;
  line-height: 1.8;
}

/* ==========================================================================
   ENHANCED FAQ SECTION
   ========================================================================== */

.faq-section {
  margin: 50px 0;
}

.faq-item {
  background: white;
  padding: 35px;
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary-color);
  transition: all 0.3s;
  border: 1px solid var(--border-color);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(5px);
}

.faq-question {
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.faq-question::before {
  content: 'Q';
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  border-radius: 6px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
  font-size: 0.875rem;
}

.faq-answer {
  color: var(--text-medium);
  line-height: 1.8;
  margin: 0;
  padding-left: 44px;
}

/* ==========================================================================
   SERVICE AREAS
   ========================================================================== */

.service-areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.area-tag {
  background: white;
  padding: 24px;
  border-radius: var(--radius-md);
  text-align: center;
  border: 2px solid var(--border-color);
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  color: var(--text-dark);
}

.area-tag::before {
  content: '📍';
  position: absolute;
  font-size: 3rem;
  opacity: 0.05;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.area-tag:hover {
  border-color: var(--primary-color);
  background: linear-gradient(135deg, rgba(212, 144, 28, 0.05), rgba(244, 167, 66, 0.05));
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   PROCESS STEPS
   ========================================================================== */

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin: 60px 0;
}

.process-step {
  text-align: center;
  position: relative;
  padding: 20px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  border-radius: 50%;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(212, 144, 28, 0.3);
  position: relative;
  transition: all 0.3s;
}

.process-step:hover .step-number {
  transform: scale(1.1) rotate(5deg);
}

.step-number::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.3);
  top: -10px;
  left: -10px;
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.process-step h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.process-step p {
  color: var(--text-light);
  font-size: 1rem;
  margin: 0;
}

/* ==========================================================================
   PREMIUM BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  font-weight: 600;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-size: 1.0625rem;
  text-decoration: none;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  box-shadow: 0 4px 16px rgba(212, 144, 28, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(212, 144, 28, 0.4);
  color: white;
  text-decoration: none;
  filter: brightness(1.05);
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.btn-large {
  padding: 20px 48px;
  font-size: 1.125rem;
  font-weight: 700;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  background: linear-gradient(180deg, #1a1a1a 0%, #0d0d0d 100%);
  color: #fff;
  padding: 80px 24px 30px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 50px;
  margin-bottom: 50px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-section h3 {
  color: white;
  margin-bottom: 24px;
  font-size: 1.25rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 12px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-section a::before {
  content: '→';
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s;
}

.footer-section a:hover {
  color: var(--primary-color);
  padding-left: 18px;
}

.footer-section a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9375rem;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.bg-white { background: var(--bg-white); }
.bg-light { background: var(--bg-light); }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 20px;
  }

  .hero {
    padding: 80px 20px 60px;
  }

  nav {
    gap: 20px;
  }

  .features-grid,
  .service-areas {
    grid-template-columns: 1fr;
  }

  .process-steps {
    grid-template-columns: 1fr;
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .main-content,
  .info-box,
  .cta-box,
  .pricing-box {
    padding: 30px;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    width: 100%;
  }

  .cta-box .phone-link {
    font-size: 1.75rem;
  }
}
