/*
Theme Name: Nikah
Theme URI: https://thedeenshow.lovable.app/
Author: Deen Show
Author URI: https://thedeenshow.lovable.app/
Description: Faith-centered matchmaking platform theme. Your journey to Halal love starts here.
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: nikah
*/

/* ==========================================================================
   CSS Variables - Nikah color palette
   ========================================================================== */
:root {
  --nikah-cream: #FDF8F3;
  --nikah-beige: #F5E6DC;
  --nikah-warm: #E8D4C4;
  --nikah-accent: #B85C38;
  --nikah-accent-dark: #9A4A2E;
  --nikah-text: #2C1810;
  --nikah-text-muted: #5C4033;
  --nikah-white: #FFFFFF;
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(44, 24, 16, 0.08);
  --shadow-lg: 0 8px 40px rgba(44, 24, 16, 0.12);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--nikah-text);
  background: var(--nikah-cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--nikah-accent);
  text-decoration: none;
}

a:hover {
  color: var(--nikah-accent-dark);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 900px) {
  .site-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.site-logo {
  width: 44px;
  height: 44px;
  background: var(--nikah-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--nikah-white);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Custom logo (when set in Customizer) */
.site-branding .custom-logo-link {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.site-branding .custom-logo-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--nikah-text);
}

.site-title a {
  color: inherit;
}

.site-title a:hover {
  color: var(--nikah-accent);
}

.badge-early-access {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: var(--nikah-accent-dark);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--nikah-white);
  font-weight: 500;
}

.badge-early-access::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--nikah-beige);
  border-radius: 50%;
}

/* ==========================================================================
   Main / Hero
   ========================================================================== */
.site-main {
  flex: 1;
  padding: 2rem;
}

body.has-hero-fullpage-bg .site-wrapper {
  position: relative;
  z-index: 0;
}

.hero-section {
  position: relative;
}

.hero-section .hero-inner {
  position: relative;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-section .hero-content,
.hero-section .hero-right {
  position: relative;
}

@media (min-width: 900px) {
  .hero-section .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    min-height: 70vh;
    padding: 3rem 2rem;
  }
}

@media (max-width: 600px) {
  .hero-section .hero-inner {
    padding: 1.5rem 1rem;
  }
}

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  color: var(--nikah-text);
}

.hero-content h1 .highlight {
  color: var(--nikah-accent);
}

body.has-hero-fullpage-bg .hero-content h1,
body.has-hero-fullpage-bg .hero-tagline {
  color: var(--nikah-white);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.has-hero-fullpage-bg .hero-content h1 .highlight {
  color: var(--nikah-beige);
}

body.has-hero-fullpage-bg .hero-tagline {
  color: rgba(255, 255, 255, 0.9);
}

.quote-sparkle {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--nikah-text-muted);
  margin: 0 0 2.5rem;
  max-width: 480px;
}

/* ==========================================================================
   Quote box
   ========================================================================== */
.quote-section {
  position: relative;
}

.quote-box {
  background: var(--nikah-accent);
  color: var(--nikah-white);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
}

.quote-box blockquote {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.6;
}

.quote-box cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-style: normal;
  opacity: 0.9;
}

.countries-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--nikah-text-muted);
  font-weight: 500;
  margin-top: 1rem;
  position: relative;
  z-index: 2;
}

body.has-hero-fullpage-bg .countries-badge {
  color: var(--nikah-text);
  background: rgba(255, 255, 255, 0.9);
}

body.has-hero-fullpage-bg .site-title a,
body.has-hero-fullpage-bg .badge-early-access {
  color: var(--nikah-white);
}

body.has-hero-fullpage-bg .site-title a:hover {
  color: var(--nikah-beige);
}

