:root 
{
    --rustic-bg: #f4efe9;
    /* --rustic-bg: #2e4a2b; */
    --rustic-green: #6b705c;
    --rustic-brown: #8d6e63;
    --rustic-accent: #cb997e;
    --rustic-dark: #3a2f28;
    
    /*colors*/
    --weading-bg: #1c2e1a;
    --ivory: #faf6ec;
    --golden: #c9a84c;


    /*Hero pannel image*/
    --panel-size: 310% 130%;   /* 300% = 3 panels wide, adjust if image crops oddly */
    --v-pos: 88%;
    --left-pos: 1%;
    --center-pos: 45%;
    --right-pos: 96%;
}

html, body {
    margin: 0 !important;
    padding: 0;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    overflow-y: auto;
    font-family: 'Georgia', serif;
    background-color: var(--weading-bg);
    color: var(--rustic-dark);
    box-sizing: border-box;
}
html {
    overflow-x: hidden;
}
body {
    overflow-x: hidden;
}
* {
    box-sizing: border-box;
}
img, sgv {
    max-width: 100%;
    display: block;
}
.fs-head{
    font-size: 2rem;
}
.fs-subhead{
    font-size: 1.5rem;
}
.app {
  width: 100%;
  max-width: 414px;   /* pick your phone width */
}
.ivory-txt
{
    color: var(--ivory);
}
.gold-txt
{
    color: var(--golden);
}
.bg-green
{
    background-color: var(--weading-bg);
}
.bg-ivory
{
    background-color: var(--ivory);
}
.sobre{
    max-width: 85%;
    margin: auto;
    height: auto;
}

.height-80
{
    height: 80svh !important; /* small  — locks to viewport WITH toolbars visible (smallest) */
}
.height-95
{
    height: 95svh !important; /* small  — locks to viewport WITH toolbars visible (smallest) */
}

.section-title {
    color: var(--rustic-green);
    letter-spacing: 1px;
}

.btn-rustic {
    background-color: var(--rustic-green);
    color: white;
    border: none;
}

.btn-rustic:hover {
    background-color: var(--rustic-brown);
}

.gallery img {
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.05);
}

footer {
    color: white;
}

  /* Panels */
.panel {
    min-width: 0;
    width: 100%;
    min-height: 75svh; /* small  — locks to viewport WITH toolbars visible (smallest) */
    flex: 1;
    background-image: var(--hero-img);
    background-size: cover;
    background-repeat: no-repeat;
    animation: slideANDfadeIn 2s ease-out forwards;
  }
/*** Image splitt code -> ***/

/* Background alignment */
.panel.left { background-position: var(--left-pos) var(--v-pos); }

.panel.center { background-position: var(--center-pos) var(--v-pos); }

.panel.right { background-position: var(--right-pos) var(--v-pos); }

/*** Image splitt code <- ***/

/*** Animation code -> ***/
/* start positions */
.panel-left { transform: translateY(15%); }
.panel-center { transform: translateY(-15%); }
.panel-right { transform: translateY(15%); }
.txt-top { transform : translateX(-20%); } 
.txt-bottom { transform : translateX(25%); } 
/* stagger */
.panel-left  { animation-delay: 0s; }
.panel-center{ animation-delay: 0.15s; }
.panel-right { animation-delay: 0s; }
/* .txt-top { animation-delay: 0s; } 
.txt-bottom { animation-delay: 0s;}  */

@keyframes slideANDfadeIn 
{
    from { opacity: 0; }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}
@keyframes textSlideIn 
{
    to
    {
        transform: translateX(0) translateY(0);
    }
}
@keyframes appearAndResize 
{
    0% {
        opacity: 0;
        font-size: 0.5rem;
        letter-spacing: -5px;
    }
    100% {
        opacity: 1;
        font-size: 1rem;
        letter-spacing: normal;
    }
}

.animation { animation: slideANDfadeIn 2s ease-out forwards; }
.txt-animation { animation: textSlideIn 2s ease-out forwards; }
.date-amimation 
{
     animation: appearAndResize 3s ease-out forwards;
     opacity: 0; /* start hidden */
}
/*** Animation code -> ***/

