/*
  MyDreamConsultancy – Landing Page Styles
  Design goal: clean, eye‑catching, responsive, and accessible.
*/

:root {
  --bg: #f8fafc; /* slate-50 */
  --bg-alt: #f3f4f6; /* gray-100 */
  --surface: #ffffff;
  --text: #0f172a; /* slate-900 */
  --muted: #6b7280; /* gray-500 */
  --primary: #3b82f6; /* blue-500 */
  --primary-600: #2563eb; /* blue-600 */
  --accent: #60a5fa; /* blue-400 */
  --ring: rgba(37, 99, 235, 0.35);
  --star: #fbbf24; /* amber-400 */
  --shadow: 0 12px 24px rgba(2, 6, 23, 0.08), 0 4px 10px rgba(2, 6, 23, 0.06);
  --radius: 14px;
}

/* Reset / base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden; /* prevent accidental horizontal scroll */
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: 1rem;
}
.mt-lg {
  margin-top: 2.25rem;
}
.mt-md {
  margin-top: 1.25rem;
}
.muted {
  color: var(--muted);
}

/* Header */
.header {
  background: white;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}
.header.scrolled {
  box-shadow: var(--shadow);
  backdrop-filter: saturate(140%) blur(6px);
}

.header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: #0f172a;
  text-decoration: none;
}
.logo span {
  color: #3b82f6;
}
.nav-links {
  display: flex;
  gap: 1.5rem;
}
.nav-links a {
  color: #0f172a;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover {
  color: #3b82f6;
}

/* Mobile nav toggle (hamburger) */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav-toggle .bar {
  width: 24px;
  height: 2px;
  background-color: #0f172a;
  transition: all 0.3s;
}

/* Mobile layout */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem 0;
    border-top: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
  }

  /* When menu is open */
  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* Hamburger animation when toggled */
  .nav-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
  }
  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
  }
}
.nav-links a:hover,
.nav-links a:focus {
  color: var(--primary-600);
  border-bottom-color: var(--primary-600);
  outline: none;
}

.call-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0b0b0c;
  color: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.call-pill svg {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(2, 6, 23, 0.1);
  border-radius: 10px;
  background: var(--surface);
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.nav-toggle .bar {
  width: 20px;
  height: 2px;
  background: #111827;
  border-radius: 2px;
  display: block;
}
/* Prevent background scroll when mobile menu is open */
body.menu-open {
  overflow: hidden;
}

/* Hero */
.hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-media .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  display: block;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.55),
    rgba(2, 6, 23, 0.35) 40%,
    rgba(2, 6, 23, 0.65)
  );
}
.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  padding-block: 4rem;
}
.hero-title {
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.2px;
  margin: 0 0 1rem;
}
.hero-title .accent {
  color: #93c5fd;
}
.hero-subtitle {
  max-width: 760px;
  margin: 0 auto 2rem;
  font-size: 1.075rem;
  color: #e5e7eb;
}

/* Use small viewport units on supported browsers for better mobile height */
@supports (height: 100svh) {
  .hero {
    min-height: 100svh;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn svg {
  flex-shrink: 0;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--primary-600), var(--primary));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25),
    0 2px 6px rgba(37, 99, 235, 0.18);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(37, 99, 235, 0.28),
    0 3px 10px rgba(37, 99, 235, 0.2);
}

.scroll-indicator {
  display: inline-flex;
  width: 28px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  margin: 2rem auto 0;
  position: relative;
  align-items: center;
  justify-content: center;
}
.scroll-indicator .dot {
  width: 6px;
  height: 10px;
  border-radius: 6px;
  background: #fff;
  animation: drop 1.8s infinite;
}
@keyframes drop {
  0% {
    transform: translateY(-9px);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateY(8px);
    opacity: 0;
  }
}

/* Sections */
.section {
  padding-block: 4.5rem;
  background: var(--bg);
}
.section.alt {
  background: var(--bg-alt);
}
.section-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  line-height: 1.2;
}
.section-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}
.head-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--primary-600);
  background: rgba(37, 99, 235, 0.08);
}

.section-center {
  text-align: center;
  margin-bottom: 1.5rem;
}
.section-center h2 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
}
.section-center p {
  color: var(--muted);
  margin: 0 auto;
  max-width: 720px;
}

