/*
 Theme Name:   iPretty Custom Theme
 Theme URI:    https://www.ipretty.co.jp
 Description:  iPretty corporate website redesign - child theme
 Author:       iPretty
 Version:      1.0.0
 Template:     astra  
 Text Domain:  ipretty
*/

/* ============================================
   Parent theme: Astra (already configured)
   ============================================ */

/* ============================================
   iPretty DESIGN SYSTEM
   ============================================ */
:root {
  /* Brand Colors */
  --ip-navy: #0c1829;
  --ip-navy-90: rgba(12, 24, 41, 0.9);
  --ip-navy-light: #1a2d47;
  --ip-gold: #b8953e;
  --ip-gold-light: #d4b96a;
  --ip-gold-pale: #f0e6cc;
  --ip-gold-dark: #8a6e2a;
  --ip-white: #ffffff;
  --ip-off-white: #f9f9f7;
  --ip-gray-50: #f5f5f3;
  --ip-gray-100: #ebebea;
  --ip-gray: #8a8a82;
  --ip-gray-light: #c8c6be;
  --ip-text: #1a1a18;
  --ip-text-muted: #5c5c56;
  --ip-border: rgba(0,0,0,0.07);

  /* Typography */
  --font-display: 'Cormorant Garamond', 'YuMincho', 'Yu Mincho', serif;
  --font-heading: 'Outfit', 'Zen Kaku Gothic New', sans-serif;
  --font-body: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', sans-serif;
}

/* ============================================
   GLOBAL
   ============================================ */
body {
  font-family: var(--font-body) !important;
  color: var(--ip-text);
  background: var(--ip-white);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   NAVIGATION — Sticky, White Background
   ============================================ */
header, .site-header, #masthead {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--ip-border);
  height: 76px;
  display: flex;
  align-items: center;
  padding: 0 48px;
}

/* Logo sizing */
.site-logo img, .custom-logo, header .logo img {
  height: 48px !important;
  width: auto !important;
}

/* Remove company name text under logo */
.site-title, .site-description {
  /* display: none !important; */
  /* Uncomment above if text still appears */
}

/* Nav links styling */
.nav-menu a, .main-navigation a, #primary-menu a {
  font-family: var(--font-heading) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ip-text-muted) !important;
  transition: color 0.3s;
}
.nav-menu a:hover, .main-navigation a:hover, #primary-menu a:hover {
  color: var(--ip-navy) !important;
}

/* Body offset for fixed nav */
body {
  padding-top: 76px;
}

/* ============================================
   LANGUAGE SWITCHER (add via plugin or custom)
   ============================================ */
.lang-switch {
  display: flex;
  gap: 2px;
  background: var(--ip-gray-50);
  border-radius: 6px;
  padding: 3px;
}
.lang-btn {
  border: none;
  background: transparent;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--ip-gray);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}
.lang-btn.active {
  background: var(--ip-navy);
  color: #fff;
}

/* ============================================
   NAV SOCIAL ICONS
   ============================================ */
.nav-social {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--ip-border);
  margin-left: 4px;
}
.nav-social a {
  color: var(--ip-gray);
  display: flex;
  align-items: center;
  transition: color 0.3s;
}
.nav-social a:hover {
  color: var(--ip-navy);
}
.nav-social svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section, .home-hero {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 48px 48px;
}
.hero-section .hero-tag {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ip-gold-dark);
  margin-bottom: 16px;
}
.hero-section h1 {
  font-family: var(--font-display) !important;
  font-size: clamp(32px, 4.5vw, 52px) !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  color: var(--ip-navy) !important;
  margin-bottom: 24px;
}
.hero-section h1 em {
  font-style: italic;
  color: var(--ip-gold-dark);
}
.hero-section .hero-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

/* CTA Button */
.hero-cta, .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff !important;
  background: var(--ip-navy) !important;
  padding: 14px 36px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.4s;
}
.hero-cta:hover, .wp-block-button__link:hover {
  background: var(--ip-gold-dark) !important;
}

