/**
 * Taylor Toolworks - Modern Industrial Stylesheet
 * Integrated Design: Dark Theme, Desktop/Mobile Nav, and Precision Alignments
 */

:root {
  /* Core Brand Palette */
  --bg: #0b0f17;
  --card: #111827;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, .08);
  --brand: #4f46e5;
  --brand-glow: rgba(79, 70, 229, 0.3);
  --success: #22c55e;
  --error: #ef4444;
  
  /* Layout & Geometry */
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --radius: 18px;
  --max: 1160px;
  --line-height-body: 1.65;
  --max-width-text: 75ch; 
}

/* --- Base Resets --- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #070a10, #0b0f17 40%, #070a10);
  color: var(--text);
  line-height: var(--line-height-body);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: all 0.2s ease; }

.container { 
  width: min(var(--max), calc(100% - 40px)); 
  margin: 0 auto; 
}

/* --- Typography --- */
h1, h2, h3 { 
  color: #ffffff; 
  font-weight: 700; 
  margin-bottom: 0.5em; 
  letter-spacing: -0.02em; 
}

h1 { font-size: clamp(32px, 5vw, 48px); line-height: 1.1; }
h2 { font-size: 32px; border-bottom: 2px solid var(--brand); display: inline-block; padding-bottom: 8px; margin-bottom: 1.5rem; }
h3 { font-size: 1.25rem; }

p { max-width: var(--max-width-text); margin-bottom: 1.2rem; }
.lead { font-size: 18px; color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }

/* --- Header & Desktop Navigation --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 15, 23, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner { 
  display: flex; align-items: center; justify-content: space-between; 
  padding: 14px 0; gap: 16px; 
}

.brand img { width: 150px; height: auto; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-desktop a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 10px;
}

.nav-desktop a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

/* --- Mobile Navigation & Burger --- */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 10px 0 20px;
  border-top: 1px solid var(--line);
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  padding: 14px 0;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--line);
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
}

.burger span { width: 20px; height: 2px; background: #fff; border-radius: 2px; }

/* --- Buttons --- */
.actions { display: flex; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border-radius: 14px; font-weight: 700; font-size: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.06); 
  cursor: pointer;
}
.btn:hover { background: rgba(255, 255, 255, 0.12); }
.btn.primary { 
  background: linear-gradient(135deg, var(--brand), #7c3aed); 
  border-color: transparent; color: #fff; 
}

/* --- Sections & Cards --- */
.section { padding: 60px 0; }
.section p.sub { margin-bottom: 2rem; color: var(--muted); }

.hero { padding: 60px 0 30px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 24px; }

.hero-card { 
  border: 1px solid var(--line); border-radius: var(--radius); 
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: var(--shadow); overflow: hidden;
}

.hero-copy { padding: 40px; }
.hero-photo {
  position: relative; min-height: 320px;
  background: url('../img/gallery-image1.jpg') center/cover no-repeat;
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); padding: 24px; border-radius: var(--radius); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: rgba(255,255,255,.03); border: 1px solid var(--line); padding: 24px; border-radius: var(--radius); }

/* --- Gallery --- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.tile img { aspect-ratio: 4/3; object-fit: cover; transition: transform 0.4s; }
.tile:hover img { transform: scale(1.05); }

/* --- Contact Section & Row Alignment --- */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 24px; }
.contact-card { background: var(--card); border: 1px solid var(--line); padding: 30px; border-radius: var(--radius); }

.contact-rows { display: grid; gap: 24px; }
.row { display: flex; gap: 16px; align-items: flex-start; }

.row .icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line); font-size: 1.2rem; color: var(--brand);
}

.row div { display: flex; flex-direction: column; justify-content: center; min-height: 44px; }
.row strong { display: block; font-size: 15px; color: #fff; line-height: 1.2; }
.row span, .row a { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }

/* --- Forms --- */
.form .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.form .stack { display: grid; gap: 12px; }
.form input, .form textarea {
  width: 100%; padding: 14px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25);
  color: #fff; font-size: 16px; outline: none;
}
.form input:focus, .form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-glow); }
.hp { display: none; }

/* --- Footer (Clean, No Logo) --- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); background: #070a10; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: #fff; }

/* --- Utilities & Responsive --- */
.hr { height: 1px; background: var(--line); margin: 24px 0; }

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .burger { display: flex; }
  .hero-grid, .cards, .split, .contact-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}