/*
Theme Name: Mamadysh Photo
Theme URI: https://photo.mamadysh.ru
Author: Mamadysh Web Studio
Author URI: https://mamadysh.ru
Description: Элегантная светлая тема для профессионального фотографа — свадьбы, юбилеи, никах.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: mamadysh-photo
*/

/* ── Variables ─────────────────────────────── */
:root {
  --cream:      #fdfaf6;
  --warm-white: #fffef9;
  --blush:      #f4e8df;
  --rose:       #c9826b;
  --rose-dark:  #a8634e;
  --rose-light: #e8a898;
  --rose-glow:  rgba(201,130,107,.12);
  --text:       #2c2420;
  --text-mid:   #6b5c55;
  --text-light: #a0887e;
  --border:     #e8ddd7;
  --border-soft:#f0e8e4;
  --radius:     14px;
  --font-serif: 'Playfair Display', 'Georgia', serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --max-w:      1200px;
  --shadow-sm:  0 2px 12px rgba(44,36,32,.07);
  --shadow-md:  0 8px 32px rgba(44,36,32,.10);
  --shadow-lg:  0 20px 64px rgba(44,36,32,.12);
}

/* ── Reset ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--warm-white);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--rose); text-decoration: none; transition: color .2s; }
a:hover { color: var(--rose-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Typography ────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--font-serif); line-height: 1.25; letter-spacing: -0.01em; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.4rem; }

.serif { font-family: var(--font-serif); }
.section-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 14px;
}
.section-tag::before, .section-tag::after { content: '—'; margin: 0 8px; opacity: .5; }

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 999px;
  font-size: .9rem; font-weight: 600;
  cursor: pointer; border: none; transition: all .25s;
  text-decoration: none; white-space: nowrap;
  font-family: var(--font-sans);
}
.btn-rose {
  background: var(--rose); color: #fff;
  box-shadow: 0 4px 20px rgba(201,130,107,.35);
}
.btn-rose:hover { background: var(--rose-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,130,107,.45); }
.btn-outline {
  background: transparent; color: var(--rose);
  border: 1.5px solid var(--rose);
}
.btn-outline:hover { background: var(--rose); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--text-mid);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--rose); color: var(--rose); }

/* ── Header ────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  background: rgba(253,250,246,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all .3s;
}
.site-header.scrolled {
  border-bottom-color: var(--border-soft);
  box-shadow: var(--shadow-sm);
}

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.site-logo { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; color: var(--text); letter-spacing: .01em; }
.site-logo span { color: var(--rose); }

.main-nav { display: flex; gap: 36px; }
.main-nav a { font-size: .875rem; font-weight: 500; color: var(--text-mid); letter-spacing: .02em; }
.main-nav a:hover { color: var(--rose); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--text); border-radius: 2px; transition: .3s; }

.mobile-nav {
  display: none; position: fixed; inset: 0;
  background: var(--warm-white); z-index: 99;
  flex-direction: column; align-items: center; justify-content: center; gap: 32px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-family: var(--font-serif); font-size: 1.8rem; color: var(--text); }
.mobile-close { position: absolute; top: 20px; right: 24px; background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--text-mid); }

/* ── Hero ──────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 120px 0 80px;
  background: linear-gradient(160deg, var(--warm-white) 0%, var(--cream) 40%, var(--blush) 100%);
  position: relative; overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 55%; height: 100%;
  background: var(--blush);
  clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 0;
}

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}

.hero-text { }
.hero-eyebrow { font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--rose); margin-bottom: 20px; }
.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--rose); }
.hero-desc { font-size: 1.1rem; color: var(--text-mid); margin-bottom: 40px; max-width: 460px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: .8rem; color: var(--text-light); margin-top: 20px; }

.hero-image {
  position: relative; aspect-ratio: 4/5; border-radius: 20px;
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--blush) 0%, #e8d5cb 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--text-light); font-size: .9rem;
}
.hero-image-placeholder .icon { font-size: 3rem; }

.hero-badge {
  position: absolute; bottom: 24px; left: 24px;
  background: rgba(255,254,249,.92); backdrop-filter: blur(12px);
  border-radius: 12px; padding: 14px 20px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px;
}
.hero-badge-icon { font-size: 1.4rem; }
.hero-badge-text strong { display: block; font-size: .85rem; font-weight: 700; color: var(--text); }
.hero-badge-text span { font-size: .75rem; color: var(--text-light); }

/* ── About strip ───────────────────────────── */
.about-strip { padding: 64px 0; background: var(--cream); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.about-strip-inner { display: flex; gap: 48px; align-items: center; justify-content: center; flex-wrap: wrap; }
.strip-item { text-align: center; }
.strip-num { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 700; color: var(--rose); line-height: 1; }
.strip-label { font-size: .8rem; color: var(--text-light); margin-top: 4px; text-transform: uppercase; letter-spacing: .08em; }
.strip-sep { width: 1px; height: 48px; background: var(--border); }

/* ── Services ──────────────────────────────── */
.services { padding: 96px 0; background: var(--warm-white); }

.section-head { text-align: center; margin-bottom: 64px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--text-mid); max-width: 500px; margin: 0 auto; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; }

