/* ================================================================
   RJA PLUMBING - PROFESSIONAL B2B WEBSITE
   Color Theme: Blue (#5a9bd5 / #85c9ed)
   Mobile-First Responsive Design
   ================================================================ */

:root {
  /* Primary Colors - Lighter Blue Theme */
  --primary: #5a9bd5;
  --primary-dark: #4a8bc5;
  --primary-light: #85c9ed;
  --primary-lighter: #a8d8f0;
  --primary-accent: #85c9ed;

  /* Copper Accent Colors (matching logo pipe) */
  --copper: #b87333;
  --copper-dark: #a0622b;
  --copper-light: #d4956a;
  --copper-lighter: #e8c4a0;

  /* Legacy aliases (used in responsive.css) */
  --primary-copper: var(--copper);
  --primary-copper-dark: var(--copper-dark);
  --primary-copper-light: var(--copper-light);
  --primary-copper-lighter: var(--copper-lighter);
  --primary-copper-accent: var(--copper-light);

  /* Secondary Colors */
  --secondary-black: #1a1a1a;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --professional-gray: #5a6c7d;
  --light-gray: #f8f9fa;
  --lighter-gray: #f0f1f3;
  --white: #ffffff;

  /* Accent Colors */
  --emergency-red: #dc2626;
  --warning-orange: #f59e0b;
  --success-green: #16a34a;
  --info-blue: #3b82f6;

  /* Typography */
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  --font-size-body: 16px;
  --line-height: 1.6;
}

/* ================================================================
   GLOBAL STYLES
   ================================================================ */

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

html {
  scroll-behavior: smooth;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  color: var(--secondary-black);
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.5px;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.accent {
  color: var(--primary);
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  padding: 12px 32px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.2px;
}

.btn-primary {
  background: linear-gradient(135deg, #3a6fa5 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(58, 111, 165, 0.25);
  border: none;
  font-weight: 500;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(58, 111, 165, 0.4);
  background: linear-gradient(135deg, #2d5f8f 0%, #3a6fa5 100%);
  color: var(--white);
  text-decoration: none;
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(90, 155, 213, 0.2), 0 2px 8px rgba(90, 155, 213, 0.2);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 500;
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(90, 155, 213, 0.25);
  transform: translateY(-2px);
}

.btn-secondary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(90, 155, 213, 0.2), 0 2px 8px rgba(90, 155, 213, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--copper);
  border: 2px solid var(--copper);
  font-weight: 500;
}

.btn-outline:hover {
  background: var(--copper);
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(184, 115, 51, 0.3);
}

.btn-outline:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.2);
}

.btn-large {
  padding: 14px 40px;
  font-size: 1.125rem;
  font-weight: 500;
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* ================================================================
   CONTACT BANNER
   ================================================================ */

.contact-banner {
  background: var(--white);
  color: var(--dark-gray);
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  border-bottom: 3px solid var(--primary);
}

.contact-banner-content {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-banner-link {
  color: var(--dark-gray);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.contact-banner-link:hover {
  color: var(--primary);
  text-decoration: none;
}

.contact-banner-link i {
  margin-right: 0.35rem;
  font-size: 0.8rem;
  color: var(--primary);
}

/* Legacy banner classes (used by responsive.css) */
.emergency-banner { display: none; }
.emergency-banner-content { display: none; }

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

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--secondary-black);
}

.logo:hover {
  text-decoration: none;
}

.logo-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.logo-tag {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--medium-gray);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.logo img {
  height: 65px;
  width: auto;
}

nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

nav a {
  color: var(--dark-gray);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  padding: 0.25rem 0;
}

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

nav a.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

/* Request Service link styling - no button box */
nav a.btn {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 4px;
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  font-size: 0.95rem;
  border-radius: 0;
  display: inline;
  min-height: auto;
  align-items: auto;
}

nav a.btn:hover {
  color: var(--primary-dark);
  transform: none;
  box-shadow: none;
  text-decoration: none;
}

nav a.nav-login {
  color: var(--medium-gray);
  font-size: 0.85rem;
  font-weight: 500;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--secondary-black);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--white);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(255,255,255,0.06) 0%, transparent 45%);
}

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

