/* AMG Construction & STSS Website Styles */

:root {
  --brand: #0c5adb;
  --brand-dark: #0a47ac;
  --ink: #111;
  --muted: #5b6876;
  --bg: #ffffff;
  --soft: #f5f7fb;
  --accent: #00a3ff;
  --maxw: 1280px;
  --radius: 14px;
  --shadow: 0 6px 18px rgba(0,0,0,.06);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 6%;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand);
  color: white;
  padding: 8px;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Header - Simple & Clean */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #e9eef7;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 0 3%;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  position: relative;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  font-size: 16px;
  flex-shrink: 0;
}

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

.menu {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.menu a {
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
  padding: 6px 10px;
  white-space: nowrap;
  background: #fff;
}

.menu a:hover {
  color: var(--brand);
  text-decoration: none;
  background: #fff;
}

.phone-stack {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  background: #fff;
}

.phone-stack a {
  color: var(--brand);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  padding: 0;
  background: #fff;
}

.phone-stack a:hover {
  color: var(--brand-dark);
  text-decoration: none;
  background: #fff;
}

.cta-outline {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--brand);
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
}

.cta-outline:hover {
  background: #fff;
  color: var(--brand-dark);
  text-decoration: none;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--ink);
  margin: 5px 0;
  border-radius: 2px;
}

/* Subnav */
.subnav {
  background: #0b1220;
}

.subnav .container {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  color: #cfe1ff;
  padding: 10px 0;
}

.taglist {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  background: #10203a;
  color: #d6e4ff;
  border: 1px solid #223b69;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #eef4ff, #ffffff);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 32px;
  align-items: center;
  padding: 42px 0;
}

.hero .wrap > div:first-child {
  padding-left: 8%;
  text-align: left;
}

/* Typography */
h1 {
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 14px;
}

h2 {
  font-size: 28px;
  margin: 28px 0 12px;
}

h3 {
  font-size: 20px;
  margin: 18px 0 10px;
}

p.lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 18px;
}

.small {
  font-size: 14px;
  color: var(--muted);
}

/* Badges */
.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
  justify-content: flex-start;
}

.badge {
  background: #fff;
  border: 1px solid #e1e8f5;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
}

/* Buttons */
.btn {
  display: inline-block;
  border: 1px solid var(--brand);
  color: #fff;
  background: var(--brand);
  padding: 10px 14px;
  border-radius: 10px;
}

.btn.alt {
  background: #fff;
  color: var(--brand);
}

.btn:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* Grid & Cards */
.grid {
  display: grid;
  gap: 18px;
}

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

.card {
  background: #fff;
  border: 1px solid #e9eef7;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card h3 .icon {
  font-size: 24px;
  line-height: 1;
}

/* Sections */
.section {
  padding: 38px 0;
}

.section.soft {
  background: var(--soft);
}

/* KPIs */
.kpis {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.kpi {
  background: #fff;
  border: 1px solid #e9eef7;
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 140px;
  text-align: center;
}

.kpi b {
  display: block;
  font-size: 22px;
}

/* Testimonials */
.testimonials .item {
  background: #fff;
  border: 1px solid #e9eef7;
  border-left: 4px solid var(--brand);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

/* Photo Slider */
.photo-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: #f5f7fb;
  box-shadow: var(--shadow);
  height: 500px;
}

.slider-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.slide-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(11,18,32,0.95), rgba(11,18,32,0.85) 70%, transparent);
  color: #fff;
  padding: 40px 20px 16px;
  text-align: center;
}

.slide-caption h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: #fff;
}

