/*
Theme Name: Trip3L Media GIS Mapping
Theme URI: https://trip3lmedia.com/
Author: Trip3L Media
Author URI: https://trip3lmedia.com/
Description: A professional WordPress theme for Trip3L Media drone GIS, LiDAR, photogrammetry, and spatial analysis services.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trip3l-media
Tags: custom-logo, custom-menu, featured-images, block-styles, wide-blocks, one-column
*/

:root {
  --trip-ink: #132229;
  --trip-deep: #143f52;
  --trip-teal: #1d6a67;
  --trip-green: #6f9b6d;
  --trip-gold: #d7a93d;
  --trip-cream: #f7f3e6;
  --trip-paper: #fffdf7;
  --trip-mist: #dfe9e4;
  --trip-line: rgba(19, 34, 41, .14);
  --trip-shadow: 0 24px 70px rgba(20, 63, 82, .18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--trip-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--trip-paper);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 58px);
  background: rgba(255, 253, 247, .88);
  border-bottom: 1px solid var(--trip-line);
  backdrop-filter: blur(18px);
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 184px;
  font-weight: 800;
  letter-spacing: 0;
}

.custom-logo-link img {
  display: block;
  width: auto;
  max-height: 46px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: white;
  background: conic-gradient(from 135deg, var(--trip-gold), var(--trip-teal), var(--trip-deep), var(--trip-gold));
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(29, 106, 103, .26);
}

.site-title {
  margin: 0;
  font-size: 17px;
  line-height: 1.1;
}

.site-title a {
  color: var(--trip-ink);
}

.main-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.4vw, 34px);
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-navigation a {
  font-size: 14px;
  font-weight: 800;
  opacity: .76;
}

.main-navigation a:hover,
.main-navigation a:focus {
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--trip-line);
  border-radius: 8px;
  background: white;
  color: var(--trip-deep);
}

.trip-button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.trip-button.primary,
.wp-block-button__link {
  color: white;
  background: var(--trip-deep);
  box-shadow: 0 14px 34px rgba(20, 63, 82, .24);
}

.trip-button.secondary {
  color: var(--trip-deep);
  background: rgba(255, 253, 247, .82);
  border-color: rgba(255, 255, 255, .55);
}

.site-hero {
  position: relative;
  min-height: min(720px, calc(100svh - 86px));
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 0;
  background: #183c47;
}

.site-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 253, 247, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 253, 247, .08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .65), transparent 68%);
  pointer-events: none;
}

.hero-asset {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 29, 35, .88) 0%, rgba(13, 29, 35, .58) 42%, rgba(13, 29, 35, .1) 72%),
    linear-gradient(0deg, rgba(13, 29, 35, .86) 0%, rgba(13, 29, 35, .05) 58%);
}

.hero-inner,
.section-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero-inner {
  position: relative;
  padding: 86px 0 46px;
  color: white;
}

.eyebrow,
.section-kicker {
  color: var(--trip-teal);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #f6d36f;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-title {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: .95;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(18px, 2.1vw, 23px);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(790px, 100%);
  margin-top: 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .2);
}

.metric {
  padding: 22px;
  background: rgba(255, 253, 247, .12);
  backdrop-filter: blur(12px);
}

.metric strong {
  display: block;
  margin-bottom: 5px;
  color: #f6d36f;
  font-size: 28px;
  line-height: 1;
}

.metric span {
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 800;
}

.trip-section {
  padding: 88px clamp(18px, 4vw, 58px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(34px, 6vw, 82px);
  align-items: start;
}

.section-kicker {
  margin-bottom: 12px;
}

.section-title {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(32px, 4.6vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  color: rgba(19, 34, 41, .72);
  font-size: 19px;
}

.workflow {
  background: var(--trip-cream);
}

.steps {
  display: grid;
  gap: 16px;
}

.step,
.service,
.output {
  border: 1px solid var(--trip-line);
  border-radius: 8px;
}

.step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 22px;
  background: rgba(255, 253, 247, .72);
}

.step-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: white;
  background: var(--trip-teal);
  border-radius: 8px;
  font-weight: 900;
}

.step h3,
.service h3,
.output h3,
.application h3 {
  margin-bottom: 7px;
}

.step p,
.service p,
.output p,
.application p {
  margin-bottom: 0;
  color: rgba(19, 34, 41, .68);
}

