/* assets/css/style.css - GRANITA Yapı Kimyasalları & GRATHERM */

:root {
  --color-sand-bg: #F9F6F0;
  --color-sand-muted: #EFECE6;
  --color-sand-border: #E5DEC9;
  --color-navy: #1A365D;
  --color-navy-dark: #0F172A;
  --color-navy-light: #23477D;
  --color-bordeaux: #8C1D24;
  --color-bordeaux-dark: #6B1319;
  --color-bordeaux-light: #B91C1C;
  --color-gold: #B5852B;
  --color-gold-dark: #8C6218;
  --color-gold-light: #D99B26;
  --color-turquoise: #0E7490;
  --color-turquoise-dark: #155E75;
  --color-text-main: #1E293B;
  --color-text-muted: #475569;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--color-sand-bg);
  color: var(--color-text-main);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Montserrat', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

/* Anatolian Geometric Watermark Patterns */
.bg-pattern-anatolian {
  background-color: var(--color-sand-bg);
  background-image: radial-gradient(rgba(14, 116, 144, 0.08) 1.5px, transparent 1.5px),
                    radial-gradient(rgba(140, 29, 36, 0.05) 1.5px, transparent 1.5px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

.bg-pattern-seljuk {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a365d' fill-opacity='0.035'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3Cpolygon points='30 18 36 24 30 30 24 24'/%3E%3Cpolygon points='0 18 6 24 0 30'/%3E%3Cpolygon points='60 18 60 30 54 24'/%3E%3Cpolygon points='30 48 36 54 30 60 24 54'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.bg-pattern-dark {
  background-color: #1A365D;
  background-image: radial-gradient(rgba(217, 119, 6, 0.12) 1.5px, transparent 1.5px),
                    radial-gradient(rgba(14, 116, 144, 0.15) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
}

/* Gradient accents */
.granita-gradient-red {
  background: linear-gradient(135deg, #8C1D24 0%, #B91C1C 100%);
}

.granita-gradient-gold {
  background: linear-gradient(135deg, #B5852B 0%, #D97706 100%);
}

.granita-gradient-navy {
  background: linear-gradient(135deg, #1A365D 0%, #0F172A 100%);
}

/* Glassmorphism */
.glass-nav {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 222, 201, 0.8);
}

.glass-card {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(229, 222, 201, 0.8);
}

/* Product Card Effects */
.product-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #E5DEC9;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(26, 54, 93, 0.12), 0 8px 12px -6px rgba(140, 29, 36, 0.08);
  border-color: #B5852B;
}

.product-card:hover .product-bag-img {
  transform: scale(1.04);
}

.product-bag-img {
  transition: transform 0.4s ease;
}

/* Tab Navigation */
.category-tab {
  transition: all 0.25s ease;
}

.category-tab.active {
  background-color: var(--color-navy);
  color: #FFFFFF;
  border-color: var(--color-navy);
  box-shadow: 0 4px 14px rgba(26, 54, 93, 0.25);
}

/* Layer Steps in Gratherm Section */
.layer-card {
  position: relative;
  transition: all 0.3s ease;
}

.layer-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold);
}

.layer-step-badge {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: 1px;
}

/* Comparison Table */
.custom-table th {
  background-color: #1A365D;
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.custom-table tr:nth-child(even) {
  background-color: #FAF8F5;
}

.custom-table tr:hover {
  background-color: #F3EFE6;
}

/* Decorative Tile Badge */
.tile-corner-border {
  position: relative;
}

.tile-corner-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-top: 3px solid var(--color-turquoise);
  border-left: 3px solid var(--color-turquoise);
}

.tile-corner-border::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 14px;
  height: 14px;
  border-bottom: 3px solid var(--color-turquoise);
  border-right: 3px solid var(--color-turquoise);
}

/* Timeline Custom Styles */
.timeline-item {
  position: relative;
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: 32px;
  left: 50%;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, #CBD5E1, #CBD5E1 6px, transparent 6px, transparent 12px);
  z-index: 1;
}

.timeline-item:last-child::after {
  display: none;
}

@media (max-width: 768px) {
  .timeline-item::after {
    left: 28px;
    top: 50px;
    width: 2px;
    height: 100%;
    background: repeating-linear-gradient(180deg, #CBD5E1, #CBD5E1 6px, transparent 6px, transparent 12px);
  }
}

/* Floating WhatsApp Button */
.whatsapp-floating {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
}

.whatsapp-floating:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.55);
}

/* Toast Notification */
#toast-notification {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Modal animation */
.modal-backdrop {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Form focus glow */
.custom-input:focus {
  outline: none;
  border-color: #1A365D;
  box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.15);
}

/* Print styles for TDS / catalog */
@media print {
  .no-print {
    display: none !important;
  }
}

/* Utility: Hide scrollbar for clean horizontal tabs */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Touch scroll smooth */
.touch-pan-x {
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}

/* ========================================================== */
/* ADVANCED MOBILE OPTIMIZATIONS (iOS & Android)               */
/* ========================================================== */

/* Prevent iOS Auto-Zoom on form input focus */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="password"],
  input[type="number"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* iOS Safe Area Padding for fixed elements */
.mobile-bottom-bar {
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px)) !important;
}

@media (max-width: 767px) {
  body {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Eliminate awkward tap highlight grey box on mobile browsers */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Smooth momentum scrolling for all scroll containers */
.overflow-y-auto, .overflow-x-auto {
  -webkit-overflow-scrolling: touch;
}

/* Active touch feedback for mobile buttons */
button:active, a:active {
  transition: transform 0.08s ease;
}

/* Mobile Modal Bottom Sheet Styling */
@media (max-width: 640px) {
  .mobile-modal-sheet {
    align-items: flex-end !important;
    padding: 0 !important;
  }
  .mobile-modal-sheet > div {
    max-height: 90vh !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 1.5rem !important;
    border-top-right-radius: 1.5rem !important;
    width: 100% !important;
    animation: slideUpMobile 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
}

@keyframes slideUpMobile {
  from {
    transform: translateY(100%);
    opacity: 0.5;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}


