/* AmritProgrammer — front-page (home) template styles. Loaded only on is_front_page(). */

body.front-page-template {
  margin: 0;
  background-color: var(--color-bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.11  0 0 0 0 0.12  0 0 0 0 0.13  0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
.front-page-template a { color: var(--color-accent-700); text-decoration: none; }
.front-page-template a:hover { color: var(--color-accent-900); text-decoration: underline; }
.front-page-template .page-shell { max-width: 1355px; margin: 0 auto; }
.front-page-template .site {
  background-color: #ffffff;
  box-shadow: -10px 0 24px rgba(0,0,0,0.07), 10px 0 24px rgba(0,0,0,0.07), 0 20px 32px rgba(0,0,0,0.09);
}
.front-page-template .wrap { max-width: 1428px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }
.front-page-template .nav { padding-inline: max(clamp(20px, 5vw, 64px), calc((100% - 1428px) / 2 + clamp(20px, 5vw, 64px))); }
.front-page-template .btn { white-space: nowrap; }
.front-page-template .kicker { display: block; font-size: 16px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--color-accent-700); margin: 0 0 12px; }
.front-page-template .caption-rule { height: 1px; border: 0; margin: 0 0 32px; background: var(--color-divider); }

/* hero */
.front-page-template .hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; background: var(--color-accent-100); padding-bottom: 40px; }
.front-page-template .hero-bg { position: absolute; inset: 0; z-index: 0; display: flex; justify-content: flex-end; opacity: 0.5; }
.front-page-template .hero-bg img { width: clamp(240px, 48vw + 158px, 694px); height: 100%; object-fit: contain; object-position: bottom center; -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 30%); mask-image: linear-gradient(90deg, transparent 0%, black 30%); }
.front-page-template .hero-content { position: relative; z-index: 1; padding-top: 72px; max-width: 1428px; }
.front-page-template .hero-content > * { max-width: 50%; }
.front-page-template .hero .kicker { color: var(--color-accent-700); }
.front-page-template .hero h1 { font-size: clamp(38px, 4.3vw, 58px); line-height: 1.12; text-transform: uppercase; letter-spacing: 0.005em; margin: 0 0 20px; color: var(--color-text); }
.front-page-template .hero .sub { font-size: 20px; line-height: 1.6; max-width: 46ch; color: var(--color-text); margin: 0 0 28px; }
.front-page-template .hero .row { display: flex; gap: 14px; flex-wrap: wrap; max-width: none !important; }

