/*
Theme Name: Industrial Designer Portfolio
Theme URI: https://example.com
Author: Industrial Designer
Author URI: https://example.com
Description: A clean, minimal WordPress theme for industrial designers and makers. Fully compatible with Elementor for visual editing. Features a modern design system with custom gradients and smooth transitions.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: industrial-designer
Tags: portfolio, design, elementor, creative, minimal, custom-colors
*/

/* ============================================
   Design System Variables (HSL Colors)
   ============================================ */

:root {
  /* Light Mode Colors */
  --background: 0 0% 100%;
  --foreground: 0 0% 15%;
  
  --card: 0 0% 100%;
  --card-foreground: 0 0% 15%;
  
  --primary: 42 45% 57%;
  --primary-foreground: 0 0% 98%;
  
  --secondary: 198 53% 52%;
  --secondary-foreground: 0 0% 98%;
  
  --muted: 0 0% 96%;
  --muted-foreground: 0 0% 46%;
  
  --accent: 51 100% 70%;
  --accent-foreground: 0 0% 15%;
  
  --border: 0 0% 91%;
  --input: 0 0% 91%;
  
  --radius: 0.75rem;
  
  /* Custom Gradients */
  --gradient-hero: linear-gradient(135deg, hsl(42 45% 57%) 0%, hsl(198 53% 52%) 100%);
  --gradient-subtle: linear-gradient(180deg, hsl(0 0% 100%) 0%, hsl(42 15% 98%) 100%);
  
  /* Shadows */
  --shadow-soft: 0 4px 20px -2px hsl(0 0% 15% / 0.08);
  --shadow-hover: 0 8px 30px -4px hsl(0 0% 15% / 0.12);
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Base Styles
   ============================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

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

a:hover {
  color: hsl(var(--secondary));
}

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

/* ============================================
   Layout Containers
   ============================================ */

.site-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   Utility Classes
   ============================================ */

.gradient-hero {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-subtle {
  background: var(--gradient-subtle);
}

.shadow-soft {
  box-shadow: var(--shadow-soft);
}

.shadow-hover {
  box-shadow: var(--shadow-hover);
}

.transition-smooth {
  transition: var(--transition-smooth);
}

/* ============================================
   Card Component
   ============================================ */

.card {
  background: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* ============================================
   Button Component
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-decoration: none;
}

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.btn-primary:hover {
  background: hsl(var(--primary) / 0.9);
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.btn-secondary:hover {
  background: hsl(var(--secondary) / 0.9);
  color: hsl(var(--secondary-foreground));
  box-shadow: var(--shadow-hover);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ============================================
   WordPress Core Alignment
   ============================================ */

.alignleft {
  float: left;
  margin-right: 1.5rem;
}

.alignright {
  float: right;
  margin-left: 1.5rem;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Elementor Compatibility
   ============================================ */

/* Remove default padding/margins for Elementor sections */
.elementor-section-wrap {
  margin: 0;
  padding: 0;
}

/* Ensure full-width sections work properly */
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 1400px;
}

/* Canvas template compatibility */
.elementor-template-canvas .site-header,
.elementor-template-canvas .site-footer {
  display: none;
}

/* Full width template compatibility */
.elementor-page .site-main {
  padding: 0;
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  .container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.25rem; }
  
  .container {
    padding: 0 1rem;
  }
  
  .btn-lg {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* ============================================
   Accessibility
   ============================================ */

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: hsl(var(--background));
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  clip: auto !important;
  color: hsl(var(--foreground));
  display: block;
  font-size: 1rem;
  font-weight: bold;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 0;
  z-index: 999999;
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
  .site-header,
  .site-footer,
  .btn {
    display: none;
  }
}