/*
Theme Name: Shrivya Digitals
Theme URI: https://shrivyadigitals.com/
Author: Shrivya Digitals
Author URI: https://shrivyadigitals.com/
Description: A dark, high-contrast digital marketing agency theme with neon cyan accents.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: shrivya-digitals
Tags: custom-logo, custom-menu, featured-images, full-width-template, theme-options
*/

:root {
  --sd-background: #000;
  --sd-surface: #131313;
  --sd-surface-low: #1c1b1b;
  --sd-surface-variant: #353534;
  --sd-text: #e5e2e1;
  --sd-text-muted: #b9cacb;
  --sd-neon: #00f0ff;
  --sd-neon-dim: #00dbe9;
  --sd-outline: #849495;
  --sd-violet: #bf00ff;
  --sd-crimson: #ff003c;
  --sd-radius: 8px;
  --sd-container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sd-background);
  color: var(--sd-text);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--sd-neon); text-decoration: none; }
a:hover { opacity: .85; }

/* WordPress editor and block compatibility */
.wp-site-blocks, .site, .site-content { background: var(--sd-background); color: var(--sd-text); }
.wp-block-group, .entry-content { color: inherit; }
.wp-block-button__link, button, input[type="submit"] {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  padding: .85rem 1.5rem;
  background: var(--sd-neon);
  color: #006970;
  font-family: "JetBrains Mono", monospace;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.wp-block-button__link:hover, button:hover, input[type="submit"]:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(0,240,255,.35);
}

.site-header, header {
  background: rgba(0,0,0,.92);
  border-bottom: 1px solid rgba(132,148,149,.25);
}
.site-footer, footer {
  background: var(--sd-surface);
  color: var(--sd-text-muted);
  border-top: 1px solid rgba(132,148,149,.25);
}

.entry-content, .wp-block-post-content, .site-main { max-width: var(--sd-container); margin-inline: auto; }
.entry-content > *, .wp-block-post-content > * { max-width: 100%; }
h1, h2, h3, h4, h5, h6 {
  color: var(--sd-text);
  font-family: Montserrat, Arial, sans-serif;
  line-height: 1.1;
  font-weight: 800;
}
h1 { font-size: clamp(2.5rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
p, li { color: var(--sd-text-muted); }

input, textarea, select {
  width: 100%;
  background: var(--sd-surface-low);
  color: var(--sd-text);
  border: 1px solid var(--sd-outline);
  border-radius: var(--sd-radius);
  padding: .85rem 1rem;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--sd-neon);
  box-shadow: 0 0 0 3px rgba(0,240,255,.12);
}

.sd-container { width: min(100% - 48px, var(--sd-container)); margin-inline: auto; }
.sd-neon-glow { box-shadow: 0 0 40px rgba(0,240,255,.22); }
.sd-card {
  background: var(--sd-surface);
  border: 1px solid rgba(132,148,149,.3);
  border-radius: var(--sd-radius);
  padding: 1.5rem;
}

@media (max-width: 767px) {
  .sd-container { width: min(100% - 32px, var(--sd-container)); }
  h1 { font-size: clamp(2.4rem, 13vw, 4rem); }
}

/* Single-page layout */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
.single-page-section { scroll-margin-top: 96px; padding-top: 32px; padding-bottom: 64px; }
.single-page-section + .single-page-section { border-top: 1px solid rgba(255,255,255,0.05); }
@media (max-width: 768px) { .single-page-section { padding-top: 24px; padding-bottom: 48px; } }


/* Service details are not part of the normal single-page scroll. They open in a modal after Learn More is clicked. */
.service-details-source { display: none !important; }
body.service-modal-open { overflow: hidden; }
#service-detail-modal { overscroll-behavior: contain; }
.service-detail-modal-panel { overscroll-behavior: contain; }
.service-detail-modal-panel::-webkit-scrollbar { width: 8px; }
.service-detail-modal-panel::-webkit-scrollbar-thumb { background: rgba(0,240,255,.35); border-radius: 999px; }

/* Elementor compatibility: custom HTML widget content uses the same theme styling. */
.elementor-page .single-page-main { position: relative; z-index: 10; }
.elementor-editor-active .service-detail-modal-panel { max-height: 88vh; }
