/* ============================================
   MyIVyNurse — Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --cream: #F4F7F2;
  --espresso: #1B2E1B;
  --warm-brown: #2A3F2A;
  --caramel: #6B8F5E;
  --latte: #D6E4D0;
  --sage: #8BAF7E;
  --charcoal: #2C3B2C;
  --text: #2E3D2E;
  --text-light: #6A7D6A;
  --white: #FFFFFF;
  --shadow: 0 4px 30px rgba(27, 46, 27, 0.08);
  --shadow-lg: 0 12px 40px rgba(27, 46, 27, 0.12);
  --radius: 12px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 120px 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--espresso);
  line-height: 1.2;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
}

/* Image Placeholders */
.img-placeholder {
  background: linear-gradient(145deg, var(--latte), #4A7A3E);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 250px;
  position: relative;
  overflow: hidden;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(27, 46, 27, 0.1) 0%,
    rgba(107, 143, 94, 0.2) 50%,
    rgba(74, 122, 62, 0.15) 100%
  );
}

.img-placeholder span {
  position: relative;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--white);
  opacity: 0.9;
  text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}

/* --- Button --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--espresso);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: 2px solid var(--espresso);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background: transparent;
  color: var(--espresso);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(250, 247, 242, 0);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 1px 20px rgba(26, 18, 9, 0.06);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0);
  letter-spacing: 2px;
  transition: color 0.3s;
}

.navbar.scrolled .logo {
  color: var(--espresso);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0);
  position: relative;
  transition: color 0.3s;
}

.navbar.scrolled .nav-links a {
  color: var(--charcoal);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--caramel);
  transition: width 0.3s;
}

.nav-links a:hover {
  color: var(--caramel);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--espresso);
  transition: var(--transition);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    160deg,
    var(--espresso) 0%,
    var(--warm-brown) 40%,
    #3B5E3B 60%,
    var(--caramel) 100%
  );
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

/* Floating circles */
.hero-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(214, 228, 208, 0.15);
  background: rgba(139, 175, 126, 0.06);
  will-change: transform;
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: 5%;
  animation: drift1 28s ease-in-out infinite;
}

.circle-2 {
  width: 180px;
  height: 180px;
  top: 60%;
  right: 10%;
  animation: drift2 24s ease-in-out infinite;
}

.circle-3 {
  width: 420px;
  height: 420px;
  bottom: -5%;
  left: 30%;
  border-color: rgba(214, 228, 208, 0.1);
  background: rgba(107, 143, 94, 0.04);
  animation: drift3 32s ease-in-out infinite;
}

.circle-4 {
  width: 140px;
  height: 140px;
  top: 20%;
  right: 20%;
  animation: drift4 22s ease-in-out infinite;
}

.circle-5 {
  width: 240px;
  height: 240px;
  bottom: 15%;
  left: -3%;
  border-color: rgba(214, 228, 208, 0.12);
  background: rgba(139, 175, 126, 0.05);
  animation: drift5 26s ease-in-out infinite;
}

.circle-6 {
  width: 100px;
  height: 100px;
  top: 45%;
  left: 55%;
  animation: drift6 20s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(40px, -30px); }
  50%      { transform: translate(-20px, -60px); }
  75%      { transform: translate(-50px, 20px); }
}

@keyframes drift2 {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(-35px, 25px); }
  50%      { transform: translate(20px, 50px); }
  75%      { transform: translate(45px, -15px); }
}

@keyframes drift3 {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(30px, -40px); }
  50%      { transform: translate(60px, 20px); }
  75%      { transform: translate(-25px, -20px); }
}

@keyframes drift4 {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(-45px, -20px); }
  50%      { transform: translate(-25px, 40px); }
  75%      { transform: translate(30px, 30px); }
}

@keyframes drift5 {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(50px, 15px); }
  50%      { transform: translate(30px, -45px); }
  75%      { transform: translate(-20px, -30px); }
}

@keyframes drift6 {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(-30px, 35px); }
  50%      { transform: translate(40px, 20px); }
  75%      { transform: translate(15px, -40px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 24px;
}

.hero-tagline {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--caramel);
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 5.5rem);
  color: var(--cream);
  font-weight: 700;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: italic;
  color: var(--caramel);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(250, 247, 242, 0.7);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero .btn {
  background: transparent;
  border-color: var(--cream);
  color: var(--cream);
}

