/* ==========================================================================
   ALPMASAKAN - Cephe Platform Kiralama Design System
   Highly optimized Vanilla CSS for premium UI, speed, and responsiveness
   ========================================================================== */

/* Variables & Custom Properties */
:root {
  --primary: #D04828; /* Alpmaksan corporate orange-red */
  --primary-hover: #b8371c;
  --primary-rgb: 208, 72, 40;
  --secondary: #1e293b; /* Slate-800 */
  --secondary-hover: #0f172a;
  --dark: #0f172a; /* Slate-900 */
  --light: #f8fafc; /* Slate-50 */
  --white: #ffffff; /* Explicit white color definition */
  --card-bg: #ffffff;
  --text-main: #334155; /* Slate-700 */
  --text-headings: #0f172a; /* Slate-900 */
  --text-muted: #64748b; /* Slate-500 */
  --border: #e2e8f0; /* Slate-200 */
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --container-width: 1200px;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-headings);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

p {
  margin-bottom: 1.25rem;
}

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

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

ul, ol {
  list-style: none;
}

/* Layout Elements */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: 5rem 0;
}

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

.section-dark h2 {
  color: var(--light);
}

.section-dark p {
  color: #94a3b8;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem auto;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--primary);
  border-radius: 2px;
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

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

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-headings);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(208, 72, 40, 0.3);
}

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

.btn-secondary:hover {
  background-color: var(--secondary);
  color: var(--white);
  transform: translateY(-2px);
}

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

.btn-white:hover {
  background-color: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-outline-white {
  background-color: transparent;
  border-color: var(--white);
  color: var(--white);
}

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--secondary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: var(--text-headings);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--secondary);
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.85) 100%);
  z-index: 2;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem 0 10.5rem 0; /* Spaced bottom padding to separate from stats card */
}

.hero-content {
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  background-color: var(--primary);
  color: var(--white);
  padding: 0.35rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(208, 72, 40, 0.3);
}

.hero-content h1 {
  color: var(--white) !important;
  font-size: 3.5rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7); /* Enhanced shadow for high contrast */
}

.hero-content p {
  color: #f1f5f9 !important; /* Brighter, high-contrast text color */
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5); /* Text shadow for high readability */
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-form-wrapper {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-form-wrapper h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.hero-form-wrapper p {
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: #cbd5e1;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-headings);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(208, 72, 40, 0.25);
  background-color: var(--white);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Grid Cards (Services, Categories, Blog) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

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

.card {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(208, 72, 40, 0.2);
}

.card-img-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: var(--secondary);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--primary);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
}

.card-body {
  padding: 1.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.card-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-link {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.card-link:hover {
  color: var(--primary-hover);
}

.card-link svg {
  transition: var(--transition);
}

.card-link:hover svg {
  transform: translateX(3px);
}

/* Feature/Stat Highlights */
.stats-bar {
  background-color: var(--white);
  padding: 3rem 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
  margin-top: -1.5rem; /* Reduced overlap for more visual breathing room */
  position: relative;
  z-index: 10;
  border-radius: var(--radius-lg);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  gap: 1.5rem;
}

.stat-item {
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.stat-num {
  font-size: 2.75rem;
  color: var(--primary);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: var(--text-headings);
}

/* Information / Highlight Blocks */
.info-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.info-content h2 {
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
}

.info-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-headings);
  margin-bottom: 1.5rem;
}

.info-list {
  margin-bottom: 2rem;
}

.info-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.info-list-item svg {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 0.2rem;
}

.info-img-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

.info-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Specs Accordion / FAQ */
.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(208, 72, 40, 0.3);
}

.faq-trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-headings);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-trigger svg {
  transition: var(--transition);
  color: var(--text-muted);
  flex-shrink: 0;
}

.faq-content {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
  color: var(--text-main);
  font-size: 0.95rem;
}

.faq-item.active {
  border-color: var(--primary);
}

.faq-item.active .faq-trigger {
  color: var(--primary);
}

