/* ============================================
   ALL THINGS AUTOMATED - MAIN STYLESHEET
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=Inter:wght@300;400;500;600&display=swap');

/* CSS Variables */
:root {
  /* Colors */
  --color-primary: #3A7FC1;
  --color-dark: #0A0A0A;
  --color-text: #888888;
  --color-bg-1: #FFFFFF;
  --color-bg-2: #F7F9FB;
  --color-border: #f2f2f2;
  --color-light-text: #777777;
  --color-muted: #e0e0e0;
  --color-error: #d32f2f;
  --color-success: #4caf50;

  /* Typography */
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Inter', sans-serif;
  --fw-300: 300;
  --fw-400: 400;
  --fw-500: 500;
  --fw-600: 600;
  --fw-700: 700;
  --fw-800: 800;

  /* Spacing & Border Radius */
  --radius-card: 16px;
  --radius-btn: 24px;
  --radius-sm: 8px;
  --radius-input: 8px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s ease;
  --transition-slow: 0.5s ease;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--fw-400);
  color: var(--color-text);
  background-color: var(--color-bg-1);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-800);
  color: var(--color-dark);
  line-height: 1.2;
}

h1 {
  font-size: 52px;
}

h2 {
  font-size: 36px;
}

h3 {
  font-size: 24px;
}

