/* ==========================================================================
   Siverek Parke - Premium Custom CSS
   Built with a warm, material-focused wood palette and unique layouts.
   ========================================================================== */

/* Design Tokens & Variables */
:root {
  --charcoal: #151515;
  --charcoal-dark: #0f0f0f;
  --charcoal-light: #1f1f1f;
  --beige: #c29b68;
  --beige-light: #e4d1b9;
  --beige-dark: #917045;
  --cream: #FAF7F2;
  --cream-dark: #EFEBE4;
  --white: #ffffff;
  --success: #10B981;
  --error: #EF4444;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--charcoal-dark);
  color: var(--cream);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Wood Grain Background Overlay */
.wood-grain-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('wood-grain.svg');
  background-repeat: repeat;
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}

/* Typography utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Scroll reveal helper classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Navigation & Glassmorphism Header */
.glass-header {
  background-color: rgba(15, 15, 15, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(194, 155, 104, 0.1);
  z-index: 100;
  transition: all 0.4s ease;
}

.glass-header.scrolled {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: rgba(15, 15, 15, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo-group span {
  transition: color 0.3s ease;
}

.logo-group:hover span:first-child {
  color: var(--beige);
}

.header-phone-btn {
  font-size: 0.75rem;
  font-family: var(--font-sans);
  letter-spacing: 0.1em;
  font-weight: 700;
  border-radius: 2px;
  box-shadow: 0 4px 10px rgba(194, 155, 104, 0.15);
  position: relative;
  overflow: hidden;
}

.header-phone-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: skewX(-25deg);
  transition: 0.75s ease;
}

.header-phone-btn:hover::after {
  left: 120%;
}

/* Services Cards - Tactile/Premium Asymmetric Style */
.service-card {
  background: var(--charcoal);
  border: 1px solid rgba(194, 155, 104, 0.08);
  padding: 2.5rem 2rem;
  border-radius: 2px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  z-index: 2;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(194, 155, 104, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  background: var(--charcoal-light);
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(194, 155, 104, 0.1);
  color: var(--beige);
  margin-bottom: 1.5rem;
  border-radius: 2px;
  border: 1px solid rgba(194, 155, 104, 0.2);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--beige);
  color: var(--charcoal);
  border-color: var(--beige);
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

/* Before/After Drag Slider styles */
#before-after-container {
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

#before-image-wrapper {
  will-change: width;
}

#slider-handle {
  transform: translateX(-50%);
  will-change: left;
}

/* Gallery Portfolio - Filters & Lightbox */
.filter-btn {
  background: transparent;
  border: 1px solid rgba(194, 155, 104, 0.2);
  color: var(--beige-light);
  padding: 0.6rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--beige);
  color: var(--charcoal);
  border-color: var(--beige);
  box-shadow: 0 4px 12px rgba(194, 155, 104, 0.2);
}

.gallery-wrapper {
  z-index: 2;
}

.gallery-wrapper img {
  will-change: transform;
}

/* Custom Testimonial Receipt styling */
.receipt-card {
  background-color: var(--cream);
  color: var(--charcoal-dark);
  padding: 2.5rem 2rem;
  position: relative;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border-radius: 2px;
  z-index: 2;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Receipt Top and Bottom Torn Zigzag Edges using pure CSS gradient */
.receipt-card::before, .receipt-card::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 10px;
  background-size: 16px 16px;
}

.receipt-card::before {
  top: -10px;
  background-image: linear-gradient(135deg, var(--cream) 25%, transparent 25%), 
                    linear-gradient(225deg, var(--cream) 25%, transparent 25%);
}

.receipt-card::after {
  bottom: -10px;
  background-image: linear-gradient(45deg, var(--cream) 25%, transparent 25%), 
                    linear-gradient(-45deg, var(--cream) 25%, transparent 25%);
}

.receipt-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: var(--font-sans);
}

.receipt-logo {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--beige-dark);
  margin-bottom: 0.25rem;
}

.receipt-meta {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  opacity: 0.6;
}

.receipt-divider {
  border-top: 1px dashed rgba(21, 21, 21, 0.15);
  margin: 1.25rem 0;
}

.receipt-body {
  min-height: 120px;
  display: flex;
  align-items: center;
}

.receipt-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333333;
}

.receipt-footer {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-sans);
  font-size: 0.75rem;
}

.receipt-customer {
  font-weight: 700;
}

.receipt-project {
  font-style: italic;
  opacity: 0.75;
}

