/*
Theme Name: Biodata Maker
Theme URI: https://avya.avsoftlab.com
Author: AVSoftLab
Description: Marriage Biodata Maker - Create beautiful marriage biodata online
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Lato:wght@300;400;600;700&display=swap');

:root {
  --warm: #C87941;
  --warm-light: #E8B48A;
  --warm-dark: #A05A28;
  --warm-bg: #F5E6D8;
  --teal: #5B8A8A;
  --teal-dark: #3D6B6B;
  --teal-light: #7AADAD;
  --teal-bg: #EAF3F3;
  --cream: #FDF8F4;
  --dark: #2C2015;
  --gray: #666;
  --light-gray: #F9F9F9;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.15);
  --radius: 12px;
  --radius-lg: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}

a { text-decoration: none; color: inherit; }

img { max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */
.site-header {
  background: var(--white);
  padding: 16px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.site-logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--warm);
}

.site-logo span { color: var(--teal); }

.main-nav ul {
  display: flex;
  gap: 32px;
  list-style: none;
}

.main-nav a {
  font-weight: 600;
  font-size: 15px;
  color: var(--dark);
  transition: color 0.3s;
}

.main-nav a:hover { color: var(--warm); }

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  font-family: 'Lato', sans-serif;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--white);
}

/* HERO SECTION */
.hero-section {
  background: var(--cream);
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 48px;
  line-height: 1.2;
  color: var(--warm-dark);
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 17px;
  color: var(--gray);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-image {
  position: relative;
  text-align: center;
}

.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  width: 100%;
  max-height: 450px;
  object-fit: cover;
}

/* SECTION COMMON */
section { padding: 80px 0; }

.section-title {
  text-align: center;
  margin-bottom: 16px;
  font-size: 38px;
  color: var(--dark);
}

.section-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 16px;
  margin-bottom: 50px;
}

.divider-ornament {
  text-align: center;
  margin: 12px 0 40px;
  color: var(--teal-light);
  font-size: 22px;
  letter-spacing: 4px;
}

/* TEMPLATES SECTION */
.templates-section {
  background: var(--white);
}

.templates-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.templates-text h2 {
  font-size: 34px;
  color: var(--dark);
  margin-bottom: 12px;
}

.templates-text p {
  color: var(--gray);
  margin-bottom: 28px;
  line-height: 1.8;
}

.templates-preview {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.template-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  width: 48%;
  transition: transform 0.3s;
}

.template-card:hover { transform: scale(1.03); }

.template-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* BIODATA FORM SECTION */
.form-section {
  background: var(--light-gray);
}

.form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.form-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 36px;
  background: var(--teal-bg);
  padding: 6px;
  border-radius: 50px;
  width: fit-content;
}

.form-tab {
  padding: 10px 24px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  border: none;
  background: transparent;
  color: var(--teal);
  font-family: 'Lato', sans-serif;
}

.form-tab.active {
  background: var(--teal);
  color: var(--white);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
  padding: 12px 16px;
  border: 1.5px solid #E0E0E0;
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--dark);
  font-family: 'Lato', sans-serif;
  transition: border-color 0.3s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--teal);
}

.photo-upload-area {
  grid-column: 1;
  grid-row: 1 / 3;
  border: 2px dashed var(--teal-light);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer;
  background: var(--teal-bg);
  transition: all 0.3s;
  min-height: 140px;
}

.photo-upload-area:hover {
  border-color: var(--teal);
  background: #D5E8E8;
}

.photo-upload-area .upload-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.photo-upload-area p {
  font-size: 13px;
  color: var(--teal);
  text-align: center;
  font-weight: 600;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #EEE;
}

.add-field-btn {
  color: var(--teal);
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  background: none;
  border: none;
  font-family: 'Lato', sans-serif;
}

/* HOW IT WORKS */
.how-works-section {
  background: var(--warm);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.how-works-section::before,
.how-works-section::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 50%;
}

.how-works-section::before { top: -100px; left: -100px; }
.how-works-section::after { bottom: -100px; right: -100px; }

.how-works-section .section-title,
.how-works-section .divider-ornament {
  color: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  position: relative;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.step-number {
  font-size: 52px;
  font-weight: 900;
  color: rgba(200,121,65,0.15);
  font-family: 'Playfair Display', serif;
  position: absolute;
  top: 16px;
  right: 20px;
  line-height: 1;
}

.step-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--dark);
}

.step-card p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
}

/* APP FEATURES */
.features-section {
  background: var(--teal);
  padding: 80px 0;
}

.features-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.features-text h2 {
  font-size: 34px;
  color: var(--white);
  margin-bottom: 32px;
}

.feature-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.feature-item {
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.feature-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  cursor: pointer;
  color: var(--white);
  font-weight: 600;
  font-size: 16px;
}

.feature-header .icon {
  font-size: 20px;
  transition: transform 0.3s;
}

.feature-content {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  line-height: 1.7;
  padding-bottom: 16px;
  display: none;
}

.feature-content.open { display: block; }

.features-image {
  text-align: center;
}

.features-image img {
  max-width: 320px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

/* FAQ SECTION */
.faq-section {
  background: var(--white);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.faq-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  font-family: 'Lato', sans-serif;
}

.faq-item p {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
}

.faq-cta {
  text-align: center;
  margin-top: 48px;
}

/* FOOTER */
.site-footer {
  background: var(--warm);
  padding: 60px 0 30px;
  color: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.footer-brand .logo {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.85;
  max-width: 220px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: 'Lato', sans-serif;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 14px;
  opacity: 0.85;
  transition: opacity 0.3s;
}

.footer-col a:hover { opacity: 1; }

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.3s;
  cursor: pointer;
}

.social-icon:hover { background: rgba(255,255,255,0.4); }

.footer-bottom {
  text-align: center;
  padding-top: 28px;
  font-size: 14px;
  opacity: 0.8;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-inner,
  .templates-intro,
  .features-inner,
  .footer-grid { grid-template-columns: 1fr; }

  .hero-text h1 { font-size: 32px; }
  .steps-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-tabs { flex-wrap: wrap; }
  .main-nav { display: none; }
}

/* Tab content hiding */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Mobile Fix */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column !important;
    text-align: center;
  }

  .hero-image {
    width: 100% !important;
    margin-top: 20px;
  }

  .hero-image img {
    width: 100% !important;
    height: auto !important;
    border-radius: 12px;
  }

  .hero-text {
    width: 100% !important;
  }
}