/* ============================================
   SECTION STYLING
   ============================================ */
.section-label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ip-gold-dark);
  margin-bottom: 8px;
}

h2.section-title, .entry-content h2 {
  font-family: var(--font-display) !important;
  font-size: clamp(28px, 4vw, 40px) !important;
  font-weight: 400 !important;
  line-height: 1.3 !important;
  color: var(--ip-navy) !important;
  margin-bottom: 48px;
}

/* ============================================
   VALUE CARDS (Quality / Price / Beauty)
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ip-border);
}
.value-card {
  background: var(--ip-white);
  text-align: center;
  padding: 64px 24px;
}
.value-card h3 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ip-navy);
}
.value-card p {
  font-size: 14px;
  color: var(--ip-text-muted);
  line-height: 1.9;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  max-width: 1100px;
  margin: 0 auto;
}
.service-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.service-card:hover img {
  transform: scale(1.06);
}
.service-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,24,41,0.85) 0%, rgba(12,24,41,0.15) 60%);
}
.service-card .content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 48px;
  color: #fff;
}

/* ============================================
   NEWS LIST (Text Only)
   ============================================ */
.news-list, .post-list {
  max-width: 800px;
  margin: 0 auto;
  list-style: none !important;
  padding: 0 !important;
}
.news-item, .post-list li {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--ip-border);
}
.news-item:hover {
  padding-left: 16px;
}
.news-date, .post-date {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  color: var(--ip-gray);
  min-width: 90px;
}
/* Hide NEWS thumbnails */
.news-item img, .post-list .post-thumbnail {
  display: none !important;
}

/* ============================================
   TRUST SECTION (Dark Background)
   ============================================ */
.trust-section {
  background: var(--ip-navy);
  text-align: center;
  padding: 96px 48px;
}
.stat-number {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  color: var(--ip-gold-light);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
}

/* ============================================
   EC SHOP CARDS
   ============================================ */
.shops-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.shop-card {
  background: var(--ip-white);
  border: 1px solid var(--ip-border);
  border-radius: 8px;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.3s;
}
.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  border-color: var(--ip-gold-pale);
}

/* ============================================
   FOOTER
   ============================================ */
footer, .site-footer, #colophon {
  background: var(--ip-navy) !important;
  color: rgba(255,255,255,0.5) !important;
  padding: 64px 48px 48px;
}
footer a, .site-footer a {
  color: rgba(255,255,255,0.5) !important;
  transition: color 0.3s;
}
footer a:hover, .site-footer a:hover {
  color: var(--ip-gold) !important;
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.fade-section {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  header, .site-header, #masthead {
    padding: 0 16px;
  }
  .hero-section {
    grid-template-columns: 1fr;
    padding: 48px 16px;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .shops-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .nav-social {
    display: none;
  }
}


/* ============================================
   MOBILE HAMBURGER MENU
   ============================================ */
.hamburger {
  display: none;
  position: fixed;
  top: 22px;
  right: 16px;
  z-index: 1100;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ip-navy);
  margin: 5px 0;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: 76px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mobile-overlay.open { display: flex; }
.mobile-overlay a {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ip-text-muted);
  padding: 14px 24px;
  transition: color 0.3s;
}
.mobile-overlay a:hover { color: var(--ip-navy) !important; }

@media (max-width: 768px) {
  .hamburger { display: block; }
  .nav-links, .nav-social, .lang-switch { display: none !important; }
}


/* ============================================
   FIX: Unified mobile nav for custom templates
   ============================================ */
.nav .hamburger {
  margin-left: 12px;
}
.mobile-overlay .mobile-lang {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ip-border);
}
.mobile-overlay .mobile-social {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}
.mobile-overlay .mobile-social a {
  padding: 8px;
  font-size: 0;
}
@media (max-width: 768px) {
  .nav .nav-links,
  .nav .nav-social,
  .nav .lang-switch {
    display: none !important;
  }
  .nav .hamburger {
    display: block !important;
  }
}