/* Contact Section & Form Elements */
.hidden-honey {
  display: none !important;
  visibility: hidden !important;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--charcoal-dark);
  border: 1px solid rgba(194, 155, 104, 0.15);
  color: var(--cream);
  padding: 1rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  border-radius: 2px;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--beige);
  background: var(--charcoal-light);
  box-shadow: 0 0 10px rgba(194, 155, 104, 0.15);
}

.form-select option {
  background: var(--charcoal-dark);
  color: var(--cream);
}

.form-error-msg {
  color: var(--error);
  font-size: 0.75rem;
  display: block;
  margin-top: 0.25rem;
}

/* Toast Alerts styling */
.toast {
  padding: 1rem;
  border-radius: 2px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
}

.toast.success {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.25);
}

.toast.error {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--error);
  border-color: rgba(239, 68, 68, 0.25);
}

/* Helper utilities */
.hidden {
  display: none !important;
}

/* Responsive Sticky Mobile Bar adjustment */
@media (max-width: 767px) {
  body {
    padding-bottom: 4rem; /* Safe area for bottom sticky bar */
  }
}

/* Custom grid layouts custom Tailwind replacements */
.max-w-7xl { max-width: 80rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.grid { display: grid; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Grid columns layout */
@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:col-span-5 { grid-column: span 5 / span 5; }
  .md\:col-span-6 { grid-column: span 6 / span 6; }
  .md\:col-span-7 { grid-column: span 7 / span 7; }
  .md\:col-span-8 { grid-column: span 8 / span 8; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
}

/* Helper positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.left-0 { left: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Width/height utilities */
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-0\.5 { height: 0.125rem; }
.h-1 { height: 0.25rem; }
.w-6 { width: 1.5rem; }
.h-4 { height: 1rem; }
.w-3\/4 { width: 75%; }

/* Margins/paddings */
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.mt-0.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-16 { margin-bottom: 4rem; }

/* Flexbox utility replacements */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.items-start { align-items: start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Aspect ratio classes */
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.aspect-\[4\/5\] { aspect-ratio: 4 / 5; }
.aspect-\[16\/10\] { aspect-ratio: 16 / 10; }

/* Miscellaneous visual styles */
.rounded-sm { border-radius: 0.125rem; }
.rounded-full { border-radius: 9999px; }
.overflow-hidden { overflow: hidden; }
.object-cover { object-fit: cover; }
.brightness-\[0\.35\] { filter: brightness(0.35); }
.brightness-\[0\.8\] { filter: brightness(0.8); }
.contrast-\[1\.1\] { filter: contrast(1.15); }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-light { font-weight: 300; }
.italic { font-style: italic; }
.uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.15em; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-white { color: var(--white); }
.text-beige { color: var(--beige); }
.text-beige-light { color: var(--beige-light); }
.text-beige-dark { color: var(--beige-dark); }
.text-pink-500 { color: #db2777; }
.text-green-500 { color: #22c55e; }
.border-0 { border-width: 0; }
.border { border: 1px solid rgba(255, 255, 255, 0.1); }
.border-t { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.border-y { border-top: 1px solid rgba(255, 255, 255, 0.1); border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.border-beige\/20 { border-color: rgba(194, 155, 104, 0.2); }
.border-beige\/10 { border-color: rgba(194, 155, 104, 0.1); }
.border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7); }

/* SVG & Icon Sizing Utilities */
svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }

/* Global Button Reset to remove native browser pills/borders */
button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  outline: none;
}

/* Background Utility Classes */
.bg-black\/95 { background-color: rgba(0, 0, 0, 0.95); }
.bg-charcoal\/80 { background-color: rgba(21, 21, 21, 0.80); }
.bg-charcoal\/95 { background-color: rgba(21, 21, 21, 0.95); }
.bg-green-600 { background-color: #16a34a; }
.bg-green-500 { background-color: #22c55e; }
.bg-green-500\/10 { background-color: rgba(34, 197, 94, 0.1); }
.bg-gradient-to-t {
  background-image: linear-gradient(to top, var(--charcoal-dark), transparent 50%, rgba(21, 21, 21, 0.5) 100%);
}

/* Border Utility Classes */
.border-beige\/25 { border-color: rgba(194, 155, 104, 0.25); }
.border-beige\/30 { border-color: rgba(194, 155, 104, 0.30); }
.border-cream\/10 { border-color: rgba(250, 247, 242, 0.10); }
.border-l-2 { border-left-width: 2px; }
.border-2 { border-width: 2px; border-style: solid; }
.border-charcoal { border-color: var(--charcoal); }
.border-green-500 { border-color: #22c55e; }

/* Position Utilities */
.bottom-4 { bottom: 1rem; }
.top-6 { top: 1.5rem; }
.left-4 { left: 1rem; }
.left-1\/2 { left: 50%; }
.right-4 { right: 1rem; }
.right-6 { right: 1.5rem; }

/* Width/Height Utilities */
.w-1 { width: 0.25rem; }
.w-1\.5 { width: 0.375rem; }
.w-1\/2 { width: 50%; }
.h-0\.5 { height: 0.125rem; }
.h-1\.5 { height: 0.375rem; }
.max-w-xl { max-width: 36rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-full { max-width: 100%; }
.max-w-none { max-width: none; }
.max-h-\[80vh\] { max-height: 80vh; }
.max-h-\[85vh\] { max-height: 85vh; }

/* Margins & Paddings */
.ml-4 { margin-left: 1rem; }
.mr-2 { margin-right: 0.5rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.pl-6 { padding-left: 1.5rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-8 { padding-top: 2rem; }
.pt-24 { padding-top: 6rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }

/* Flex & Layout Utilities */
.flex-1 { flex: 1 1 0%; }
.flex-wrap { flex-wrap: wrap; }
.justify-end { justify-content: flex-end; }
.space-x-1 > * + * { margin-left: 0.25rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-8 > * + * { margin-left: 2rem; }
.gap-3 { gap: 0.75rem; }

.col-span-4 { grid-column: span 4 / span 4; }
.col-span-8 { grid-column: span 8 / span 8; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.self-end { align-self: flex-end; }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:flex-row { flex-direction: row; }
  .sm\:w-auto { width: auto; }
}

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:flex { display: flex; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:justify-start { justify-content: flex-start; }
  .md\:mt-0 { margin-top: 0; }
  .md\:mx-0 { margin-left: 0; margin-right: 0; }
  .md\:hidden { display: none !important; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Typography Sizing & Line-Heights */
.font-normal { font-weight: 400; }
.leading-relaxed { line-height: 1.625; }
.leading-tight { line-height: 1.25; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }

.text-\[10px\] { font-size: 10px; }
.text-\[9px\] { font-size: 9px; }
@media (min-width: 768px) {
  .md\:text-\[10px\] { font-size: 10px; }
}

/* Custom Text Color Classes */
.text-red-400 { color: #f87171; }
.text-beige-light\/60 { color: rgba(228, 209, 185, 0.6); }
.text-beige-light\/75 { color: rgba(228, 209, 185, 0.75); }
.text-beige-dark\/50 { color: rgba(145, 112, 69, 0.5); }
.text-cream { color: var(--cream); }
.text-charcoal { color: var(--charcoal); }

/* Transitions & Transforms */
.backdrop-blur { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cursor-ew-resize { cursor: ew-resize; }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }

.transition-colors { transition-property: color, background-color, border-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }
.transition-opacity { transition-property: opacity; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 200ms; }

.-translate-x-1\/2 { transform: translateX(-50%); }
.translate-x-full { transform: translateX(100%); }
.-translate-y-1\/2 { transform: translateY(-50%); }
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.10); }

/* Group-Hover Transitions */
.group-hover\:scale-110 { transition: transform 0.7s ease; }
.group:hover .group-hover\:scale-110 { transform: scale(1.10); }

.group-hover\:opacity-100 { transition: opacity 0.3s ease; }
.group:hover .group-hover\:opacity-100 { opacity: 1; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* Hover States Sizing and Color Adjustments */
.hover\:bg-beige:hover { background-color: var(--beige) !important; }
.hover\:bg-beige-light:hover { background-color: var(--beige-light) !important; }
.hover\:bg-green-500:hover { background-color: #22c55e !important; }
.hover\:bg-green-500\/10:hover { background-color: rgba(34, 197, 94, 0.1) !important; }
.hover\:text-beige:hover { color: var(--beige) !important; }
.hover\:text-beige-light:hover { color: var(--beige-light) !important; }
.hover\:text-charcoal:hover { color: var(--charcoal) !important; }
.hover\:text-green-500:hover { color: #22c55e !important; }

/* Transition & Timing Utility Classes */
.transition-all { transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1); }
.duration-300 { transition-duration: 300ms !important; }
.duration-500 { transition-duration: 500ms !important; }
.duration-700 { transition-duration: 700ms !important; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; }
.z-0 { z-index: 0; }





