/* ahrNow - single stylesheet, no framework */
:root {
  --accent: #38a7bb;
  --accent-dark: #2a8496;
  --text: #333;
  --muted: #888;
  --bg: #fff;
  --bg-alt: #f7f7f7;
  --footer-bg: #555;
  --footer-text: #ddd;
  --max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Roboto", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}
.brand img { display: block; height: 48px; width: auto; }

.nav-toggle {
  display: none;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 18px;
  cursor: pointer;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.site-nav a {
  display: block;
  padding: 22px 16px;
  color: #555;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 14px;
  border-top: 3px solid transparent;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  text-decoration: none;
  border-top-color: var(--accent);
}

@media (max-width: 767px) {
  .nav-toggle { display: block; }
  .site-header .container { flex-wrap: wrap; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding-bottom: 8px; }
  .site-nav a { padding: 10px 4px; border-top: 0; border-left: 3px solid transparent; }
  .site-nav a.active, .site-nav a:hover { border-left-color: var(--accent); padding-left: 10px; }
}

/* ---------- Page heading ---------- */
.page-heading {
  background: var(--bg-alt);
  border-bottom: 1px solid #eee;
  padding: 28px 0;
}
.page-heading h1 {
  margin: 0;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #555;
}

main { display: block; }
.content { padding: 40px 0 60px; }

/* ---------- Carousel ---------- */
.hero {
  position: relative;
  background: url("../img/photogrid.jpg") center / cover;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  opacity: .9;
}
.hero .container { position: relative; padding-top: 48px; padding-bottom: 24px; }

.slides { position: relative; }
.slide {
  display: none;
  grid-template-columns: 5fr 7fr;
  gap: 32px;
  align-items: center;
  min-height: 380px;
}
.slide.active { display: grid; animation: fade .6s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.slide-text { text-align: right; }
.slide h2 {
  margin: 0 0 16px;
  font-size: 34px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.slide p { margin: 0 0 10px; }
.slide-links { list-style: none; margin: 16px 0 0; padding: 0; }
.slide-links li { margin: 4px 0; }
.slide-links a { color: powderblue; font-weight: 700; font-size: 14px; }
.slide-links a:hover { color: #fff; }
.slide-img img { display: block; margin: 0 auto; max-height: 420px; border-radius: 4px; }
.version { font-size: 12px; opacity: .7; margin-top: 12px; }

.slide-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.slide-controls button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .6);
  color: #fff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 16px;
}
.slide-controls button:hover { background: rgba(255, 255, 255, .15); }
.dots { display: flex; gap: 8px; }
.dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #666;
}
.dots button.active, .dots button:hover { background: #fff; }

@media (max-width: 767px) {
  .slide { grid-template-columns: 1fr; text-align: center; min-height: 0; }
  .slide-text { text-align: center; }
  .slide h2 { font-size: 24px; }
}

/* ---------- Feature boxes ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 50px 0 20px;
  text-align: center;
}
.feature .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 22px;
  transition: transform .2s ease-out, background .2s, color .2s;
}
.feature:hover .icon { transform: scale(1.1); background: var(--accent); color: #fff; }
.feature h3 {
  font-size: 17px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #555;
  font-weight: 800;
}
.feature h3 a { color: inherit; }
.feature p { color: var(--muted); }
@media (max-width: 991px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .features { grid-template-columns: 1fr; } }

/* ---------- Section titles ---------- */
.section { padding: 40px 0 60px; }
.section-alt { background: var(--bg-alt); }
.section-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #555;
  margin: 0 0 32px;
}

/* ---------- Post cards ---------- */
.post-list { display: grid; gap: 32px; }
.post-card {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 24px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 20px;
}
.post-card img { border-radius: 4px; display: block; }
.post-card h2, .post-card h3 { margin-top: 0; }
.meta { color: var(--muted); font-size: 14px; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .05em;
}
.btn:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
@media (max-width: 767px) { .post-card { grid-template-columns: 1fr; } }

/* ---------- Article ---------- */
.article { max-width: 820px; margin: 0 auto; }
.article figure { margin: 24px 0; }
.article figure img { width: 100%; border-radius: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.tags li {
  background: var(--bg-alt);
  border: 1px solid #e3e3e3;
  border-radius: 3px;
  padding: 2px 10px;
  font-size: 13px;
  color: #666;
}

/* ---------- Two-column layout (contact) ---------- */
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
@media (max-width: 767px) { .two-col { grid-template-columns: 1fr; } }

blockquote {
  margin: 24px 0;
  padding: 12px 20px;
  border-left: 4px solid var(--accent);
  background: var(--bg-alt);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 40px 0 20px;
}
.site-footer .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.site-footer h4 { color: #fff; text-transform: uppercase; letter-spacing: .08em; margin-top: 0; }
.site-footer a { color: #fff; }
.site-footer .recent { display: flex; gap: 12px; align-items: center; }
.site-footer .recent img { width: 80px; border-radius: 3px; }
@media (max-width: 767px) { .site-footer .container { grid-template-columns: 1fr; } }

.copyright {
  background: #333;
  color: #ccc;
  font-size: 13px;
  padding: 16px 0;
}
.copyright a { color: #fff; }
