/*
Theme Name: Vetiri
Theme URI: https://vetiri.com
Author: Vetiri
Description: Corporate block theme for Vetiri. Layout and styling only; all page text is edited in WordPress.
Version: 1.0.8
Requires at least: 6.6
Requires PHP: 7.4
License: Proprietary
Text Domain: vetiri
*/

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
main.vt-main { margin-top: 0 !important; }
.wp-site-blocks > main { margin-block-start: 0 !important; }
main.vt-main > .entry-content { margin-top: 0 !important; }
.vt-main > .wp-block-post-content > *:first-child { margin-top: 0; }
.vt-main > .wp-block-post-content > *:last-child { margin-bottom: 0; }

a { text-underline-offset: 3px; }

/* ---------- Header ---------- */
.vt-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.86);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--wp--preset--color--line);
}
.admin-bar .vt-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .vt-header { top: 46px; } }
.vt-header-inner { padding-block: 18px; gap: 24px; }
.vt-logo { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.vt-logo a { color: var(--wp--preset--color--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.vt-logo a::before {
  content: ""; width: 22px; height: 22px; border-radius: 6px; flex: 0 0 22px;
  background: linear-gradient(135deg, var(--wp--preset--color--accent) 0%, var(--wp--preset--color--accent-2) 100%);
}
.vt-nav { font-size: 0.95rem; font-weight: 500; }
.vt-nav a { color: var(--wp--preset--color--text) !important; text-decoration: none; }
.vt-nav a:hover { color: var(--wp--preset--color--accent) !important; }
.vt-nav .wp-block-navigation__container { gap: 32px; }

/* ---------- Sections ---------- */
.vt-section { padding-block: clamp(64px, 9vw, 120px); }
.vt-section.is-muted, .vt-muted { background: var(--wp--preset--color--mist); }
.vt-section-tight { padding-block: clamp(48px, 6vw, 80px); }

.vt-eyebrow {
  font-size: 0.8rem !important; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--wp--preset--color--accent); margin-bottom: 16px !important;
}
.vt-lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem) !important; line-height: 1.6; color: var(--wp--preset--color--subtle); max-width: 640px; }
.vt-section h2 { margin-top: 0; }
.vt-section-head { margin-bottom: clamp(36px, 5vw, 56px) !important; max-width: 680px; }

