/*
Theme Name: Toko Fadillah
Theme URI: https://tokofadillah.com
Author: Toko Fadillah
Author URI: https://tokofadillah.com
Description: Template WordPress profesional untuk Toko Fadillah — ATK, Digital Printing & Loket Pembayaran.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fadillah
Tags: business, one-page, custom-colors, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
:root {
  --ink:        #1a1208;
  --cream:      #f5f0e8;
  --gold:       #c9972b;
  --gold-light: #e8c56a;
  --rust:       #b84c1a;
  --blue:       #1b3a6b;
  --blue-mid:   #2a5298;
  --white:      #fefcf7;
  --shadow:     rgba(26,18,8,.12);
  --radius:     4px;
  --transition: .25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1000; opacity: .5;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }

/* ═══════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════ */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.1;
}

.section-label {
  display: block;
  font-size: .7rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .75rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900; margin-bottom: 1rem;
}

.section-sub {
  font-size: 1rem; color: #6a5e4a;
  max-width: 520px; line-height: 1.7;
}

/* ═══════════════════════════════════════
   LAYOUT HELPERS
═══════════════════════════════════════ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 6rem 0; }

/* ═══════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════ */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(245,240,232,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,151,43,.25);
}

.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 2rem;
}

.site-branding .site-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 900; color: var(--ink);
  letter-spacing: -.5px;
}
.site-branding .site-title span { color: var(--gold); }
.site-branding .site-description { display: none; }

#primary-menu {
  display: flex; gap: 2rem;
}
#primary-menu li a {
  font-size: .875rem; font-weight: 500;
  letter-spacing: .03em; color: var(--ink);
}
#primary-menu li a:hover { color: var(--gold); }

.nav-cta-btn {
  background: var(--ink); color: var(--cream) !important;
  padding: .55rem 1.4rem; border-radius: var(--radius);
  font-size: .85rem; font-weight: 500;
}
.nav-cta-btn:hover { background: var(--gold) !important; color: var(--ink) !important; }

.menu-toggle {
  display: none; background: none; border: none;
  font-size: 1.5rem; cursor: pointer; color: var(--ink);
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  padding-top: 72px; overflow: hidden;
}

.hero-left {
  display: flex; flex-direction: column; justify-content: center;
  padding: 5rem 3rem 5rem 5rem;
}

.hero-badge {
  display: inline-block;
  background: var(--gold); color: var(--ink);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .35rem .85rem; border-radius: 1px;
  margin-bottom: 1.5rem;
  animation: fadeUp .6s ease both;
}

.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900; color: var(--ink); margin-bottom: 1.5rem;
  animation: fadeUp .7s .1s ease both;
}
.hero-title em { color: var(--gold); font-style: normal; }

.hero-sub {
  font-size: 1.05rem; line-height: 1.7;
  color: #5a4e3a; max-width: 420px; margin-bottom: 2.5rem;
  animation: fadeUp .7s .2s ease both;
}

.hero-btns {
  display: flex; gap: 1rem; flex-wrap: wrap;
  animation: fadeUp .7s .3s ease both;
}

.btn-primary {
  background: var(--ink); color: var(--cream);
  padding: .85rem 2rem; border-radius: var(--radius);
  font-weight: 600; font-size: .9rem;
  transition: background var(--transition), transform .15s;
}
.btn-primary:hover { background: var(--rust); color: var(--cream); transform: translateY(-2px); }

.btn-outline {
  border: 2px solid var(--ink); color: var(--ink);
  padding: .85rem 2rem; border-radius: var(--radius);
  font-weight: 600; font-size: .9rem;
  transition: background var(--transition), transform .15s;
}
.btn-outline:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }

.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3.5rem;
  animation: fadeUp .7s .4s ease both;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 900; color: var(--gold); line-height: 1;
}
.stat-label { font-size: .75rem; color: #7a6e5a; margin-top: .25rem; letter-spacing: .04em; }

.hero-right {
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.hero-right::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, var(--blue) 0%, transparent 65%),
              radial-gradient(ellipse at 80% 20%, var(--rust) 0%, transparent 50%);
  opacity: .6;
}

.hero-graphic {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 1.5rem;
  padding: 3rem; animation: fadeIn .9s .3s ease both;
}

