/* =========================================
   DAISY BEAUTY SCHOOL — STYLES
   ========================================= */

/* ----- CUSTOM PROPERTIES & RESET ----- */
:root {
  --sage: #6B7F5E;
  --sage-light: #8A9E7C;
  --sage-dark: #4F5E44;
  --red: #8B3A3A;
  --red-light: #A85454;
  --cream: #EDE8DF;
  --cream-light: #F5F2EC;
  --cream-dark: #D8D0C4;
  --text: #3A3A3A;
  --text-light: #6E6E6E;
  --white: #FFFFFF;
  --font-display: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: cubic-bezier(.16, 1, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--cream-light);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 3px; }

/* ----- NAVIGATION ----- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: .5rem 3rem;
  display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center;
  transition: all .4s;
  background: transparent;
}
.nav.scrolled {
  background: rgba(237, 232, 223, .95);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--cream-dark);
  padding: .4rem 3rem;
}
.nav-logo { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.nav-logo-img { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; transition: all .3s; opacity: .7; }
.nav-logo-img:hover { opacity: 1; }
.nav.scrolled .nav-logo-img { width: 120px; height: 120px; }
.nav-logo-text {
  font-family: var(--font-body); font-size: 1.1rem; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase; color: #000;
  text-shadow: 0 1px 3px rgba(255, 255, 255, .4); transition: all .3s;
}
.nav.scrolled .nav-logo-text { color: #000; font-size: .9rem; text-shadow: none; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--font-body); font-size: 1.1rem; font-weight: 500;
  color: var(--text-light); text-decoration: none; transition: color .3s; position: relative;
}
.nav-links a:hover { color: var(--sage-dark); }
.nav-links a.active-link { color: var(--sage-dark); }
.nav-links a.active-link::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 2px; background: var(--red);
}
.nav-cta {
  padding: .55rem 1.4rem; background: var(--red); color: var(--white) !important;
  border-radius: 6px; font-weight: 500 !important; transition: all .3s !important;
}
.nav-cta:hover { background: var(--red-light) !important; transform: translateY(-1px); }
.mobile-toggle {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--sage-dark); transition: all .3s; }

/* ----- HERO ----- */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: rgba(200, 195, 185, .45); backdrop-filter: blur(2px); }
.hero-content { text-align: center; position: relative; z-index: 2; max-width: 700px; padding: 2rem; }
.hero-title {
  font-family: var(--font-display); font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 400; font-style: italic; color: var(--sage-dark); line-height: 1.2;
  margin-bottom: 1.2rem; text-shadow: 0 2px 20px rgba(255, 255, 255, .5);
}
.hero-subtitle {
  font-size: 1rem; font-weight: 400; color: var(--text); line-height: 1.7;
  max-width: 480px; margin: 0 auto 2.5rem; text-shadow: 0 1px 10px rgba(255, 255, 255, .6);
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ----- BUTTONS ----- */
.btn {
  font-family: var(--font-body); font-size: .85rem; font-weight: 600;
  padding: .9rem 2.2rem; border-radius: 50px; text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: all .3s var(--transition); border: none; cursor: pointer;
  letter-spacing: .03em; text-transform: uppercase;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139, 58, 58, .25); }
.btn-cream { background: rgba(255, 255, 255, .85); color: var(--text); backdrop-filter: blur(8px); }
.btn-cream:hover { background: var(--white); transform: translateY(-2px); }

