/* =============================================================================
   Maylee Hair Co — Global Stylesheet
   Organized, serial, and grouped by blocks. All media queries are at the end.
   (No visual changes intended—rules reorganized and deduped for clarity.)
============================================================================= */

/* =========================
   0) CSS Variables (Theme)
========================= */
:root {
  --bg-colour: #fdfdfd;        /* very light white/grey background */
  --primary-colour: #1f1f1f;   /* main dark text */
  --accent-colour: #7a7a7a;    /* soft grey accent */
  --light-accent: #f1f1f1;     /* light grey for backgrounds/cards */
  --card-bg: #ffffff;          /* white cards */


  /* Typography */
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Poppins', sans-serif;
}

.service-img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
}

/* ====================
   1) Resets & Base
==================== */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-colour);
  color: var(--primary-colour);
  font-family: var(--body-font);
  line-height: 1.6;
}

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

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

/* Container utility */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Simple visibility helpers */
.mobile { display: none; }
.desktop { display: block; }

/* ============================
   2) Header & Navigation
============================ */
header {
  background: var(--card-bg);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

/* Text-based logo (default text treatment) */
.logo {
  font-family: var(--heading-font);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Primary nav */
nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  position: relative;
  padding: 0.5rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

nav a:hover,
nav a:focus {
  color: var(--accent-colour);
  outline: none;
}

nav a.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent-colour);
}



/* =================
   3) Hero Section
================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 65vh; /* slightly shorter to bring content up */
  background-image: url(./assets/abstract.png);
  background-repeat: no-repeat;
  background-position:left bottom;
  background-size: 40%;
}

.hero-text {
  flex: 1 1 350px;
  max-width: 550px;
  padding: 1rem;
}

.hero-text h1 {
  margin: 0 0 1rem;
  font-family: var(--heading-font);
  font-size: 3rem;
  line-height: 1.2;
}

.hero-text p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  max-width: 480px;
  color: #444;
}

.hero-image { flex: 1 1 350px; }

.hero-image img { width: 100%; height: auto; }

/* CTA button */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border: 2px solid var(--primary-colour);
  border-radius: 30px;
  background: transparent;
  color: var(--primary-colour);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.btn:hover,
.btn:focus {
  background: var(--primary-colour);
  color: var(--card-bg);
  outline: none;
}





/* =========================
   4) Home — Features Row
========================= */
.features {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  flex: 1 1 280px;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-item img {
  width: 50px; height: 50px; flex-shrink: 0;
  filter: invert(28%) sepia(16%) saturate(600%)
          hue-rotate(340deg) brightness(94%) contrast(85%);
}

.feature-item h3 {
  margin: 0 0 0.25rem;
  font-family: var(--heading-font);
  font-size: 1.25rem;
}

.feature-item p {
  margin: 0;
  font-size: 0.95rem;
  color: #555;
}

/* =======================
   5) About Page Section
======================= */
.about-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 4rem 0;
  gap: 2rem;
}

.about-text {
  flex: 1 1 350px;
  max-width: 600px;
  padding: 1rem;
}

.about-text h2 {
  font-family: var(--heading-font);
  font-size: 2.4rem;
  margin: 0 0 1rem;
}

.about-text p {
  margin-bottom: 1rem;
  font-size: 1rem;
  color: #555;
}

.about-image {
  flex: 1 1 350px;
  max-width: 500px;
  padding: 1rem;
}

.about-image img {
  width: 100%; height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}



/* =========================
   6) Services (Cards Grid)
========================= */
.services-section { padding: 4rem 0; }

.services-section h2 {
  text-align: center;
  font-family: var(--heading-font);
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-colour);
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--heading-font);
  font-size: 1.5rem;
}

.service-card p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

/* Remove bullets on service/package lists */
.service-card ul,
.package ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}
.service-card li::marker,
.package li::marker { content: ""; }
.service-card li,
.package li { margin: .3rem 0; }

/* =========================
   7) Contact (Form Block)
========================= */
.contact-section {
  background: var(--light-accent);
  padding: 4rem 0;
}

.contact-section h2 {
  text-align: center;
  font-family: var(--heading-font);
  font-size: 2.3rem;
  margin-bottom: 2rem;
}