/* contact card overlapping hero */
.front-page-template .contact-wrap { position: relative; padding-top: 24px; padding-bottom: 72px; z-index: 2; display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.front-page-template .blog-list { padding-top: 0; }
.front-page-template .blog-post { padding: 18px 0; border-bottom: 1px solid var(--color-divider); }
.front-page-template .blog-post:last-child { border-bottom: 0; }
.front-page-template .blog-date { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-accent-700); margin-bottom: 6px; }
.front-page-template .blog-post h3 { font-size: 23px; margin: 0 0 8px; text-transform: none; }
.front-page-template .blog-post h3 a { color: var(--color-text); }
.front-page-template .blog-post h3 a:hover { color: var(--color-accent-700); }
.front-page-template .blog-post p { font-size: 17px; line-height: 1.6; margin: 0; color: var(--color-text); }
.front-page-template .blog-empty { font-size: 17px; color: var(--color-text); }
.front-page-template .contact-card { background: #ffffff; box-shadow: var(--shadow-lg); padding: 0; width: 100%; max-width: 652px; margin-left: auto; margin-top: -88px; transform: scale(0.94); transform-origin: top right; margin-bottom: -6%; }
.front-page-template .contact-head { background: var(--color-accent-900); color: #f2f2f3; padding: 28px 32px; }
.front-page-template .contact-head .kicker { color: var(--color-accent-300); }
.front-page-template .contact-card h2 { font-size: 29px; text-transform: uppercase; margin: 0 0 6px; color: inherit; }
.front-page-template .contact-card .note { font-size: 17px; color: #b5d9fd; margin: 0; }
.front-page-template .contact-body { padding: 32px; }
.front-page-template .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.front-page-template .contact-grid .field-full { grid-column: 1 / -1; }
.front-page-template .contact-grid .field { position: relative; }
.front-page-template .contact-grid .field label { display: block; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text); margin-bottom: 6px; }
.front-page-template .icon-field { position: relative; }
.front-page-template .icon-field svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--color-accent-600); pointer-events: none; }
.front-page-template .icon-field .input { padding-left: 38px; }
.front-page-template .contact-grid textarea.input { padding-left: 14px; }
.front-page-template .contact-grid .input { border-radius: 0; transition: border-color 0.15s, box-shadow 0.15s; }
.front-page-template .contact-grid .input:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 20%, transparent); outline: none; }
.front-page-template .contact-submit { display: flex; align-items: center; justify-content: center; gap: 8px; }
.front-page-template .form-notice { font-size: 16px; padding: 10px 14px; margin: 0 0 16px; border: 1px solid var(--color-divider); }
.front-page-template .form-notice-success { color: #1d2d3d; background: var(--color-accent-100); border-color: var(--color-accent-300); }
.front-page-template .form-notice-error { color: #5c1d1d; background: #fbe9e9; border-color: #e3b6b6; }
.front-page-template .subscribe-box { margin-top: 24px; padding: 20px 24px; background: #ffffff; border: 1px solid color-mix(in srgb, var(--color-divider) 60%, transparent); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.front-page-template .subscribe-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.front-page-template .subscribe-form .icon-field { flex: 1; min-width: 160px; }
.front-page-template .subscribe-note { width: 100%; margin: 0; font-size: 16px; color: var(--color-text); }

/* services */
.front-page-template .services { padding: 40px 0 64px; }
.front-page-template .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.front-page-template .cell-frame { position: relative; border: 1px solid var(--color-divider); padding: 24px; }
.front-page-template .cell-frame h3 { font-size: 22px; text-transform: uppercase; margin: 0 0 8px; }
.front-page-template .cell-frame p { font-size: 17px; line-height: 1.6; margin: 0; color: var(--color-text); }

/* about */
.front-page-template .about { padding: 40px 0 64px; display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 48px; align-items: start; }
.front-page-template .about h2 { font-size: 34px; text-transform: uppercase; margin: 0 0 16px; }
.front-page-template .about p { font-size: 19px; line-height: 1.65; color: var(--color-text); }
.front-page-template .stat-row { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--color-divider); }
.front-page-template .stat { padding: 20px; border-left: 1px solid var(--color-divider); }
.front-page-template .stat:first-child { border-left: 0; }
.front-page-template .stat .num { font-family: var(--font-heading); font-weight: 600; font-size: 41px; line-height: 1; color: var(--color-accent-700); }
.front-page-template .stat .lbl { font-size: 16px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-text); margin-top: 6px; }

/* process */
.front-page-template .process { padding: 40px 0 64px; }
.front-page-template .process-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 24px; }
.front-page-template .step { position: relative; border: 1px solid var(--color-divider); padding: 20px 16px; }
.front-page-template .step .step-num { font-family: var(--font-heading); font-weight: 600; font-size: 18px; color: var(--color-accent-700); letter-spacing: 0.06em; }
.front-page-template .step h3 { font-size: 20px; text-transform: uppercase; margin: 10px 0 6px; }
.front-page-template .step p { font-size: 17px; margin: 0; color: var(--color-text); }

/* pricing */
.front-page-template .pricing { padding: 40px 0 64px; }
.front-page-template .price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }
.front-page-template .price-card .tier { padding-top: 14px; border-top: 1px solid var(--color-divider); margin-top: 14px; }
.front-page-template .price-card .tier:first-of-type { border-top: 0; margin-top: 4px; padding-top: 0; }
.front-page-template .price-card .tier-name { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-accent-700); margin-bottom: 4px; }
.front-page-template .price-card .price { font-family: var(--font-heading); font-weight: 600; font-size: 26px; margin: 0 0 6px; }
.front-page-template .price-card .tier p { font-size: 16px; line-height: 1.55; margin: 0; color: var(--color-text); }
.front-page-template .pricing-note { font-size: 16px; color: var(--color-text); margin-top: 16px; }

