/*
Theme Name: Park Studio
Theme URI: https://park-studio.ca/
Description: 1:1 mirror of the static park-studio.ca. Chrome is sliced byte-for-byte out of the frozen reference; all real styling comes from /theme/app.css and the two Bootstrap 5.3.6 CDN copies hardcoded in header.php. This file carries the theme header only and is never enqueued.
Author: MVK
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: park-studio
*/



#ps-home{
  max-width:1200px;
  margin-inline:auto;
  padding-inline:var(--space-md);
}
 
/* Vertical rhythm. The constrained Group renders a .wp-block-group__inner-container
   wrapper, so spacing must target that wrapper's children, not #ps-home's. */
#ps-home .wp-block-group__inner-container > *{margin-block:var(--space-lg);}
/* Stronger separation before top-level section headings only (not headings that
   sit inside a column). */
#ps-home > .wp-block-group__inner-container > h2{margin-top:var(--space-3xl);}
#ps-home > .wp-block-group__inner-container > h3{margin-top:var(--space-xl);}
 
/* Hero H1 — reuses existing .gradient-primary + .text-white utilities; this
   class only adds the padding, radius and centering the old hero H1 had. */
#ps-home .ps-hero-title{
  padding:var(--space-2xl) var(--space-xl);
  border-radius:var(--border-radius-lg);
  text-align:center;
  box-shadow:var(--shadow-md);
}
 
/* Google rating / contact line under each listing (source lines that start
   "Google: …"). A subtle brand-green info strip, kept tight to its listing. */
#ps-home p.ps-meta-line{
  margin-block:calc(var(--space-md) * -0.5) var(--space-lg);
  padding:var(--space-sm) var(--space-md);
  background:var(--color-neutral-100);
  border-left:3px solid var(--color-primary);
  border-radius:var(--border-radius-md);
  font-size:0.9375rem;
  color:var(--text-secondary);
}
#ps-home p.ps-meta-line strong{color:var(--color-primary-dark);font-weight:600;}
 
/* --- Images (core/image, incl. those inside columns) -------------------- */
#ps-home .wp-block-image{
  border-radius:var(--border-radius-lg);
  overflow:hidden;
  box-shadow:var(--shadow-md);
  margin-block:var(--space-lg);
}
#ps-home .wp-block-image img{display:block;width:100%;height:auto;}
/* Inside a column the image should hug the column, not add extra stack margin. */
#ps-home .wp-block-column .wp-block-image{margin-block:0;}
 
/* --- Columns (core/columns + core/column) ------------------------------- */
#ps-home .wp-block-columns{
  display:flex;
  flex-wrap:wrap;
  gap:var(--space-2xl);
  align-items:center;
  margin-block:var(--space-2xl);
}
#ps-home .wp-block-column{
  flex:1 1 0%;          /* inline flex-basis (e.g. 33.3%) still wins where set */
  min-width:0;
}
/* Keep text inside a column tidy: no stray top margin on its first block, and a
   softer rhythm than the main column. */
#ps-home .wp-block-column > *{margin-block:var(--space-md);}
#ps-home .wp-block-column > *:first-child{margin-top:0;}
#ps-home .wp-block-column > *:last-child{margin-bottom:0;}
#ps-home .wp-block-column h2,
#ps-home .wp-block-column h3{margin-top:0;}
/* Stack columns on small screens (matches core's 782px breakpoint). The
   !important beats the inline flex-basis:33.3% Gutenberg writes on a sized
   column, and flex-grow:0 keeps a stacked column at its content height. */
@media (max-width:781px){
  #ps-home .wp-block-columns{flex-direction:column;gap:var(--space-md);}
  #ps-home .wp-block-column{
    flex:0 0 100% !important;
    width:100% !important;
  }
}
 
/* --- Core table block (core/table) -------------------------------------- */
/* Gives .wp-block-table the same look the site uses for its .table component,
   since core blocks don't inherit that class. */
#ps-home .ps-table{
  overflow:hidden;                 /* clip so the header corners follow the radius */
  overflow-x:auto;
  border:1px solid var(--color-neutral-200);
  border-radius:var(--border-radius-lg);
  background:var(--color-card-bg);
  box-shadow:var(--shadow-sm);
}
#ps-home .ps-table table{width:100%;border-collapse:collapse;margin:0;}
#ps-home .ps-table th{
  background:var(--color-table-header);
  padding:var(--space-md);
  text-align:left;
  font-weight:600;
  color:var(--text-primary);
  font-family:var(--font-primary);
  border-bottom:2px solid var(--color-neutral-300);
}
#ps-home .ps-table td{
  padding:var(--space-md);
  color:var(--text-primary);
  border-bottom:1px solid var(--color-neutral-200);
  vertical-align:top;
}
#ps-home .ps-table tbody tr:last-child td{border-bottom:none;}
#ps-home .ps-table tbody tr:nth-child(even){background:var(--color-neutral-100);}
#ps-home .ps-table tbody tr:hover{background:var(--color-list-hover);}
 