.faq-item.active .faq-trigger svg {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-item.active .faq-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
  max-height: 1000px;
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0), padding 0.3s ease;
}

/* Blog Template Styles */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 3.5rem;
  margin-top: 3rem;
}

.article-content {
  background-color: var(--white);
  padding: 3rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.article-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.article-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.article-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.article-body h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem 0;
}

.article-body h3 {
  font-size: 1.35rem;
  margin: 1.75rem 0 0.75rem 0;
}

.article-body p {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.article-body ul, .article-body ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  list-style-type: disc;
}

.article-body blockquote {
  border-left: 4px solid var(--primary);
  background-color: var(--light);
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar-widget {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.sidebar-widget-title {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.5rem;
}

.recent-posts {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.recent-post-item {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.recent-post-img {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background-color: var(--secondary);
}

.recent-post-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recent-post-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Contact Page elements */
.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
}

.contact-layout .card {
  height: auto; /* Fix global height: 100% stretch causing sidebar layout shifts */
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1.25rem;
}

.contact-info-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(208, 72, 40, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-content h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.contact-info-content p, .contact-info-content a {
  color: var(--text-main);
  font-size: 0.95rem;
}

.map-container {
  width: 100%;
  height: 450px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-top: 3.5rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Footer styling */
.footer {
  background-color: var(--dark);
  color: #cbd5e1;
  padding: 5rem 0 2rem 0;
  border-top: 5px solid var(--primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin: 1.5rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 38px;
  height: 38px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-title {
  color: var(--white);
  font-size: 1.2rem;
  margin-bottom: 1.75rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-link {
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-link:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.footer-contact-item svg {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.85rem;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2.75rem;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .stat-item {
    border-right: none;
  }
  .stat-item:nth-child(odd) {
    border-right: 1px solid var(--border);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blog-layout {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr; /* Switch to 1 column on tablet viewports to avoid sidebar squishing */
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 2.5rem;
    gap: 1.75rem;
    transition: var(--transition);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05);
    z-index: 999;
  }
  
  .nav.open {
    left: 0;
  }
  
  .header-cta .btn {
    display: none; /* Hide desktop button, show mobile options or let menu handle it */
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 4rem 0 8.5rem 0; /* Spaced bottom padding to prevent stats card overlap on mobile */
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .info-block {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .info-img-wrapper {
    order: -1;
  }
  
  .contact-layout {
    grid-template-columns: 1fr;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.25rem;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stat-item {
    border-right: none !important;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .article-content {
    padding: 1.5rem;
  }
  .article-title {
    font-size: 1.85rem;
  }
}

/* Animations & Utilities */
.text-primary {
  color: var(--primary) !important;
}

.text-white {
  color: var(--white) !important;
}

.bg-white {
  background-color: var(--white) !important;
}

.bg-light {
  background-color: var(--light) !important;
}

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

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

.d-flex {
  display: flex !important;
}

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

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

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

.mt-4 {
  margin-top: 1.5rem !important;
}

.mb-4 {
  margin-bottom: 1.5rem !important;
}

/* Floating Contact Widget (WhatsApp & Call) */
.floating-contact {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: floatFadeInUp 0.5s ease-out;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.floating-btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  color: var(--white);
}

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

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

.btn-whatsapp {
  background-color: #25D366;
}

.btn-whatsapp:hover {
  background-color: #20ba56;
}

.floating-btn svg {
  display: block;
}

/* Tooltip on hover */
.floating-btn::before {
  content: attr(title);
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background-color: rgba(15, 23, 42, 0.95);
  color: var(--white);
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}

.floating-btn:hover::before {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

@keyframes floatFadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .floating-contact {
    bottom: 1.5rem;
    right: 1.5rem;
    gap: 0.5rem;
  }
  .floating-btn {
    width: 48px;
    height: 48px;
  }
  .floating-btn svg {
    width: 20px;
    height: 20px;
  }
  .floating-btn::before {
    display: none; /* No hover tooltips on mobile touchscreens */
  }
}

