/*
Theme Name: SWELL CHILD
Template: swell
Version: 1.1.0
*/

/* ============================================
   Google Fonts
============================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Noto+Sans+JP:wght@300;400;500;700&family=Noto+Serif+JP:wght@300;400;500;600;700&display=swap');

/* ============================================
   Design Tokens
============================================ */
:root {
  --color-primary:    #C9847A;
  --color-primary-soft: #D9A199;
  --color-deep:       #7A4A42;
  --color-bg:         #FAF8F5;
  --color-surface:    #EDD8D4;
  --color-surface-soft: #F5E5E1;
  --color-text:       #332825;
  --color-text-mid:   #5A4A47;
  --color-text-sub:   #9E8E8C;
  --color-white:      #FFFFFF;
  --color-border:     #E8D5D0;

  --font-serif:       'Noto Serif JP', serif;
  --font-sans:        'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  --font-en:          'Cormorant Garamond', serif;

  --radius-sm:        4px;
  --radius-md:        10px;
  --radius-lg:        20px;
  --radius-full:      9999px;

  --shadow-xs:        0 1px 3px rgba(51, 40, 37, 0.04);
  --shadow-sm:        0 4px 16px rgba(51, 40, 37, 0.06);
  --shadow-md:        0 8px 28px rgba(51, 40, 37, 0.08);
  --shadow-lg:        0 16px 48px rgba(51, 40, 37, 0.12);

  --ease-out:         cubic-bezier(0.23, 1, 0.32, 1);
  --ease-soft:        cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Base
============================================ */
html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.9;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background-color: var(--color-surface);
  color: var(--color-deep);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   Typography
============================================ */
h1, h2, h3, h4, h5, h6,
.wp-block-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.06em;
  line-height: 1.6;
}

p {
  font-family: var(--font-sans);
  font-weight: 300;
}

.en-accent,
.site-name,
.l-header__siteName {
  font-family: var(--font-en);
  letter-spacing: 0.18em;
  font-weight: 400;
  font-style: normal;
}

/* ============================================
   Buttons
============================================ */
.wp-block-button__link,
.c-btn,
a.c-btn {
  background-color: var(--color-primary);
  color: var(--color-white) !important;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.12em;
  padding: 16px 40px;
  border: none;
  box-shadow: 0 6px 20px rgba(201, 132, 122, 0.25);
  transition: background-color 0.3s var(--ease-soft),
              transform 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-soft);
  position: relative;
  overflow: hidden;
}

.wp-block-button__link::after,
.c-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s var(--ease-out);
  pointer-events: none;
}

.wp-block-button__link:hover,
.c-btn:hover {
  background-color: var(--color-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(122, 74, 66, 0.30);
}

.wp-block-button__link:hover::after,
.c-btn:hover::after {
  transform: translateX(100%);
}

.is-style-outline .wp-block-button__link {
  background-color: transparent !important;
  border: 1px solid currentColor;
  box-shadow: none;
}

.is-style-outline .wp-block-button__link:hover {
  background-color: rgba(237, 216, 212, 0.12) !important;
  transform: translateY(-2px);
}

/* ============================================
   Header
============================================ */
.l-header {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: saturate(1.2);
}

/* ============================================
   Sections
============================================ */
.p-section--surface { background-color: var(--color-surface); }
.p-section--white   { background-color: var(--color-white); }

/* ============================================
   Hero with image background
============================================ */
.lp-hero {
  position: relative;
  background-image: url('assets/images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  isolation: isolate;
}

.lp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(51,40,37,0.78) 0%, rgba(51,40,37,0.55) 50%, rgba(122,74,66,0.65) 100%);
  z-index: -1;
}

.lp-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(201,132,122,0.18) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

/* Hero buttons - special outline color over dark */
.lp-hero .is-style-outline .wp-block-button__link {
  border-color: rgba(237, 216, 212, 0.6) !important;
  color: #EDD8D4 !important;
}

.lp-hero .is-style-outline .wp-block-button__link:hover {
  background-color: rgba(237, 216, 212, 0.15) !important;
  border-color: #EDD8D4 !important;
}

/* ============================================
   Cards (LP Columns w/ white bg)
============================================ */
.wp-block-column[style*="background-color:#FFFFFF"],
.wp-block-column[style*="background-color: #FFFFFF"] {
  transition: transform 0.5s var(--ease-out),
              box-shadow 0.5s var(--ease-soft);
  box-shadow: var(--shadow-xs);
}

.wp-block-column[style*="background-color:#FFFFFF"]:hover,
.wp-block-column[style*="background-color: #FFFFFF"]:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

/* Partner section cards (with border) */
.wp-block-column[style*="border:1px solid"],
.wp-block-column[style*="border: 1px solid"] {
  transition: transform 0.5s var(--ease-out),
              border-color 0.5s var(--ease-soft),
              box-shadow 0.5s var(--ease-soft);
  background-color: var(--color-white);
}

.wp-block-column[style*="border:1px solid"]:hover,
.wp-block-column[style*="border: 1px solid"]:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary) !important;
  box-shadow: var(--shadow-sm);
}

