/* Deep South Sharpening Theme - Main Stylesheet */
/* Converted from Tailwind CSS to traditional CSS - EXACT REPLICA */

/* ============================================================================
   CSS Variables (Color System) - EXACT from React
   ============================================================================ */
:root {
  /* Pure black background */
  --background: hsl(0, 0%, 4%);
  --foreground: hsl(0, 0%, 98%);

  --card: hsl(0, 0%, 7%);
  --card-foreground: hsl(0, 0%, 98%);

  --popover: hsl(0, 0%, 7%);
  --popover-foreground: hsl(0, 0%, 98%);

  /* Yellow/Gold accent - Work Sharp inspired */
  --primary: hsl(45, 93%, 47%);
  --primary-foreground: hsl(0, 0%, 5%);

  --secondary: hsl(0, 0%, 12%);
  --secondary-foreground: hsl(0, 0%, 98%);

  --muted: hsl(0, 0%, 18%);
  --muted-foreground: hsl(0, 0%, 60%);

  --accent: hsl(45, 93%, 47%);
  --accent-foreground: hsl(0, 0%, 5%);

  --destructive: hsl(0, 84.2%, 60.2%);
  --destructive-foreground: hsl(0, 0%, 100%);

  --border: hsl(0, 0%, 18%);
  --input: hsl(0, 0%, 18%);
  --ring: hsl(45, 93%, 47%);

  --radius: 0.5rem;
}

/* ============================================================================
   Base Styles
   ============================================================================ */