/* ----- SECTIONS (shared) ----- */
.section { padding: 6rem 3rem; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-title {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400; color: var(--sage-dark); line-height: 1.25; margin-bottom: .8rem;
}
.section-desc { font-size: .95rem; color: var(--text-light); max-width: 550px; margin: 0 auto; line-height: 1.7; }

/* ----- ABOUT ----- */
.about { background: var(--cream-light); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; max-width: 1100px; margin: 0 auto; align-items: center; }
.about-image { border-radius: 12px; overflow: hidden; }
.about-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.about-text h2 {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 400;
  color: var(--sage-dark); margin-bottom: 1.5rem; line-height: 1.25;
}
.about-text p { font-size: .92rem; color: var(--text-light); line-height: 1.85; margin-bottom: 1rem; }
.about-notes { margin-top: 2rem; padding: 1.5rem; background: var(--cream); border-radius: 10px; }
.about-notes li { font-size: .85rem; color: var(--text); line-height: 1.7; margin-bottom: .5rem; list-style: disc; margin-left: 1.2rem; }

/* ----- COURSES OVERVIEW ----- */
.courses-overview { background: var(--cream); }
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; max-width: 1100px; margin: 0 auto; }
.course-thumb {
  border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 3/4;
  cursor: pointer; transition: transform .4s var(--transition); text-decoration: none;
}
.course-thumb:hover { transform: translateY(-6px); }
.course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.course-thumb:hover img { transform: scale(1.05); }
.course-thumb-overlay {
  position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .6) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.8rem;
}
.course-thumb-overlay h3 { font-family: var(--font-display); font-size: 1.4rem; color: var(--white); margin-bottom: .3rem; }
.course-thumb-overlay span { font-size: 1rem; color: #FFD700; font-weight: 600; letter-spacing: .05em; }
.course-thumb-overlay .course-thumb-subtitle { color: rgba(255, 255, 255, .6); font-weight: 400; }
.course-thumb-overlay a { font-size: .75rem; color: rgba(255, 255, 255, .7); text-decoration: underline; margin-top: .5rem; transition: color .3s; }
.course-thumb-overlay a:hover { color: var(--white); }

/* ----- COURSE DETAIL ----- */
.course-section { padding: 5rem 3rem; }
.course-section:nth-child(even) { background: var(--cream); }
.course-section:nth-child(odd) { background: var(--cream-light); }
.course-container { max-width: 1100px; margin: 0 auto; }
.course-header { margin-bottom: 2.5rem; }
.course-header h2 {
  font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 400; color: var(--sage-dark); margin-bottom: .3rem;
  border-bottom: 2px solid var(--red); display: inline-block; padding-bottom: .3rem;
}
.course-header h2 span { color: var(--red); }
.course-info { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.2rem; }
.course-info-item { font-size: .9rem; color: var(--text); }
.course-info-item strong { color: var(--red); font-weight: 600; }
.course-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
.curriculum-box { border: 2px solid var(--red); border-radius: 12px; padding: 2rem 2.2rem; background: rgba(255, 255, 255, .5); }
.curriculum-box h4 {
  font-family: var(--font-display); font-size: 1rem; color: var(--text);
  margin-bottom: 1.2rem; text-align: center; border-bottom: 1px solid var(--cream-dark); padding-bottom: .8rem;
}
.curriculum-box h4 span { color: var(--red); }
.curriculum-list { list-style: none; }
.curriculum-list li {
  font-size: .88rem; color: var(--text-light); padding: .45rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, .04); display: flex; justify-content: space-between; gap: 1rem;
}
.curriculum-list li:last-child { border-bottom: none; }
.curriculum-list li .hours { color: var(--red); font-weight: 600; white-space: nowrap; }
.course-image { border-radius: 12px; overflow: hidden; position: sticky; top: 120px; }
.course-image img { width: 100%; object-fit: cover; border-radius: 12px; }
.course-image-secondary { margin-top: 1rem; }

/* ----- CONTACT ----- */
.contact { background: var(--cream); text-align: center; padding: 5rem 3rem; }
.contact h2 { font-family: var(--font-display); font-size: 2.2rem; font-weight: 400; color: var(--sage-dark); margin-bottom: 1rem; }
.contact-subtitle { margin-bottom: 2rem; }
.contact-notes { max-width: 600px; margin: 0 auto 2rem; text-align: left; }
.contact-notes li { font-size: .9rem; color: var(--text); line-height: 1.7; margin-bottom: .6rem; list-style: disc; margin-left: 1.2rem; }
.contact-info { margin-top: 2rem; }
.contact-info p { font-size: 1rem; margin-bottom: .5rem; }
.contact-info a { color: var(--red); text-decoration: underline; font-weight: 500; }

/* ----- FOOTER ----- */
.footer { background: var(--cream-light); padding: 3rem; border-top: 1px solid var(--cream-dark); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; align-items: start; }
.footer-brand { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--sage-dark); margin-bottom: .8rem; }
.footer-brand img { display: inline-block; vertical-align: middle; }
.footer-logo { height: 50px; border-radius: 50%; }
.footer-badge { height: 50px; display: inline-block; vertical-align: middle; margin-left: 10px; }
.footer-text { font-size: .82rem; color: var(--text-light); line-height: 1.7; }
.footer h5 { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--sage-dark); margin-bottom: .8rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: .4rem; }
.footer ul a { font-size: .82rem; color: var(--text-light); text-decoration: none; transition: color .3s; }
.footer ul a:hover { color: var(--red); }
.footer-bottom {
  max-width: 1100px; margin: 2rem auto 0; padding-top: 1.5rem;
  border-top: 1px solid var(--cream-dark); font-size: .75rem; color: var(--text-light); text-align: center;
}

/* ----- ANIMATIONS ----- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s var(--transition), transform .7s var(--transition);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- RESPONSIVE ----- */
@media (max-width: 1024px) {
  .nav { padding: .5rem 1.5rem; }
  .nav-logo-img { width: 90px; height: 90px; }
  .nav.scrolled .nav-logo-img { width: 70px; height: 70px; }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: .95rem; }
  .courses-grid { grid-template-columns: 1fr; }
  .course-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { padding: .8rem 1.5rem; }
  .nav.scrolled { padding: .6rem 1.5rem; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(237, 232, 223, .98);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
  }
  .mobile-toggle { display: flex; }
  .section,
  .course-section { padding: 3.5rem 1.5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .courses-grid { grid-template-columns: 1fr; max-width: 400px; }
  .course-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}