/* faq */
.front-page-template .faq { padding: 40px 0 72px; }
.front-page-template .faq-list { margin-top: 24px; display: grid; gap: 1px; background: var(--color-divider); border: 1px solid var(--color-divider); }
.front-page-template .faq-item { background: var(--color-bg); padding: 20px 24px; }
.front-page-template .faq-item summary { cursor: pointer; font-family: var(--font-heading); font-weight: 600; font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.front-page-template .faq-item summary::-webkit-details-marker { display: none; }
.front-page-template .faq-item summary::after { content: '+'; font-size: 24px; color: var(--color-accent-700); flex: none; }
.front-page-template .faq-item[open] summary::after { content: '\2212'; }
.front-page-template .faq-item p { margin: 12px 0 0; font-size: 18px; line-height: 1.6; color: var(--color-text); max-width: 65ch; }

/* close + footer */
.front-page-template .close-band { padding: 8px 0 64px; text-align: center; }
.front-page-template .close-band h2 { font-size: 36px; text-transform: uppercase; margin: 0 0 12px; }
.front-page-template .close-band p { max-width: 52ch; margin: 0 auto 24px; color: var(--color-text); }
.front-page-template footer { background: var(--color-accent-900); color: #f2f2f3; }
.front-page-template footer .wrap { padding: 40px clamp(20px, 5vw, 64px) 32px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.front-page-template footer a, .front-page-template footer a:link, .front-page-template footer a:visited { color: #ffd633; }
.front-page-template footer a:hover, .front-page-template footer a:focus { color: #ffe066; }
.front-page-template footer .brand { font-family: var(--font-heading); font-weight: 600; font-size: 24px; text-transform: uppercase; }
.front-page-template footer .cols { display: flex; gap: 56px; flex-wrap: wrap; }
.front-page-template footer .col h4 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.06em; color: #94bce3; margin: 0 0 10px; }
.front-page-template footer .col div { font-size: 17px; line-height: 1.9; }
.front-page-template footer .bottom { border-top: 1px solid color-mix(in srgb, #f2f2f3 20%, transparent); padding: 16px clamp(20px, 5vw, 64px); font-size: 14px; color: #b5d9fd; }

@media (max-width: 880px) {
  .front-page-template .nav { flex-wrap: wrap; gap: 12px; }
  .front-page-template .nav > div { flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
  .front-page-template .nav > div a:not(:last-child) { display: none; }
  .front-page-template .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 24px; }
  .front-page-template .hero-content { padding-top: 32px; }
  .front-page-template .hero-content > * { max-width: 100%; }
  .front-page-template .hero-bg img { opacity: 0.6; }
  .front-page-template .hero-figure { order: -1; }
  .front-page-template .contact-wrap { margin-top: 32px; grid-template-columns: 1fr; }
  .front-page-template .contact-card { order: -1; }
  .front-page-template .contact-card { transform: none; margin: 0; max-width: 100%; margin-bottom: 0; }
  .front-page-template .contact-grid { grid-template-columns: 1fr; }
  .front-page-template .services-grid, .front-page-template .price-grid { grid-template-columns: 1fr; }
  .front-page-template .about { grid-template-columns: 1fr; }
  .front-page-template .stat-row { grid-template-columns: 1fr; }
  .front-page-template .stat { border-left: 0; border-top: 1px solid var(--color-divider); }
  .front-page-template .stat:first-child { border-top: 0; }
  .front-page-template .process-row { grid-template-columns: 1fr 1fr; }
  .front-page-template footer .wrap { flex-direction: column; }
}
@media (max-width: 500px) {
  .front-page-template .process-row { grid-template-columns: 1fr; }
  .front-page-template .hero h1 { font-size: 36px; }
}
