/*
Theme Name: Savara Mahendru Law Chambers
Author: Savara Mahendru Law Chambers
Description: Block theme for the law chambers of advocates Saurabh Savara and Shifali Mahendru. Every page, post, the header and the footer are edited with WordPress blocks.
Version: 4.3.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: savara-mahendru
*/
:root{--indigo:#1d2466;--blue:#2d5be3;--violet:#7a4cf0;--sun:#ffb020;--coral:#ff6b57;--teal:#12a594;--tint:#eaeeff;--mute:#586081;--line:#d8def5}
*{box-sizing:border-box}html{scroll-behavior:smooth}
:focus-visible{outline:3px solid var(--sun);outline-offset:3px}
.wp-site-blocks{padding-left:0;padding-right:0}
.wp-site-blocks>*{margin-block-start:0}
.sm-main{padding-bottom:0}
.sm-main>.wp-block-post-title,.sm-main>.wp-block-post-content{margin-block-start:0}
.sm-page-title{padding-top:56px;margin-bottom:.7em;max-width:960px;margin-left:auto;margin-right:auto}
.sm-main>.wp-block-post-content>*:not(.alignfull){padding-bottom:0}
.sm-main>.wp-block-post-content{padding-bottom:64px}
.sm-main>.wp-block-post-content>.alignfull:last-child{margin-bottom:-64px}
/* header */
header.wp-block-template-part{position:sticky;top:0;z-index:20}
.sm-header{background:linear-gradient(90deg,var(--indigo),#27338f);border-bottom:4px solid var(--sun);padding:6px 24px}
.sm-header-inner{min-height:60px;gap:16px}
.sm-brand{gap:12px;align-items:center}
.sm-brand .wp-block-site-logo{line-height:0}.sm-brand img{display:block}
.sm-brand .wp-block-site-title,.sm-brand .wp-block-site-title a{font-family:var(--wp--preset--font-family--serif);font-size:1.3rem;font-weight:600;color:#fff;text-decoration:none;margin:0}
.sm-header .wp-block-navigation{gap:6px}
.sm-header .wp-block-navigation .wp-block-navigation-item__content{color:#fff;padding:8px 12px;border-radius:999px;font-size:.95rem;text-decoration:none}
.sm-header .wp-block-navigation .wp-block-navigation-item__content:hover,.sm-header .wp-block-navigation .current-menu-item>.wp-block-navigation-item__content{background:var(--sun);color:var(--indigo)}
.sm-header .wp-block-navigation__responsive-container-open{color:#fff}
.sm-header .wp-block-navigation__responsive-container.is-menu-open{background:var(--indigo);color:#fff}
/* hero and sections (the blocks carry these class names) */
.sm-hero{color:#fff;padding-top:100px;padding-bottom:92px;padding-left:24px;padding-right:24px;background:radial-gradient(circle at 85% 15%,rgba(255,176,32,.35),transparent 38%),radial-gradient(circle at 10% 90%,rgba(18,165,148,.35),transparent 40%),linear-gradient(135deg,#1d2466 0%,#2d5be3 62%,#7a4cf0 100%)}
.sm-hero .sm-hero-title{color:#fff;font-size:clamp(2.4rem,6.5vw,4.4rem);max-width:15ch;margin:0 0 .5em}
.sm-hero .sm-lead{max-width:58ch;font-size:1.15rem;color:#e6ebff}
.sm-plate{display:inline-block;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.5);border-left:5px solid var(--sun);border-radius:10px;padding:16px 24px;margin-top:10px;font-family:var(--wp--preset--font-family--serif);font-size:1.3rem;line-height:1.5;color:#fff}
.sm-section{padding:84px 24px}.sm-section-alt{background:var(--tint)}
.wp-block-heading:not(.sm-hero-title)::after{content:none}
.sm-section>h2::after,.sm-main h2.wp-block-heading::after{content:"";display:block;width:64px;height:5px;border-radius:3px;margin-top:12px;background:linear-gradient(90deg,var(--sun),var(--coral))}
.sm-more{font-weight:700;margin-top:1.4em}.sm-intro,.sm-role{color:var(--mute)}.sm-role{font-weight:600;margin-top:0}
.wp-block-button__link{box-shadow:0 6px 16px rgba(255,176,32,.35)}.wp-block-button__link:hover{background:#ffc04d;color:var(--indigo)}
/* cards */
.sm-card,.sm-advocate{background:#fff;border-radius:16px;padding:24px;border-top:6px solid var(--blue);box-shadow:0 10px 30px rgba(29,36,102,.08);height:100%}
.sm-card h3{margin-top:0}.sm-card p{color:var(--mute);font-size:.97rem}
.wp-block-column:nth-child(3n+2)>.sm-card{border-top-color:var(--coral)}.wp-block-column:nth-child(3n+3)>.sm-card{border-top-color:var(--teal)}
.wp-block-columns{margin-bottom:24px}
.sm-advocate{margin-bottom:28px;height:auto}.sm-advocate:nth-of-type(2){border-top-color:var(--coral)}
.sm-advocate h3{margin-top:0;font-size:1.7rem}
.sm-details table{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 8px 24px rgba(29,36,102,.07);font-size:.97rem}
.sm-details td{padding:11px 16px;border:0;border-bottom:1px solid var(--line);vertical-align:top;text-align:left}
.sm-details td:first-child{width:38%;background:var(--tint);color:var(--indigo);font-weight:600}
.sm-details{margin:14px 0 24px}
.sm-declaration{background:#fff;border-left:5px solid var(--sun);border-radius:10px;padding:14px 20px;font-size:.93rem;margin-top:32px}
.sm-declaration p{margin:0}
/* blog */
.sm-posts .wp-block-post-template{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;list-style:none;padding:0;margin:26px 0}
.sm-posts .sm-card{border-top-color:var(--teal)}
.sm-posts .wp-block-post:nth-child(3n+2) .sm-card{border-top-color:var(--coral)}.sm-posts .wp-block-post:nth-child(3n+3) .sm-card{border-top-color:var(--violet)}
.sm-posts .wp-block-post-title{font-size:1.3rem;margin:.3em 0}.sm-posts .wp-block-post-title a{color:var(--indigo);text-decoration:none}.sm-posts .wp-block-post-title a:hover{color:var(--blue);text-decoration:underline}
.sm-meta,.sm-meta-row,.sm-meta-row *{font-size:.85rem;color:var(--mute)}
.sm-meta-row{gap:10px;max-width:760px;margin:0 auto;padding-top:56px}
.sm-article .sm-page-title{max-width:760px;padding-top:12px}
.sm-article .wp-block-post-author-name{max-width:760px;margin:0 auto 1.4em}
.sm-entry{font-family:var(--wp--preset--font-family--serif);font-size:1.2rem;line-height:1.75}
.sm-entry h2,.sm-entry h3{margin-top:1.6em}.sm-entry blockquote{border-left:4px solid var(--sun);margin:1.4em 0;padding-left:18px;color:var(--mute)}
.sm-article .sm-declaration{max-width:760px;margin:36px auto 64px}
.wp-block-query-pagination{gap:10px;margin-top:20px}.wp-block-query-pagination a,.wp-block-query-pagination .page-numbers{padding:6px 14px;border-radius:999px;border:1px solid var(--line);text-decoration:none}
.wp-block-query-pagination .current{background:var(--blue);color:#fff;border-color:var(--blue)}
.sm-main>.wp-block-group>.wp-block-query{padding:0 0 64px}
.sm-main>.wp-block-group>.wp-block-query-title{padding-top:56px}
/* forms */
.sm-formbox{background:linear-gradient(135deg,var(--indigo),var(--blue));border-radius:16px;padding:26px;color:#fff}
form.cf{display:grid;gap:14px}
form.cf input,form.cf textarea{width:100%;padding:12px;font:inherit;border:1px solid rgba(255,255,255,.35);border-radius:10px;background:rgba(255,255,255,.12);color:#fff}
form.cf label{font-size:.9rem;color:#e6ebff}.hp{position:absolute;left:-9999px}
.btn{display:inline-block;background:var(--sun);color:var(--indigo);padding:13px 28px;text-decoration:none;font:inherit;font-weight:700;border:0;border-radius:999px;cursor:pointer;box-shadow:0 6px 16px rgba(255,176,32,.35)}
.btn:hover{background:#ffc04d}.btn.ghost{background:transparent;border:2px solid var(--indigo);color:var(--indigo);box-shadow:none}.btn.ghost:hover{background:var(--tint)}
.notice{padding:12px 16px;border-radius:10px;background:#dcf6ee;color:#0b4d40;margin-bottom:16px}.notice.err{background:#ffe3df;color:#8a2316}
/* footer */
.sm-footer{background:var(--indigo);color:#c9d1f5;padding:36px 24px;font-size:.88rem;border-top:5px solid var(--sun)}
.sm-footer p{margin:.4em 0;max-width:80ch}.sm-footer a{color:#fff}
/* disclaimer gate */
.sm-gate{position:fixed;inset:0;z-index:9999;background:rgba(20,26,80,.95);display:flex;align-items:center;justify-content:center;padding:20px;overflow:auto}
html.sm-ok .sm-gate{display:none}html.sm-gate-on:not(.sm-ok){overflow:hidden}
.gate-card{background:#fff;max-width:680px;width:100%;max-height:92vh;overflow:auto;padding:32px;border-radius:18px;border-top:8px solid var(--sun);color:#1b2145}
.gate-logo{display:block;margin:0 0 10px}.gate-card h2{margin-top:0}.gate-text{font-size:.97rem}.gate-text p{margin:0 0 1em}
.gate-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px;position:sticky;bottom:-32px;background:#fff;padding:14px 0 4px;margin-bottom:-4px}
/* watermark */
body.sm-front::before{content:"";position:fixed;inset:0;z-index:15;pointer-events:none;background:url("assets/watermark.svg") center center/min(78vmin,620px) no-repeat;opacity:.17}
body.block-editor-iframe__body::before,.editor-styles-wrapper::before{display:none}
@media print{body.sm-front::before{opacity:.2}}
@media(max-width:800px){.sm-posts .wp-block-post-template{grid-template-columns:1fr}.sm-hero{padding-top:64px}.sm-details td{display:block;width:100%!important}.sm-brand .wp-block-site-title{font-size:1.05rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.sm-hero-inner{text-align:left}.sm-hero-inner>*{margin-left:0;margin-right:0}.sm-hero-inner .sm-plate{display:block;width:fit-content}
.sm-hero-inner .wp-block-buttons{justify-content:flex-start}
.sm-hero-inner .sm-plate{margin-top:1.3rem;margin-bottom:1.3rem}
.sm-footer p{max-width:1080px}
.sm-main .wp-block-columns{margin-top:.8em}.wp-block-column>h3.wp-block-heading:first-child{margin-top:0}
/* the site stays hidden until the disclaimer is accepted */
html.sm-gate-on:not(.sm-ok) .wp-site-blocks{visibility:hidden}
/* footer links and gate link */
.sm-footer-links{font-size:1rem}.sm-footer-links a{font-weight:700;color:#fff;text-decoration:underline;text-underline-offset:3px}.sm-footer-links a:hover{color:var(--sun)}
.gate-links{font-size:.9rem;margin:0 0 12px}
.sm-main>.wp-block-post-content>h2.wp-block-heading{margin-top:1.8em}.sm-main>.wp-block-post-content>h2.wp-block-heading:first-child{margin-top:0}
.sm-page-title{margin-bottom:.9em}
/* back button and form status */
.sm-back-row{padding-top:28px}.sm-back{margin:0}.sm-back-link{display:inline-block;padding:9px 20px;border-radius:999px;background:var(--tint);color:var(--indigo);font-weight:700;text-decoration:none;border:1px solid var(--line)}
.sm-back-link:hover{background:var(--sun);border-color:var(--sun)}
.sm-back-row + .sm-page-title{padding-top:20px}
.sm-main>.sm-back-row:last-child{padding:0 0 56px}
.sm-form-status{margin:0;min-height:1.2em;font-size:.9rem;color:#e6ebff}
form.cf button[disabled]{opacity:.6;cursor:wait}

.wp-block-read-more{display:inline-block;margin-top:.6em;font-weight:700;color:var(--blue)}

/* article cards: image first, then linked title, excerpt and "Read full blog" */
.sm-post-card{padding:0;overflow:hidden;display:flex;flex-direction:column}
.sm-post-card>*{margin:0}
.sm-post-card .sm-post-image{width:100%;margin:0}.sm-post-card .sm-post-image a{display:block;line-height:0}
.sm-post-card .sm-post-image img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;display:block}
.sm-post-card .wp-block-post-title{padding:18px 24px 0;font-size:1.3rem}
.sm-post-card .wp-block-post-excerpt{padding:8px 24px 0}.sm-post-card .wp-block-post-excerpt__excerpt{margin:0;color:var(--mute);font-size:.97rem}
.sm-post-card .wp-block-read-more{margin:12px 24px 24px;align-self:flex-start}
.sm-posts .wp-block-post:nth-child(3n+1) .sm-card,.sm-posts .wp-block-post:nth-child(3n+2) .sm-card,.sm-posts .wp-block-post:nth-child(3n+3) .sm-card{border-top-width:6px}
/* breadcrumbs and hero image on a post */
.sm-crumbs-row{padding-top:28px}.sm-crumbs ol{list-style:none;display:flex;flex-wrap:wrap;gap:4px 8px;margin:0;padding:0;font-size:.88rem;color:var(--mute)}
.sm-crumbs li+li::before{content:"›";margin-right:8px;color:var(--mute)}.sm-crumbs a{color:var(--blue);text-decoration:none}.sm-crumbs a:hover{text-decoration:underline}
.sm-crumbs-row + .sm-meta-row{padding-top:14px}
.sm-hero-img{max-width:1080px;margin:0 auto 2em}.sm-hero-img img{width:100%;height:auto;border-radius:16px;box-shadow:0 12px 34px rgba(29,36,102,.14)}
/* pictures inside articles */
.sm-entry img{max-width:100%;height:auto;border-radius:12px}
.sm-entry figure{margin:1.8em 0}.sm-entry figcaption{font-family:var(--wp--preset--font-family--sans);font-size:.9rem;line-height:1.5;color:var(--mute);text-align:center;margin-top:.6em}
.sm-entry .alignwide{max-width:1080px}.sm-entry .alignleft{margin:.4em 1.4em 1em 0}.sm-entry .alignright{margin:.4em 0 1em 1.4em}
.sm-entry .wp-block-gallery{gap:12px}
.sm-posts .wp-block-post-template>li{margin:0!important;display:flex}.sm-posts .wp-block-post-template>li>.sm-card{width:100%}
.sm-post-card .wp-block-read-more{margin-top:auto;padding-top:12px}
.sm-post-card .wp-block-post-excerpt{flex:1}
.sm-post-card{padding-bottom:24px}.sm-post-card .wp-block-read-more{margin-bottom:0}
