/*
Theme Name: ScholarCraft - Academic & Essay Writing Services
Theme URI: https://digitfoundry.co.uk/
Author: Digit Foundry
Author URI: https://digitfoundry.co.uk/
Description: A high-converting, modern hybrid WordPress theme tailored for academic research, essay writing, and educational consulting services. Features an interactive price calculator, multi-step order wizard, client tracking portal, expert writer directory, academic paper samples showcase, student reviews, and two-column educational content sections.
Version: 1.4.1
Tested up to: 6.7
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scholarcraft
Tags: education, business, e-commerce, custom-menu, featured-images, full-width-template, theme-options, translation-ready, block-styles
*/

/* ==========================================================================
   Base Normalize & Reset (Theme Root)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Color Palette */
  --sc-primary: #1e3a8a;          /* Deep Oxford Blue */
  --sc-primary-hover: #1e40af;
  --sc-primary-light: #eff6ff;
  --sc-secondary: #0f766e;        /* Academic Teal */
  --sc-secondary-hover: #115e59;
  --sc-accent: #f59e0b;           /* Warm Amber Gold */
  --sc-accent-hover: #d97706;
  --sc-success: #10b981;          /* Emerald Green */
  --sc-danger: #ef4444;
  --sc-warning: #f59e0b;
  --sc-info: #3b82f6;

  /* Neutral Shades */
  --sc-dark: #0f172a;             /* Slate 900 */
  --sc-gray-800: #1e293b;
  --sc-gray-700: #334155;
  --sc-gray-600: #475569;
  --sc-gray-500: #64748b;
  --sc-gray-400: #94a3b8;
  --sc-gray-300: #cbd5e1;
  --sc-gray-200: #e2e8f0;
  --sc-gray-100: #f1f5f9;
  --sc-gray-50: #f8fafc;
  --sc-white: #ffffff;

  /* Typography */
  --sc-font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --sc-font-heading: 'Merriweather', Georgia, 'Times New Roman', serif;
  --sc-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Elevation Shadows */
  --sc-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --sc-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --sc-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --sc-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

  /* Border Radii */
  --sc-radius-sm: 6px;
  --sc-radius-md: 10px;
  --sc-radius-lg: 16px;
  --sc-radius-full: 9999px;

  /* Layout */
  --sc-container-max: 1240px;
  --sc-container-narrow: 860px;
  --sc-transition: all 0.25s ease-in-out;
}

html {
  font-size: 16px;
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--sc-font-sans);
  color: var(--sc-gray-800);
  background-color: var(--sc-gray-50);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

main#primary {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--sc-primary);
  text-decoration: none;
  transition: var(--sc-transition);
}

a:hover {
  color: var(--sc-primary-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sc-font-sans);
  color: var(--sc-dark);
  font-weight: 700;
  line-height: 1.25;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}