* {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================================
   Typography
   ============================================================================ */
.font-display {
  font-family: 'Oswald', sans-serif;
}

.font-bold {
  font-weight: 700;
}

.font-semibold {
  font-weight: 600;
}

.font-medium {
  font-weight: 500;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}

.text-7xl {
  font-size: 4.5rem;
  line-height: 1;
}

.uppercase {
  text-transform: uppercase;
}

.tracking-wide {
  letter-spacing: 0.025em;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.tracking-widest {
  letter-spacing: 0.1em;
}

.leading-relaxed {
  line-height: 1.625;
}

.leading-[1.1] {
  line-height: 1.1;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* ============================================================================
   Colors
   ============================================================================ */
.bg-background {
  background-color: var(--background);
}

.bg-primary {
  background-color: var(--primary);
}

.bg-primary\/90 {
  background-color: hsl(45, 93%, 47%, 0.9);
}

.bg-secondary {
  background-color: var(--secondary);
}

.bg-secondary\/30 {
  background-color: hsl(0, 0%, 12%, 0.3);
}

.bg-secondary\/50 {
  background-color: hsl(0, 0%, 12%, 0.5);
}

.bg-card {
  background-color: var(--card);
}

.bg-background\/95 {
  background-color: hsl(0, 0%, 4%, 0.95);
}

.bg-background\/90 {
  background-color: hsl(0, 0%, 4%, 0.9);
}

.bg-background\/40 {
  background-color: hsl(0, 0%, 4%, 0.4);
}

.text-primary {
  color: var(--primary);
}

.text-primary-foreground {
  color: var(--primary-foreground);
}

.text-foreground {
  color: var(--foreground);
}

.text-muted-foreground {
  color: var(--muted-foreground);
}

/* ============================================================================
   Spacing
   ============================================================================ */
.p-2 {
  padding: 0.5rem;
}

.p-3 {
  padding: 0.75rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.px-10 {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.mb-1 {
  margin-bottom: 0.25rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mt-12 {
  margin-top: 3rem;
}

.mt-16 {
  margin-top: 4rem;
}

.pt-8 {
  padding-top: 2rem;
}

/* ============================================================================
   Layout
   ============================================================================ */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.justify-start {
  justify-content: flex-start;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.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));
}

.space-y-5 > * + * {
  margin-top: 1.25rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

/* ============================================================================
   Responsive - Mobile First
   ============================================================================ */
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .md\:flex {
    display: flex !important;
  }
  
  /* Override hidden when md:flex is also present */
  .hidden.md\:flex {
    display: flex !important;
  }

  .md\:hidden {
    display: none !important;
  }

  .md\:block {
    display: block !important;
  }
  
  /* Override hidden when md:block is also present */
  .hidden.md\:block {
    display: block !important;
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }

  .md\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }

  .md\:text-left {
    text-align: left;
  }

  .md\:flex-row {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }

  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:text-7xl {
    font-size: 4.5rem;
    line-height: 1;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
}

/* ============================================================================
   Borders
   ============================================================================ */
.border {
  border: 1px solid var(--border);
}

.border-t {
  border-top: 1px solid var(--border);
}

.border-b {
  border-bottom: 1px solid var(--border);
}

.border-border {
  border: 1px solid var(--border) !important;
}

.border-primary {
  border: 1px solid var(--primary) !important;
}

/* Ensure borders are visible on specific elements */
.p-3.border,
.p-4.border,
.p-6.border,
.bg-card.border {
  border: 1px solid var(--border) !important;
}

.rounded-none {
  border-radius: 0;
}

.rounded-md {
  border-radius: var(--radius);
}

/* ============================================================================
   Positioning
   ============================================================================ */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.sticky {
  position: sticky;
}

.fixed {
  position: fixed;
}

.top-0 {
  top: 0;
}

.top-12 {
  top: 3rem;
}

.left-0 {
  left: 0;
}

.right-0 {
  right: 0;
}

.bottom-0 {
  bottom: 0;
}

.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}

.z-10 {
  z-index: 10;
}

.z-50 {
  z-index: 50;
}

/* ============================================================================
   Sizing
   ============================================================================ */
.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.h-16 {
  height: 4rem;
}

.w-6 {
  width: 1.5rem;
}

.h-6 {
  height: 1.5rem;
}

.w-12 {
  width: 3rem;
}

.h-12 {
  height: 3rem;
}

.w-16 {
  width: 4rem;
}

.h-16 {
  height: 4rem;
}

.h-4 {
  height: 1rem;
}

.w-4 {
  width: 1rem;
}

.min-h-screen {
  min-height: 100vh;
}

.max-w-md {
  max-width: 28rem;
}

.max-w-xl {
  max-width: 36rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-3xl {
  max-width: 48rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-5xl {
  max-width: 64rem;
}

.h-px {
  height: 1px;
}

.left-\[60\%\] {
  left: 60%;
}

.w-\[80\%\] {
  width: 80%;
}

/* ============================================================================
   Effects & Transitions
   ============================================================================ */
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-200 {
  transition-duration: 200ms;
}

.duration-300 {
  transition-duration: 300ms;
}

.duration-500 {
  transition-duration: 500ms;
}

.hover\:bg-primary\/90:hover {
  background-color: hsl(45, 93%, 47%, 0.9);
}

.hover\:text-foreground:hover {
  color: var(--foreground);
}

.hover\:text-primary:hover {
  color: var(--primary);
}

.hover\:border-primary:hover {
  border-color: var(--primary);
}

.hover\:no-underline:hover {
  text-decoration: none;
}

.hover\:underline:hover {
  text-decoration: underline;
}

.backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.opacity-90 {
  opacity: 0.9;
}

.rotate-45 {
  transform: rotate(45deg);
}

.shrink-0 {
  flex-shrink: 0;
}

.flex-1 {
  flex: 1 1 0%;
}

.ml-2 {
  margin-left: 0.5rem;
}

.inline-block {
  display: inline-block;
}

.inline-flex {
  display: inline-flex;
}

.overflow-hidden {
  overflow: hidden;
}

.cursor-pointer {
  cursor: pointer;
}

.object-cover {
  object-fit: cover;
}

.aspect-\[4\/3\] {
  aspect-ratio: 4 / 3;
}

.resize-none {
  resize: none;
}

/* ============================================================================
   Animations
   ============================================================================ */
@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes accordion-down {
  from {
    height: 0;
    opacity: 0;
  }
  to {
    height: var(--radix-accordion-content-height, 200px);
    opacity: 1;
  }
}

@keyframes accordion-up {
  from {
    height: var(--radix-accordion-content-height, 200px);
    opacity: 1;
  }
  to {
    height: 0;
    opacity: 0;
  }
}

.animate-fade-up {
  animation: fade-up 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

.animate-fade-in {
  animation: fade-in 0.5s ease-out forwards;
}

[style*="animation-delay"] {
  animation-fill-mode: forwards;
}

/* ============================================================================
   Component Styles - Header
   ============================================================================ */
.announcement-bar {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.header {
  border-bottom: 1px solid var(--border) !important;
}

.header.scrolled {
  background-color: hsl(0, 0%, 4%, 0.95);
  backdrop-filter: blur(4px);
}

.mobile-menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu {
  display: none !important;
}

.mobile-menu.active,
.mobile-menu:not(.hidden) {
  display: block !important;
}

.mobile-menu.hidden {
  display: none !important;
}

.menu-icon.hidden,
.close-icon.hidden {
  display: none;
}

.menu-icon,
.close-icon {
  display: block;
}

/* ============================================================================
   Component Styles - Buttons
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 150ms, color 150ms;
  cursor: pointer;
  border: none;
  text-decoration: none;
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

.btn-primary {
  background-color: var(--primary) !important;
  color: var(--primary-foreground) !important;
}

.btn-primary:hover,
.btn-primary.hover\:bg-primary\/90:hover {
  background-color: hsl(45, 93%, 47%, 0.9) !important;
}

/* Button sizes */
.btn.h-11 {
  height: 2.75rem;
}

.btn.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.btn.px-10 {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.btn.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.btn svg {
  pointer-events: none;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.btn.whitespace-nowrap {
  white-space: nowrap;
}

/* Navigation buttons */
.nav-link,
.mobile-nav-link,
.footer-link {
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  display: inline-block;
}

.nav-link:hover,
.mobile-nav-link:hover,
.footer-link:hover {
  text-decoration: none;
}

/* ============================================================================
   Component Styles - Hero
   ============================================================================ */
/* Hero uses utility classes directly - no custom classes needed */

/* Gradient overlay - stronger on left for text readability */
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--background), hsl(0, 0%, 4%, 0.9), hsl(0, 0%, 4%, 0.4));
}

.bg-gradient-to-t {
  background-image: linear-gradient(to top, var(--background), hsl(0, 0%, 4%, 0.6), transparent);
}

/* Background utilities */
.bg-cover {
  background-size: cover;
}

.bg-center {
  background-position: center;
}

.bg-no-repeat {
  background-repeat: no-repeat;
}

/* ============================================================================
   Component Styles - Services
   ============================================================================ */
.service-card {
  position: relative;
  overflow: hidden;
  background-color: var(--card);
  cursor: pointer;
}

/* Group hover effects */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

.group:hover .group-hover\:text-primary {
  color: var(--primary);
}

/* ============================================================================
   Component Styles - Accordion
   ============================================================================ */
.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-trigger {
  width: 100%;
  text-align: left;
  padding: 1.5rem 0;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  transition: all 150ms;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion-trigger:hover {
  text-decoration: underline;
}

.accordion-trigger:hover span {
  color: var(--primary);
}

.accordion-chevron {
  transition: transform 200ms;
  flex-shrink: 0;
  height: 1rem;
  width: 1rem;
}

.accordion-trigger[aria-expanded="true"] .accordion-chevron,
.accordion-trigger[data-state="open"] .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-content {
  overflow: hidden;
  transition: height 0.3s ease-out;
}

.accordion-content[data-state="closed"] {
  display: none !important;
  height: 0;
  overflow: hidden;
}

.accordion-content[data-state="open"] {
  display: block !important;
  overflow: hidden;
}

/* ============================================================================
   Component Styles - Forms
   ============================================================================ */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  background-color: var(--background);
  border: 1px solid var(--border) !important;
  color: var(--foreground);
  font-size: 1rem;
  transition: border-color 150ms;
  outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* Focus classes */
.focus\:border-primary:focus {
  border-color: var(--primary);
}

input[type="text"].rounded-none,
input[type="email"].rounded-none,
input[type="tel"].rounded-none {
  border-radius: 0;
}

input[type="text"].py-6,
input[type="email"].py-6,
input[type="tel"].py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

input[type="text"].px-4,
input[type="email"].px-4,
input[type="tel"].px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

textarea {
  resize: none;
  min-height: 80px;
}

textarea.rounded-none {
  border-radius: 0;
}

textarea.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

textarea.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

/* ============================================================================
   Utilities
   ============================================================================ */
.hidden {
  display: none !important;
}

/* Ensure responsive classes work correctly */
@media (min-width: 768px) {
  .hidden.md\:flex {
    display: flex !important;
  }
  
  .hidden.md\:block {
    display: block !important;
  }
}

/* ============================================================================
   Additional Utilities
   ============================================================================ */
/* Reset button styles only for buttons without classes */
button:not(.btn):not(.nav-link):not(.mobile-nav-link):not(.footer-link):not(.accordion-trigger):not(.mobile-menu-toggle) {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

button:focus {
  outline: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ============================================================================
   Responsive adjustments
   ============================================================================ */
@media (max-width: 767px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .text-5xl {
    font-size: 2.25rem;
  }

  .text-6xl {
    font-size: 3rem;
  }

  .text-7xl {
    font-size: 3.75rem;
  }
}