.hero .btn:hover {
  background: var(--cream);
  color: var(--espresso);
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.hero-scroll span {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.5);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--caramel), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   About
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-img-1 {
  min-height: 500px;
  border-radius: 200px 200px var(--radius) var(--radius);
  background-image: url('images/patient03.jpeg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.about-text h2 {
  margin-bottom: 24px;
}

.about-text p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 40px;
}

.about-stats {
  display: flex;
  gap: 48px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--espresso);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ============================================
   Menu
   ============================================ */
.menu {
  background: var(--white);
}

.menu-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
}

.tab {
  padding: 10px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: none;
  border: 1.5px solid var(--latte);
  border-radius: 50px;
  cursor: pointer;
  color: var(--text-light);
  transition: var(--transition);
}

.tab:hover {
  border-color: var(--caramel);
  color: var(--caramel);
}

.tab.active {
  background: var(--espresso);
  border-color: var(--espresso);
  color: var(--cream);
}

.menu-content {
  display: none;
}

.menu-content.active {
  display: block;
  animation: fadeUp 0.5s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.menu-item {
  padding: 28px 32px;
  border: 1px solid var(--latte);
  border-radius: var(--radius);
  transition: var(--transition);
}

.menu-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: transparent;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.menu-item h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.price {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--caramel);
  font-weight: 600;
}

.menu-item p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ============================================
   Story
   ============================================ */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.story-text h2 {
  margin-bottom: 24px;
}

.story-text p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

blockquote {
  margin-top: 32px;
  padding-left: 24px;
  border-left: 3px solid var(--caramel);
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--espresso);
  line-height: 1.6;
}

blockquote cite {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  font-style: normal;
  color: var(--text-light);
}

.story-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.story-img-1 {
  min-height: 350px;
  grid-column: 1 / -1;
  background-image: url('images/arm_iv.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.story-img-2 {
  min-height: 220px;
  grid-column: 1 / -1;
  background-image: url('images/katie02.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* ============================================
   Gallery
   ============================================ */
.gallery {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.gallery-item .img-placeholder {
  min-height: 100%;
  border-radius: 0;
}

.gi-1 { grid-row: span 2;}
.gi-4 { grid-column: span 2;}

/* ============================================
   Contact
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-info h2 {
  margin-bottom: 40px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-block h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--espresso);
  margin-bottom: 6px;
}

.contact-block p {
  color: var(--text-light);
  line-height: 1.8;
}

.contact-form-wrap {
  background: var(--white);
  padding: 48px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-form-wrap h3 {
  font-size: 1.4rem;
  margin-bottom: 28px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 14px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  border: 1.5px solid var(--latte);
  border-radius: 8px;
  background: var(--cream);
  color: var(--text);
  transition: border-color 0.3s;
  outline: none;
  width: 100%;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--caramel);
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .btn {
  align-self: flex-start;
  border: none;
  font-size: 0.85rem;
}

.contact-form .btn:hover {
  background: var(--caramel);
  color: var(--white);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--espresso);
  color: rgba(250, 247, 242, 0.7);
  padding: 80px 0 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.footer .logo {
  color: var(--cream);
  margin-bottom: 12px;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 60px;
  justify-content: flex-end;
}

.footer-links h4 {
  font-family: 'Playfair Display', serif;
  color: var(--cream);
  font-size: 1rem;
  margin-bottom: 16px;
}

.footer-links a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--caramel);
}

.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(250, 247, 242, 0.1);
  padding-top: 28px;
  margin-top: 20px;
}

.footer-bottom p {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ============================================
   Scroll Animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .section { padding: 80px 0; }
  .about-grid, .story-grid, .contact-grid { gap: 48px; }
}

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

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    padding: 100px 40px 40px;
    gap: 24px;
    transition: right 0.4s ease;
    box-shadow: -4px 0 30px rgba(0,0,0,0.1);
  }

  .nav-links.open { right: 0; }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero h1 { font-size: clamp(2.4rem, 8vw, 3.5rem); }

  .about-grid,
  .story-grid,
  .contact-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 200px;
  }

  .gi-1 { grid-row: span 1; }
  .gi-4 { grid-column: span 1; }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .about-stats { gap: 32px; }
}

@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .about-stats { flex-wrap: wrap; }
  .contact-form-wrap { padding: 28px; }
  .menu-tabs { flex-wrap: wrap; }
}
