/* Greetings - tema ulang tahun ceria, diadaptasi dari "Greetings Birthday Wishes Email Templates" */
:root {
    --gr-teal: #00c397;
    --gr-orange: #ff6d3b;
    --gr-pink: #fff4f8;
    --gr-grey: #f4f4f4;
    --gr-dark: #333;
    --gr-text: #666;
    --gr-hand: "Handlee", cursive;
    --gr-sans: "Open Sans", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--gr-sans); font-size: 15px; line-height: 1.7; color: var(--gr-text); letter-spacing: .3px;
    background: #fdeff4 url('../img/confetti.svg') repeat; }
img { max-width: 100%; display: block; }
a { color: var(--gr-teal); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--gr-hand); font-weight: 400; color: var(--gr-dark); line-height: 1.25; }
p { margin: 0 0 1em; }

/* Kartu "email" di tengah */
.gr-page { max-width: 720px; margin: 0 auto; background: #fff; box-shadow: 0 10px 60px rgba(214, 100, 140, .18); overflow: hidden; }
@media (min-width: 760px) { .gr-page { margin: 40px auto; border-radius: 22px; } }
.gr-pad { padding: 50px 50px; }
.gr-pink { background: var(--gr-pink); }
.gr-greybg { background: var(--gr-grey); }
.text-center { text-align: center; }

/* Baris atas */
.gr-topbar { background: #f0f0f0; padding: 8px 50px; text-align: right; font-size: 13px; letter-spacing: 1px; color: #555; }
.gr-header { padding: 30px 50px 0; text-align: center; }
.gr-logo { width: 90px; margin: 0 auto 8px; }
.gr-logo-name { font-family: var(--gr-hand); font-size: 26px; color: var(--gr-teal); }
.gr-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #ccc; font-size: 14px; letter-spacing: 1px; color: #333; }
.gr-menu span, .gr-menu a { display: inline-flex; align-items: center; gap: 8px; color: #333; }
.gr-menu svg { width: 16px; height: 16px; color: var(--gr-teal); }

/* Judul */
.gr-title { font-size: 40px; color: var(--gr-teal); text-align: center; }
.gr-sub { text-align: center; font-style: italic; margin: 6px 0 26px; }
.gr-h2 { font-size: 38px; text-align: center; margin-bottom: 26px; }

/* Tombol pil */
.gr-btn { display: inline-block; padding: 12px 26px; border-radius: 30px; background: var(--gr-teal); color: #fff; font-family: var(--gr-sans); font-size: 16px; font-weight: 700; letter-spacing: .5px; border: 0; cursor: pointer; transition: transform .25s, background .25s; }
.gr-btn:hover { transform: translateY(-2px); background: #00ad86; color: #fff; }
.gr-btn.is-sm { padding: 8px 18px; font-size: 13px; text-transform: uppercase; }
.gr-btn.is-orange { background: var(--gr-orange); }
.gr-btn.is-orange:hover { background: #f35a26; }

/* Sampul */
.gr-cover { display: flex; align-items: center; justify-content: center; padding: 20px; background: #fdeff4 url('../img/confetti.svg') repeat; text-align: center; overflow-y: auto; }
.gr-cover-card { position: relative; width: 100%; max-width: 440px; background: #fff; border-radius: 24px; padding: 70px 30px 36px; box-shadow: 0 16px 60px rgba(214, 100, 140, .25); }
.gr-cover-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 52px; background: url('../img/bunting.svg') center top / 300px 52px repeat-x; border-radius: 24px 24px 0 0; }
.gr-cover-photo { width: 150px; height: 150px; margin: 0 auto 10px; border-radius: 50%; object-fit: cover; border: 6px solid var(--gr-pink); box-shadow: 0 0 0 3px var(--gr-teal); }
.gr-cover .kicker { font-family: var(--gr-hand); font-size: 22px; color: var(--gr-orange); }
.gr-cover h1 { font-size: 50px; color: var(--gr-dark); word-wrap: break-word; }
.gr-date-box { display: inline-block; margin: 12px 0 0; padding: 8px 14px; border: 1px solid var(--gr-dark); border-radius: 4px; font-size: 13px; font-weight: 700; letter-spacing: .5px; color: var(--gr-dark); }
.gr-guest { margin: 22px 0; padding: 14px; background: var(--gr-pink); border-radius: 14px; }
.gr-guest small { display: block; font-size: 12px; letter-spacing: .5px; }
.gr-guest strong { display: block; font-family: var(--gr-hand); font-size: 26px; font-weight: 400; color: var(--gr-teal); }

/* Hero */
.gr-hero { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 20px; padding: 60px 40px 50px; background: linear-gradient(160deg, #fff 0%, #fff4f8 100%); overflow: hidden; }
.gr-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 52px; background: url('../img/bunting.svg') left top / 300px 52px repeat-x; }
.gr-hero-text { text-align: center; position: relative; z-index: 1; }
.gr-hero-text .hb { font-size: 36px; color: var(--gr-dark); }
.gr-hero-text .to { font-size: 30px; color: var(--gr-dark); }
.gr-hero-text h1 { font-size: 58px; line-height: 1.1; color: var(--gr-dark); word-wrap: break-word; animation: gr-pop 1s cubic-bezier(.2, 1.6, .4, 1) both; }
.gr-hero-photo { position: relative; }
.gr-hero-photo .ph { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; border: 8px solid #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.gr-hero-photo .balloons { position: absolute; width: 44%; right: -8%; top: -18%; animation: gr-float 5s ease-in-out infinite; }
.gr-hero-photo .cake { position: absolute; width: 38%; left: -10%; bottom: -8%; }
@keyframes gr-float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
@keyframes gr-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

/* Hitung mundur */
.gr-cd { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 24px; }
.gr-cd div { width: 92px; padding: 12px 0 8px; border-radius: 18px; background: #fff; box-shadow: 0 6px 18px rgba(0, 195, 151, .15); border-bottom: 4px solid var(--gr-teal); }
.gr-cd div:nth-child(2) { border-color: var(--gr-orange); }
.gr-cd div:nth-child(3) { border-color: #ffc94a; }
.gr-cd div:nth-child(4) { border-color: #ff8fb1; }
.gr-cd b { display: block; font-family: var(--gr-hand); font-size: 38px; font-weight: 400; line-height: 1.1; color: var(--gr-dark); }
.gr-cd span { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }

/* Salam */
.gr-greet .lead { font-style: italic; font-size: 17px; color: #444; }
.gr-greet .quote { margin: 20px auto 0; max-width: 540px; font-style: italic; }
.gr-greet .quote cite { display: block; font-style: normal; color: var(--gr-teal); font-weight: 600; margin-top: 4px; }
.gr-signs { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-family: var(--gr-hand); font-size: 24px; color: var(--gr-dark); margin-top: 16px; }

/* Tokoh - kartu profil gaya "employee wishes" */
.gr-hosts { display: grid; gap: 30px; }
.gr-host { display: grid; grid-template-columns: 1fr 190px; gap: 26px; align-items: center; }
.gr-host:nth-child(even) { grid-template-columns: 190px 1fr; }
.gr-host:nth-child(even) .gr-host-photo { order: -1; }
.gr-host-info { text-align: right; }
.gr-host:nth-child(even) .gr-host-info { text-align: left; }
.gr-host h3 { font-size: 30px; }
.gr-host .role { display: inline-block; margin: 4px 0 10px; padding: 2px 12px; border-radius: 20px; background: var(--gr-teal); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.gr-host p { margin: 0 0 4px; }
.gr-host .parents { color: var(--gr-dark); font-weight: 600; }
.gr-host-photo img { width: 190px; height: 190px; border-radius: 50%; object-fit: cover; border: 6px solid var(--gr-pink); box-shadow: 0 0 0 3px var(--gr-orange); }
.gr-host:nth-child(even) .gr-host-photo img { box-shadow: 0 0 0 3px var(--gr-teal); }
.gr-ig { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--gr-orange); font-weight: 600; }
.gr-ig svg { width: 16px; height: 16px; }
.gr-hosts.is-single .gr-host { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.gr-hosts.is-single .gr-host-info { text-align: center; }
.gr-hosts.is-single .gr-host-photo { order: -1; }
.gr-hosts.is-single .gr-host-photo img { width: 220px; height: 220px; }

/* Acara - gaya "Top Gifts" */
.gr-event { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; margin-bottom: 34px; }
.gr-event:last-child { margin-bottom: 0; }
.gr-event-img { aspect-ratio: 1; border-radius: 22px; background: #eee center/cover no-repeat; position: relative; }
.gr-event-img .badge { position: absolute; left: 14px; top: 14px; width: 54px; height: 54px; border-radius: 50%; background: var(--gr-orange); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-weight: 700; line-height: 1; font-size: 20px; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.gr-event-img .badge small { font-size: 10px; text-transform: uppercase; margin-top: 2px; }
.gr-event-body { border-left: 2px solid var(--gr-teal); padding: 6px 0 6px 18px; }
.gr-event-body h3 { font-size: 28px; }
.gr-event-body .when { color: var(--gr-orange); font-weight: 700; font-size: 16px; margin: 4px 0 8px; }
.gr-event-body .venue { color: var(--gr-dark); font-weight: 600; margin: 0; }
.gr-live { margin-top: 36px; padding: 26px; border-radius: 20px; background: var(--gr-pink); text-align: center; }
.gr-live h3 { color: var(--gr-teal); font-size: 28px; }

/* Cerita - gaya "Popular Gifts" */
.gr-stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gr-story { text-align: center; }
.gr-story img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; margin-bottom: 12px; }
.gr-story h4 { font-size: 22px; }
.gr-story .date { color: var(--gr-orange); font-weight: 700; font-size: 14px; }
.gr-story p { font-size: 14px; margin-top: 6px; }

/* Galeri */
.gr-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gr-gallery a { display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; }
.gr-gallery a:nth-child(3n+2) { transform: rotate(2deg); }
.gr-gallery a:nth-child(3n) { transform: rotate(-2deg); }
.gr-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gr-gallery a:hover img { transform: scale(1.1); }
.gr-video { position: relative; padding-top: 56.25%; margin-top: 24px; border-radius: 18px; overflow: hidden; }
.gr-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Hadiah - gaya "Celebrate / destinasi" */
.gr-gifts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.gr-gift { text-align: center; background: #fff; border-radius: 20px; padding: 24px 16px; box-shadow: 0 6px 22px rgba(0, 0, 0, .06); }
.gr-gift .ic { width: 54px; height: 54px; margin: 0 auto 8px; border-radius: 50%; background: var(--gr-pink); color: var(--gr-orange); display: flex; align-items: center; justify-content: center; }
.gr-gift .ic svg { width: 26px; height: 26px; }
.gr-gift h4 { font-size: 22px; }
.gr-gift .no { display: block; color: var(--gr-orange); font-weight: 700; font-size: 19px; letter-spacing: 1px; word-break: break-all; margin: 4px 0; }
.gr-gift p { font-size: 14px; }

/* RSVP */
.inv-field { margin-bottom: 14px; text-align: left; }
.inv-label { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; color: var(--gr-dark); letter-spacing: .5px; }
.inv-input { width: 100%; padding: 12px 18px; border: 2px solid #f3d6e1; border-radius: 26px; background: #fff; font-family: var(--gr-sans); font-size: 15px; color: var(--gr-dark); outline: none; transition: border-color .2s; }
textarea.inv-input { border-radius: 18px; min-height: 110px; resize: vertical; }
.inv-input:focus { border-color: var(--gr-teal); }
.inv-btn { display: block; margin: 20px auto 0; padding: 12px 38px; border: 0; border-radius: 30px; background: var(--gr-teal); color: #fff; font-family: var(--gr-sans); font-size: 16px; font-weight: 700; cursor: pointer; transition: transform .25s; }
.inv-btn:hover { transform: translateY(-2px); }
.gr-rsvp-form { max-width: 480px; margin: 0 auto; }
.gr-wishes { max-height: 420px; overflow-y: auto; margin-top: 34px; padding: 4px; }
.gr-wish { display: flex; gap: 14px; background: #fff; border-radius: 18px; padding: 16px; margin-bottom: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, .04); }
.gr-wish .av { flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--gr-orange); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--gr-hand); font-size: 24px; }
.gr-wish:nth-child(even) .av { background: var(--gr-teal); }
.gr-wish strong { font-family: var(--gr-hand); font-weight: 400; font-size: 20px; color: var(--gr-dark); }
.gr-wish small { color: var(--gr-teal); font-weight: 600; }
.gr-wish p { margin: 2px 0; }
.gr-wish time { font-size: 12px; color: #999; }

/* Penutup */
.gr-closing .lead { font-style: italic; }
.gr-signoff { text-align: right; margin-top: 20px; }
.gr-signoff span { display: block; color: var(--gr-dark); }
.gr-signoff strong { font-family: var(--gr-hand); font-weight: 400; font-size: 24px; color: var(--gr-teal); }
.gr-footer { padding: 40px 30px; text-align: center; }
.gr-social { display: flex; justify-content: center; gap: 12px; margin-bottom: 18px; }
.gr-social a { width: 34px; height: 34px; border-radius: 50%; background: var(--gr-teal); color: #fff; display: flex; align-items: center; justify-content: center; }
.gr-social a:nth-child(even) { background: var(--gr-orange); }
.gr-social svg { width: 16px; height: 16px; }
.gr-footer .addr { font-size: 15px; letter-spacing: 1px; color: #555; }
.gr-footer .copy { font-size: 12px; letter-spacing: 1px; color: #555; margin: 0; }
.gr-foot-cake { width: 90px; margin: 0 auto 14px; }

@media (max-width: 640px) {
    .gr-pad { padding: 44px 22px; }
    .gr-topbar { padding: 8px 22px; }
    .gr-header { padding: 26px 22px 0; }
    .gr-hero { grid-template-columns: 1fr; padding: 70px 26px 40px; }
    .gr-hero-photo { width: 78%; margin: 10px auto 20px; order: -1; }
    .gr-hero-text h1 { font-size: 50px; }
    .gr-title { font-size: 34px; }
    .gr-h2 { font-size: 32px; }
    .gr-cd { gap: 8px; }
    .gr-cd div { width: calc(25% - 6px); min-width: 66px; }
    .gr-cd b { font-size: 30px; }
    .gr-host, .gr-host:nth-child(even) { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .gr-host-info, .gr-host:nth-child(even) .gr-host-info { text-align: center; }
    .gr-host-photo { order: -1; }
    .gr-event { grid-template-columns: 1fr; }
    .gr-event-img { aspect-ratio: 16 / 10; }
    .gr-stories { grid-template-columns: 1fr 1fr; }
    .gr-gallery { grid-template-columns: 1fr 1fr; }
}