/* ---------- Hero ---------- */
.vt-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background-color: var(--wp--preset--color--ink);
  color: #E6EAF2;
  padding-block: clamp(96px, 14vw, 180px) clamp(80px, 11vw, 140px);
}
.vt-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 20%, #000 30%, transparent 80%);
}
.vt-hero::after {
  content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -180px; top: -260px;
  background: radial-gradient(circle, rgba(76,110,245,0.42) 0%, rgba(20,184,166,0.16) 45%, transparent 70%);
  filter: blur(10px);
}
.vt-hero h1, .vt-hero h2 { color: #FFFFFF; }
.vt-hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem) !important; line-height: 1.04; letter-spacing: -0.035em; max-width: 900px; margin-top: 0; }
.vt-hero .vt-lead { color: #A9B3C7; }
.vt-hero .vt-eyebrow { color: #8FA7FF; }
.vt-hero .wp-block-buttons { margin-top: 40px; }
.vt-hero .is-style-outline .wp-block-button__link { color: #FFFFFF !important; border-color: rgba(255,255,255,0.28) !important; background: transparent !important; }
.vt-hero .is-style-outline .wp-block-button__link:hover { border-color: #FFFFFF !important; }

/* Page header (inner pages) */
.vt-page-head {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--wp--preset--color--ink); color: #E6EAF2;
  padding-block: clamp(72px, 10vw, 128px) clamp(48px, 7vw, 88px);
}
.vt-page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}
.vt-page-head .wp-block-post-title { color: #FFFFFF; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.03em; margin: 0; }

/* ---------- Feature grid ---------- */
.vt-features { gap: clamp(20px, 3vw, 32px) !important; }
.vt-feature {
  background: #FFFFFF; border: 1px solid var(--wp--preset--color--line); border-radius: 16px;
  padding: clamp(24px, 3vw, 36px) !important; height: 100%;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.vt-feature:hover { border-color: #C9D2E3; box-shadow: 0 12px 32px -16px rgba(11,18,32,0.18); transform: translateY(-2px); }
.vt-feature h3 { font-size: 1.2rem !important; margin: 0 0 10px; }
.vt-feature p { color: var(--wp--preset--color--subtle); margin: 0; font-size: 0.98rem; line-height: 1.65; }
.vt-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; margin: 0 0 20px !important;
  font-size: 0.85rem !important; font-weight: 700; letter-spacing: 0.02em;
  color: var(--wp--preset--color--accent) !important;
  background: rgba(76,110,245,0.09);
}

/* ---------- Portfolio cards ---------- */
.vt-work { gap: clamp(20px, 3vw, 32px) !important; }
.vt-card {
  background: #FFFFFF; border: 1px solid var(--wp--preset--color--line); border-radius: 20px;
  overflow: hidden; height: 100%; padding: 0 !important; gap: 0 !important;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.vt-card:hover { box-shadow: 0 24px 48px -24px rgba(11,18,32,0.25); transform: translateY(-3px); border-color: #C9D2E3; }
.vt-card-visual {
  position: relative; aspect-ratio: 16 / 9; margin: 0 !important; padding: 0 !important;
  display: flex !important; align-items: center; justify-content: center; overflow: hidden;
}
.vt-card-visual::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 32px 32px;
}
.vt-card-visual p {
  position: relative; margin: 0 !important; color: #FFFFFF; font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2rem) !important; letter-spacing: -0.03em;
  padding: 14px 22px; border-radius: 12px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.vt-mf { background: linear-gradient(135deg, #003040 0%, #0A4A5E 60%, #F88808 160%); }
.vt-sg { background: linear-gradient(135deg, #1A1446 0%, #3B2A7A 45%, #0F6E73 100%); }
.vt-card-body { padding: clamp(24px, 3vw, 32px) !important; margin: 0 !important; }
.vt-card-body h3 { font-size: 1.35rem !important; margin: 0 0 6px; }
.vt-tag { font-size: 0.78rem !important; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wp--preset--color--subtle); margin: 0 0 14px !important; }
.vt-card-body p { color: var(--wp--preset--color--subtle); line-height: 1.65; }
.vt-link a, a.vt-link { font-weight: 600; text-decoration: none; color: var(--wp--preset--color--accent); }
.vt-link a::after { content: " \2192"; transition: margin .2s ease; }
.vt-link a:hover::after { margin-left: 4px; }

/* Case study (Work page) */
.vt-case { gap: clamp(28px, 5vw, 64px) !important; align-items: center !important; }
.vt-case + .vt-case { margin-top: clamp(56px, 8vw, 96px) !important; }
.vt-case .vt-card-visual { border-radius: 20px; }
.vt-case h2 { font-size: clamp(1.7rem, 3vw, 2.3rem) !important; margin: 0 0 12px; }
.vt-case p { color: var(--wp--preset--color--subtle); line-height: 1.7; }
.vt-list { padding-left: 0 !important; list-style: none; margin: 24px 0 28px; }
.vt-list li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--wp--preset--color--text); }
.vt-list li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 3px; background: var(--wp--preset--color--accent); opacity: .85; }

/* ---------- Principles ---------- */
.vt-principles { gap: clamp(24px, 4vw, 48px) !important; }
.vt-principle { border-top: 2px solid var(--wp--preset--color--ink); padding-top: 24px !important; }
.vt-principle h3 { font-size: 1.1rem !important; margin: 0 0 10px; }
.vt-principle p { color: var(--wp--preset--color--subtle); margin: 0; line-height: 1.65; }

/* ---------- CTA band ---------- */
.vt-cta {
  position: relative; overflow: hidden; isolation: isolate; text-align: left;
  background: var(--wp--preset--color--ink); color: #A9B3C7;
  padding-block: clamp(64px, 9vw, 112px);
}
.vt-cta::after {
  content: ""; position: absolute; z-index: -1; width: 600px; height: 600px; left: -200px; bottom: -340px;
  background: radial-gradient(circle, rgba(20,184,166,0.30) 0%, rgba(76,110,245,0.18) 45%, transparent 70%);
}
.vt-cta h2 { color: #FFFFFF; font-size: clamp(1.9rem, 4vw, 2.8rem) !important; margin: 0 0 12px; letter-spacing: -0.03em; }
.vt-cta p { color: #A9B3C7; }
.vt-cta .wp-block-buttons { margin-top: 28px; }

/* ---------- Contact ---------- */
.vt-contact-card {
  border: 1px solid var(--wp--preset--color--line); border-radius: 20px; background: #FFFFFF;
  padding: clamp(28px, 4vw, 48px) !important;
}
.vt-contact-card h3 { font-size: 1rem !important; text-transform: uppercase; letter-spacing: .12em; color: var(--wp--preset--color--subtle); margin: 0 0 8px; }
.vt-contact-card .vt-big { font-size: clamp(1.3rem, 3vw, 1.9rem) !important; font-weight: 600; letter-spacing: -0.02em; margin: 0; word-break: break-word; }
.vt-contact-card .vt-big a { color: var(--wp--preset--color--ink); text-decoration: none; }
.vt-contact-card .vt-big a:hover { color: var(--wp--preset--color--accent); }

/* ---------- Legal / prose ---------- */
.vt-prose { padding-block: clamp(56px, 8vw, 96px); }
.vt-prose h2 { font-size: 1.4rem !important; margin-top: 2.4em; }
.vt-prose p, .vt-prose li { color: var(--wp--preset--color--text); line-height: 1.75; }

/* ---------- Footer ---------- */
.vt-footer { background: var(--wp--preset--color--ink); color: #8D97AB; padding-block: 64px 40px; font-size: 0.92rem; }
.vt-footer a { color: #C5CCDA; text-decoration: none; }
.vt-footer a:hover { color: #FFFFFF; }
.vt-footer .vt-logo a { color: #FFFFFF; }
.vt-footer-top { gap: 32px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.vt-footer-links { gap: 28px !important; }
.vt-footer-links p { margin: 0; }
.vt-footer-bottom { padding-top: 28px; gap: 16px; }
.vt-footer-bottom p { margin: 0; }
.vt-footer .vt-footer-tag { margin: 12px 0 0; max-width: 340px; color: #8D97AB; }

/* ---------- Left alignment to the 1200px column ---------- */
.vt-hero > *, .vt-cta > *, .vt-page-head > *, .vt-prose > *,
.vt-section > .vt-section-head {
  margin-left: max(0px, calc((100% - 1200px) / 2)) !important;
  margin-right: auto !important;
}
.vt-section-head > * { margin-left: 0 !important; margin-right: 0 !important; }
.vt-features + .vt-features { margin-top: clamp(20px, 3vw, 32px) !important; }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: background-color .2s ease, transform .2s ease, border-color .2s ease; }
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover { background-color: #3651D6 !important; transform: translateY(-1px); }
.is-style-outline .wp-block-button__link { border-width: 1px !important; }

/* ---------- Responsive ---------- */
@media (max-width: 781px) {
  .vt-header-inner { padding-block: 14px; }
  .vt-hero::after { width: 460px; height: 460px; right: -220px; top: -200px; }
  .vt-case { flex-direction: column-reverse; }
  .vt-footer-top, .vt-footer-bottom { flex-direction: column; align-items: flex-start !important; }
  .vt-footer-links { flex-wrap: wrap; gap: 16px 24px !important; }
  .vt-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
  .vt-hero .wp-block-button, .vt-cta .wp-block-button { width: 100%; }
  .vt-hero .wp-block-button__link, .vt-cta .wp-block-button__link { width: 100%; text-align: center; }
}
@media (min-width: 782px) and (max-width: 1024px) {
  .vt-features.wp-block-columns { flex-wrap: wrap !important; }
  .vt-features > .wp-block-column { flex-basis: calc(50% - 16px) !important; flex-grow: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Mobile menu overlay */
.wp-block-navigation__responsive-container.is-menu-open { background: #FFFFFF; padding: 32px 24px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 24px; font-size: 1.4rem; }

/* ---------- Logo image ---------- */
.vt-logo-img a::before { display: none !important; }
.vt-logo-img a { display: inline-block; line-height: 0; }
.vt-logo-img img { display: block; height: 56px; width: auto; }
.vt-footer .vt-logo-img img { height: 36px; }
@media (max-width: 600px) { .vt-logo-img img { height: 44px; } .vt-footer .vt-logo-img img { height: 32px; } }