.store-icon-wrap {
  width: 130px; height: 130px; border-radius: 50%;
  border: 3px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  background: rgba(201,151,43,.12); font-size: 4rem;
  animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(201,151,43,.4); }
  50%      { box-shadow: 0 0 0 20px rgba(201,151,43,0); }
}

.hero-store-name {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 900;
  color: var(--cream); text-align: center;
}
.hero-store-name span { color: var(--gold-light); }

.hero-tags { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; }
.hero-tag {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  color: var(--cream); font-size: .75rem;
  padding: .35rem .85rem; border-radius: 20px; letter-spacing: .04em;
}

/* ═══════════════════════════════════════
   SERVICES
═══════════════════════════════════════ */
#layanan { background: var(--white); }

.services-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 3.5rem; flex-wrap: wrap; gap: 1rem;
}

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}

.service-card {
  background: var(--cream); border: 1px solid rgba(201,151,43,.2);
  border-radius: var(--radius); padding: 2.5rem 2rem;
  position: relative; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 48px var(--shadow); }
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .3s;
}
.service-card:hover::after { transform: scaleX(1); }
.service-card.featured { background: var(--ink); color: var(--cream); border-color: var(--gold); }
.service-card.featured .service-desc { color: #b0a898; }
.service-card.featured .service-item { border-color: rgba(255,255,255,.1); color: var(--cream); }

.service-icon { font-size: 2.5rem; margin-bottom: 1.2rem; }
.service-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700; margin-bottom: .75rem;
}
.service-desc { font-size: .9rem; line-height: 1.6; color: #5a4e3a; margin-bottom: 1.5rem; }
.service-items { display: flex; flex-direction: column; gap: .5rem; }
.service-item {
  font-size: .85rem; padding: .5rem 0;
  border-bottom: 1px dashed rgba(26,18,8,.12); color: #4a3e2e;
}
.service-item::before { content: '→ '; color: var(--gold); }

/* ═══════════════════════════════════════
   KEUNGGULAN
═══════════════════════════════════════ */
#keunggulan {
  background: var(--ink); color: var(--cream);
  position: relative; overflow: hidden;
}
#keunggulan::before {
  content: '';
  position: absolute; top: -30%; right: -10%;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, var(--blue) 0%, transparent 65%);
  opacity: .4;
}

.keunggulan-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center; position: relative; z-index: 2;
}
.keunggulan-left .section-title { color: var(--cream); }
.keunggulan-left .section-sub { color: #a09080; }
.keunggulan-left .section-label { color: var(--gold-light); }

.feature-list { display: flex; flex-direction: column; gap: 1.8rem; margin-top: 2.5rem; }
.feature-item { display: flex; gap: 1.2rem; align-items: flex-start; }
.feature-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem; font-weight: 900; color: var(--gold);
  line-height: 1; flex-shrink: 0; width: 2.5rem;
}
.feature-text h4 { font-size: 1rem; font-weight: 600; margin-bottom: .3rem; }
.feature-text p { font-size: .875rem; color: #a09080; line-height: 1.6; }

.keunggulan-right { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.k-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 1.8rem 1.5rem;
  transition: background var(--transition);
}
.k-card:hover { background: rgba(255,255,255,.09); }
.k-card-icon { font-size: 1.8rem; margin-bottom: .75rem; }
.k-card-title { font-size: .95rem; font-weight: 600; margin-bottom: .3rem; }
.k-card-text { font-size: .8rem; color: #8a7a6a; line-height: 1.5; }

/* ═══════════════════════════════════════
   LOKET
═══════════════════════════════════════ */
#loket { background: var(--cream); }
.loket-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.loket-visual {
  background: var(--blue); border-radius: 6px;
  padding: 3rem 2.5rem; position: relative; overflow: hidden;
}
.loket-visual::before {
  content: ''; position: absolute; top: -50%; right: -30%;
  width: 350px; height: 350px; border-radius: 50%;
  background: var(--blue-mid); opacity: .5;
}
.loket-visual-content { position: relative; z-index: 2; }
.loket-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem; font-weight: 900;
  color: var(--cream); margin-bottom: 1.5rem;
}
.payment-list { display: flex; flex-direction: column; gap: .8rem; }
.payment-item {
  display: flex; align-items: center; gap: .85rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1);
  padding: .85rem 1.2rem; border-radius: 3px;
  color: var(--cream); font-size: .9rem;
}
.payment-icon { font-size: 1.3rem; }

