/*
Theme Name: AllPhoto
Theme URI: https://allphoto-kyoto.com/
Description: AllPhoto — Kyoto / Osaka / Nara kimono & travel photography landing pages and blog theme. Multilingual LP templates + standard blog templates + Contact Form 7 integration.
Author: AllPhoto (CHICK)
Author URI: https://allphoto-kyoto.com/
Version: 1.0.9
License: GNU General Public License v2 or later
Text Domain: allphoto
*/

/* =========================================================
   DESIGN SYSTEM (shared with LP)
   ========================================================= */
:root {
  --bg: #F7F5F0;
  --bg-cream: #F3EFE7;
  --ink: #222120;
  --ink-soft: #4A4642;
  --ink-subtle: #8A847C;
  --ink-muted: #6B665E;
  --red: #B32025;
  --red-dark: #8C1619;
  --gold: #D4A853;
  --border: #E3DDD2;
  --font-display: 'Cormorant Garamond', 'Noto Serif JP', serif;
  --font-body: 'Plus Jakarta Sans', 'Noto Sans JP', sans-serif;
  --shadow: 0 10px 30px rgba(34,33,32,0.06);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 92%; max-width: 1200px; margin: 0 auto; }

/* WP admin bar */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* Skip link — visually hidden, visible on focus (keyboard accessibility) */
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 9999; background: var(--ink); color: #fff; padding: 10px 16px; font-size: 14px; text-decoration: underline; border-radius: 4px; }
.skip-link:focus { left: 12px; }

/* HEADER (blog/page header — same markup & styling as the LP header) */
.blog-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,245,240,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 12px;
}
.logo-area { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-area a { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo-area img { height: 38px; width: auto; flex-shrink: 0; max-width: none; }
.logo-divider { width: 1px; height: 26px; background: var(--border); flex-shrink: 0; }
.brand-meta { min-width: 0; }
.brand-title {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  letter-spacing: 0.05em; color: var(--ink); white-space: nowrap; line-height: 1.25;
}
.brand-tag {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-subtle); white-space: nowrap;
}
.main-nav { display: flex; align-items: center; gap: 18px; }
.main-nav a {
  font-size: 14.5px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 500; transition: color .2s;
  white-space: nowrap; display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 4px;
}
.main-nav a:hover, .main-nav a.active { color: var(--red); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 13px 26px; font-size: 14.5px; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 600; border-radius: 4px;
  border: 1px solid transparent; text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-header { font-size: 12.5px; padding: 9px 18px; letter-spacing: 0.12em; }
@media (max-width: 1024px) {
  .logo-divider, .brand-meta { display: none; }
  .header-inner { height: 56px; gap: 8px; }
  .main-nav a { font-size: 13px; gap: 12px; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .header-inner { height: 52px; }
}
/* BLOG HERO */
.blog-hero { padding: 48px 0 24px; text-align: center; border-bottom: 1px solid var(--border); }
.blog-hero .kicker { font-size: 0.75rem; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); }
.blog-hero h1 { font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem); font-weight: 400; margin-top: 8px; }
.blog-hero p { color: var(--ink-muted); margin-top: 8px; font-size: 1rem; }

/* LAYOUT */
.blog-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding: 48px 0 72px; }
.blog-full { max-width: 820px; margin: 0 auto; padding: 48px 0 72px; }