.service-grid,
.output-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.service,
.output {
  padding: 25px;
  background: white;
  box-shadow: 0 16px 45px rgba(20, 63, 82, .08);
}

.icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  color: var(--trip-deep);
  border-radius: 8px;
  background: #e5eee9;
}

.map-panel {
  min-height: 500px;
  padding: 24px;
  border: 1px solid var(--trip-line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 74% 20%, rgba(215, 169, 61, .42), transparent 24%),
    linear-gradient(135deg, #173946, #1d6a67 54%, #d7b56d);
  box-shadow: var(--trip-shadow);
  color: white;
}

.panel-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .14);
  font-size: 12px;
  font-weight: 900;
}

.survey-map {
  position: relative;
  min-height: 350px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, .08) 1px, transparent 1px),
    rgba(255, 255, 255, .08);
  background-size: 44px 44px;
}

.survey-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.applications {
  color: white;
  background: linear-gradient(135deg, #122832 0%, #1d5c5a 52%, #7b7745 100%);
}

.applications .section-kicker,
.applications .lead {
  color: rgba(255, 255, 255, .78);
}

.applications .section-title {
  color: white;
}

.application-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .16);
}

.application {
  padding: 24px;
  background: rgba(255, 255, 255, .1);
}

.application h3 {
  color: #f6d36f;
  font-size: 18px;
}

.application p {
  color: rgba(255, 255, 255, .76);
}

.outputs {
  background: #f0f4ef;
}

.cta {
  padding-block: 72px;
  background: var(--trip-paper);
}

.cta-box {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 5vw, 54px);
  border-radius: 8px;
  background: var(--trip-ink);
  color: white;
  box-shadow: var(--trip-shadow);
}

.cta p {
  max-width: 700px;
  color: rgba(255, 255, 255, .76);
}

.contact-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
}

.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.contact-row:last-child {
  border-bottom: 0;
}

.contact-row span {
  color: rgba(255, 255, 255, .6);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-row strong {
  text-align: right;
}

.site-main,
.entry-content {
  overflow-wrap: break-word;
}

.entry-header,
.entry-content,
.entry-footer,
.post-navigation,
.comments-area,
.not-found {
  width: min(900px, calc(100% - 36px));
  margin-inline: auto;
}

.entry-header {
  padding-top: 76px;
}

.entry-title {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
}

.entry-content {
  padding-bottom: 76px;
  font-size: 18px;
}

.entry-content a {
  color: var(--trip-teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content .alignwide {
  width: min(1180px, calc(100vw - 36px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.entry-content .alignfull {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.site-footer {
  padding: 30px clamp(18px, 4vw, 58px);
  color: rgba(19, 34, 41, .66);
  border-top: 1px solid var(--trip-line);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.footer-widgets {
  width: min(1180px, 100%);
  margin: 0 auto 24px;
}

@media (max-width: 920px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-navigation {
    position: absolute;
    top: calc(100% + 1px);
    right: 18px;
    left: 18px;
    display: none;
    padding: 18px;
    border: 1px solid var(--trip-line);
    border-radius: 8px;
    background: var(--trip-paper);
    box-shadow: var(--trip-shadow);
  }

  .main-navigation.is-open {
    display: block;
  }

  .main-navigation ul {
    display: grid;
    gap: 14px;
  }

  .header-cta {
    display: none;
  }

  .site-hero {
    min-height: min(690px, calc(100svh - 74px));
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(13, 29, 35, .9) 0%, rgba(13, 29, 35, .28) 82%),
      linear-gradient(90deg, rgba(13, 29, 35, .72), rgba(13, 29, 35, .18));
  }

  .hero-metrics,
  .service-grid,
  .output-grid,
  .application-list,
  .cta-box,
  .split {
    grid-template-columns: 1fr;
  }

  .map-panel {
    min-height: 420px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 14px 16px;
  }

  .site-title {
    font-size: 16px;
  }

  .hero-inner {
    width: min(100% - 32px, 1180px);
    padding: 54px 0 34px;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
  }

  .metric {
    padding: 13px 10px;
  }

  .metric strong {
    font-size: 22px;
  }

  .metric span {
    font-size: 11px;
  }

  .trip-section {
    padding: 64px 16px;
  }

  .step {
    grid-template-columns: 1fr;
  }

  .panel-toolbar,
  .footer-inner {
    flex-direction: column;
  }

  .contact-row {
    flex-direction: column;
    gap: 4px;
  }

  .contact-row strong {
    text-align: left;
  }
}
