/* Base Styles */
:root {
  /* Light Theme (Default) */
  --primary: #c41e1e; /* Deep Red */
  --primary-dark: #9a1717; /* Darker Red */
  --primary-light: #e63535; /* Lighter Red */
  --secondary: #1e293b; /* Dark Blue-Gray */
  --secondary-light: #334155; /* Light Blue-Gray */
  --dark: #0f172a; /* Almost Black */
  --light: #f4f5f7; /* Soft off-white */
  --light-alt: #e9ebf0; /* Cool stone */
  --gray-50: #f4f5f7;
  --gray-100: #ebecef;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --copper: #b87333; /* Copper */
  --copper-dark: #8c5823; /* Dark Copper */
  --copper-light: #d89c5b; /* Light Copper */
  --water-blue: #3498db;
  --water-blue-dark: #2980b9;
  --water-blue-light: #5dade2;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-md: 0.75rem;
  --border-radius-lg: 1rem;
  --border-radius-xl: 1.5rem;
  --text-color: #1e293b;
  --bg-color: #f4f5f7;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --surface: #ffffff;
  --header-bg: rgba(244, 245, 247, 0.92);
}

/* Dark Theme */
.dark-theme {
  --primary: #e85a5a;
  --primary-dark: #c41e1e;
  --primary-light: #ff7a7a;
  --secondary: #1a202c;
  --secondary-light: #2d3748;
  --dark: #0b1220;
  --light: #e8edf5;
  --light-alt: #cbd5e1;
  --gray-50: #111827;
  --gray-100: #1f2937;
  --gray-200: #334155;
  --gray-300: #475569;
  --gray-400: #94a3b8;
  --gray-500: #94a3b8;
  --gray-600: #cbd5e1;
  --gray-700: #e2e8f0;
  --gray-800: #f1f5f9;
  --gray-900: #f8fafc;
  --copper: #d89c5b;
  --copper-dark: #b87333;
  --copper-light: #e6b17e;
  --text-color: #e2e8f0;
  --bg-color: #0b1220;
  --card-bg: #152033;
  --border-color: #2a364a;
  --surface: #152033;
  --header-bg: rgba(11, 18, 32, 0.94);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

.footer-widgets,
.easter-egg,
.scroll-to-top{
  display:none;
}

body {
  font-family: "Outfit", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Teko", sans-serif;
  line-height: 1.2;
  color: var(--text-color);
  font-weight: 600;
  letter-spacing: 1px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.site-logo {
    max-width: 235px;
    top: 14px;
    position: relative;
}

/* Crisp CSS brand mark (replaces soft ChatGPT PNG logo) */
.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
  gap: 0.15rem;
}

.brand-logo .logo-text {
  font-family: "Teko", sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark);
  font-style: italic;
  line-height: 0.9;
}

.brand-logo .logo-tagline {
  font-family: "Outfit", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-top: 0;
  white-space: nowrap;
}

.brand-logo--footer .logo-text {
  color: #fff;
  font-size: 2.4rem;
}

.brand-logo--footer .logo-tagline {
  color: rgba(255, 255, 255, 0.75);
}

.footer-years {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
}

.logo img.site-logo {
  display: none;
}

.header {
  padding: 0.85rem 0;
}

.header-container {
  align-items: center;
  gap: 1.5rem;
}

.nav-menu {
  top: 0;
}

.header-actions {
  top: 0;
}

/* Homepage: restore services (nav targets #services); keep clutter hidden */
.home .hero-btns,
.home .hero-features,
.home .section.portfolio {
  display: none !important;
}

.home .services {
  display: block !important;
}

.hero-years-kicker {
  display: inline-block;
  margin: 0 0 0.75rem;
  padding: 0.35rem 0.85rem;
  font-family: "Outfit", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
}

.hero-title {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-title-lead {
  display: block;
  font-size: 0.42em;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gray-700);
  text-transform: uppercase;
}

.hero-years {
  display: block;
  color: var(--primary);
  font-size: 1.05em;
  line-height: 0.95;
}

.about-years-callout {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0 0 1.25rem;
  padding: 0.65rem 1.1rem;
  background: linear-gradient(135deg, rgba(196, 30, 30, 0.08), rgba(196, 30, 30, 0.02));
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.about-years-number {
  font-family: "Teko", sans-serif;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--primary);
}

.about-years-label {
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-700);
}

.about-stat--years .about-stat-number {
  color: var(--primary);
  font-size: 1.35em;
}

/* Subtle motion */
.hero-content,
.hero-form-container,
.about-years-callout {
  animation: rudco-fade-up 0.7s ease both;
}

.hero-form-container {
  animation-delay: 0.12s;
}

.about-years-callout {
  animation-delay: 0.08s;
}

@keyframes rudco-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-content,
  .hero-form-container,
  .about-years-callout {
    animation: none;
  }
}

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

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
}

.section {
  position: relative;
  padding: 8rem 0;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 5rem;
  position: relative;
}

.section-title {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  line-height: 1;
  text-transform: uppercase;
}

.section-title span {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.section-title span::after {
  content: "";
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  width: 100%;
  height: 0.5rem;
  background-color: var(--copper);
  z-index: -1;
  opacity: 0.3;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 800px;
  margin-bottom: 3rem;
  font-weight: 300;
}

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

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

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

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-10 {
  gap: 2.5rem;
}

.gap-12 {
  gap: 3rem;
}

.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

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

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

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

.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.z-30 {
  z-index: 30;
}

.z-40 {
  z-index: 40;
}

.z-50 {
  z-index: 50;
}

.overflow-hidden {
  overflow: hidden;
}

.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.rounded-sm {
  border-radius: var(--border-radius-sm);
}

.rounded {
  border-radius: var(--border-radius);
}

.rounded-md {
  border-radius: var(--border-radius-md);
}

.rounded-lg {
  border-radius: var(--border-radius-lg);
}

.rounded-xl {
  border-radius: var(--border-radius-xl);
}

.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow {
  box-shadow: var(--shadow);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.shadow-xl {
  box-shadow: var(--shadow-xl);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  gap: 0.75rem;
  font-family: "Outfit", sans-serif;
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: var(--border-radius);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover::before {
  transform: translateX(0);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--light);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(196, 30, 30, 0.3);
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--light);
}

.btn-secondary:hover {
  background-color: var(--secondary-light);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--light);
  color: var(--light);
}

.btn-outline:hover {
  background-color: var(--light);
  color: var(--secondary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.btn-lg {
  padding: 1.25rem 3rem;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light);
  cursor: pointer;
  transition: var(--transition);
  margin-right: 1rem;
}

.theme-toggle:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.theme-icon {
  font-size: 1.25rem;
}

.dark-theme .theme-icon {
  color: var(--primary);
}

.dark-theme .theme-toggle {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Mobile Theme Toggle */
.mobile-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary);
}

input:checked + .slider:before {
  transform: translateX(26px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 1.5rem 0;
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
}

.light-theme .header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.header.scrolled {
  padding: 1rem 0;
  background-color: var(--bg-color);
  box-shadow: var(--shadow);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1001;
}

.logo-text {
  font-family: "Teko", sans-serif;
  font-size: 3rem;
  color: var(--text-color);
  letter-spacing: 2px;
  line-height: 1;
  text-transform: uppercase;
}

.logo-text span {
  color: var(--primary);
}

.logo-tagline {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-top: -0.25rem;
}

.nav-menu {
  display: flex;
  gap: 3rem;
  list-style: none;
  position: relative;
  top: 10px;
}

.nav-link {
  color: #333333;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

