/*
Theme Name: 2M Flooring Services
Theme URI: https://2mflooringservices.com
Author: 2M Flooring
Author URI: https://2mflooringservices.com
Description: Custom WordPress theme for 2M Flooring Services - Professional flooring installation landing page
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: 2m-flooring
Tags: landing-page, business, flooring, one-page
*/

/* ========================================
   CSS VARIABLES (Design System)
   ======================================== */
:root {
  /* Colors - Charcoal/Slate Palette */
  --primary: #1C2023;
  --dark-base: #191C1F;
  --slate-700: #383D41;
  --slate-500: #494F54;
  --slate-400: #798388;
  --accent: #4A90E2;
  --white: #FFFFFF;
  --black: #111111;
  --text-gray: #666666;
  --border: #E6E9EC;
  
  /* Typography */
  --font-heading: 'Poppins', 'Montserrat', sans-serif;
  --font-body: 'Lato', 'Roboto', sans-serif;
  
  /* Spacing */
  --section-padding: 80px 0;
  --section-padding-mobile: 48px 0;
  
  /* Shadows */
  --shadow-card: 0 6px 18px rgba(0, 0, 0, 0.1);
  --shadow-button: 0 4px 12px rgba(28, 32, 35, 0.2);
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--primary);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  min-height: 48px;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  background: var(--dark-base);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(28, 32, 35, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--slate-700);
}

.btn-secondary:hover {
  background: var(--slate-700);
  color: var(--white);
}

/* ========================================
   CARDS
   ======================================== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
  padding: var(--section-padding);
}

@media (max-width: 768px) {
  .section {
    padding: var(--section-padding-mobile);
  }
}

.section-bg-light {
  background: #F9FAFB;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-gray);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   GRID LAYOUTS
   ======================================== */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-1 { grid-template-columns: 1fr; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 1024px) {
  .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-cols-2,
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center { text-align: center; }
.text-white { color: var(--white); }
.text-gray { color: var(--text-gray); }

.flex { display: flex; }
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

/* ========================================
   WORDPRESS SPECIFIC
   ======================================== */
.wp-caption {
  max-width: 100%;
}

.wp-caption-text {
  font-size: 0.875rem;
  color: var(--text-gray);
  margin-top: 0.5rem;
}

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

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

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