/* Allison Natural Resource Consulting, Inc. – One-page site. White, contrast, large type. */

:root {
  --brand-teal: #137696;
  --brand-orange: #e2864c;
  --brand-slate: #5a7a8a;
  --brand-teal-dark: #0f5a72;
  --brand-orange-hover: #c96d32;
  --bg: #fbf8ef;
  --text: #1a1a1a;
  --text-muted: #3d454d;
  --border: #ddd3c3;
  --measure: 60ch;
  --space: 1.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 20px;
  line-height: 1.55;
  color: var(--text);
  min-height: 100vh;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360' viewBox='0 0 360 360'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.58' numOctaves='5' seed='19' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0.38 0 0 0 0.45 0 0.30 0 0 0.34 0 0 0.18 0 0.14 0 0 0 0.42 0'/%3E%3C/filter%3E%3Crect width='360' height='360' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 18% 12%, rgba(124, 92, 48, 0.13), transparent 44%),
    radial-gradient(ellipse at 82% 28%, rgba(19, 118, 150, 0.075), transparent 40%),
    radial-gradient(ellipse at 42% 78%, rgba(96, 76, 42, 0.1), transparent 46%),
    linear-gradient(var(--bg), var(--bg));
  background-size: 360px 360px, 100% 100%, 100% 100%, 100% 100%, auto;
}

.site-header,
.page,
.site-footer {
  position: relative;
  z-index: 1;
}

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

a:hover {
  color: var(--brand-orange);
  text-decoration: underline;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  padding: 1.25rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 0 2rem;
}

.logo-link {
  display: inline-block;
  line-height: 0;
}

.logo-img {
  height: 7.35rem;
  width: auto;
}

.header-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
}

.header-email {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
}

.header-email:hover {
  color: var(--brand-teal);
  text-decoration: underline;
}

.header-phone-btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  background: var(--brand-teal);
  padding: 0.6rem 1.25rem;
  border-radius: 4px;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s;
}

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

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: center;
  }
  .header-contact {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
  }
  .header-email {
    font-size: 1rem;
  }
  .header-phone-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    font-size: 1.1rem;
    padding: 0.75rem 1.25rem;
  }
}

/* Slider / filler image */
.filler-image {
  width: 100%;
  margin: 0;
  padding: 0;
  margin-bottom: 1.2rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

@media (min-width: 900px) {
  .filler-image {
    width: min(130%, calc(100vw - 4rem));
    margin-left: 50%;
    transform: translateX(-50%);
  }
}

.filler-image.slider .slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease-in-out;
}

.filler-image.slider .slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.filler-image.slider .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.filler-image.slider {
  position: relative;
}

.slider-hit {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 2;
  cursor: pointer;
}

.slider-hit-left {
  left: 0;
}

.slider-hit-right {
  right: 0;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s, background 0.2s;
}

.slider-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

.slider-prev {
  left: 0;
}

.slider-next {
  right: 0;
}

.slider-hit-left:hover ~ .slider-prev,
.slider-prev:hover {
  opacity: 1;
}

.slider-hit-right:hover ~ .slider-next,
.slider-next:hover {
  opacity: 1;
}

.slider-dots {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 3;
}

.slider-dots button {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.slider-dots button:hover {
  background: rgba(255, 255, 255, 0.8);
}

.slider-dots button.active {
  background: #fff;
  transform: scale(1.2);
}

/* Main content */
.page {
  max-width: 880px;
  margin: 0 auto;
  padding: 4.5rem 2rem 6rem;
}

/* Identity */
.identity {
  margin-bottom: 4rem;
  padding-top: 0.5rem;
}

.company-name {
  margin: 0 0 1rem;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
}

.tagline {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 500;
  color: var(--brand-orange);
  max-width: var(--measure);
  line-height: 1.4;
}

/* About */
.about {
  margin-bottom: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.about p,
.expect p,
.bio-content p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

.about p strong,
.expect p strong,
.bio-content p strong {
  font-weight: 700;
}

/* Bio */
.bio {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 2rem 2.5rem;
  align-items: start;
  margin-bottom: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.bio-photo {
  border-radius: 6px;
}

.bio-photo img,
.bio-photo svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}

.bio-heading {
  margin: 0 0 0.85rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.bio-location {
  margin-top: 1.25rem !important;
}

.bio-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 2rem;
}

.bio-btn {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s;
}

.bio-btn:hover {
  color: #fff;
  text-decoration: none;
}

.bio-btn-orange {
  background: var(--brand-orange);
}

.bio-btn-orange:hover {
  background: var(--brand-orange-hover);
}

.bio-btn-teal {
  background: var(--brand-teal);
}

.bio-btn-teal:hover {
  background: var(--brand-teal-dark);
}

@media (max-width: 640px) {
  .bio {
    grid-template-columns: 1fr;
  }
  .bio-photo {
    width: 100%;
    max-width: none;
  }
  .bio-contact {
    justify-content: center;
  }
  .bio-btn {
    width: 100%;
    max-width: 320px;
  }
}

/* Services */
.services {
  margin-bottom: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.services-heading,
.expect-heading {
  margin: 0 0 1.75rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-orange);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 3.5rem;
}

.services-col h3 {
  margin: 0 0 0.85rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.services-col ul {
  margin: 0;
  padding-left: 1.35rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.services-col li::marker {
  color: var(--brand-teal);
}

.services-col li {
  margin-bottom: 0.4rem;
}

.services-note {
  margin: 1.5rem 0 0;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: var(--measure);
}

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* What to expect */
.expect {
  margin-bottom: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

/* Contact */
.contact {
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.contact-heading {
  margin: 0 0 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-orange);
}

.contact-location {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2.5rem;
}

.contact-details a {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brand-teal);
}

.contact-details a:hover {
  color: var(--brand-orange);
  text-decoration: underline;
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 2rem 3rem;
  min-height: clamp(155px, 14vw, 230px);
  text-align: center;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background: url("images/footer.png") top center / 100% auto no-repeat;
}

.footer-logo-link,
.footer-tagline,
.footer-copy {
  position: relative;
  z-index: 1;
}

.footer-logo-link {
  display: inline-block;
  line-height: 0;
  margin-bottom: 1rem;
}

.footer-logo-link:hover {
  text-decoration: none;
}

.footer-logo-img {
  height: 6rem;
  width: auto;
}

.footer-tagline {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-copy a {
  color: inherit;
  font-weight: inherit;
  text-decoration: underline;
}

.footer-copy a:hover {
  color: var(--brand-teal);
}

.footer-separator {
  margin: 0 0.4rem;
  color: var(--border-strong);
}

@media (max-width: 640px) {
  .site-footer {
    min-height: max(155px, 27.25vw);
    padding-bottom: 2rem;
  }
  .site-footer::before {
    background-position: bottom center;
  }
}

/* Print */
@media print {
  .site-header,
  .filler-image.slider,
  .slider-arrow,
  .slider-dots,
  .slider-hit {
    display: none !important;
  }
  .page {
    padding-top: 1rem;
  }
  body {
    font-size: 11pt;
  }
  a[href^="mailto:"],
  a[href^="tel:"] {
    text-decoration: none;
    color: var(--text);
  }
}