.loket-info { display: flex; flex-direction: column; gap: 1.5rem; }
.info-card {
  background: var(--white); border: 1px solid rgba(201,151,43,.2);
  border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.5rem 1.5rem 1.8rem;
}
.info-card h4 { font-weight: 700; margin-bottom: .4rem; font-size: .95rem; }
.info-card p { font-size: .875rem; color: #6a5e4a; line-height: 1.6; }

/* ═══════════════════════════════════════
   BLOG / POSTS
═══════════════════════════════════════ */
#berita { background: var(--white); }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card {
  background: var(--cream); border: 1px solid rgba(201,151,43,.15);
  border-radius: var(--radius); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px var(--shadow); }
.post-thumb img { width: 100%; height: 200px; object-fit: cover; }
.post-thumb-placeholder {
  width: 100%; height: 200px; background: var(--ink);
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
}
.post-body { padding: 1.5rem; }
.post-cat {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold); margin-bottom: .5rem;
}
.post-title { font-family: 'Playfair Display', serif; font-size: 1.1rem; font-weight: 700; margin-bottom: .6rem; line-height: 1.3; }
.post-title a:hover { color: var(--gold); }
.post-excerpt { font-size: .85rem; color: #6a5e4a; line-height: 1.6; margin-bottom: 1rem; }
.post-meta { font-size: .75rem; color: #9a8e7a; }

/* ═══════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */
#kontak { background: var(--ink); color: var(--cream); text-align: center; }
#kontak .section-title { color: var(--cream); margin-bottom: .75rem; }
#kontak .section-sub { margin: 0 auto 3rem; color: #a09080; }
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; max-width: 780px; margin: 0 auto 3rem;
}
.contact-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 2rem 1.5rem;
  transition: background var(--transition), transform var(--transition);
}
.contact-card:hover { background: rgba(255,255,255,.09); transform: translateY(-4px); }
.cc-icon { font-size: 2rem; margin-bottom: .75rem; }
.contact-card h4 { font-size: .85rem; font-weight: 600; color: var(--gold-light); margin-bottom: .4rem; letter-spacing: .05em; text-transform: uppercase; }
.contact-card p { font-size: .9rem; color: #c8bfb0; line-height: 1.5; }
.jam-operasional {
  display: inline-block;
  background: rgba(201,151,43,.15); border: 1px solid var(--gold);
  color: var(--gold-light); font-size: .9rem;
  padding: .85rem 2.5rem; border-radius: 3px;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
#colophon {
  background: #100d06;
  border-top: 1px solid rgba(201,151,43,.15);
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem; padding: 4rem 0 3rem;
}
.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 900; color: var(--cream); margin-bottom: .75rem;
}
.footer-brand-name span { color: var(--gold); }
.footer-desc { font-size: .875rem; color: #6a5e4a; line-height: 1.7; max-width: 260px; margin-bottom: 1.2rem; }
.footer-socials { display: flex; gap: .75rem; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; color: var(--cream);
  transition: background var(--transition);
}
.social-link:hover { background: var(--gold); color: var(--ink); }
.footer-col h4 {
  font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul li a { font-size: .875rem; color: #6a5e4a; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 1.5rem 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; color: #4a3e2e; flex-wrap: wrap; gap: .5rem;
}

/* ═══════════════════════════════════════
   WORDPRESS CORE CLASSES
═══════════════════════════════════════ */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .85rem; color: #6a5e4a; padding-top: .5rem; }
.sticky { border-left: 3px solid var(--gold); padding-left: 1rem; }
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { text-align: center; margin: 1rem auto; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }

/* ═══════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .header-inner { padding: 1rem 1.5rem; }
  #primary-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(245,240,232,.97); padding: 1.5rem; gap: 1rem; border-bottom: 1px solid rgba(201,151,43,.2); }
  #primary-menu.open { display: flex; }
  .menu-toggle { display: block; }
  #hero { grid-template-columns: 1fr; }
  .hero-right { min-height: 350px; }
  .hero-left { padding: 3rem 1.5rem; }
  section { padding: 4rem 0; }
  .services-grid, .posts-grid { grid-template-columns: 1fr; }
  .keunggulan-grid, .loket-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .keunggulan-right { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 0 2rem; }
  .footer-bottom { justify-content: center; text-align: center; }
}
