@font-face {
  font-family: 'Distant Stroke';
  src: url('fonts/Distant_Stroke_Medium.otf') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Yu Mincho';
  src: url('fonts/yumin.ttf') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

body {
  margin: 0;
  font-family: 'Yu Mincho', serif;
  font-size: 1.25rem;
  color: #2d2d2d;
  background-image: url('background.webp');
  background-size: 900px;
  background-attachment: fixed;
  background-color: #f9f8f4;
  scroll-behavior: smooth;
  text-align: left;
}

/* Sections */
section:nth-of-type(1) { background: transparent; }
section:nth-of-type(2) { background: #dce7f1; }
section:nth-of-type(3) { background: transparent; }
section:nth-of-type(4) { background: #dce7f1; }
section:nth-of-type(5) { background: transparent; }

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 0;
  z-index: 1000;
  transition: all 0.3s ease;
}
nav.scrolled { background: rgba(255, 255, 255, 0.9); padding: 8px 0; }
nav ul { list-style: none; display: flex; gap: 40px; margin: 0; padding: 0; }
nav a { text-decoration: none; color: #99b8d6; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; font-size: 0.95rem; transition: color 0.3s ease; }
nav a:hover { color: #dce7f1; }
a { color: #99b8d6; font-weight: bold; }

/* Header */
header {
  text-align: center;
  margin-top: 140px;
  background: rgba(255, 255, 255, 0.75);
  display: inline-block;
  padding: 20px 40px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.crest {
  width: 220px; /* default for laptop/desktop */
}

/* Headings */
h1,h2 { font-family: 'Distant Stroke', sans-serif; font-weight: normal; color: #99b8d6; margin: 30px 0; }
h1 { font-size: 8rem; }
h2 { font-size: 4rem; }
h3 { font-family: 'Distant Stroke', sans-serif; font-weight: normal; color: #2d2d2d; margin: 30px 0; }
h4,h5 { font-variant: small-caps; font-weight: normal; font-size: 1.5rem; color: #2d2d2d; margin: 5px 0; }

/* RSVP Card */
.rsvp-card { max-width: 700px; margin: 40px auto; background: rgba(255,255,255,0.7); border-radius: 16px; overflow: hidden; box-shadow: 0 6px 14px rgba(0,0,0,0.08); text-align: center; }
.rsvp-image { width: 100%; height: 220px; background-image: url("thai.webp"); background-size: cover; background-position: center; }
.rsvp-content { padding: 30px 40px; font-size: 1.2rem; color: #2d2d2d; }
.rsvp-button { display: inline-block; padding: 14px 28px; background: #99b8d6; color: white; font-size: 1.1rem; border-radius: 50px; margin-top: 20px; text-decoration: none; transition: 0.3s ease; }
.rsvp-button:hover { background: #7da2be; }

/* Presentes Card */
.presentes-card { max-width: 700px; margin: 40px auto; background: rgba(255,255,255,0.7); border-radius: 16px; overflow: hidden; box-shadow: 0 6px 14px rgba(0,0,0,0.08); text-align: center; }
.presentes-image { width: 100%; height: 220px; background-image: url("thai.webp"); background-size: cover; background-position: center; }
.presentes-content { padding: 30px 40px; font-size: 1.2rem; color: #2d2d2d; }
.presentes-button { display: inline-block; padding: 14px 28px; background: #99b8d6; color: white; font-size: 1.1rem; border-radius: 50px; margin-top: 20px; text-decoration: none; transition: 0.3s ease; }
.presentes-button:hover { background: #7da2be; }

/* Sections Padding */
section { padding: 30px 50px; text-align: center; }

/* Palacio / Historia */
.historia-container { display: flex; align-items: flex-start; gap: 40px; max-width: 1200px; margin: auto; flex-wrap: wrap; }
.palacio-photo-wrapper { position: relative; width: 100%; max-width: 420px; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 14px rgba(0,0,0,0.1); }
.palacio-photo { width: 100%; height: auto; display: block; }
.historia-text { flex: 1; min-width: 280px; text-align: left; }

/* Contact Cards */
.contact-card { display: flex; justify-content: center; align-items: center; width: 600px; gap: 60px; flex-wrap: wrap; background: rgba(255,255,255,0.6); border-radius: 16px; padding: 40px 20px; box-shadow: 0 6px 14px rgba(0,0,0,0.08);  margin: 0 auto; }
.contact { text-align: center; }
.contact h3 { font-family: 'Yu Mincho', serif; font-size: 1.5rem; margin-bottom: 10px; color: #3a3a3a; }
.contact p { margin: 4px 0; font-size: 1.1rem; }
.contact a { text-decoration: none; color: #4b4b4b; transition: color 0.3s ease; }
.contact a:hover { color: #5c6bc0; }


/* Divider */
.divider { width: 1px; height: 80px; background-color: rgba(0,0,0,0.1); }

/* Wedding Cards */
.wedding-elegant-container { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 40px; }
.wedding-card { background: rgba(255,255,255,0.65); padding: 30px 28px; border-radius: 16px; width: 320px; box-shadow: 0 6px 14px rgba(0,0,0,0.08); backdrop-filter: blur(6px); text-align: center; }
.wedding-card h3 { font-size: 22px; margin-bottom: 15px; font-weight: 600; color: #2f2f2f; }
.wedding-card ul { list-style: none; padding: 0; margin: 0; }
.wedding-card ul li { margin: 6px 0; font-size: 16px; }
.wedding-button { display: inline-block; margin-top: 15px; padding: 14px 28px; background: #99b8d6; border-radius: 50px; text-decoration: none; font-size: 1.1rem; box-shadow: 0 4px 10px rgba(0,0,0,0.06); transition: 0.3s; color: #333; }
.wedding-button:hover { transform: scale(1.05); }
.wedding-icon-wrapper { display: flex; justify-content: center; margin-bottom: 15px; }
.wedding-icon { width: 70px; height: 70px; object-fit: cover; border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.12); filter: grayscale(100%); transition: transform 0.3s ease, filter 0.3s ease; }
.wedding-icon:hover { transform: scale(1.05); filter: brightness(1.05); }

/* Footer */
footer { margin-top: 50px; text-align: center; font-size: 0.9rem; color: #888; background: rgba(255,255,255,0.7); display: inline-block; padding: 10px 20px; border-radius: 10px; }


































html, body {
  overflow-x: hidden;
}

.menu-toggle {	
	display: none;
}


/* Mobile adjustments */
@media (max-width: 768px) {
  body {
    font-size: 1rem;
    text-align: center;
	background-size: 500px;   /* smaller, cleaner texture */
    background-attachment: scroll; /* safer for mobile */
  }

  nav {
    justify-content: space-between; /* toggle left, menu right */
	padding: 5px 14px;
	
	box-sizing: border-box;
    max-width: 100vw;

  }
  
  nav ul {
    flex-direction: column;
    gap: 12px !important;           /* was ~20px */
    position: absolute;
    top: 48px; /* sits just below the bar */
    left: 0;
    width: 100%;
    padding: 10px 0;
    display: none;
    align-items: center;
    background: rgba(255,255,255,0.97);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  }
  
  nav ul.show {
    display: flex;
	padding: 0px 0;
  }
  
  nav a {
	font-size: 1rem;
    padding: 4px 0;
  }

  header {
    margin-top: 100px;
    padding: 15px 20px;
  }

  h1 {
	font-size: 3.2rem;
    margin: 20px 0 10px;
  }
  
  h2 {
	font-size: 2.4rem;
    margin: 25px 0 15px;
  }
  
  h3 {
	font-size: 1.6rem;
	}
	
  h4, h5 {
    font-size: 1.2rem;
  }

  section {
	padding: 25px 15px;
  }

  /* Wedding cards stack vertically */
  .wedding-elegant-container {
    flex-direction: column;
    align-items: center;
	gap: 20px;
  }
  .wedding-card {
    width: 95%;
    padding: 25px 10px;
    margin: 0 auto;
    margin-bottom: 15px;
  }
  
  .wedding-icon {
    width: 60px;
    height: 60px;
  }

  .palacio-photo {
    width: 100%;
    border-radius: 12px; /* optional */
  }
  
  .palacio-photo-wrapper {
    width: 100%;
    margin-bottom: 10px;
	max-width: 240px; /* was ~420px */
    margin: 0 auto;
  }
  
  /* Historia section */
  .historia-container {
    flex-direction: column;
    gap: 20px;
  }
  .historia-text {
    text-align: center;
    padding: 0 10px;
  }

  /* Contact cards */
  .contact-card {
	width: 95%;
    flex-direction: column;
    gap: 15px;
    padding: 25px 10px;
  }
  .divider {
    display: none;
  }

  /* Map */
  .map-container iframe {
    height: 300px;
  }


  /* Hamburger menu styles */
  .menu-toggle {	
	display: block;
    font-size: 1.4rem;
    color: #99b8d6;
    cursor: pointer;
  }


  /* Fix giant top margin on home section */
  #home header {
    margin-top: 40px !important;
    padding: 10px 15px;
  }
  

  /* Reduce paragraph spacing */
  p {
    font-size: 1rem;
    line-height: 1.55;
	margin: 8px 0 14px;
    margin-bottom: 10px;
  }


  /* Historia section spacing */
  .historia-text {
    text-align: center;
    padding: 0 10px;
  }


  /* Reduce spacing on footer */
  footer {
	margin-top: 25px;
    padding: 10px 18px;
    font-size: 0.95rem;
  }

  /* HOME HEADER / HERO */
  #home header {
    margin-top: 50px !important;
    padding: 10px 15px;
  }

  .crest {
    width: 140px;
  }

  /* RSVP */
  .rsvp-card {
    width: 95%;
  }

  .rsvp-content {
    padding: 20px 15px;
  }

  .rsvp-image {
    height: 180px;
  }

  .divider {
    display: none;
  }

  #contactos h1 {
    font-size: 3.6rem;
    margin-top: -5px;       /* moves higher */
    margin-bottom: 25px;
  }
  
  .contact p {
    font-size: 1rem;
  }

  /* Bigger "Confirmações" title */
  #confirmacoes h2 {
    font-size: 3.2rem;
    margin-top: 10px;
    margin-bottom: 20px;
  }
  
  /* Bigger "Presentes" title */
  #presentes h2 {
    font-size: 3.2rem;
    margin-top: 10px;
    margin-bottom: 20px;
  }

  /* Bigger "A Nossa História" title */
  #historia h2 {
    font-size: 3.2rem;
    margin-top: 10px;
    margin-bottom: 20px;
  }
  
  #casamento h2 {
    font-size: 3.2rem;
    margin-top: 10px;
    margin-bottom: 20px;
  }
  
  #contactos h2 {
    font-size: 3.2rem;
    margin-top: 5px;
    margin-bottom: 20px;
  }
}


