/*
Theme Name: Megy Apricots Theme
Author: OpenAI
Version: 1.0.0
Text Domain: megy-apricots
*/

/* ─────────────────────────────────────────
   MEGY APRICOTS — Shared Stylesheet
   ───────────────────────────────────────── */
:root {
  --amber: #E07B2A;
  --gold: #F5A623;
  --gold-light: #FFD280;
  --cream: #FFF8EE;
  --warm-white: #FFFCF7;
  --dark: #1E1008;
  --brown: #3D1F0A;
  --brown-mid: #7A4010;
  --text: #2C1505;
  --text-muted: #7A5C3F;
  --border: rgba(224,123,42,0.2);
  --shadow: 0 20px 60px rgba(30,16,8,0.12);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--text);
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.4;
}

/* ── LANG BAR ── */
.lang-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--dark);
  display: flex; justify-content: flex-end; align-items: center;
  padding: 8px 40px; gap: 6px;
}
.lang-btn {
  background: transparent;
  border: 1px solid rgba(245,166,35,0.4);
  color: rgba(255,248,238,0.7);
  padding: 4px 14px; border-radius: 20px;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  transition: all 0.25s;
}
.lang-btn:hover, .lang-btn.active {
  background: var(--gold); border-color: var(--gold);
  color: var(--dark); font-weight: 600;
}

/* ── NAV ── */
nav {
  position: fixed; top: 33px; left: 0; right: 0; z-index: 999;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 70px;
  background: rgba(255,252,247,0.93);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 8px 32px rgba(30,16,8,0.10); }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--amber), var(--gold));
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; box-shadow: 0 4px 16px rgba(224,123,42,0.4);
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 18px; color: var(--dark); letter-spacing: 0.02em; }
.logo-sub { font-size: 10px; font-weight: 500; color: var(--amber); letter-spacing: 0.15em; text-transform: uppercase; }

.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-muted);
  font-size: 13px; font-weight: 500; padding: 8px 16px;
  border-radius: 8px; transition: all 0.2s; letter-spacing: 0.02em;
}
.nav-links a:hover { color: var(--amber); background: rgba(224,123,42,0.08); }
.nav-links a.active { color: var(--amber); background: rgba(224,123,42,0.1); font-weight: 600; }
.nav-cta {
  background: linear-gradient(135deg, var(--amber), var(--gold)) !important;
  color: white !important; padding: 10px 22px !important; border-radius: 10px !important;
  font-weight: 600 !important; box-shadow: 0 4px 16px rgba(224,123,42,0.35);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(224,123,42,0.45) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; }
.hamburger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }

/* ── MOBILE MENU ── */
.mobile-menu {
  position: fixed; top: 103px; left: 0; right: 0;
  background: rgba(255,252,247,0.98); backdrop-filter: blur(20px);
  padding: 24px; display: none; flex-direction: column; gap: 4px;
  z-index: 998; border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none; color: var(--text);
  font-size: 16px; font-weight: 500; padding: 14px 16px;
  border-radius: 10px; transition: all 0.2s;
}
.mobile-menu a:hover { background: rgba(224,123,42,0.08); color: var(--amber); }
.mobile-menu a.active { color: var(--amber); background: rgba(224,123,42,0.1); font-weight: 600; }

/* ── PAGE WRAPPER ── */
.page-main { padding-top: 103px; min-height: 100vh; }

/* ── PAGE HERO (inside pages) ── */
.page-hero {
  background: linear-gradient(160deg, #FFF8EE 0%, #FFF0D0 50%, #FFE5B0 100%);
  padding: 80px 40px 70px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(245,166,35,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); margin-bottom: 12px; }
.page-hero-title { font-family: 'Playfair Display', serif; font-size: clamp(36px, 5vw, 60px); font-weight: 900; color: var(--dark); line-height: 1.1; margin-bottom: 16px; }
.page-hero-title .accent { color: var(--amber); font-style: italic; }
.page-hero-desc { font-size: 17px; line-height: 1.7; color: var(--text-muted); max-width: 600px; }

/* ── CONTAINER ── */
.container { max-width: 1200px; margin: 0 auto; }

/* ── SECTION ── */
.section { padding: 80px 40px; }
.section-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); margin-bottom: 12px; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(28px, 4vw, 46px); font-weight: 800; color: var(--dark); line-height: 1.15; margin-bottom: 16px; }
.section-lead { font-size: 17px; line-height: 1.7; color: var(--text-muted); margin-bottom: 48px; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--amber), var(--gold));
  color: white; padding: 15px 30px; border-radius: 14px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  box-shadow: 0 8px 28px rgba(224,123,42,0.4);
  transition: all 0.3s; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(224,123,42,0.5); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--brown-mid);
  padding: 15px 30px; border-radius: 14px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 2px solid rgba(224,123,42,0.3); transition: all 0.3s;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
}
.btn-secondary:hover { border-color: var(--amber); color: var(--amber); background: rgba(224,123,42,0.06); }

