/* 
=============================================================
  Janta Rui Machine - ₹50,000 Level Premium UI Stylesheet 
=============================================================
*/

:root {
  /* Ultra Premium Color Palette - Warm Earthy & Luxurious */
  --primary: #3d312e;
  /* Deep Warm Espresso/Brown */
  --primary-light: #50423e;
  --accent: #b58f62;
  /* Warmer, softer Gold/Camel */
  --accent-hover: #9e7950;
  --surface: #ffffff;
  --surface-alt: #f8f6f2;
  /* Creamy warm off-white */
  --bg-color: #fbfaf9;
  /* Very Soft, airy sand background */

  --text-main: #2b2320;
  /* Darker espresso text for contrast */
  --text-muted: #6e6560;
  --text-light: #a39c94;

  /* WhatsApp distinct but slightly more elegant green */
  --whatsapp: #1fca5f;
  --whatsapp-hover: #19a34c;

  /* Layout & Spacing */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Refined Shadows */
  --shadow-subtle: 0 4px 15px rgba(17, 20, 26, 0.05);
  --shadow-hover: 0 16px 40px rgba(17, 20, 26, 0.08);
  --shadow-float: 0 24px 50px rgba(17, 20, 26, 0.12);

  /* Typography */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Montserrat', sans-serif;

  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6,
.logo {
  font-family: var(--font-heading);
  color: var(--primary);
  font-weight: 600;
  line-height: 1.15;
}

h1 {
  font-size: 4.8rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.85rem;
}

h4 {
  font-size: 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.sub-heading {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 1rem;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 1.2rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 88%;
  max-width: 1280px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.text-muted {
  color: var(--text-muted);
}

.w-100 {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.1rem 2.2rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  outline: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--surface);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(17, 20, 26, 0.15);
}

/* Luxurious Accent Button (Gold) */
.btn-accent {
  background-color: var(--accent);
  color: var(--surface);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(196, 154, 81, 0.35);
}

.btn-whatsapp {
  background-color: var(--whatsapp);
  color: var(--surface);
}

.btn-whatsapp:hover {
  background-color: var(--whatsapp-hover);
  box-shadow: 0 10px 25px rgba(31, 202, 95, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid rgba(17, 20, 26, 0.15);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--surface);
  border-color: var(--primary);
}

/* Header */
.header {
  position: relative;
  width: 100%;
  z-index: 1000;
  background: var(--surface-alt);
  padding: 1.2rem 0;
  transition: var(--transition);
  border-bottom: 1px solid rgba(17, 20, 26, 0.05);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* When sticky (add js wrapper later if needed, left transparent for now) */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--surface);
  /* Matching figma pill */
  padding: 0.5rem 1rem 0.5rem 0.5rem;
  border-radius: 40px;
}

.logo-icon {
  background-color: var(--primary);
  color: var(--surface);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.1rem;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

.logo-text {
  font-family: var(--font-body);
  color: var(--primary);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 3.5rem;
}

.nav ul {
  display: flex;
  gap: 3rem;
}

.nav a {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: none;
  color: var(--text-muted);
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
  border-radius: 2px;
}

.nav a:hover {
  color: var(--primary);
}

.nav a:hover::after {
  width: 100%;
}

.lang-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid rgba(17, 20, 26, 0.15);
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 1.3rem;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-toggle-btn ion-icon {
  font-size: 1.2rem;
}

.lang-toggle-btn:hover {
  background: rgba(17, 20, 26, 0.05);
  border-color: var(--primary);
}

.mobile-menu-toggle {
  display: none;
  font-size: 2.2rem;
  cursor: pointer;
  color: var(--primary);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding-top: 40px;
  padding-bottom: 40px;
  color: var(--surface);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(196, 154, 81, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  position: relative;
  z-index: 1;
}

.hero-image {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-image img {
  max-width: 80%;
  max-height: 550px;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  object-fit: cover;
}

.hero h1 {
  color: var(--surface);
  margin-bottom: 1.5rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3.5rem;
  max-width: 650px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.hero-actions .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--surface);
}

.hero-actions .btn-outline:hover {
  background: var(--surface);
  color: var(--primary);
  border-color: var(--surface);
}

.trust-statement {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
}

.trust-statement ion-icon {
  font-size: 1.25rem;
  color: var(--accent);
}

/* Animations (Simple slide-ins) */
.fade-in {
  animation: fadeIn 1.2s ease both;
}

.slide-up {
  animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.slide-up-delayed {
  animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
}

.slide-up-delayed-more {
  animation: slideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections Global */
.mt-section {
  margin-top: 7rem;
}

section {
  padding: 6rem 0;
}

.bg-soft {
  background-color: var(--surface-alt);
}

.section-header {
  margin-bottom: 5.5rem;
}

/* Products grid - Luxury styling */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 3.5rem;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
  border: 1px solid rgba(17, 20, 26, 0.04);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.product-img {
  width: 100%;
  height: 320px;
  position: relative;
  overflow: hidden;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-img img {
  transform: scale(1.06);
}

.product-info {
  padding: 3rem 2.5rem;
  text-align: center;
}

.product-info h3 {
  margin-bottom: 0.8rem;
  font-size: 1.8rem;
}

.product-info p {
  min-height: 55px;
  font-size: 1rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

/* Custom layout for Enquiry button in product */
.enquire-product-btn {
  justify-content: space-between;
  padding: 1rem 1.8rem;
  font-size: 0.85rem;
  border-radius: 30px;
}

.enquire-product-btn ion-icon {
  font-size: 1.3rem;
}

/* Gallery Filters */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.6rem;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: 30px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  color: var(--surface);
  box-shadow: 0 4px 10px rgba(17, 20, 26, 0.1);
}

/* Gallery Masonry */
.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-auto-rows: 280px;
  gap: 1.8rem;
  transition: var(--transition);
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  position: relative;
  transition: all 0.4s ease-out;
}

.gallery-item.hide {
  display: none;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item.tall {
  grid-row: span 2;
}

/* Split Layout (About / Enquiry) */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-content {
  margin-bottom: 3.5rem;
  position: relative;
}

.about-content p {
  font-size: 1.15rem;
  line-height: 1.8;
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  border-top: 1px solid rgba(17, 20, 26, 0.08);
  padding-top: 2.5rem;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.detail-icon {
  font-size: 1.6rem;
  color: var(--accent);
  margin-top: 0.1rem;
}

/* Repair Section Specifics */
.repair-image {
  position: relative;
  border-radius: var(--radius-lg);
}

.repair-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  object-fit: cover;
  max-height: 550px;
  border: 1px solid rgba(17, 20, 26, 0.04);
}

.experience-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: var(--primary);
  color: var(--surface);
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(61, 49, 46, 0.3);
  border: 8px solid var(--surface);
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

.experience-badge .years {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.experience-badge .text {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.2rem;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--primary);
}

.feature-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(181, 143, 98, 0.1);
  border-radius: 50%;
  color: var(--accent);
}

.feature-icon ion-icon {
  font-size: 1.5rem;
}

/* Form Styles */
.form-card {
  background: var(--surface);
  padding: 4rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(17, 20, 26, 0.04);
}

.input-group {
  margin-bottom: 1.8rem;
}

.input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.8rem;
  color: var(--primary);
}

.input-group input,
.input-group textarea,
.input-group select {
  width: 100%;
  padding: 1.1rem 1.4rem;
  border: 1px solid rgba(17, 20, 26, 0.12);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background-color: var(--surface-alt);
  color: var(--text-main);
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.input-group textarea {
  resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
  border-color: var(--accent);
  background-color: var(--surface);
  box-shadow: 0 0 0 4px rgba(196, 154, 81, 0.15);
}

.select-wrapper {
  position: relative;
}

.select-icon {
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Footer Section */
.footer {
  background-color: var(--primary);
  color: var(--surface);
  padding: 6rem 0 3rem 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 5rem;
  margin-bottom: 4rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand h2 {
  color: var(--surface);
  margin-bottom: 1.2rem;
}

.footer-desc {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
}

.footer-links-group h4 {
  color: var(--surface);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 1.8rem;
}

.footer-links-group ul li {
  margin-bottom: 1.2rem;
}

.footer-links-group a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
}

.footer-links-group a:hover {
  color: var(--accent);
}

.wa-text-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--whatsapp) !important;
}

.footer-bottom {
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.5px;
}

/* Floating WhatsApp Button */
.floating-wa {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 65px;
  height: 65px;
  background-color: var(--whatsapp);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  box-shadow: 0 8px 25px rgba(31, 202, 95, 0.35);
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-wa:hover {
  transform: translateY(-5px) scale(1.08);
  background-color: var(--whatsapp-hover);
  box-shadow: 0 12px 30px rgba(31, 202, 95, 0.45);
}

/* Responsive Re-configurations */
@media (max-width: 1024px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
  }

  .hero-image {
    justify-content: center;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 5rem;
  }

  .gallery-masonry {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .form-card {
    padding: 3rem;
  }
}

@media (max-width: 768px) {
  .logo-text {
    font-size: 1.1rem;
    letter-spacing: 0;
  }

  .logo-group {
    padding: 0.4rem 0.8rem 0.4rem 0.4rem;
  }

  .nav-wrapper {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    background: var(--surface);
    padding: 2.5rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    clip-path: circle(0px at 100% -10%);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  }

  .nav-wrapper.active {
    clip-path: circle(200% at 100% -10%);
  }

  .nav ul {
    flex-direction: column;
    gap: 1.8rem;
    margin-bottom: 2.5rem;
    width: 100%;
  }

  .nav a {
    font-size: 1.2rem;
    color: var(--primary);
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .lang-toggle-btn {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    margin-top: 1rem;
  }

  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
  }

  .logo {
    color: var(--primary);
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.6rem;
  }

  h2 {
    font-size: 2.4rem;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .gallery-item.large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .form-card {
    padding: 2rem;
  }
}