body.has-hero-fullpage-bg .site-footer {
  color: rgba(255, 255, 255, 0.85);
  border-top-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Waitlist form card
   ========================================================================== */
.waitlist-card {
  background: var(--nikah-white);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 3;
  max-width: 420px;
}

@media (min-width: 900px) {
  .waitlist-card {
    margin-left: auto;
    margin-right: 0;
  }
}

.waitlist-card h2 {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.2rem;
  color: var(--nikah-text);
}

.waitlist-card .subtitle {
  font-size: 0.9rem;
  color: var(--nikah-text-muted);
  margin: 0 0 1rem;
}

.nikah-form .form-row {
  margin-bottom: 0.85rem;
}

.nikah-form .form-row-submit {
  margin-bottom: 0;
  margin-top: 0.25rem;
}

.nikah-form label,
.nikah-form .form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--nikah-text);
  margin-bottom: 0.3rem;
}

.nikah-form .form-row-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 0.75rem;
  margin-bottom: 0.85rem;
}

.nikah-form .form-row-half .form-field {
  min-width: 0;
}

@media (max-width: 480px) {
  .nikah-form .form-row-half {
    grid-template-columns: 1fr;
  }
}

.nikah-form input[type="text"],
.nikah-form input[type="email"],
.nikah-form input[type="tel"],
.nikah-form select {
  width: 100%;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--nikah-warm);
  border-radius: var(--radius);
  background: var(--nikah-white);
  color: var(--nikah-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.nikah-form select {
  cursor: pointer;
  appearance: auto;
}

.nikah-form .form-row-radio .form-label {
  margin-bottom: 0.35rem;
}

.nikah-form .radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.nikah-form .radio-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-weight: 400;
  font-size: 0.9rem;
}

.nikah-form .radio-label input {
  margin: 0;
  accent-color: var(--nikah-accent);
}

.nikah-form .form-row-dob .form-label {
  margin-bottom: 0.35rem;
}

.nikah-form .dob-fields {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.9fr;
  gap: 0.5rem;
}

.nikah-form .dob-fields select {
  min-width: 0;
}

@media (max-width: 380px) {
  .nikah-form .dob-fields {
    grid-template-columns: 1fr;
  }
}

.nikah-success {
  color: var(--nikah-accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(184, 92, 56, 0.1);
  border: 1px solid var(--nikah-accent);
  border-radius: 8px;
  font-size: 0.95rem;
}

@media (max-width: 600px) {
  .nikah-success {
    font-size: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
  }
}

.nikah-form .form-terms {
  font-size: 0.75rem;
  color: var(--nikah-text-muted);
  margin: 0.6rem 0 0;
  line-height: 1.45;
}

.nikah-form .form-terms a {
  text-decoration: underline;
}

.nikah-form input:focus,
.nikah-form select:focus {
  outline: none;
  border-color: var(--nikah-accent);
  box-shadow: 0 0 0 3px rgba(184, 92, 56, 0.15);
}

.nikah-form input::placeholder {
  color: #aaa;
}

.nikah-form button[type="submit"],
.wp-block-button__link {
  width: 100%;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--nikah-white);
  background: var(--nikah-accent);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.05s;
}

.nikah-form button[type="submit"]:hover,
.wp-block-button__link:hover {
  background: var(--nikah-accent-dark);
}

.nikah-form button[type="submit"]:active,
.wp-block-button__link:active {
  transform: scale(0.99);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--nikah-text-muted);
  border-top: 1px solid var(--nikah-warm);
}

.site-footer p {
  margin: 0;
}

/* ==========================================================================
   WordPress utility classes
   ========================================================================== */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

.alignwide {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.alignfull {
  max-width: none;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* ==========================================================================
   Page content (for inner pages)
   ========================================================================== */
.page-content,
.entry-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
}

.page-content h1,
.entry-content h1 {
  font-family: var(--font-heading);
  color: var(--nikah-text);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 600px) {
  .site-header {
    padding: 1rem;
  }

  .site-main {
    padding: 1rem;
  }

  .waitlist-card {
    padding: 1.15rem 1.25rem;
  }
}