/* Grids */
.grid {
  display: grid;
  gap: 1.25rem;
}
.grid.two {
  grid-template-columns: 1.2fr 1fr;
  align-items: start;
}
.grid.three {
  grid-template-columns: repeat(3, 1fr);
}
.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
/* GRID SYSTEM */
.grid {
  display: grid;
  gap: 2rem;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  align-items: start;
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
}

/* CARD GROUP STYLING */
.card-group {
  background: transparent;
  border-radius: 1rem;
  padding: 1.5rem;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); */
}

.card-group h3.group-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* IMAGE GRID (4 images in 2x2 layout) */
.grid.four.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* PHOTO CARDS */
.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
}

.photo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.photo-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 0.5rem 1rem;
  font-weight: 500;
  border-radius: 0 0 0.75rem 0.75rem;
}

/* MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
  .grid.two {
    grid-template-columns: 1fr;
  }
  .grid.four.cards {
    grid-template-columns: 1fr 1fr;
  }
}

/* Card groups */
.card-group .group-title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.photo-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.photo-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.photo-card:hover img {
  transform: scale(1.04);
}
.photo-meta {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.6);
  color: #fff;
  font-weight: 600;
  backdrop-filter: blur(2px);
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.list-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.list-item .rating {
  color: var(--star);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: #e5e7eb;
  color: #111827;
}
.badge.luxury {
  background: rgba(109, 40, 217, 0.12);
  color: #6d28d9;
}
.badge.budget {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.tip-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1rem;
}
.tip-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 900px;
  margin-inline: auto;
}
.faq-item {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.1rem 0.5rem;
}
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 0.75rem;
  outline: none;
}
.faq-item[open] > summary {
  color: var(--primary-600);
}
.faq-item > summary::-webkit-details-marker {
  display: none;
}
.faq-item > summary::after {
  content: "\25BC";
  float: right;
  transition: transform 0.25s ease;
  color: #9ca3af;
}
.faq-item[open] > summary::after {
  transform: rotate(-180deg);
}
.faq-item p {
  margin: 0;
  padding: 0 0 1rem 0.75rem;
  color: var(--muted);
}

.cta-center {
  text-align: center;
  margin-top: 2rem;
}
.cta-center p {
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* Footer */
.footer {
  background: #0b1220;
  color: #e5e7eb;
  padding-top: 3rem;
}
.footer-grid {
  align-items: start;
}
.footer a {
  color: #d1d5db;
}
.footer a:hover {
  color: #fff;
}
.footer-brand {
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}
.footer-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.socials {
  display: flex;
  gap: 0.75rem;
}
.socials a {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.contact-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.contact-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 0.5rem;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0 2rem;
  margin-top: 2rem;
}
.small-links {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .grid.two {
    grid-template-columns: 1fr;
  }
  .grid.four {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  .nav {
    grid-template-columns: auto auto auto;
  }
  .nav-links {
    position: fixed;
    inset: 72px 0 0 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: saturate(160%) blur(10px);
    flex-direction: column;
    padding: 1rem;
    transform: translateY(-110%);
    transition: transform 0.25s ease;
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.18);
  }
  .nav-links a {
    font-size: 1.05rem;
  }
  .nav-toggle {
    display: inline-flex;
  }
  body.menu-open .nav-links {
    transform: translateY(0);
  }
}

/* iOS safe-area handling for the mobile menu */
@supports (padding-top: env(safe-area-inset-top)) {
  @media (max-width: 860px) {
    .nav-links {
      inset: calc(72px + env(safe-area-inset-top)) 0 0 0;
    }
  }
}

@media (max-width: 720px) {
  .grid.three {
    grid-template-columns: 1fr;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    align-items: start;
  }
  /* Stack list items for readability on small screens */
  .list-item {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }
  .list-item .muted,
  .list-item .badge,
  .list-item .rating {
    justify-self: start;
  }
  .grid.four {
    grid-template-columns: 1fr;
  }
}

/* Accessibility helpers */
.btn:focus,
.nav-links a:focus,
.call-pill:focus,
.nav-toggle:focus {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
.head-icon i {
  font-size: 28px;
  color: #007bff;
}
.head-icon1 i {
  font-size: 28px;
  color: black;
}