/* ============================================
   Value section number styling
============================================ */
#value .wp-block-column > p[style*="font-size:40px"],
#value .wp-block-column > p[style*="font-size: 40px"] {
  font-family: var(--font-en) !important;
  font-size: 56px !important;
  font-weight: 300 !important;
  color: var(--color-primary) !important;
  letter-spacing: 0.05em;
  line-height: 1;
  margin-bottom: 24px !important;
  position: relative;
}

#value .wp-block-column > p[style*="font-size:40px"]::after,
#value .wp-block-column > p[style*="font-size: 40px"]::after {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--color-primary);
  margin: 16px auto 0;
}

/* ============================================
   Section eyebrow refinement (the EN labels)
============================================ */
.en-accent {
  position: relative;
  display: inline-block;
}

p.en-accent.has-text-align-center {
  display: block;
}

/* ============================================
   Heading underline ornament for h2
============================================ */
.wp-block-group .wp-block-heading.has-text-align-center[style*="clamp(22px,4vw,36px)"]::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--color-primary);
  margin: 24px auto 0;
  opacity: 0.7;
}

/* ============================================
   Events table
============================================ */
.lp-events-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.lp-events-table thead th {
  background-color: var(--color-surface);
  color: var(--color-deep);
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.lp-events-table tbody td {
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  color: var(--color-text-mid);
}

.lp-events-table tbody tr:last-child td {
  border-bottom: none;
}

.lp-events-table tbody tr:nth-child(odd) td {
  background-color: rgba(250, 248, 245, 0.5);
}

.lp-events-table tbody td:first-child {
  font-weight: 500;
  color: var(--color-text);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .lp-events-table tbody td:first-child {
    white-space: normal;
  }
}

/* ============================================
   Team member cards - portrait area
============================================ */
.team-portrait {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin-bottom: 20px;
  background-color: var(--color-surface);
  background-size: cover;
  background-position: center;
  border: 2px solid var(--color-white);
  box-shadow: 0 4px 16px rgba(201, 132, 122, 0.18);
}

.team-portrait--mei {
  background-image: url('assets/images/portrait-mei.jpg');
}

.team-portrait--rena {
  background-image: url('assets/images/portrait-rena.jpg');
}

/* ============================================
   Scroll Reveal
============================================ */
.lp-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out),
              transform 1s var(--ease-out);
  will-change: opacity, transform;
}

.lp-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lp-reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s var(--ease-out),
              transform 0.9s var(--ease-out);
}

.lp-reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.lp-reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.15s; }
.lp-reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.25s; }
.lp-reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.35s; }

.lp-reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .lp-reveal,
  .lp-reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================
   Contact Form 7
============================================ */
.wee-form p {
  margin-bottom: 24px;
}

.wee-form label {
  display: block;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: 8px;
}

.wee-form label abbr {
  color: var(--color-primary);
  text-decoration: none;
  margin-left: 4px;
}

.wee-form input[type="text"],
.wee-form input[type="email"],
.wee-form select,
.wee-form textarea {
  width: 100%;
  padding: 14px 18px;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-text);
  transition: border-color 0.25s var(--ease-soft),
              box-shadow 0.25s var(--ease-soft);
  appearance: none;
  -webkit-appearance: none;
}

.wee-form input:focus,
.wee-form select:focus,
.wee-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(201, 132, 122, 0.12);
}

.wee-form textarea {
  min-height: 160px;
  resize: vertical;
}

.wee-form input[type="submit"],
.wee-form .wpcf7-submit {
  display: block;
  width: 100%;
  padding: 16px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-size: 15px;
  letter-spacing: 0.12em;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(201, 132, 122, 0.25);
  transition: background-color 0.3s var(--ease-soft),
              transform 0.3s var(--ease-out),
              box-shadow 0.3s var(--ease-soft);
}

.wee-form input[type="submit"]:hover,
.wee-form .wpcf7-submit:hover {
  background-color: var(--color-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(122, 74, 66, 0.30);
}

.wpcf7-not-valid-tip {
  font-size: 12px;
  color: var(--color-primary);
  margin-top: 4px;
}

.wpcf7-response-output {
  font-size: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-top: 16px;
  border: none !important;
  background-color: var(--color-surface-soft);
}

/* ============================================
   Links
============================================ */
a {
  color: var(--color-primary);
  transition: color 0.25s var(--ease-soft);
}

a:hover {
  color: var(--color-deep);
}

/* ============================================
   Responsive refinements
============================================ */
@media (max-width: 768px) {
  .lp-hero {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
  }

  .wp-block-group[style*="padding-top:96px"] {
    padding-top: 64px !important;
    padding-bottom: 64px !important;
  }

  .wp-block-button__link {
    padding: 14px 32px !important;
    font-size: 14px;
  }
}

/* ============================================
   Footer touch
============================================ */
.l-footer {
  background-color: var(--color-text);
  color: var(--color-surface);
}

.l-footer a {
  color: var(--color-surface);
}

.l-footer a:hover {
  color: var(--color-primary);
}
