/* ==========================================================================
   Ashok Tile Contractor — Stylesheet
   Mobile-first, single page site
   ========================================================================== */

:root {
  --color-primary: #e8703a;
  --color-primary-dark: #c85a26;
  --color-primary-light: #fdece1;
  --color-offwhite: #faf6f0;
  --color-surface: #ffffff;
  --color-dark: #2a2320;
  --color-gray: #6b6259;
  --color-line: rgba(232, 112, 58, 0.16);

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container-width: 1140px;
  --appbar-height: 64px;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(42, 35, 32, 0.06);
  --shadow-md: 0 12px 30px rgba(42, 35, 32, 0.1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-offwhite);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.section__inner {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section__eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.section__eyebrow--center {
  display: block;
  text-align: center;
}

.section__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.section__title--center {
  text-align: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

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

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

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

/* ==========================================================================
   App Bar
   ========================================================================== */

.appbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--appbar-height);
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
  z-index: 1000;
}

.appbar__inner {
  max-width: var(--container-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.appbar__brand {
  display: flex;
  align-items: center;
  height: 100%;
}

.appbar__logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  background: #fff;
  padding: 4px 8px;
}

.appbar__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.appbar__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-dark);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.appbar__toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.appbar__toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.appbar__toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  position: fixed;
  top: var(--appbar-height);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
  padding: 12px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  box-shadow: var(--shadow-sm);
}

.nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav__link {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 4px;
  color: var(--color-dark);
  border-bottom: 1px solid var(--color-line);
}

.nav__call {
  width: 100%;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: calc(var(--appbar-height) + 32px) 0 48px;
  background: var(--color-offwhite);
  overflow: hidden;
}

.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--color-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-line) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 55%, transparent 100%);
}

.hero__inner {
  position: relative;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero__eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-primary-dark);
  margin-bottom: 10px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: 10px;
}

.hero__tagline {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
}

.hero__subheading {
  font-size: 0.95rem;
  color: var(--color-gray);
  max-width: 52ch;
  margin-bottom: 24px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__media {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__media-shape {
  position: absolute;
  width: 78%;
  aspect-ratio: 1 / 1;
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
  top: 8%;
  z-index: 0;
}

.hero__image {
  position: relative;
  z-index: 1;
  width: 78%;
  height: auto;
  max-width: 360px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 6px solid var(--color-surface);
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  background: var(--color-surface);
  padding: 56px 0;
}

.about__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.about__media {
  flex-shrink: 0;
  display: none;
}

.about__image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

.about__content {
  text-align: left;
}

.about__text {
  font-size: 0.92rem;
  color: var(--color-gray);
  margin-bottom: 14px;
}

.about__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--color-line);
}

.about__stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
}

.about__stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--color-gray);
  margin-top: 2px;
}

/* ==========================================================================
   Services
   ========================================================================== */

.services {
  position: relative;
  padding: 56px 0;
  background: var(--color-offwhite);
  overflow: hidden;
}

.services__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--color-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-line) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 50%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 100% 70% at 50% 50%, #000 45%, transparent 100%);
}

.services .section__inner {
  position: relative;
  z-index: 1;
}

.services__intro {
  text-align: center;
  max-width: 60ch;
  margin: 0 auto 32px;
  font-size: 0.92rem;
  color: var(--color-gray);
}

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.service-card__icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-dark);
}

.service-card__text {
  font-size: 0.86rem;
  color: var(--color-gray);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--color-dark);
  color: #f2ece6;
  padding: 48px 0 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 32px;
}

.footer__logo {
  height: 42px;
  width: auto;
  border-radius: 6px;
  background: #fff;
  padding: 4px 8px;
}

.footer__tagline {
  font-size: 0.85rem;
  color: #c9beb5;
  margin-top: 10px;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: #fff;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: #d9d0c8;
  margin-bottom: 12px;
}

.footer__contact-item i {
  color: var(--color-primary);
  margin-top: 2px;
}

.footer__links {
  display: flex;
  flex-direction: column;
}

.footer__link {
  font-size: 0.88rem;
  color: #d9d0c8;
  margin-bottom: 10px;
}

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

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  font-size: 0.78rem;
  color: #b8ada4;
}

.footer__credit {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer__credit:hover {
  color: #fff;
}

.footer__credit-logo {
  height: 16px;
  width: auto;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery {
  padding: 56px 0;
  background: var(--color-surface);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.gallery__item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--color-primary-light);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery__item:hover img {
  transform: scale(1.06);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 12, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__image {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox__nav--prev {
  left: 12px;
}

.lightbox__nav--next {
  right: 12px;
}

@media (min-width: 768px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .lightbox__nav {
    width: 52px;
    height: 52px;
    font-size: 1.3rem;
  }

  .lightbox__nav--prev {
    left: 24px;
  }

  .lightbox__nav--next {
    right: 24px;
  }
}

/* ==========================================================================
   Floating Action Buttons
   ========================================================================== */

.fab-group {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 900;
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 8px 20px rgba(42, 35, 32, 0.25);
}

.fab--call {
  background: var(--color-primary);
  box-shadow: 0 8px 20px rgba(232, 112, 58, 0.45);
  animation: fab-pulse 2.4s infinite;
}

.fab--whatsapp {
  width: 52px;
  height: 52px;
  background: #25d366;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
}

@keyframes fab-pulse {
  0% { box-shadow: 0 8px 20px rgba(232, 112, 58, 0.45), 0 0 0 0 rgba(232, 112, 58, 0.45); }
  70% { box-shadow: 0 8px 20px rgba(232, 112, 58, 0.45), 0 0 0 14px rgba(232, 112, 58, 0); }
  100% { box-shadow: 0 8px 20px rgba(232, 112, 58, 0.45), 0 0 0 0 rgba(232, 112, 58, 0); }
}

/* ==========================================================================
   Tablet / Desktop breakpoints
   ========================================================================== */

@media (min-width: 768px) {
  .hero__title {
    font-size: 2.3rem;
  }

  .about__inner {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
  }

  .about__media {
    display: block;
  }

  .about__image {
    width: 190px;
    height: 190px;
  }

  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__inner {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer__contact,
  .footer__links {
    flex: 1;
  }
}

@media (min-width: 992px) {
  .appbar__toggle {
    display: none;
  }

  .nav {
    position: static;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 32px;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    width: auto;
  }

  .nav__list {
    flex-direction: row;
    gap: 28px;
  }

  .nav__link {
    padding: 0;
    border-bottom: none;
    position: relative;
  }

  .nav__link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.2s ease;
  }

  .nav__link:hover::after {
    width: 100%;
  }

  .nav__call {
    width: auto;
  }

  .hero__inner {
    flex-direction: row;
    align-items: center;
  }

  .hero__content {
    flex: 1;
  }

  .hero__media {
    flex: 1;
  }

  .hero__title {
    font-size: 2.9rem;
  }

  .hero__tagline {
    font-size: 1.15rem;
  }

  .hero__subheading {
    font-size: 1.02rem;
  }

  .hero__image {
    max-width: 440px;
  }

  .section__title {
    font-size: 2.1rem;
  }

  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .fab-group {
    display: none;
  }
}

@media (min-width: 1200px) {
  .services__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