.hero h1 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 2.75rem;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.hero-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.95);
}

.hero-feature::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 0.7rem;
  color: var(--secondary-black);
  background: var(--white);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-cta {
  margin-top: 2.5rem;
}

/* ================================================================
   SECTIONS
   ================================================================ */

section {
  padding: 4rem 2rem;
}

.section-light {
  background: var(--light-gray);
}

.section-white {
  background: var(--white);
}

.section-dark {
  background: var(--secondary-black);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark p {
  color: #e5e5e5;
}

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

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--medium-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ================================================================
   GRID LAYOUTS
   ================================================================ */

.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

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

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

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

/* ================================================================
   SERVICE CARDS
   ================================================================ */

.service-card {
  background: var(--white);
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border-top: none;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(65, 121, 225, 0.1);
  border-color: var(--primary-light);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, rgba(65, 121, 225, 0.08) 0%, rgba(133, 201, 237, 0.12) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
}

.service-card h3 {
  color: var(--secondary-black);
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.service-card p {
  color: var(--medium-gray);
  margin-bottom: 1.25rem;
  min-height: 48px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.service-card .btn {
  display: inline-block;
  margin-top: 0.5rem;
}

/* ================================================================
   FEATURE SECTION
   ================================================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
  margin-top: 2rem;
}

.feature-item {
  padding: 2rem 1rem;
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  width: 52px;
  height: 52px;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, rgba(65, 121, 225, 0.08) 0%, rgba(133, 201, 237, 0.12) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.feature-item h4 {
  color: var(--secondary-black);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.feature-item p {
  color: var(--medium-gray);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ================================================================
   QUOTE SECTION
   ================================================================ */

.quote-section {
  background: linear-gradient(135deg, var(--light-gray) 0%, var(--lighter-gray) 100%);
  padding: 3rem 2rem;
  border-radius: 8px;
  margin: 2rem 0;
}

.quote-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 1rem;
  align-items: flex-end;
  max-width: 1000px;
  margin: 0 auto;
}

.quote-form-group {
  display: flex;
  flex-direction: column;
}

.quote-form label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark-gray);
  font-size: 0.95rem;
}

.quote-form input,
.quote-form select {
  padding: 10px;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.quote-form input:focus,
.quote-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(65, 121, 225, 0.1);
}

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

footer {
  background: var(--secondary-black);
  color: var(--white);
  padding: 3rem 2rem 1.5rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-section p {
  color: #aaa;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-section a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: var(--primary-light);
  text-decoration: none;
}

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

.footer-section li {
  margin-bottom: 0.4rem;
}

.footer-section li a {
  display: block;
  padding: 0.2rem 0;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 1.5rem;
  text-align: center;
  color: var(--primary-light);
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--primary-light);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ================================================================
   FORMS
   ================================================================ */

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--dark-gray);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  font-family: var(--font-main);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(65, 121, 225, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.consent-group {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1rem;
}

.consent-group input[type="checkbox"] {
  width: auto;
  min-width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  padding: 0;
  border: 1px solid #9a9a9a;
  border-radius: 3px;
}

.consent-group label {
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}

.notice-text {
  margin-top: 0.85rem;
  color: var(--medium-gray);
  font-size: 0.9rem;
  text-align: center;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ================================================================
   ALERTS & MESSAGES
   ================================================================ */

.alert {
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
}

.alert-info {
  background: #e3f2fd;
  border-left: 4px solid #2196f3;
  color: #1565c0;
}

.alert-success {
  background: #f1f8e9;
  border-left: 4px solid #4caf50;
  color: #33691e;
}

.alert-warning {
  background: #fff3e0;
  border-left: 4px solid #ff9800;
  color: #e65100;
}

.alert-danger {
  background: #ffebee;
  border-left: 4px solid #f44336;
  color: #b71c1c;
}

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

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

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.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; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.hidden {
  display: none;
}

.visible {
  display: block;
}
