/* ==========================================================================
   City Home Serviced Apartments - Kozhikode, Kerala
   Clean, Modern, Responsive Static Landing Page Stylesheet
   ========================================================================== */

:root {
  --primary: #E5252A;
  --primary-hover: #C61A1E;
  --primary-glow: rgba(229, 37, 42, 0.35);
  --dark: #0f172a;
  --dark-hero: #090f1d;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --whatsapp-color: #25D366;
  --whatsapp-hover: #20ba59;
  --font-main: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 16px 36px rgba(0,0,0,0.18);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--white);
  color: var(--slate-800);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.home-only {
  height: 100vh;
  overflow: hidden;
}

@media (max-width: 768px) {
  body.home-only {
    height: auto;
    overflow-y: auto;
  }
}

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

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

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
  font-family: inherit;
  transition: var(--transition);
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: background-color 0.35s ease, padding 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
}

.site-header.scrolled {
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo img {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  transition: var(--transition);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--white);
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  transition: var(--transition);
}

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

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

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

.nav-cta {
  display: flex;
  align-items: center;
}

.btn-call-now {
  background-color: var(--primary);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: var(--transition);
}

.btn-call-now:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 37, 42, 0.5);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background-color: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================================================
   Hero Section (Matching Exact Screenshot)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('../images/hero-bg.jpg') center right/cover no-repeat;
  color: var(--white);
  overflow: hidden;
  padding-top: 80px;
}

/* Dark gradient overlay on the left to make text pop while keeping building visible */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 20, 36, 0.88) 0%,
    rgba(10, 20, 36, 0.78) 35%,
    rgba(10, 20, 36, 0.45) 60%,
    rgba(10, 20, 36, 0.15) 100%
  );
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 40px 0;
}

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

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
  color: var(--white);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}

.hero-title span {
  display: block;
}

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 34px;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 32px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(229, 37, 42, 0.5);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--slate-900);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 36px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
  background-color: #f1f5f9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Center Video Play Button */
.hero-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.play-button {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
}

.play-button svg {
  width: 28px;
  height: 28px;
  fill: var(--white);
  margin-left: 4px;
  transition: var(--transition);
}

.play-button:hover {
  transform: scale(1.12);
  background: rgba(229, 37, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.8);
}

.play-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  border: 2px solid rgba(255, 255, 255, 0.4);
  animation: pulse-ring 2.2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  z-index: 1;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ==========================================================================
   Floating WhatsApp Button (Bottom Right)
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
}

.whatsapp-btn {
  width: 58px;
  height: 58px;
  background-color: var(--whatsapp-color);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s ease;
}

.whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: var(--white);
}

.whatsapp-btn:hover {
  background-color: var(--whatsapp-hover);
  transform: scale(1.1);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.6);
}

.whatsapp-tooltip {
  background: var(--slate-900);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: var(--transition);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   Features / Overview Section
   ========================================================================== */
.section {
  padding: 90px 0;
}

.section-bg-light {
  background-color: var(--slate-50);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-tag {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 10px;
  display: inline-block;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.25;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--slate-600);
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--white);
  padding: 36px 30px;
  border-radius: var(--radius-md);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(229, 37, 42, 0.3);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(229, 37, 42, 0.08);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary);
  fill: none;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--slate-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 280px;
  cursor: pointer;
}

.gallery-item.span-2 {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0) 60%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-info h4 {
  color: var(--white);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.gallery-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-card {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-md);
}

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

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(229, 37, 42, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-item-icon svg {
  width: 22px;
  height: 22px;
}

.contact-item-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.contact-item-text p,
.contact-item-text a {
  color: var(--slate-600);
  font-size: 0.92rem;
  line-height: 1.5;
}

.contact-item-text a:hover {
  color: var(--primary);
}

/* Inquiry Form */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-800);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(229, 37, 42, 0.15);
}

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

.btn-submit {
  width: 100%;
  background-color: var(--primary);
  color: var(--white);
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-submit:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 37, 42, 0.5);
}

.map-container {
  margin-top: 32px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid #e2e8f0;
  height: 240px;
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--dark-hero);
  color: #94a3b8;
  padding: 60px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-links {
  display: flex;
  gap: 28px;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 16px;
}

/* ==========================================================================
   Modals (Video & Lightbox)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 15, 26, 0.88);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 24px;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: -46px;
  right: 0;
  color: var(--white);
  font-size: 2rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Lightbox Image Preview */
.lightbox-img-wrapper {
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}

.lightbox-img-wrapper img {
  max-height: 80vh;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* ==========================================================================
   Responsive Queries
   ========================================================================== */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: left;
    padding-top: 60px;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .hero-media {
    justify-content: flex-start;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-item.span-2 {
    grid-column: span 1;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 14px 0;
  }
  .mobile-toggle {
    display: none;
  }
  .nav-menu {
    display: flex;
    flex-direction: row;
    gap: 16px;
    padding: 0;
    background: transparent;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-desc {
    font-size: 0.95rem;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions a {
    width: 100%;
    text-align: center;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
  }
  .whatsapp-btn {
    width: 52px;
    height: 52px;
  }
  .whatsapp-tooltip {
    display: none;
  }
}

