/*
 Theme Name:   Mahsa Soltani Portfolio
 Template:     kadence
 Version:      3.1
 Description:  Amy Lily-inspired minimal portfolio theme
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Lato:wght@300;400;700&display=swap');

/* ===== GLOBAL ===== */
body, .site {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 0.9em;
  line-height: 1.8;
  background: #fff !important;
  color: #000 !important;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .wp-block-heading {
  font-family: 'Lato', sans-serif !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #000 !important;
  font-weight: 300;
}

/* ===== HIDE KADENCE HEADER ===== */
header.site-header { display: none !important; }

/* ===== CUSTOM HEADER ===== */
#ms-header {
  background: #fff;
  width: 100%;
  border-bottom: none;
  position: relative;
  z-index: 100;
}

#ms-header .ms-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5em 5vw;
  max-width: 100%;
}

#ms-header .ms-logo {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 2em;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  white-space: nowrap;
}

#ms-header .ms-nav {
  display: flex;
  align-items: center;
  gap: 2em;
}

#ms-header .ms-nav-link {
  font-family: 'Lato', sans-serif;
  font-size: 0.8em;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #000;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  white-space: nowrap;
}

#ms-header .ms-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: #000;
  transition: width 0.3s ease;
}

#ms-header .ms-nav-link:hover::after,
#ms-header .ms-nav-link.active::after {
  width: 100%;
}

#ms-header .ms-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8em;
  cursor: pointer;
  color: #000;
}

/* ===== MOBILE FULLSCREEN MENU ===== */
#ms-mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

#ms-mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
}

#ms-mobile-menu nav a {
  color: #fff;
  font-family: 'Lato', sans-serif;
  font-size: 1.6em;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
}

#ms-mobile-menu nav a:hover { color: #999; }

#ms-mobile-menu .ms-close {
  position: absolute;
  top: 1.5em; right: 1.5em;
  color: #fff;
  background: none;
  border: none;
  font-size: 2.5em;
  cursor: pointer;
}

/* ===== PAGE CONTENT ===== */
.site-content, .content-area { max-width: 100% !important; }
.entry-content-wrap { max-width: 100% !important; padding: 0 !important; margin: 0 !important; }
.content-container.site-container { max-width: 100% !important; padding: 0 !important; }
.entry-header { display: none !important; }

.entry-content .wp-block-heading {
  text-align: center;
  font-size: 1.8em;
  letter-spacing: 0.15em;
  margin-bottom: 1.5em;
  margin-top: 1em;
}

/* ===== PORTFOLIO GRID ===== */
.ms-portfolio-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2em 5vw;
}

.ms-row {
  display: flex;
  gap: 1em;
  margin-bottom: 1em;
}

.ms-row-2 .ms-img-wrap { flex: 1; }
.ms-row-1 { justify-content: center; }
.ms-row-1 .ms-img-wrap { width: 55%; flex: none; }

.ms-img-wrap { overflow: hidden; line-height: 0; }

.ms-row-2 .ms-img-wrap img {
  width: 100%; height: 550px;
  display: block; object-fit: cover; object-position: center top;
  transition: transform 0.5s ease;
}

.ms-row-1 .ms-img-wrap img {
  width: 100%; height: 700px;
  display: block; object-fit: cover; object-position: center top;
  transition: transform 0.5s ease;
}

.ms-img-wrap:hover img { transform: scale(1.03); }

/* ===== GALLERY (other pages) ===== */
.wp-block-gallery { padding: 0 5vw !important; }
.wp-block-gallery .wp-block-image img { transition: transform 0.5s ease !important; }
.wp-block-gallery .wp-block-image:hover img { transform: scale(1.03); }

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
  position: relative !important; background: none !important; color: #000 !important;
  max-height: none !important; overflow: visible !important; padding: 0.7em 0 0 !important;
  font-family: 'Lato', sans-serif !important; font-size: 0.75em !important;
  letter-spacing: 0.08em !important; text-transform: uppercase !important; text-align: center !important;
}

/* ===== ABOUT ===== */
.wp-block-columns.alignfull { gap: 0 !important; margin: 0 !important; min-height: 75vh; }
.wp-block-columns .wp-block-image img { width: 100%; height: 100%; object-fit: cover; min-height: 75vh; }
.wp-block-columns .wp-block-column p { font-family: 'Lato', sans-serif !important; line-height: 2 !important; }

/* ===== CONTACT ===== */
.wp-block-cover { min-height: 80vh !important; }
.ms-contact-form input:focus, .ms-contact-form textarea:focus { border-color: #000 !important; outline: none !important; }

/* ===== FOOTER ===== */
.site-footer { background: #fff !important; border-top: 1px solid #e5e7eb !important; text-align: center; padding: 2.5em 0 !important; }
.site-footer, .site-footer * { font-family: 'Lato', sans-serif !important; color: #000 !important; }

/* ===== HIDE UNWANTED ===== */
.comments-area, .post-navigation, .entry-meta, .posted-on, .byline,
.cat-links, .tags-links, .edit-link, .sidebar, #secondary, .widget-area { display: none !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  #ms-header .ms-nav { display: none; }
  #ms-header .ms-menu-btn { display: block; }
  #ms-header .ms-logo { font-size: 1.3em; letter-spacing: 0.15em; }

  .ms-portfolio-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 3px; padding: 0.5em 2vw;
  }
  .ms-row { display: contents; }
  .ms-row-1 .ms-img-wrap { width: 100%; }
  .ms-row-2 .ms-img-wrap img, .ms-row-1 .ms-img-wrap img {
    height: auto; aspect-ratio: 3/4; object-fit: cover;
  }

  .wp-block-columns.alignfull { flex-direction: column !important; }
  .entry-content .wp-block-heading { font-size: 1.3em; }
}