.slide-caption p {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  color: #dbe7ff;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}

.slider-btn:hover {
  background: #fff;
}

.slider-prev {
  left: 16px;
}

.slider-next {
  right: 16px;
}

/* Contact Form */
.contact-form {
  background: #fff;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid #e9eef7;
  box-shadow: var(--shadow);
}

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

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1dae8;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form .btn {
  width: 100%;
  margin-top: 10px;
  cursor: pointer;
  font-size: 16px;
  padding: 12px;
}

/* Footer */
.footer {
  background: #0b1220;
  color: #b9c3d0;
  padding: 28px 0;
  margin-top: 40px;
}

.footer a {
  color: #dbe7ff;
}

/* Tablet & Mobile */
@media (max-width: 900px) {
  /* Header */
  .header {
    padding: 0 8%;
  }
  
  .nav {
    padding: 12px 0;
  }
  
  .logo {
    font-size: 16px;
    gap: 10px;
  }
  
  .logo-img {
    height: 59px;
  }
  
  .hamburger {
    display: block;
  }
  
  .menu {
    display: none;
    position: absolute;
    left: -8%;
    right: -8%;
    top: 100%;
    background: #fff;
    border-top: 1px solid #e9eef7;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  
  .menu.open {
    display: block;
  }
  
  .menu a {
    display: block;
    padding: 14px 8%;
    border-bottom: 1px solid #f5f7fb;
    font-size: 15px;
    background: #fff;
  }
  
  .menu a:hover {
    background: #fff;
    color: var(--brand);
  }
  
  .phone-stack {
    padding: 14px 8%;
    border-bottom: 1px solid #f5f7fb;
    border-left: none;
    border-right: none;
    border-top: none;
    border-radius: 0;
  }
  
  .phone-stack a {
    padding: 6px 0;
    font-size: 15px;
  }
  
  /* Layout */
  .hero .wrap {
    grid-template-columns: 1fr !important;
  }
  
  .grid.cards {
    grid-template-columns: 1fr;
  }
  
  .grid {
    grid-template-columns: 1fr !important;
  }
  
  .container {
    padding: 0 8%;
  }
  
  .subnav .container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 12px 8%;
  }
  
  .taglist {
    justify-content: center;
  }
  
  .footer .grid {
    grid-template-columns: 1fr !important;
  }
}

/* Mobile */
@media (max-width: 600px) {
  /* Header */
  .header {
    padding: 0 6%;
  }
  
  .nav {
    padding: 10px 0;
  }
  
  .logo {
    font-size: 15px;
    gap: 8px;
  }
  
  .logo-img {
    height: 52px;
  }
  
  .menu {
    left: -6%;
    right: -6%;
  }
  
  .menu a {
    padding: 14px 8%;
    font-size: 15px;
  }
  
  /* Typography */
  h1 {
    font-size: 24px;
    line-height: 1.3;
  }
  
  h2 {
    font-size: 20px;
  }
  
  h3 {
    font-size: 18px;
  }
  
  p.lead {
    font-size: 15px;
  }
  
  /* Layout */
  .container {
    padding: 0 8%;
  }
  
  .section {
    padding: 28px 0;
  }
  
  .hero .wrap {
    padding: 28px 0;
  }
  
  .photo-slider {
    height: 350px;
  }
  
  .slide-caption {
    padding: 24px 16px 14px;
  }
  
  .slide-caption h3 {
    font-size: 17px;
  }
  
  .slide-caption p {
    font-size: 14px;
  }
  
  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 20px;
  }
  
  .slider-prev {
    left: 8px;
  }
  
  .slider-next {
    right: 8px;
  }
  
  .grid.cards {
    grid-template-columns: 1fr !important;
  }
  
  .grid {
    grid-template-columns: 1fr !important;
  }
  
  /* Components */
  .subnav {
    padding: 14px 0;
  }
  
  .subnav .container {
    padding: 0 8%;
  }
  
  .subnav .container > div:first-child {
    font-size: 14px;
    line-height: 1.4;
  }
  
  .tag {
    font-size: 12px;
    padding: 5px 10px;
  }
  
  .badges {
    justify-content: center;
  }
  
  .badge {
    font-size: 13px;
    padding: 6px 10px;
  }
  
  .card {
    padding: 18px;
  }
  
  .kpis {
    flex-direction: column;
  }
}