/* ── FOOTER ── */
footer {
  background: var(--dark); padding: 80px 40px 40px;
  color: rgba(255,248,238,0.7);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  max-width: 1200px; margin: 0 auto; padding-bottom: 60px;
  border-bottom: 1px solid rgba(245,166,35,0.1);
}
.footer-brand .logo-name { color: var(--gold-light); font-size: 22px; }
.footer-brand .logo-sub { color: var(--gold); }
.footer-desc { font-size: 14px; line-height: 1.7; color: rgba(255,248,238,0.5); margin-top: 16px; max-width: 280px; }
.footer-socials { display: flex; gap: 12px; margin-top: 24px; }
.social-btn {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(245,166,35,0.1); border: 1px solid rgba(245,166,35,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; transition: all 0.2s; text-decoration: none;
}
.social-btn:hover { background: rgba(245,166,35,0.2); transform: translateY(-2px); }
.footer-col-title { font-family: 'Playfair Display', serif; font-size: 16px; font-weight: 700; color: var(--gold-light); margin-bottom: 20px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { text-decoration: none; color: rgba(255,248,238,0.5); font-size: 14px; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1200px; margin: 0 auto; padding-top: 32px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-copy { font-size: 13px; }
.footer-certbadges { display: flex; gap: 12px; }
.certbadge { background: rgba(245,166,35,0.08); border: 1px solid rgba(245,166,35,0.15); border-radius: 8px; padding: 6px 14px; font-size: 11px; font-weight: 700; color: var(--gold); letter-spacing: 0.1em; }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: all 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── SCROLL TOP ── */
.scroll-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--amber), var(--gold));
  border-radius: 14px; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; box-shadow: 0 8px 24px rgba(224,123,42,0.4);
  z-index: 900; opacity: 0; transform: translateY(16px); transition: all 0.3s;
  color: white;
}
.scroll-top.visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { transform: translateY(-3px); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .lang-bar { padding: 8px 20px; }
  .section { padding: 60px 24px; }
  .page-hero { padding: 60px 24px 50px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}


/* ── MEDIA SLOT SUPPORT ── */
.site-logo-wrap { display:flex; align-items:center; }
.site-logo-wrap .custom-logo-link { display:inline-flex; align-items:center; line-height:0; }
.site-logo-wrap .custom-logo { max-height:68px; width:auto; display:block; }
.footer-logo-image { max-height:72px; width:auto; display:block; }
.megy-media-slot { display:block; max-width:100%; height:auto; object-fit:contain; }
.megy-fallback-icon { display:inline-flex; align-items:center; justify-content:center; }
.logo .megy-media-slot, .site-logo-wrap .megy-media-slot { max-height:68px; width:auto; }
.hero-fruit, .about-img-box, .pc-img, .ps-emoji, .cert-icon, .sc-icon, .gi-bg, .ci-icon, .map-emoji, .strip-icon, .why-icon, .feat-icon, .mini-icon, .social-btn { overflow:hidden; }
.hero-fruit img, .about-img-box img, .pc-img img, .gi-bg img, .map-emoji img { width:100%; height:100%; object-fit:cover; display:block; }
.hero-fruit { display:flex; align-items:center; justify-content:center; }
.hero-fruit .megy-media-slot { max-width:82%; max-height:82%; object-fit:contain; }
.mini-icon .megy-media-slot, .strip-icon .megy-media-slot, .why-icon .megy-media-slot, .feat-icon .megy-media-slot, .ps-emoji .megy-media-slot, .cert-icon .megy-media-slot, .sc-icon .megy-media-slot, .ci-icon .megy-media-slot, .social-btn .megy-media-slot { width:100%; height:100%; object-fit:contain; }
.social-btn .social-icon-img { width:22px; height:22px; object-fit:contain; }
