/* ==========================================
   BLOOM HAIR STUDIO
   INDEX.CSS
========================================== */

/* ---------- COLORS ---------- */

:root {
  --primary: #b56d95;
  --primary-dark: #8d4b72;
  --accent: #f2d7e4;

  --white: #ffffff;
  --cream: #fffafc;
  --light-pink: #fff2f8;

  --text: #56464f;
  --text-light: #7a6a73;

  --shadow: 0 15px 40px rgba(181, 109, 149, 0.15);

  --radius: 25px;

  --transition: 0.35s ease;
}

/* ---------- RESET ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--cream);

  color: var(--text);
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
}

a {
  text-decoration: none;
}

/* ==============================
     NAVIGATION
  ================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 15px 50px; /* Slight tweak to match top/bottom heights beautifully */
  background: rgba(
    17,
    10,
    10,
    0.45
  ); /* Increased background opacity slightly for premium contrast over images */
  backdrop-filter: blur(15px);
  z-index: 1000;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
}

nav ul {
  display: flex;

  gap: 40px;

  list-style: none;
}

nav a {
  color: white;

  font-size: 15px;

  font-weight: 500;

  letter-spacing: 0.5px;

  position: relative;

  transition: var(--transition);
}

nav a::after {
  content: "";

  position: absolute;

  left: 0;

  bottom: -8px;

  width: 0%;

  height: 2px;

  background: white;

  transition: var(--transition);
}
.navbar__brand {
  font-size: 1.5rem;

  font-family: "Cormorant Garamond", serif;

  color: white;
}

nav a:hover::after {
  width: 100%;
}

/* ==============================
     HERO SECTION RESPONSIVE FIXES
  ================================ */

.hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 100vh;
  background-image: url("../assets/images/flower.gif");
  background-size: cover;
  background-position: center;

  padding: 0 20px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero article {
  position: relative;
  z-index: 2;
  width: 100%; /* Force the text box to adapt to the container width */
  max-width: 800px;
}

.hero h1 {
  color: white;

  /* 
       It will grow perfectly on desktop, but shrink seamlessly on tiny phones */
  font-size: clamp(2.2rem, 7vw, 4rem);

  line-height: 1.2;
  margin-bottom: 20px;
  word-wrap: break-word; /* Prevents text clipping */
}

.hero p {
  color: rgb(255, 255, 255);
  font-size: clamp(1rem, 3vw, 1.2rem); /* Dynamic subtitle resizing */
  margin-bottom: 35px;
  letter-spacing: 2px;
}

.hero a {
  display: inline-block;

  padding: 16px 38px;

  border-radius: 50px;

  background: rgb(255, 255, 255);

  color: var(--primary-dark);

  font-weight: 600;

  transition: var(--transition);
}

.hero a:hover {
  background: var(--primary);

  color: rgb(247, 247, 247);

  transform: translateY(-4px);
}
/*second page */
.about-header {
  background: #ffe6f1;
  padding: 80px 15%;
  text-align: center;

  color: #865d78;
  background: #fffafc;
}

.about-header h1 {
  padding: 20px 0;
  font-size: 3rem;
  color: #763261;
}