.contact-section form {
  max-width: 500px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.contact-section label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-section input,
.contact-section textarea {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: var(--body-font);
  font-size: 1rem;
}

.contact-section textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-section button {
  width: fit-content;
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: 30px;
  background: var(--accent-colour);
  color: var(--card-bg);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-section button:hover,
.contact-section button:focus {
  background: #5c3c24;
  outline: none;
}

/* ==========================================
   8) Brand Mark — Text Logo (Script/Serif)
========================================== */
.logo-text{
  display: inline-flex;
  align-items: flex-end;
  gap: .2rem;
  color: var(--primary-colour);
  line-height: 1;
  padding: .25rem 0;
}

.logo-script{
  font-family: 'Great Vibes', cursive;
  font-size: 2.1rem;
  font-weight: 400;
  letter-spacing: .5px;
}

.logo-serif{
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  letter-spacing: .08em;
  margin-left: .1rem;
}

/* =================================
   9) Brand Mark — Image Logo Mode
   (Overrides when using a logo image)
================================= */
.logo { display: inline-flex; align-items: center; padding: .25rem 0; }

/* Override previous text sizing when image is used */
.logo { font-size: 0; line-height: 0; }

.logo img {
  height: 42px; /* adjust 36–48px as needed */
  width: auto;
  display: block;
}

/* =======================
   10) Packages Section
   (Structure reused by services)
======================= */
#signature-packages h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
}

.packages-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.package {
  background: #fff;
  border: 1px solid #e8e3dc;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,.05);
  overflow: hidden;
}

.package img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.package-body { padding: 1rem 1.1rem; }

.package h3 {
  margin: 0 0 .35rem;
  font-family: "Playfair Display", serif;
}

.package h3 span {
  font-weight: 400;
  color: #6b6761;
  font-size: .95rem;
}

.package ul { margin: .5rem 0 .75rem; padding-left: 1.1rem; }
.package ul li { margin: .25rem 0; }

.price { font-weight: 700; color: #5b4636; }
.price small { font-weight: 500; color: #6b6761; }

.tiny-note {
  color: #6b6761;
  font-size: .9rem;
  margin-top: 1rem;
}

/* =================
   11) Animations
================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===============
   12) Footer
=============== */
footer {
  background: var(--card-bg);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

footer a {
  color: var(--accent-colour);
  margin: 0 0.5rem;
  transition: color 0.2s ease;
}

footer a:hover,
footer a:focus {
  color: var(--primary-colour);
  outline: none;
}





/* whatsapp */
      /* WhatsApp Floating Action Button (FAB) */
      .whatsapp-fab {
        position: fixed;
        right: 22px;
        bottom: 22px;
        z-index: 1040; /* above header shadow, below modals if needed */
        display: inline-flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        border-radius: 999px;
        background: #25d366; /* WhatsApp brand green */
        color: #ffffff;
        font-weight: 600;
        text-decoration: none;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
        transition: transform 0.15s ease, box-shadow 0.2s ease;
      }
      .whatsapp-fab i {
        font-size: 22px;
        line-height: 1;
      }
      .whatsapp-fab span {
        /* label text (hidden on very small screens via media query below) */
        font-size: 14px;
        white-space: nowrap;
      }
      .whatsapp-fab:hover,
      .whatsapp-fab:focus {
        transform: translateY(-1px);
        box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
        color: #ffffff;
        outline: none;
      }




/* =============================================================================
   MEDIA QUERIES (collected at bottom, largest → smallest when possible)
============================================================================= */


      /* Compact circle-only button on very small screens */
      @media (max-width: 480px) {
        .whatsapp-fab {
          padding: 12px;
          border-radius: 50%;
          right: 16px;
          bottom: 16px;
        }
        .whatsapp-fab span {
          display: none; /* icon-only on tiny screens */
        }
        .whatsapp-fab i {
          font-size: 24px;
        }
      }

/* -------------------------
   ≤ 900px (tablets/smaller)
-------------------------- */
@media (max-width: 900px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 3rem 0;
  }

  .hero-text h1 { font-size: 2.5rem; }

  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }

  nav ul { gap: 1rem; }

  .about-section {
    flex-direction: column;
    text-align: center;
  }

  .about-image,
  .about-text { max-width: 100%; }

  .feature-item {
    justify-content: center;
    text-align: left;
  }
}

/* -----------------------
   ≤ 600px (mobile)
------------------------ */
@media (max-width: 600px) {
  /* Logo image size tweak on small screens */
  .logo img { height: 36px; }

  /* Toggle helpers */
  .mobile { display: block; }
  .desktop { display: none; }

  /* Mobile hero special */
  .heroforMobile{
    height: calc(80vh - 88px);
    position: relative;
    overflow: hidden;
  }
  .heroforMobile img{
    position: absolute;
    bottom: 0;
    right: -92px;
  }
  .hero-text2 {
    flex: 1 1 350px;
    max-width: 230px;
    padding: 1rem;
    position: absolute;
    top: 66px;
  }

  /* Typography scaling */
  .hero-text h1 { font-size: 2rem; }

  /* Buttons */
  .btn { padding: 0.6rem 1.5rem; }

  /* Services */
  .services-section h2 { font-size: 2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 1.5rem; }

  /* Contact form width */
  .contact-section form { width: 90%; }

  /* Prevent sideways scroll on tiny screens */
  body { overflow-x: hidden; }
}