/* POST CARD (list) */
.post-list { display: grid; gap: 32px; }
.post-card {
  display: grid; grid-template-columns: 280px 1fr; gap: 24px;
  background: #fff; border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-thumb { background: var(--bg-cream); overflow: hidden; aspect-ratio: 16/11; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 22px 24px 22px 0; display: flex; flex-direction: column; }
.post-meta { font-size: 0.8rem; color: var(--ink-subtle); display: flex; gap: 12px; margin-bottom: 8px; }
.post-title { font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; line-height: 1.35; margin-bottom: 10px; }
.post-title a:hover { color: var(--red); }
.post-excerpt { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.7; flex: 1; }
.post-more { margin-top: 14px; font-size: 0.85rem; font-weight: 600; color: var(--red); }

/* SINGLE */
.entry-header { margin-bottom: 24px; }
.entry-meta { font-size: 0.85rem; color: var(--ink-subtle); margin-bottom: 12px; }
.entry-title { font-family: var(--font-display); font-size: clamp(2rem,3.8vw,3rem); font-weight: 400; line-height: 1.25; }
.entry-thumb { margin: 24px 0 32px; border-radius: 6px; overflow: hidden; }
.entry-content { font-size: 1.05rem; line-height: 1.95; color: var(--ink); }
.entry-content > p { margin: 1.2em 0; }
.entry-content h2 { font-family: var(--font-display); font-size: 1.9rem; font-weight: 400; margin: 2.2em 0 .6em; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.entry-content h3 { font-size: 1.25rem; margin: 1.6em 0 .4em; }
.entry-content ul, .entry-content ol { margin: 1em 0 1em 1.6em; }
.entry-content li { margin: .4em 0; }
.entry-content blockquote { border-left: 3px solid var(--gold); padding: 4px 0 4px 18px; margin: 1.4em 0; color: var(--ink-muted); font-style: italic; }
.entry-content img { border-radius: 4px; margin: 1.2em 0; }

/* SIDEBAR */
.sidebar .widget { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 22px; margin-bottom: 24px; }
.widget-title { font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.widget ul { list-style: none; font-size: 0.92rem; }
.widget li { padding: 6px 0; border-bottom: 1px dashed var(--border); }
.widget li:last-child { border: none; }
.widget li a:hover { color: var(--red); }

/* PAGINATION */
.pagination { display: flex; gap: 8px; justify-content: center; padding: 40px 0 0; }
.pagination a, .pagination .current { padding: 8px 14px; border: 1px solid var(--border); border-radius: 4px; font-size: 0.9rem; background: #fff; }
.pagination .current { background: var(--red); color: #fff; border-color: var(--red); }

/* INQUIRY NOTICE BANNER (steers bookings to homepage) */
.inquiry-notice {
  background: #fff8ee; border: 1px solid rgba(184,151,107,.35); border-left: 4px solid var(--gold);
  border-radius: 8px; padding: 18px 22px; margin-bottom: 28px; font-size: 0.92rem;
}
.inquiry-notice strong { display: block; font-size: 1rem; color: var(--ink); margin-bottom: 4px; }
.inquiry-notice p { color: var(--ink-muted); margin: 0 0 12px; }

/* INQUIRY FORM (Contact Form 7) — premium editorial style */
.wpcf7 { max-width: 720px; margin: 0; }
.wpcf7 form {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 40px 42px; box-shadow: 0 10px 30px rgba(0,0,0,.05);
}
.wpcf7 form p { margin-bottom: 20px; font-size: 0.92rem; }
.wpcf7 form label {
  display: block; font-weight: 600; font-size: 0.86rem; letter-spacing: 0.02em;
  color: var(--ink); margin-bottom: 7px;
}
.wpcf7 form label .req { color: var(--red); margin-left: 2px; }
.wpcf7 .label-sub { display: block; font-weight: 400; font-size: 0.78rem; color: var(--ink-subtle); margin-top: 2px; }

.wpcf7 input[type=text],
.wpcf7 input[type=email],
.wpcf7 input[type=tel],
.wpcf7 input[type=date],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%; box-sizing: border-box;
  padding: 13px 15px; border: 1.5px solid #ddd7cc; border-radius: 6px;
  font-family: inherit; font-size: 0.95rem; color: var(--ink); background: #faf9f6;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.wpcf7 input[type=text]:hover,
.wpcf7 input[type=email]:hover,
.wpcf7 input[type=tel]:hover,
.wpcf7 select:hover,
.wpcf7 textarea:hover { border-color: #b9b3a6; }
.wpcf7 input[type=text]:focus,
.wpcf7 input[type=email]:focus,
.wpcf7 input[type=tel]:focus,
.wpcf7 input[type=date]:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus {
  outline: none; background: #fff; border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(184,151,107,.16);
}
.wpcf7 select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238a8377' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.wpcf7 textarea { min-height: 150px; resize: vertical; }

/* 2-column field rows */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.form-row p { margin-bottom: 0; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; gap: 0; } .form-row p { margin-bottom: 20px; } }

/* Submit button */
.wpcf7 input[type=submit] {
  display: block; width: 100%;
  background: var(--red); color: #fff; border: 0; padding: 15px 32px;
  border-radius: 999px; font-weight: 700; font-size: 0.95rem;
  letter-spacing: 0.08em; cursor: pointer; text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(199,44,38,.35);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.wpcf7 input[type=submit]:hover {
  background: var(--red-dark); transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(199,44,38,.45);
}
.form-footnote { font-size: 0.78rem; color: var(--ink-subtle); text-align: center; margin-top: 14px; }

/* AJAX response boxes */
.wpcf7-response-output { border-radius: 8px; font-size: 0.92rem; padding: 14px 16px; margin-top: 18px; }
div.wpcf7-validation-errors { background: #fff5f5; border: 1.5px solid var(--red); color: #8a1f1a; }
div.wpcf7-mail-sent-ok { background: #f2f9f4; border: 1.5px solid #2e7d32; color: #1e5a22; }
.wpcf7-not-valid-tip { font-size: 0.78rem; color: var(--red); margin-top: 5px; }

@media (max-width: 640px) { .wpcf7 form { padding: 26px 20px; } }

/* COMMENTS */
.comments-area { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--border); }
.comment-list { list-style: none; margin: 20px 0; }
.comment-body { background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 20px; margin-bottom: 16px; font-size: 0.95rem; }
.comment-meta { font-size: 0.8rem; color: var(--ink-subtle); margin-bottom: 8px; }

/* FOOTER */
.blog-footer { border-top: 1px solid var(--border); padding: 28px 0; font-size: 0.85rem; color: var(--ink-subtle); text-align: center; }

/* RESPONSIVE */
@media (max-width: 960px) {
  .blog-wrap { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 1fr; }
  .post-thumb { aspect-ratio: 16/9; }
  .post-body { padding: 0 24px 22px; }
}

/* Gutenberg & core alignment */
.alignwide { max-width: 1400px; width: 100vw; margin-left: calc(50% - 50vw); }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0.5em 1.5em 1em 0; }
.alignright { float: right; margin: 0.5em 0 1em 1.5em; }
.wp-caption { max-width: 100%; margin: 1em 0; text-align: center; }
.wp-caption img { margin: 0 auto; }
.wp-caption-text { font-size: 0.85rem; color: var(--ink-subtle); margin-top: 6px; }

/* INQUIRY PAGE — 1-column centered layout */
.inquiry-wrap { padding-top: 40px; padding-bottom: 72px; }
.inquiry-center { max-width: 760px; margin: 0 auto; }
.inquiry-center .wpcf7 { max-width: 100%; margin: 0; }
.inquiry-reassurance {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 22px;
  margin-top: 26px; font-size: 0.88rem; color: var(--ink-muted);
}
.inquiry-badge { display: inline-flex; align-items: center; gap: 6px; }
.inquiry-badge span { color: var(--gold); font-weight: 700; font-size: 0.85em; }
.inquiry-badge a { color: inherit; text-decoration: underline; }
.inquiry-book-nudge {
  text-align: center; margin-top: 28px; padding-top: 22px;
  border-top: 1px solid var(--border); font-size: 0.92rem; color: var(--ink-muted);
}
.inquiry-book-nudge a { color: var(--red); font-weight: 600; text-decoration: underline; }