.service-card {
  background: var(--cream); border: 1px solid var(--border-soft);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.service-img { height: 240px; background: var(--blush); overflow: hidden; position: relative; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .service-img img { transform: scale(1.05); }
.service-img-placeholder {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; font-size: .85rem; color: var(--text-light);
}
.service-img-placeholder .icon { font-size: 2.5rem; }

.service-body { padding: 24px; }
.service-body h3 { margin-bottom: 8px; font-size: 1.15rem; }
.service-body p { font-size: .875rem; color: var(--text-mid); line-height: 1.7; }

/* ── Gallery ───────────────────────────────── */
.gallery { padding: 96px 0; background: var(--cream); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 16px;
}
.gallery-item {
  border-radius: 12px; overflow: hidden;
  aspect-ratio: 1; position: relative;
  cursor: pointer;
}
.gallery-item:first-child { grid-column: span 2; aspect-ratio: 2/1; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item-placeholder {
  width: 100%; height: 100%; min-height: 200px;
  background: linear-gradient(135deg, var(--blush), #dcc9be);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--text-light);
}
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(44,36,32,.5), transparent);
  opacity: 0; transition: opacity .3s; display: flex; align-items: flex-end; padding: 16px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: #fff; font-size: .8rem; font-weight: 500; }

.gallery-more { text-align: center; margin-top: 40px; }

/* ── Pricing ───────────────────────────────── */
.pricing { padding: 96px 0; background: var(--warm-white); }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: start; }

.pricing-card {
  background: var(--cream); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px;
  transition: box-shadow .3s, border-color .3s;
}
.pricing-card:hover { box-shadow: var(--shadow-md); border-color: var(--rose-light); }
.pricing-card.featured {
  background: var(--rose); border-color: var(--rose);
  color: #fff;
}
.pricing-card.featured * { color: #fff !important; }
.pricing-card.featured .feature-item .check { color: rgba(255,255,255,.9) !important; }
.pricing-card.featured .pricing-price { color: #fff !important; }
.pricing-card.featured .pricing-desc { border-color: rgba(255,255,255,.2) !important; opacity: .85; }

.pricing-tag { font-size: .7rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--rose); margin-bottom: 8px; }
.pricing-name { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.pricing-price { font-family: var(--font-serif); font-size: 2.8rem; font-weight: 700; line-height: 1; color: var(--text); margin-bottom: 4px; }
.pricing-price span { font-family: var(--font-sans); font-size: 1rem; font-weight: 400; opacity: .7; }
.pricing-desc { font-size: .82rem; color: var(--text-mid); padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.pricing-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.feature-item { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; color: var(--text-mid); }
.feature-item .check { color: var(--rose); flex-shrink: 0; margin-top: 2px; font-size: .8rem; }

/* ── Testimonials ──────────────────────────── */
.testimonials { padding: 96px 0; background: var(--blush); }

.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.review-card {
  background: var(--warm-white); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm);
  transition: transform .3s;
}
.review-card:hover { transform: translateY(-4px); }

.review-stars { color: #f59e0b; font-size: .9rem; margin-bottom: 16px; letter-spacing: 2px; }
.review-text { font-size: .9rem; color: var(--text-mid); line-height: 1.8; margin-bottom: 20px; font-style: italic; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blush); display: flex; align-items: center;
  justify-content: center; font-family: var(--font-serif); font-weight: 700;
  color: var(--rose); font-size: 1rem; flex-shrink: 0;
}
.review-name strong { display: block; font-size: .875rem; font-weight: 600; color: var(--text); }
.review-name span { font-size: .78rem; color: var(--text-light); }

/* ── Contact ───────────────────────────────── */
.contact { padding: 96px 0; background: var(--warm-white); }

.contact-wrap {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start;
}

.contact-info h3 { font-family: var(--font-serif); margin-bottom: 14px; }
.contact-info p { color: var(--text-mid); margin-bottom: 32px; font-size: .9rem; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-item { display: flex; align-items: center; gap: 12px; font-size: .875rem; color: var(--text-mid); }
.contact-icon { width: 36px; height: 36px; background: var(--rose-glow); border-radius: 8px; display: grid; place-items: center; font-size: 1rem; flex-shrink: 0; border: 1px solid rgba(201,130,107,.15); }

.contact-form { display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .78rem; font-weight: 600; color: var(--text-mid); letter-spacing: .03em; text-transform: uppercase; }
.form-group input, .form-group textarea, .form-group select {
  background: var(--cream); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 12px 16px;
  color: var(--text); font-family: var(--font-sans); font-size: .9rem;
  outline: none; transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--rose); }
.form-group textarea { min-height: 110px; resize: vertical; }
.form-success { display: none; background: rgba(201,130,107,.1); border: 1px solid rgba(201,130,107,.3); border-radius: 10px; padding: 14px; text-align: center; color: var(--rose-dark); font-size: .875rem; }

/* ── Footer ────────────────────────────────── */
.site-footer {
  background: var(--text); color: rgba(255,255,255,.7);
  padding: 56px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand .site-logo { color: #fff; margin-bottom: 12px; display: block; }
.footer-brand p { font-size: .85rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: .72rem; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: .85rem; color: rgba(255,255,255,.65); transition: color .2s; }
.footer-col ul li a:hover { color: var(--rose-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .78rem; }

/* ── Blog / Archive ────────────────────────── */
.page-hero { padding: 140px 0 60px; background: var(--cream); border-bottom: 1px solid var(--border-soft); }
.posts-wrap { padding: 64px 0; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.news-card { background: var(--cream); border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-thumb { height: 220px; overflow: hidden; background: var(--blush); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-thumb-ph { height: 100%; display: grid; place-items: center; font-size: 2.5rem; }
.news-body { padding: 24px; }
.news-date { font-size: .75rem; color: var(--text-light); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .06em; }
.news-body h3 { font-size: 1.05rem; margin-bottom: 8px; line-height: 1.4; }
.news-body h3 a { color: var(--text); transition: color .2s; }
.news-body h3 a:hover { color: var(--rose); }
.news-body p { font-size: .85rem; color: var(--text-mid); }

/* ── Single post ───────────────────────────── */
.post-hero { padding: 140px 0 56px; background: var(--cream); border-bottom: 1px solid var(--border-soft); }
.post-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.post-cat { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--rose); background: var(--rose-glow); padding: 4px 12px; border-radius: 999px; }
.post-date { font-size: .8rem; color: var(--text-light); }
.post-content-wrap { max-width: 740px; margin: 0 auto; padding: 64px 24px; }
.post-content { color: var(--text-mid); line-height: 1.85; }
.post-content h2,.post-content h3 { color: var(--text); margin: 2em 0 .75em; font-family: var(--font-serif); }
.post-content p { margin-bottom: 1.5em; }
.post-content a { color: var(--rose); text-decoration: underline; }
.post-content blockquote { border-left: 3px solid var(--rose); padding: 16px 24px; background: var(--cream); border-radius: 0 10px 10px 0; margin: 1.5em 0; font-style: italic; font-family: var(--font-serif); }
.post-content img { border-radius: 12px; margin: 2em 0; }

/* ── Page ──────────────────────────────────── */
.page-content-wrap { max-width: 820px; margin: 0 auto; padding: 64px 24px; }
.page-content { color: var(--text-mid); line-height: 1.8; }
.page-content h2,.page-content h3 { color: var(--text); margin: 1.5em 0 .5em; font-family: var(--font-serif); }
.page-content p { margin-bottom: 1.2em; }

/* ── Pagination ────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.pagination a,.pagination span { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--border); font-size: .875rem; color: var(--text-mid); transition: .2s; }
.pagination a:hover,.pagination .current { background: var(--rose); border-color: var(--rose); color: #fff; }

/* ── 404 ───────────────────────────────────── */
.not-found { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 40px; }
.not-found-num { font-family: var(--font-serif); font-size: 10rem; color: var(--rose); opacity: .2; line-height: 1; }

/* ── Lightbox ──────────────────────────────── */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(44,36,32,.95); z-index: 200; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; object-fit: contain; }
.lightbox-close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 2.5rem; cursor: pointer; background: none; border: none; line-height: 1; opacity: .8; }
.lightbox-close:hover { opacity: 1; }

/* ── Reveal anim ───────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero::before { width: 100%; height: 50%; top: auto; bottom: 0; clip-path: none; }
  .hero-image { max-width: 480px; margin: 0 auto; }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:first-child { grid-column: span 1; aspect-ratio: 1; }
}
@media (max-width: 640px) {
  .main-nav, .nav-cta { display: none; }
  .hamburger { display: flex; }
  h1 { font-size: 2.2rem; }
  section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item:first-child { aspect-ratio: 4/3; }
  .about-strip-inner { gap: 24px; }
  .strip-sep { display: none; }
}

/* ── WP fixes ──────────────────────────────── */
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .78rem; color: var(--text-light); text-align: center; margin-top: 6px; }