.about-header p {
  max-width: 900px;
  margin: auto;
  line-height: 1.7;
  font-size: 1.2rem;
}
/*3rd page */
.card {
  flex: 1 1 340px;
  max-width: 420px;
  background: white;
  border-radius: 20px;
  padding: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);

  display: flex;
  flex-direction: column;
  justify-content: space-between; /* This forces the buttons to line up perfectly at the bottom of all cards */
}
.card a {
  display: block;
  width: 85%;
  margin: auto auto 10px; /* Automatically centers the button horizontally and pushes it down */
  padding: 14px 0; /* Only adds top and bottom padding, zero side padding! */
  text-align: center; /* Keeps the text perfectly in the middle of the button */

  background: linear-gradient(135deg, #e37ab9, #edc5da);
  color: rgb(123, 30, 100);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  border-radius: 40px;
  transition: all 0.3s ease;
}
.card a:hover {
  background: linear-gradient(135deg, #bc0363, #ecd1e0);

  transform: scale(1.05);
}
.card h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  color: #8a5370;
  margin-bottom: 16px;
}
.card p {
  color: #865d78;
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 30px;
}
.services-preview {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 35px;

  padding: 80px 10%;
  background: #f4d1e1;
}
.card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

/* ==========================================
   BOOKING
========================================== */

.booking {
  padding: 120px 5%;
}
.booking h1 {
  text-align: center;

  color: var(--primary-dark);

  font-size: 3.5rem;

  margin-bottom: 20px;
}

.booking p {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 70px;
  line-height: 1.8;
  color: var(--text-light);
}
.booking-container {
  max-width: 1300px;
  margin: 0 auto;

  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;

  flex-wrap: wrap;
}

.booking-info {
  flex: 1 1 500px;
  max-width: 600px;
  text-align: center;
  background: white;

  border-radius: 30px;

  padding: 35px;

  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.booking-info h2 {
  color: var(--primary-dark);

  margin-bottom: 20px;
}

.availability {
  list-style: none;

  padding: 24px;
}

.availability li {
  display: flex;

  justify-content: space-between;

  padding: 14px 0;

  border-bottom: 1px solid #eee;
}

.availability span {
  font-weight: 600;
}
.appointment-note {
  padding: 18px;

  background: #fff6fb;

  border-left: 5px solid var(--primary);

  border-radius: 12px;

  line-height: 1.7;

  font-size: 0.95rem;
}

.booking-form {
  flex: 1 1 500px;
  max-width: 600px;

  background: white;

  border-radius: 30px;

  padding: 40px;

  box-shadow: var(--shadow);

  display: flex;

  flex-direction: column;

  gap: 20px;
}
.booking-form h1 {
  font-size: 2.5rem;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;

  padding: 16px;

  border: 2px solid #f1dce8;

  border-radius: 15px;

  font-size: 15px;

  transition: 0.3s;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: none;

  border-color: var(--primary);

  box-shadow: 0 0 0 4px rgba(181, 109, 149, 0.12);
}

.booking-form textarea {
  resize: none;
}

.booking-form button {
  border: none;

  padding: 18px;

  border-radius: 50px;

  background: var(--primary);

  color: white;

  font-size: 16px;

  font-weight: 600;

  cursor: pointer;

  transition: 0.35s;
}

.booking-form button:hover {
  background: var(--primary-dark);

  transform: translateY(-3px);
}
/* Forces all form text inputs, selects, and date boxes to share matching dimensions */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  box-sizing: border-box; /* Prevents fields from overextending out of the container */
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #f3d6e4; /* Matches your light border aesthetic */
  font-size: 1rem;
  font-family: inherit;
  background-color: #ffffff; /* Sets background to crisp white or matches your theme select grey */
  color: #333333; /* Ensures text is dark enough to be readable */
}

/* Specific styling fix for native mobile date inputs */
input[type="date"] {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  min-height: 48px;
}

/* Forces mobile browsers to show placeholder styling clearly on date types */
input[type="date"]::before {
  content: attr(placeholder);
  color: #757575;
  margin-right: 0.5em;
}

input[type="date"]:focus::before,
input[type="date"]:valid::before {
  content: "";
}
/* =========================
        FOOTER
========================= */

footer {
  background: linear-gradient(135deg, #fff8fb, #ad6091);
  border-top: 1px solid #d6bbcc;

  padding: 10px 9% 30px;
  text-align: center;
}

footer h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  color: #8c355e;

  margin-bottom: 15px;
}

footer p {
  font-size: 1rem;

  color: #4f434b;

  margin: 10px 0;
}

footer a {
  color: #60344c;
  font-weight: 500;

  transition: all 0.3s ease;
}

footer a:hover {
  color: #2c0918;
}
.instagram-link {
  display: inline-block;
  padding: 0.1rem 1.1rem;
  color: #e6d4e2;
  font-size: small;
  background-color: #813f74;
  border: 2px solid rgb(98, 41, 76);
  border-radius: 4rem;

  transition: 0.3s ease;
}

.footer-divider {
  width: 250px;
  height: 3px;

  background: #9e6784;

  margin: 25px auto;
}
.footer-contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 20px 0;
}

/* Structural block for EVERY row */
.contact-row {
  display: flex;
  flex-direction: column; /* Stacks label/number above the button beautifully on mobile */
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 16px; /* Even spacing between blocks */
  text-align: center;
}

/* The phone text sizing */
.contact-row p {
  margin: 0 0 6px 0;
  font-size: 1rem;
  font-family: inherit;
}
/* The Instagram buttons */
.instagram-btn {
  display: inline-block;
  padding: 6px 20px;
  background-color: #6a3258; /* Adjust to match your exact dark plum background */
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
  width: fit-content;
}
/* Responsive adjustment for extra small mobile screens */
@media (max-width: 400px) {
  .contact-row {
    flex-direction: column;
  }
}
/* Mobile Layout Tweak */
@media (max-width: 768px) {
  nav {
    width: 100%;
    padding: 15px 25px;
  }

  /* Show the hamburger menu icon on small screens */
  .nav-toggle {
    display: block;
  }

  /* --- Locate this block inside @media (max-width: 768px) --- */
  .navbar__links {
    display: flex;
    flex-direction: column;
    gap: 25px;
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100vh;
    background: rgba(206, 166, 189, 0.98);
    backdrop-filter: blur(10px);
    padding: 80px 30px 40px;
    text-align: left;
    box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.15);
    transition: left 0.4s ease;
    z-index: 2000;
  }

  .navbar__links.is-open {
    left: 0;
  }
}
/* ===============================
   TABLET
================================== */

@media (max-width: 1024px) {
  nav {
    padding: 18px 5%;
    width: 100%;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .about-header {
    padding: 90px 8%;
  }

  .services-preview {
    padding: 80px 6%;
  }

  .card {
    flex: 1 1 320px;
    max-width: 420px;
  }

  .booking-info,
  .booking-form {
    width: 100%;
    max-width: 650px;
  }
}
/*LAPTOPS*/
@media (max-width: 1200px) {
  .hero h1 {
    font-size: 3.8rem;
  }

  .booking-container {
    gap: 30px;
  }
}