p {
  font-weight: var(--fw-300);
  color: var(--color-text);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

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

/* ============================================
   NAVIGATION
   ============================================ */

nav {
  background-color: var(--color-bg-1);
  border-bottom: 1px solid var(--color-border);
  padding: 16px 40px;
  position: sticky;
  top: 0;
  z-index: 999;
  transition: box-shadow var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

nav.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}

.nav-logo {
  height: 22px;
  display: flex;
  align-items: center;
  font-weight: var(--fw-700);
  color: var(--color-dark);
}

.nav-logo img {
  height: 22px;
  width: auto;
}

.nav-center {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: center;
}

.nav-center a {
  color: var(--color-text);
  font-weight: var(--fw-400);
  font-size: 14px;
  transition: color var(--transition-fast);
}

.nav-center a:hover,
.nav-center a.active {
  color: var(--color-dark);
  font-weight: var(--fw-500);
}

.nav-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-contact {
  color: var(--color-text);
  font-size: 14px;
  font-weight: var(--fw-400);
  transition: color var(--transition-fast);
}

.nav-contact:hover {
  color: var(--color-dark);
}

.btn-quote {
  background-color: var(--color-dark);
  color: white;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: var(--fw-500);
  transition: all var(--transition-fast);
  display: inline-block;
}

.btn-quote:hover {
  opacity: 0.88;
  transform: scale(0.98);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: var(--color-dark);
  transition: all var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-mobile {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background-color: var(--color-bg-1);
  border-bottom: 1px solid var(--color-border);
  flex-direction: column;
  padding: 20px;
  gap: 16px;
}

.nav-mobile a,
.nav-mobile button {
  width: 100%;
  text-align: left;
  padding: 12px;
  color: var(--color-text);
  font-size: 14px;
}

.nav-mobile .btn-quote {
  width: 100%;
  text-align: center;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  padding: 12px 32px;
  border-radius: var(--radius-btn);
  font-weight: var(--fw-500);
  font-size: 14px;
  transition: all var(--transition-fast);
  display: inline-block;
  text-align: center;
  cursor: pointer;
}

.btn-dark {
  background-color: var(--color-dark);
  color: white;
}

.btn-dark:hover {
  opacity: 0.88;
  transform: scale(0.98);
}

.btn-white {
  background-color: var(--color-bg-1);
  color: var(--color-dark);
  border: 1px solid #e0e0e0;
}

.btn-white:hover {
  opacity: 0.88;
  transform: scale(0.98);
}

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

.btn-blue:hover {
  opacity: 0.88;
  transform: scale(0.98);
}

.btn-small {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 12px;
}

.btn-text {
  background: none;
  color: var(--color-text);
  padding: 6px 12px;
  font-size: 12px;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.btn-text:hover {
  color: var(--color-dark);
}

/* ============================================
   FOOTER
   ============================================ */

footer {
  background-color: var(--color-bg-1);
  border-top: 1px solid var(--color-border);
  padding: 60px 40px 20px;
  margin-top: 80px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  margin-bottom: 40px;
}

.footer-col-1 {
  font-weight: var(--fw-300);
}

.footer-logo {
  height: 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.footer-logo img {
  height: 20px;
}

.footer-tagline {
  font-size: 12px;
  color: #aaa;
  margin-bottom: 8px;
}

.footer-location {
  font-size: 12px;
  color: #aaa;
  line-height: 1.6;
}

.footer-col-2,
.footer-col-3 {
  font-weight: var(--fw-300);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
}

.footer-links a {
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-dark);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
}

.footer-contact a {
  color: var(--color-text);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 12px;
  color: #ccc;
  font-weight: var(--fw-300);
}

/* ============================================
   SECTIONS & LAYOUT
   ============================================ */

section {
  padding: 64px 40px;
}

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

.section-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.section-grid-2-gap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.section-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.section-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Scroll Fade-In */
section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background-color: var(--color-bg-1);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
  transition: all var(--transition-fast);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.card-no-shadow {
  box-shadow: none;
}

.card-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.card-content {
  padding: 20px;
}

.card-title {
  font-family: var(--font-body);
  font-weight: var(--fw-600);
  font-size: 14px;
  color: var(--color-dark);
  margin-bottom: 8px;
}

.card-description {
  font-family: var(--font-body);
  font-weight: var(--fw-300);
  font-size: 11px;
  color: var(--color-text);
  margin-bottom: 16px;
  line-height: 1.5;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--color-text);
  font-weight: var(--fw-300);
}

/* ============================================
   HERO SECTIONS
   ============================================ */

.hero {
  background: linear-gradient(135deg, #e8f4f0 0%, #eef6fb 50%, #fdf6ee 100%);
  padding: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 0;
  min-height: 600px;
}

.hero-content {
  padding: 60px;
}

.hero-label {
  font-size: 11px;
  font-weight: var(--fw-500);
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 52px;
  font-weight: var(--fw-800);
  margin-bottom: 24px;
  line-height: 1.1;
  color: var(--color-dark);
}

.hero-subtitle {
  font-size: 16px;
  font-weight: var(--fw-300);
  color: var(--color-light-text);
  max-width: 320px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-centered {
  text-align: center;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-centered h1 {
  margin-bottom: 16px;
}

.hero-centered p {
  font-weight: var(--fw-300);
  color: var(--color-light-text);
  max-width: 600px;
}

/* ============================================
   SLIDER
   ============================================ */

.slider-container {
  background-color: var(--color-bg-2);
  padding: 64px 40px;
}

.slider-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin-bottom: 48px;
}

.slider-header h2 {
  margin: 0;
}

.slider-controls {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
}

.slider-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e8e8e8;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.slider-btn.next {
  background-color: var(--color-dark);
}

.slider-btn:hover {
  transform: scale(1.05);
}

.slider-btn svg {
  width: 20px;
  height: 20px;
  stroke: white;
  stroke-width: 2;
  fill: none;
}

.slider-btn.prev svg {
  stroke: #888;
}

.slider-wrapper {
  overflow: hidden;
  border-radius: 0;
}

.slider-track {
  display: flex;
  gap: 20px;
  transition: transform var(--transition-normal);
}

.slider-card {
  flex: 0 0 calc((100% - 40px) / 3);
}

/* ============================================
   FORM STYLES
   ============================================ */

input[type="text"],
input[type="email"],
input[type="phone"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #eee;
  border-radius: var(--radius-input);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: var(--fw-400);
  color: var(--color-dark);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="phone"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(58, 127, 193, 0.12);
}

textarea {
  resize: vertical;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: var(--fw-500);
  font-size: 12px;
  color: var(--color-dark);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.error-message {
  color: var(--color-error);
  font-size: 12px;
  font-weight: var(--fw-300);
  margin-top: 8px;
  display: none;
}

.error-message.show {
  display: block;
}

.success-message {
  color: var(--color-success);
  font-size: 14px;
  font-weight: var(--fw-300);
  padding: 12px 16px;
  background-color: #f1f8f4;
  border-radius: var(--radius-input);
  margin-bottom: 20px;
  display: none;
}

.success-message.show {
  display: block;
}

/* ============================================
   BADGES & PILLS
   ============================================ */

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: var(--fw-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-blue {
  background-color: #EBF3FB;
  color: var(--color-primary);
}

.badge-gray {
  background-color: #f0f0f0;
  color: #888;
}

.badge-category {
  display: inline-block;
  padding: 4px 8px;
  background-color: var(--color-primary);
  color: white;
  border-radius: 4px;
  font-size: 10px;
  font-weight: var(--fw-600);
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ============================================
   LABELS & TEXT STYLES
   ============================================ */

.label-blue {
  font-size: 11px;
  font-weight: var(--fw-600);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--color-text);
  font-weight: var(--fw-300);
}

.text-small {
  font-size: 12px;
}

.text-italic {
  font-style: italic;
}

.stars {
  font-size: 14px;
  color: var(--color-primary);
  letter-spacing: 2px;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  background-color: var(--color-dark);
  padding: 72px 40px;
  text-align: center;
  color: white;
}

.cta-section h2 {
  color: white;
  margin-bottom: 16px;
}

.cta-section p {
  color: #444;
  font-weight: var(--fw-300);
  margin-bottom: 32px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
  h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 28px;
  }

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

  .slider-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 12px 20px;
  }

  .nav-center,
  .nav-right {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  section {
    padding: 40px 20px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 24px;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 40px 20px;
  }

  .hero-content {
    padding: 0;
  }

  .hero-image {
    min-height: 300px;
  }

  .section-grid-2,
  .section-grid-2-gap {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-grid-4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .slider-card {
    flex: 0 0 100%;
  }

  .slider-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .slider-controls {
    justify-content: flex-start;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .hero-subtitle {
    max-width: 100%;
  }

  .slider-container {
    padding: 40px 20px;
  }

  .card-image {
    height: 240px;
  }

  .slider-header h2 {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 12px 16px;
  }

  section {
    padding: 30px 16px;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 20px;
  }

  .btn {
    font-size: 13px;
    padding: 10px 20px;
  }

  .nav-logo {
    height: 18px;
  }

  .nav-logo img {
    height: 18px;
  }
}
