/*
Theme Name: Marriage Biodata Maker
Theme URI: https://yoursite.com
Author: Your Name
Author URI: https://yoursite.com
Description: The Ultimate Marriage Biodata Maker - Beautifully designed WordPress theme for creating marriage biodata.
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: biodata-maker
Tags: marriage, biodata, wedding, indian, custom
*/

/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Nunito', sans-serif; color: #3a3a3a; background: #fff; }

/* ===== NAVBAR ===== */
nav {
  background: #fff;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  position: sticky; top: 0; z-index: 100;
}
.nav-logo { font-family: 'Playfair Display', serif; font-size: 22px; color: #b5651d; font-weight: 600; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { text-decoration: none; color: #555; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #b5651d; }
.nav-btn {
  background: #4a8c8c;
  color: #fff;
  border: none;
  padding: 9px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: background 0.2s;
}
.nav-btn:hover { background: #3a7070; }

/* ===== HERO SECTION ===== */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
  background: linear-gradient(135deg, #f9f0e8 60%, #f3e8d8 100%);
  position: relative;
  overflow: hidden;
}
.hero-left {
  padding: 60px 50px 60px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-left h1 {
  font-family: 'Playfair Display', serif;
  font-size: 42px;
  color: #b5651d;
  line-height: 1.2;
  margin-bottom: 18px;
  font-weight: 600;
}
.hero-left p {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 30px;
  max-width: 380px;
}
.hero-btn {
  background: #4a8c8c;
  color: #fff;
  border: none;
  padding: 13px 30px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  display: inline-block;
  width: fit-content;
  transition: background 0.2s, transform 0.1s;
}
.hero-btn:hover { background: #3a7070; transform: translateY(-1px); }
.hero-right {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #e8c8a8 0%, #d4a070 100%);
  overflow: hidden;
}
.hero-right::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  top: -80px; right: -80px;
}
.envelope-mock {
  width: 220px;
  background: #fff9f4;
  border-radius: 4px;
  padding: 30px 25px 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.18);
  text-align: center;
  position: relative;
  z-index: 2;
}
.envelope-mock::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d4a070, #b5651d, #d4a070);
}
.envelope-initials {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  color: #b5651d;
  font-style: italic;
  letter-spacing: 4px;
  margin-bottom: 8px;
}
.envelope-sub {
  font-size: 11px;
  color: #aaa;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* ===== TEMPLATES SECTION ===== */
.templates-section {
  padding: 70px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: #fff;
}
.templates-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  color: #2a2a2a;
  margin-bottom: 12px;
  line-height: 1.3;
}
.divider-ornament {
  color: #b5651d;
  font-size: 22px;
  margin-bottom: 20px;
  letter-spacing: 4px;
}
.templates-text p {
  color: #666;
  font-size: 14.5px;
  line-height: 1.8;
  margin-bottom: 28px;
}
.outline-btn {
  background: transparent;
  color: #4a8c8c;
  border: 2px solid #4a8c8c;
  padding: 11px 26px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: all 0.2s;
}
.outline-btn:hover { background: #4a8c8c; color: #fff; }
.templates-preview {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: center;
}
.template-card {
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
  flex: 1;
  max-width: 180px;
}
.template-card-pink {
  background: linear-gradient(160deg, #fdf0f4 0%, #f7d6e4 100%);
  padding: 20px 14px;
  text-align: center;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.template-card-pink .name-script {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #b5651d;
  font-style: italic;
  line-height: 1.2;
}
.template-card-pink .amp {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  color: #c9956b;
  margin: 4px 0;
}
.flower-decor { font-size: 26px; margin-bottom: 6px; }
.template-card-red {
  background: linear-gradient(160deg, #8b1a1a 0%, #c41e3a 100%);
  padding: 16px 12px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.red-card-title {
  color: #ffd700;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: 1px;
}
.red-card-row {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: rgba(255,255,255,0.85);
  padding: 2px 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.15);
}
.red-card-row span:first-child { color: #ffd700; font-weight: 600; }

/* ===== SLIDER DOTS ===== */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.dot-btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid #c9956b;
  background: transparent;
  color: #c9956b;
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.dot-btn:hover { background: #c9956b; color: #fff; }

/* ===== BIODATA FORM SECTION ===== */
.biodata-section {
  background: #f8f4ef;
  padding: 60px 60px 80px;
}
.biodata-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  text-align: center;
  color: #2a2a2a;
  margin-bottom: 6px;
}
.ornament-center {
  text-align: center;
  color: #b5651d;
  font-size: 20px;
  margin-bottom: 32px;
  letter-spacing: 6px;
}

/* ===== TABS ===== */
.form-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
}
.tab-btn {
  padding: 11px 32px;
  border: 1.5px solid #ddd;
  background: #fff;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}
.tab-btn:first-child { border-radius: 30px 0 0 30px; }
.tab-btn:last-child { border-radius: 0 30px 30px 0; }
.tab-btn.active {
  background: #4a8c8c;
  color: #fff;
  border-color: #4a8c8c;
}
.tab-btn:not(.active):hover { background: #f0f0f0; }

/* ===== FORM CARD ===== */
.form-card {
  background: #fff;
  border-radius: 12px;
  padding: 36px 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  max-width: 900px;
  margin: 0 auto;
}
.photo-row {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 28px;
}
.photo-upload {
  width: 90px; height: 90px;
  border: 2px dashed #ccc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  cursor: pointer;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}
.photo-placeholder { font-size: 28px; color: #ccc; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  flex: 1;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.form-group label {
  font-size: 12px;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-group input,
.form-group select {
  border: 1.5px solid #e5e5e5;
  border-radius: 6px;
  padding: 9px 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  color: #333;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus { border-color: #4a8c8c; }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
}
.form-row-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1.5px solid #f0f0f0;
}
.add-field-btn {
  color: #4a8c8c;
  background: transparent;
  border: none;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.add-field-btn::before { content: '+'; font-size: 18px; }
.generate-btn {
  background: #4a8c8c;
  color: #fff;
  border: none;
  padding: 13px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: background 0.2s, transform 0.1s;
}
.generate-btn:hover { background: #3a7070; transform: translateY(-1px); }

/* ===== FOOTER ===== */
footer {
  background: #2a2a2a;
  color: #bbb;
  padding: 50px 60px 30px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: #fff;
  margin-bottom: 10px;
  display: block;
}
.footer-tagline { font-size: 13px; color: #888; line-height: 1.6; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #888; text-decoration: none; font-size: 13px; transition: color 0.2s; }
.footer-col ul li a:hover { color: #d4a070; }
.footer-col ul li::before { content: '• '; color: #d4a070; }
.newsletter-input-row { display: flex; gap: 0; margin-top: 4px; }
.newsletter-input-row input {
  flex: 1;
  border: 1px solid #444;
  background: #333;
  color: #ddd;
  padding: 9px 12px;
  border-radius: 6px 0 0 6px;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  outline: none;
}
.newsletter-input-row button {
  background: #d4a070;
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 0 6px 6px 0;
  font-family: 'Nunito', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.newsletter-input-row button:hover { background: #b5651d; }
.footer-bottom {
  background: #222;
  text-align: center;
  color: #666;
  font-size: 12px;
  padding: 14px;
  border-top: 1px solid #333;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .templates-section { grid-template-columns: 1fr; padding: 40px 24px; }
  .biodata-section { padding: 40px 20px; }
  .form-card { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-row-4 { grid-template-columns: 1fr 1fr; }
  footer { grid-template-columns: 1fr 1fr; padding: 40px 24px; }
  .hero-left { padding: 40px 24px; }
  nav { padding: 12px 20px; }
  .nav-links { display: none; }
}
@media (max-width: 500px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-row-4 { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; }
  .photo-row { flex-direction: column; }
}