#bg-pannel
{
     /* left: 3vw;  */
}
#txt-pannel{ 
    width: 100%;
    font-size: 3rem;
    top: 20vh;
    box-sizing: border-box;
}
#date-pannel
{
    width: 100%;
    bottom: 9vh;
    font-size: 2rem;
    box-sizing: border-box;
}

.cj-seal{
    font-family: "Imperial Script", cursive;
    font-weight: 400;
    font-style: normal;
}
.cj-txt-m
{
    font-size: 0.9rem;
}
.numberFont
{
    font-family: "Cormorant", serif;
    font-weight: 400;
}
.bodoni-moda-sc-txt 
{
    font-family: "Bodoni Moda SC", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}
/*countdown style*/
@keyframes fadeUp
{
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.countdown 
{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    margin: 1.8rem 0 2rem;
    animation: fadeUp 1.4s 0.55s cubic-bezier(0.22,1,0.36,1) both;
}
.unit 
{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}
.unit-value 
{
    /* font-family: 'Cinzel', serif; */
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 600;
    color: var(--rustic-green);
    line-height: 1;
    min-width: 2ch;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
.unit-value.tick 
{
    transform: scale(1.18);
    color: var(--golden);
}

.unit-label {
    font-family: 'Cinzel', serif;
    font-size: 0.55rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    /* color: var(--rustic-green); */
}
.typewriter 
{   
    overflow: hidden;
    white-space: nowrap;
    max-width: 0;
    margin-bottom: 0;
    /* NO opacity: 0 here — let width handle visibility */
}
.typewriter.animate 
{
    animation: typing 2.5s steps(30) forwards,  blink 0.6s step-end infinite;
}
@keyframes typing { 
    from { max-width: 0; }
    to   { max-width: 100%; } 
}
@keyframes blink  { 50% { border-color: transparent; } }

.reveal-line
{
    display: block;
    overflow: hidden;
}
.reveal-line span
{
    display: block;
    transform: translateY(-100%); /* start below - hidden by overflow */
    opacity: 0;
    /* transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease; */
    transition: transform 2.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.0s ease;
}
/* fires when JS adds .visible to the parent */
.reveal-line.visible span
{
    transform: translateY(0);
    opacity: 1;
}
.reveal-left,
.reveal-right{
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
}
.reveal-left { transform: translateX(-80px); }
.reveal-right { transform: translateX(80px); }
.reveal-left.visible,
.reveal-right.visible {
    transform: translateX(0);
    opacity: 1;
}

/**********************/
/****** IMAGE CSS *****/
/**********************/
.curtain-wrapper {
  position: relative;
  overflow: hidden;
  max-width: 900px;
}

/* the overlay (the "curtain") */
.curtain {
  position: absolute;
  inset: 0;
  background: var(--rustic-bg);
  transform: translateY(0%);
  transition: transform 1.2s ease-in-out;
  /* transition: transform 2.5s cubic-bezier(0.22, 1, 0.36, 1); */
  /* transition-delay: 0.3s; */
  z-index: 2;
}

/* when visible → slide away */
.curtain-wrapper.revealed .curtain {
  transform: translateY(100%);
}

/* optional: image slight zoom effect */
.curtain-wrapper img {
  transition: transform 1.2s ease;
}

.curtain-wrapper.revealed img {
  transform: scale(1.05);
}
.zoom-image {
 /* width: 400px;*/
    transform: scale(1);
}
.zoom-image.go-zoom {
    animation: zoomOnce 3s ease-out forwards;
}

@keyframes zoomOnce {
    from {
      transform: scale(1);
    }

    to {
      transform: scale(1.12);
    }
}
.wi-card{
    position: relative;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}
/* Bootstrap's shadow-md utility doesn't exist by default, so we
 define the "on desktop" shadow ourselves and gate it the Bootstrap way */
@media (min-width: 768px){
    .wi-invite{ padding: 60px 0; }
    .shadow-md{
      box-shadow:
        0 0 0 1px rgba(205,161,90,0.15),
        0 40px 80px -20px rgba(0,0,0,0.7) !important;
    }
    .wi-card{ 
        width: 390px;
        /* max-width: 100%; */
    }
    .phone-shell {
        height: 95vh;
    }
    .phone-image { position:relative !important; }
}