/* --- Core list block (core/list) ---------------------------------------- */
#ps-home .ps-list{padding-left:var(--space-xl);}
#ps-home .ps-list li{margin-bottom:var(--space-sm);}
#ps-home .ps-list li::marker{color:var(--color-primary);}
 
/* --- Callout groups (core/group with .bg-light) ------------------------- */
#ps-home .ps-callout{
  padding:var(--space-lg);
  border-left:4px solid var(--color-secondary);
  border-radius:var(--border-radius-md);
}
#ps-home .ps-callout .wp-block-group__inner-container > *{margin-block:var(--space-sm);}
#ps-home .ps-callout .wp-block-group__inner-container > *:first-child{margin-top:0;}
#ps-home .ps-callout .wp-block-group__inner-container > *:last-child{margin-bottom:0;}
 
/* --- Yoast SEO FAQ block ------------------------------------------------- */
/* Styled through Yoast's own schema-faq classes so the block markup stays
   canonical and validates cleanly in the editor. */
#ps-home .schema-faq{display:block;}
#ps-home .schema-faq-section{
  background:var(--color-card-bg);
  border:1px solid var(--color-neutral-200);
  border-radius:var(--border-radius-lg);
  padding:var(--space-lg);
  margin-bottom:var(--space-md);
  box-shadow:var(--shadow-sm);
}
#ps-home .schema-faq-question{
  display:block;
  font-family:var(--font-primary);
  font-size:1.15rem;
  font-weight:600;
  color:var(--color-primary-dark);
  margin-bottom:var(--space-sm);
}
#ps-home .schema-faq-answer{margin:0;color:var(--text-secondary);}
 
/* --- Small screens ------------------------------------------------------ */
@media (max-width:768px){
  #ps-home .ps-table{font-size:0.875rem;}
  #ps-home .ps-table th,#ps-home .ps-table td{padding:var(--space-sm);}
  #ps-home .ps-hero-title{padding:var(--space-xl) var(--space-md);}
  #ps-home > .wp-block-group__inner-container > h2{margin-top:var(--space-2xl);}
}
 

/* int pages */
article.container.mt-5{max-width:1120px;}
article.container.mt-5 .lead{color:var(--text-secondary);}

.table-responsive{
  border:1px solid var(--color-neutral-200);
  border-radius:var(--border-radius-lg);
  overflow:hidden;
  overflow-x:auto;
  box-shadow:var(--shadow-sm);
  margin-bottom:var(--space-lg);
}
.table-responsive .table{
  margin:0;
  --bs-table-striped-bg:var(--color-neutral-100);   
}
.table-responsive .table thead th{
  background:var(--color-primary-dark) !important;
  color:var(--text-white) !important;
  font-family:var(--font-primary);
  font-weight:600;
  border-bottom:none;
  padding:var(--space-md);
}
.table-responsive .table td{
  padding:var(--space-md);
  color:var(--text-primary);
  border-color:var(--color-neutral-200);
  vertical-align:middle;
}
.table-responsive .table tbody tr:hover td{background:var(--color-list-hover);}

[id$="-review"]{
  background:var(--color-card-bg);
  border:1px solid var(--color-neutral-200);
  border-radius:var(--border-radius-lg);
  box-shadow:var(--shadow-sm);
  padding:var(--space-xl);
}
[id$="-review"] > h3{
  font-family:var(--font-primary);
  color:var(--text-primary);
  margin-bottom:var(--space-md);
}
[id$="-review"] > h3 figure{margin:0 var(--space-md) 0 0;line-height:0;}
[id$="-review"] > h3 figure img{border-radius:var(--border-radius-sm);}
[id$="-review"] > h3 p{margin:0;}

[id$="-review"] > h3 .bg-white{display:none !important;}



/*  ** additional ** */
.wp-block-table thead {
	background: linear-gradient(135deg,var(--color-primary),var(--color-primary-dark));
	border: none;
}
#ps-home .ps-table th strong {
	color: #fff;
}
#ps-home .ps-table th {
	background: unset;
	color: #fff;
	border: none; 
}
#ps-home .ps-table td {
	border: none;
}
.col-12.col-md-6.col-lg-4 {
  width: 100%;
}

.embtn {
	padding: 8px 20px;
	background-color: #0d6efd !important;
	color: #fff;
	font-weight: bold;
	border-radius: 10px;
}
.embtn:hover {
	background-color: #1055bb !important;
}
.explore-more .card {
	margin-bottom: 1.5rem;
}