/* =========================
   CSS RESET & BASE STYLES
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}
body.services{
    background-image: url("images/ambitious-studio-rick-barrett-C6A1uZ5k_Ug-unsplash.jpg");
    background-size: cover;
    background-position: center;
}
body.pricing{
    background-image: url("images/danielle-cerullo-CQfNt66ttZM-unsplash.jpg");
    background-size: cover;
    background-position: center;
}
body.contact{
    background-image: url("images/kobe-kian-clata-trJUx6di9Xg-unsplash.jpg");
    background-size: cover;
    background-position: center;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue",
    sans-serif;
  line-height: 1.6;
  color: #f5f5f5;
  background-color: #050505;
}

/* =========================
   GLOBAL ELEMENTS
========================= */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

section {
  padding: 4rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================
   HEADER & NAVIGATION
========================= */
header {
  background: #000;
  border-bottom: 1px solid #222;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
   position: relative; /* creates stacking context */
  z-index: 10;       /* always above hero bg */
}

nav h1 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
}

nav ul {
  display: flex;
  gap: 1.5rem;
}

nav a {
  font-size: 0.95rem;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ff4d4d;
}



.nav-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: block;
}

/* Mobile default */
.nav-links {
  display: none; /* hidden on mobile */
  flex-direction: column;
  gap: 1rem;
  background: #000;
  position: absolute;
  top: 100%;
  right: 1.25rem;
  padding: 1rem;
  border-radius: 6px;
  border: 1px solid #222;
  z-index: 1000;
}

/* Show menu when active */
.nav-links.active {
  display: flex;
}





/* =========================
   HERO SECTION
========================= */
.hero {
  text-align: center;
  padding: 6rem 1.25rem;
  position: relative;
  text-align: center;
  padding: 6rem 1.25rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("images/alex-tyson-K7yzYCEFQ-s-unsplash.jpg") center / cover no-repeat;
  filter: blur(4px);
  transform: scale(1.1); /* prevents edge clipping */
  z-index: -1;
}

.hero h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
  color: #000000;
}

.hero p {
  max-width: 600px;
  margin: 2rem;
   font-size: clamp(2rem, 5vw, 3rem);
   color: #000000;
   font-weight: bold;
}
.cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.cta img {
  width: 100%;
  max-width: 600px;
  height: auto;
}

/* =========================
   CTA BUTTONS
========================= */
.cta-button,
button {
  display: inline-block;
  background: #ff4d4d;
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.cta-button:hover,
button:hover {
  background: #e63e3e;
  transform: translateY(-2px);
}

/* =========================
   ABOUT / CONTENT SECTIONS
========================= */
.about,
.services-list,
.pricing-table {
  display: grid;
  gap: 2rem;
}

.about img {
  border-radius: 8px;
}
.about {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem 1.25rem;
}


.beside_img {
  width: 100%;
  max-width: none;
  height: auto;
  border-radius: 8px;
}


.beside_text {
  max-width: 500px;
  padding-top: 0px;
}

.beside_text p {
  color: #fff; /* use #fff if background is dark */
  margin-bottom: 1rem;
}

.text-box p {
  color: #444;
  line-height: 1.6;
}

/* =========================
   SERVICES & PRICING CARDS
========================= */
.services-list article,
.pricing-table article {
  background: #161616;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #222;
  transition: transform 0.3s ease;
}

.services-list article:hover,
.pricing-table article:hover {
  transform: translateY(-5px);
}

.services-list h3,
.pricing-table h3 {
  margin-bottom: 0.75rem;
}

.pricing-table p {
  margin-bottom: 1rem;
}

/* =========================
   CONTACT FORM
========================= */
.contact-form form {
  display: grid;
  gap: 1.25rem;
  max-width: 500px;
  margin: 0 auto;
  
}
input:focus,
textarea:focus {
  background-color: #070707;
  border-color: #3b82f6;
  outline: none;
}
label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}

input,
textarea {
  margin-top: 0.4rem;
  padding: 0.6rem;
  border-radius: 4px;
  border: 1px solid #333;
  background: #0f0f0f;
  color: #fff;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #ff4d4d;
}

/* =========================
   MAP SECTION
========================= */
.map iframe {
  border-radius: 8px;
  margin-top: 1rem;
}

/* =========================
   FOOTER
========================= */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #000;
  border-top: 1px solid #222;
  font-size: 0.85rem;
  color: #aaa;
}

/* =========================
   RESPONSIVE LAYOUTS
========================= */
@media (min-width: 768px) {
  .about {
    flex-direction: row;
    align-items: center;
  }

  .beside_img {
    width: 50%;
  }

  .beside_text {
    width: 50%;
  }

  .services-list,
  .pricing-table {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    text-align: left;
  }
}


@media (min-width: 768px) {
  .cta {
    justify-content: flex-start;
  }
  
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
  
  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    background: none;
    padding: 0;
    border: none;
  }
}