/* ============================================================
   JELINEK WELL DRILLING — Modern Redesign
   ============================================================ */

/* --- Variables --- */
:root {
  --navy:     #000066;
  --teal:     #177e84;
  --red:      #c0151e;
  --cream:    #efefe0;
  --tan:      #e1e1c4;
  --charcoal: #424251;
  --white:    #ffffff;
  --text:     #1f1f33;
  --muted:    #5a5a70;
  --border:   #d4d4b8;
  --focus-ring: rgba(23,126,132,.35);
  --teal-light: #9ee6ea;
  --red-dark: #a0101a;
  --hero-pink: #ffc8cb;

  --font-head:   'Bree Serif', Georgia, serif;
  --font-script: 'Marck Script', cursive;
  --font-body:   'Inter', 'Helvetica Neue', Arial, sans-serif;

  --max-w:    70rem;
  --radius:   0.375rem;
  --shadow:   0 0.125rem 0.75rem rgba(0,0,0,.10);
  --shadow-lg:0 0.375rem 2rem rgba(0,0,0,.14);
  --ease:     0.2s ease;
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: var(--font-body); font-size: 1rem; line-height: 1.65;
        color: var(--text); background: var(--cream); }
img   { max-width: 100%; height: auto; display: block; }
a     { color: var(--navy); text-decoration: none; }
a:hover { color: var(--teal); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: .1875rem solid var(--focus-ring);
  outline-offset: .1875rem;
}
ul    { list-style: none; }
button { font-family: var(--font-body); }

/* --- Utilities --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }

/* --- Type --- */
h1,h2,h3,h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.tagline {
  font-family: var(--font-script);
  color: var(--red);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
}
.divider {
  width: 3.25rem; height: 0.25rem;
  background: linear-gradient(90deg, var(--red), var(--teal));
  border-radius: 0.125rem; margin-bottom: 1.5rem;
}
.divider-c { margin-left: auto; margin-right: auto; }
.section-label {
  font-family: var(--font-script);
  color: var(--teal); font-size: 1.1rem;
  display: block; margin-bottom: 0.375rem;
}

/* ================================================================
   HEADER
   ================================================================ */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  box-shadow: 0 0.125rem 0.5rem rgba(0,0,0,.3);
}
.header-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem; gap: 1rem;
}

/* Logo */
.site-logo { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.logo-mark {
  width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark img { width: 2.75rem; height: 2.75rem; object-fit: contain; }
.logo-mark { font-size: 0.65rem; }
.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: var(--font-head); font-size: 1.05rem;
  color: var(--white); line-height: 1.1;
}
.logo-sub {
  font-size: 0.65rem; color: rgba(255,255,255,.65);
  text-transform: uppercase; letter-spacing: .08em;
}

/* Phone */
.header-phone {
  color: var(--white); font-size: 1.2rem; font-weight: 700;
  white-space: nowrap; letter-spacing: .02em;
}
.header-phone:hover { color: var(--teal-light); }

/* Nav */
.site-nav { display: flex; align-items: center; gap: 0.125rem; }
.site-nav a {
  color: rgba(255,255,255,.85); font-size: .85rem; font-weight: 600;
  padding: 0.4375rem 0.6875rem; border-radius: var(--radius); white-space: nowrap;
  transition: background var(--ease), color var(--ease);
}
.site-nav a:hover,
.site-nav a.site-nav__link--active { background: rgba(255,255,255,.13); color: var(--white); }
.nav-cta {
  background: var(--red) !important; color: var(--white) !important;
  padding: 0.4375rem 1rem !important;
}
.nav-cta:hover { background: var(--red-dark) !important; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column;
  justify-content: center; gap: 0.3125rem;
  width: 2.75rem; height: 2.75rem;
  background: none; border: none; cursor: pointer; padding: 0.25rem;
}
.nav-toggle i {
  display: block; height: 0.125rem;
  background: var(--white); border-radius: 0.125rem;
  transition: transform .25s, opacity .25s;
}
.nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: translateY(0.4375rem) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { transform: translateY(-0.4375rem) rotate(-45deg); }

/* ================================================================
   PAGE BANNER (inner pages)
   ================================================================ */

.page-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #001799 100%);
  padding: 3.25rem 1.5rem; text-align: center;
}
.page-banner h1 { color: var(--white); margin-bottom: 0.375rem; }
.page-banner .tagline { color: rgba(255,255,255,.8); font-size: 1.1rem; }

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

.hero { position: relative; overflow: hidden; background: var(--navy); height: clamp(20rem, 56svh, 33.75rem); }
.slider { display: flex; height: 100%; transition: transform .6s cubic-bezier(.4,0,.2,1); will-change: transform; }
.slide { flex: 0 0 100%; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.slide::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,55,.72) 0%, rgba(0,0,40,.35) 60%, transparent 100%);
}
.slide-caption {
  position: absolute; top: 50%; left: 10%;
  transform: translateY(-50%);
  z-index: 2; max-width: 31.25rem;
}
.slide-caption h1,
.slide-caption h2 {
  color: var(--white); font-size: clamp(1.6rem, 4vw, 2.75rem);
  text-shadow: 0 0.125rem 0.5rem rgba(0,0,0,.4); margin-bottom: 0.5rem;
}
.slide-caption .tagline { color: var(--hero-pink); font-size: clamp(1rem, 2.5vw, 1.4rem); }
.slide-caption p {
  color: rgba(255,255,255,.9); font-size: 1rem; margin: 0.625rem 0 1.375rem;
  text-shadow: 0 0.0625rem 0.25rem rgba(0,0,0,.4);
}

/* Buttons */
.btn {
  display: inline-block; padding: 0.75rem 1.75rem; border-radius: var(--radius);
  font-weight: 700; font-size: .95rem; cursor: pointer; border: 0.125rem solid transparent;
  transition: background var(--ease), color var(--ease), transform .15s;
}
.btn:hover { transform: translateY(-0.0625rem); }
.btn-primary { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-teal { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-teal:hover { background: #0f6068; color: var(--white); }

/* Slider controls */
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  background: rgba(255,255,255,.15); border: 0.125rem solid rgba(255,255,255,.4);
  color: var(--white); width: 2.875rem; height: 2.875rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.2rem;
  transition: background var(--ease); backdrop-filter: blur(0.25rem);
}
.slider-btn:hover { background: rgba(255,255,255,.3); }
.slider-prev { left: 1.25rem; }
.slider-next { right: 1.25rem; }
.slider-dots {
  position: absolute; bottom: 1.25rem; left: 50%;
  transform: translateX(-50%); z-index: 3;
  display: flex; gap: 0.5rem;
}
.slider-dot {
  width: 0.625rem; height: 0.625rem; border-radius: 50%;
  background: rgba(255,255,255,.45); border: none; cursor: pointer;
  transition: background var(--ease), transform var(--ease);
}
.slider-dot.slider-dot--active { background: var(--white); transform: scale(1.25); }
.slider-pause {
  position: absolute;
  right: 1.25rem;
  bottom: 1rem;
  z-index: 3;
  border: .125rem solid rgba(255,255,255,.45);
  border-radius: var(--radius);
  background: rgba(0,0,40,.35);
  color: var(--white);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 700;
  padding: .45rem .7rem;
  backdrop-filter: blur(.25rem);
}
.slider-pause:hover { background: rgba(255,255,255,.18); }

/* ================================================================
   HOME: SERVICES STRIP
   ================================================================ */

.services-strip { background: var(--white); padding: 4rem 0 4.375rem; }
.strip-head { text-align: center; margin-bottom: 2.875rem; }
.strip-head .divider { margin: 0.75rem auto 0; }
.services-index {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 3.5rem;
  max-width: 61.25rem;
  margin: 0 auto;
  border-top: 0.0625rem solid var(--border);
}
.service-link {
  position: relative;
  display: grid;
  grid-template-columns: 2.625rem 1fr;
  gap: 1.125rem;
  align-items: start;
  padding: 1.375rem 2.125rem 1.375rem 0;
  border-bottom: 0.0625rem solid var(--border);
  color: inherit;
  transition: color var(--ease), padding-left var(--ease);
}
.service-link::after {
  content: "→";
  position: absolute;
  top: 1.5rem;
  right: 0.125rem;
  color: var(--teal);
  opacity: 0;
  transform: translateX(-0.375rem);
  transition: opacity var(--ease), transform var(--ease);
}
.service-link:hover {
  color: var(--navy);
  padding-left: 0.5rem;
}
.service-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}
.svc-icon {
  width: 2.625rem;
  height: 2.625rem;
  margin-top: 0.125rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal);
}
.svc-icon svg { width: 1.875rem; height: 1.875rem; }
.service-copy h3 { font-size: 1.02rem; color: var(--navy); margin-bottom: 0.3125rem; }
.service-copy p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.55;
}

/* ================================================================
   HOME: FEATURE SECTIONS
   ================================================================ */

.feature-section { padding: 5rem 0; }
.feature-section--white { background: var(--white); }
.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3.5rem; align-items: center;
}
.feature-grid--reversed .feat-img { order: 2; }
.feature-grid--reversed .feat-txt { order: 1; }
.image-position-top { object-position: top; }
.btn--spaced { margin-right: .75rem; }
.section-title--inverse { color: var(--white); }
.feat-img img {
  border-radius: 0.5rem; box-shadow: var(--shadow-lg);
  width: 100%; height: 25rem; object-fit: cover;
}
.feat-txt h2 { margin-bottom: 0.5rem; }
.feat-txt p { color: var(--muted); margin-bottom: 1.25rem; }
.feat-txt .read-more { color: var(--teal); font-weight: 700; }
.feat-txt .read-more:hover { text-decoration: underline; }

/* ================================================================
   HOME: WHY US STRIP
   ================================================================ */

.why-strip { background: var(--navy); padding: 4rem 0; }
.why-strip .strip-head h2 { color: var(--white); }
.why-strip .strip-head .section-label { color: #9ee6ea; }
.why-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  gap: 1.5rem; margin-top: 2.5rem;
}
.why-card { text-align: center; padding: 1.5rem 1rem; }
.why-icon {
  margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.why-icon svg { width: 2.5rem; height: 2.5rem; color: #9ee6ea; }
.why-card h3 { color: var(--white); font-size: 1rem; margin-bottom: 0.5rem; }
.why-card p { color: rgba(255,255,255,.65); font-size: .9rem; }

/* ================================================================
   INNER PAGE LAYOUT
   ================================================================ */

.page-layout {
  max-width: var(--max-w); margin: 0 auto; padding: 3.25rem 1.5rem;
}

/* Main content */
.main-content > h1:first-child { margin-bottom: 0.5rem; }
.main-content h2 { margin-top: 2.25rem; margin-bottom: 0.75rem; font-size: 1.5rem; }
.main-content h2:first-child { margin-top: 0; }
.main-content p { color: var(--muted); line-height: 1.78; }
.main-content a:not(.btn) { color: var(--teal); font-weight: 600; }
.main-content a:not(.btn):hover { text-decoration: underline; }

/* Content lists */
.check-list { margin: 1rem 0 1.5rem; }
.check-list li {
  padding: 0.5rem 0 0.5rem 1.75rem; position: relative;
  color: var(--muted); border-bottom: 0.0625rem solid var(--border);
  font-size: .95rem;
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '✓'; position: absolute; left: 0;
  color: var(--teal); font-weight: 700; font-size: .9rem;
}

.service-list { margin: 1rem 0; }
.service-list li {
  padding: 0.8125rem 0 0.8125rem 1.75rem; position: relative;
  font-weight: 700; font-size: 1.05rem;
  color: var(--navy); border-bottom: 0.0625rem solid var(--border);
}
.service-list li:last-child { border-bottom: none; }
.service-list li::before {
  content: '→'; position: absolute; left: 0;
  color: var(--red); font-weight: 700;
}
.flow-spaced { margin-top: 2rem; }
.section-heading-spaced { margin-bottom: 1.25rem; }

/* ================================================================
   ABOUT
   ================================================================ */

.about-images {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.25rem; margin: 1.75rem 0;
}
.about-images img {
  border-radius: 0.5rem; box-shadow: var(--shadow);
  width: 100%; height: auto;
}

/* ================================================================
   FAQ
   ================================================================ */

.faq-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.25rem; }
.faq-tab {
  padding: 0.4375rem 1.125rem; border-radius: 1.25rem;
  font-size: .875rem; font-weight: 700; cursor: pointer;
  border: 0.125rem solid var(--navy); color: var(--navy);
  background: transparent; transition: background var(--ease), color var(--ease);
  text-decoration: none;
}
.faq-tab:hover, .faq-tab.faq-tab--active { background: var(--navy); color: var(--white); }

.faq-section { margin-bottom: 3rem; scroll-margin-top: 6.25rem; }
.faq-section h2 { margin-bottom: 1.25rem; }

.faq-item {
  border: 0.0625rem solid var(--border); border-radius: var(--radius);
  margin-bottom: 0.5rem; overflow: hidden; background: var(--white);
}
.faq-q {
  width: 100%; text-align: left; padding: 0.9375rem 1.25rem;
  background: none; border: none;
  font-family: var(--font-body); font-size: .95rem; font-weight: 600;
  color: var(--navy); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  transition: background var(--ease);
}
.faq-q:hover { background: var(--cream); }
.faq-q[aria-expanded="true"] { background: var(--navy); color: var(--white); }
.faq-icon { font-size: 1.2rem; flex-shrink: 0; transition: transform .25s; }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .32s ease, padding .32s ease;
}
.faq-a.faq-a--open { max-height: 31.25rem; }
.faq-a-inner {
  padding: 1rem 1.25rem; color: var(--muted); font-size: .95rem;
  line-height: 1.75; border-top: 0.0625rem solid var(--border);
}
.faq-a-inner a { color: var(--teal); font-weight: 600; }
.faq-a-inner a:hover { text-decoration: underline; }

.helpful-links { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.helpful-links a {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.8125rem 1.125rem; border: 0.0625rem solid var(--border);
  border-radius: var(--radius); background: var(--white);
  color: var(--navy); font-weight: 600; font-size: .95rem;
  transition: border-color var(--ease), background var(--ease);
}
.helpful-links a:hover { border-color: var(--teal); background: var(--cream); color: var(--teal); }
.helpful-links a::before { content: '→'; color: var(--teal); flex-shrink: 0; }

/* ================================================================
   REVIEWS
   ================================================================ */

.review-intro { color: var(--muted); margin-bottom: 1.5rem; }
.review-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.review-platform-btn {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.75rem 1.25rem; border: 0.125rem solid var(--border);
  border-radius: var(--radius); background: var(--white);
  font-weight: 700; color: var(--navy);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.review-platform-btn:hover { border-color: var(--teal); box-shadow: var(--shadow); color: var(--navy); }
.review-platform-btn img { height: 1.625rem; width: auto; }

.review-quote {
  background: var(--white); border-left: 0.25rem solid var(--teal);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 1.75rem; margin-bottom: 2rem; box-shadow: var(--shadow);
}
.review-quote blockquote {
  font-style: italic; color: var(--muted);
  line-height: 1.8; margin-bottom: 0.75rem; font-size: 1rem;
}
.review-quote cite { font-style: normal; font-weight: 700; color: var(--navy); }

.google-rating-bar {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.75rem;
}
.google-rating-score { font-size: 2.5rem; font-weight: 700; color: var(--navy); line-height: 1; }
.google-rating-stars { color: #fbbc05; font-size: 1.4rem; line-height: 1.2; }
.google-rating-label { font-size: .85rem; color: var(--muted); margin-top: .2rem; }
.google-reviews-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem; margin-bottom: 2.5rem;
}
.google-review-card {
  background: var(--white); border-radius: var(--radius); padding: 1.375rem 1.5rem;
  box-shadow: var(--shadow); border-top: 0.1875rem solid #fbbc05;
  display: flex; flex-direction: column; gap: .75rem;
}
.google-review-header { display: flex; align-items: center; gap: .75rem; }
.google-reviewer-avatar {
  width: 2.375rem; height: 2.375rem; border-radius: 50%; flex-shrink: 0;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .95rem;
}
.google-reviewer-info { flex: 1; min-width: 0; }
.google-reviewer-name { display: block; font-weight: 700; color: var(--navy); font-size: .9rem; }
.google-reviewer-meta { display: block; font-size: .78rem; color: var(--muted); }
.google-review-logo { height: 1.125rem; width: auto; opacity: .65; flex-shrink: 0; }
.google-review-stars { color: #fbbc05; font-size: 1rem; letter-spacing: .05em; }
.google-review-text { font-style: italic; color: var(--muted); font-size: .92rem; line-height: 1.7; flex: 1; }

.letter-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(13.75rem, 1fr));
  gap: 0.875rem;
}
.letter-grid a { display: block; }
.letter-grid img {
  width: 100%; border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform var(--ease), box-shadow var(--ease);
}
.letter-grid a:hover img { transform: scale(1.03); box-shadow: var(--shadow-lg); }

/* ================================================================
   CONTACT
   ================================================================ */

.contact-layout {
  display: grid; grid-template-columns: 1fr 21.25rem;
  gap: 3rem; align-items: start;
}
.contact-form {
  background: var(--white); border-radius: 0.5rem;
  padding: 2.25rem; box-shadow: var(--shadow);
}
.contact-form h2 { margin-bottom: 0.375rem; }
.contact-form .tagline { font-size: 1rem; margin-bottom: 1.75rem; display: block; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-weight: 600; font-size: .875rem;
  color: var(--text); margin-bottom: 0.375rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.625rem 0.875rem;
  border: 0.0938rem solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: .95rem;
  color: var(--text); background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 0.1875rem rgba(23,126,132,.12);
}
.form-group textarea { resize: vertical; min-height: 8.125rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.required-marker { color: var(--red); }
.btn--full {
  width: 100%;
  justify-content: center;
  text-align: center;
}
.employment-link {
  font-size: .95rem;
  font-weight: 600;
}

.contact-aside h3 { margin-bottom: 1.25rem; font-size: 1.2rem; }
.contact-detail { display: flex; align-items: flex-start; gap: 0.875rem; margin-bottom: 1.375rem; }
.c-icon {
  flex-shrink: 0; margin-top: 0.125rem;
  display: flex; align-items: center; justify-content: center;
  width: 1.75rem; height: 1.75rem;
}
.c-icon svg { width: 1.375rem; height: 1.375rem; color: var(--teal); }
.c-info strong {
  display: block; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin-bottom: 0.125rem;
}
.c-info a, .c-info p { color: var(--navy); font-weight: 700; font-size: 1.05rem; margin: 0; }
.c-info p { font-weight: 400; color: var(--muted); }

/* ================================================================
   GALLERY
   ================================================================ */

.gallery-intro { color: var(--muted); margin-bottom: 2rem; line-height: 1.75; }
.gallery-album-meta { color: var(--muted); font-size: .9rem; margin: -0.25rem 0 1.25rem; }

.gallery-grid {
  columns: 3;
  column-gap: 0.75rem;
  margin-top: 0.25rem;
}
.gallery-item {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  display: block;
  padding: 0;
  text-align: inherit;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 0.75rem;
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow var(--ease), transform var(--ease);
}
.gallery-item:hover,
.gallery-item:focus-visible { box-shadow: var(--shadow-lg); transform: scale(1.02); outline: .1875rem solid var(--teal); }
.gallery-item img { width: 100%; display: block; border-radius: var(--radius); }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.92); z-index: 1000;
  align-items: center; justify-content: center;
}
.lightbox.lightbox--open { display: flex; }
.lightbox-img {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain; border-radius: var(--radius);
  box-shadow: 0 0.5rem 2.5rem rgba(0,0,0,.5);
  user-select: none;
}
.lightbox-close {
  position: absolute; top: 1rem; right: 1.25rem;
  background: none; border: none; color: var(--white);
  font-size: 2.4rem; line-height: 1; cursor: pointer;
  opacity: .75; transition: opacity var(--ease);
}
.lightbox-close:hover { opacity: 1; }
.lightbox-prev,
.lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); border: 0.125rem solid rgba(255,255,255,.35);
  color: var(--white); width: 3.125rem; height: 3.125rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1.5rem;
  transition: background var(--ease); backdrop-filter: blur(0.25rem);
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.28); }
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }
.lightbox-counter {
  position: absolute; bottom: 1.125rem; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.65); font-size: .85rem; pointer-events: none;
}

@media (max-width: 48rem) {
  .gallery-grid { columns: 2; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}
@media (max-width: 30rem) {
  .gallery-grid { columns: 1; }
}

/* ================================================================
   DRILLING PROCESS — TEXT + VERTICAL PHOTO TIMELINE
   ================================================================ */

.process-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 4rem 1.5rem 4.5rem;
  display: grid;
  grid-template-columns: 1fr 22.5rem;
  gap: 4rem;
  align-items: start;
}

.process-content {
  position: sticky;
  top: 5.5rem;
  align-self: start;
}
.process-content > h1:first-child { margin-bottom: 0.5rem; }
.process-content h2 { margin-top: 2.25rem; margin-bottom: 0.75rem; font-size: 1.5rem; }
.process-content h2:first-child { margin-top: 0; }
.process-content p { color: var(--muted); line-height: 1.78; margin-bottom: 1rem; }

/* Right rail */
.process-timeline { position: relative; }

.timeline-head { margin-bottom: 1.75rem; }
.timeline-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em;
  color: var(--teal);
  margin-bottom: 0.375rem;
}
.timeline-head h3 {
  color: var(--navy);
  font-size: 1.5rem;
  margin-bottom: 0.625rem;
}
.timeline-head p {
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
  margin: 0;
}

.timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding-left: 3.5rem;
}

/* Vertical connecting line behind the step badges */
.timeline::before {
  content: '';
  position: absolute;
  left: 1.1875rem;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 0.125rem;
  background: var(--navy);
  opacity: .15;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.75rem;
}
.timeline-item:last-child { margin-bottom: 0; }

.timeline-step {
  position: absolute;
  left: -3.5rem;
  top: 0.625rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--white);
  border: 0.125rem solid var(--navy);
  color: var(--navy);
  font-family: var(--font-head);
  font-size: .85rem;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0.125rem 0.375rem rgba(0,0,40,.08);
  transition: background var(--ease), color var(--ease), transform var(--ease);
}

.timeline-item figure {
  background: var(--white);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 0.0625rem 0.125rem rgba(0,0,40,.06), 0 0.5rem 1.5rem rgba(0,0,40,.06);
  transition: transform var(--ease), box-shadow var(--ease);
  margin: 0;
}
.timeline-item figure:hover {
  transform: translateY(-0.125rem);
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,40,.08), 0 0.875rem 2rem rgba(0,0,40,.10);
}
.timeline-item:hover .timeline-step {
  background: var(--navy);
  color: var(--white);
}

.timeline-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.timeline-item figcaption {
  padding: 0.75rem 1rem 0.875rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  border-top: 0.0625rem solid var(--border);
}

@media (max-width: 64rem) {
  .process-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 1.5rem 3.5rem;
  }
  .process-content { position: static; }
  .process-timeline { max-width: 32.5rem; margin: 0 auto; width: 100%; }
}

@media (max-width: 30rem) {
  .timeline { padding-left: 3rem; }
  .timeline-step { left: -3rem; width: 2.25rem; height: 2.25rem; font-size: .8rem; }
  .timeline::before { left: 1.0625rem; }
}

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

.footer-cta {
  background: linear-gradient(135deg, var(--navy) 0%, #001799 100%);
  padding: 4rem 1.5rem; text-align: center;
}
.footer-cta h2 { color: var(--white); margin-bottom: 0.375rem; }
.footer-cta .tagline { color: rgba(255,255,255,.75); font-size: 1.1rem; }
.footer-cta p { color: rgba(255,255,255,.65); margin: 0.875rem auto 1.875rem; max-width: 35rem; }
.cta-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

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

.site-footer { background: var(--charcoal); color: rgba(255,255,255,.7); padding: 3rem 1.5rem 1.5rem; }
.footer-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem; padding-bottom: 2.25rem;
}
.footer-col h2 {
  color: var(--white); font-size: .8rem;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem;
}
.footer-col p { font-size: .875rem; margin-bottom: 0.25rem; }
.footer-col__phone { margin-top: .5rem; }
.footer-col__note {
  margin-top: .5rem;
  font-size: .8rem !important;
}
.footer-col a {
  display: block; color: rgba(255,255,255,.65);
  font-size: .875rem; padding: 0.1875rem 0;
  transition: color var(--ease);
}
.footer-col a:hover { color: var(--white); }
.footer-tagline {
  font-family: var(--font-script); color: rgba(255,255,255,.5);
  font-size: 1.1rem; margin-top: 0.5rem;
}
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; padding: 0; }
.footer-social a { display: inline-block; padding: 0; }
.footer-social a img {
  height: 2.25rem; width: auto; border-radius: 0.375rem;
  transition: opacity var(--ease), transform var(--ease);
}
.footer-social a:hover img { opacity: .85; transform: scale(1.06); }
.footer-bottom {
  max-width: var(--max-w); margin: 0 auto;
  padding-top: 1.25rem; border-top: 0.0625rem solid rgba(255,255,255,.12);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.625rem;
  font-size: .78rem; color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

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

/* — Tablets and large phones (portrait + landscape) — */
@media (max-width: 64rem) {
  /* Layout */
  .services-index { column-gap: 2rem; }
  .feature-grid { grid-template-columns: 1fr; gap: 2rem; }
  .feature-grid--reversed .feat-img, .feature-grid--reversed .feat-txt { order: unset; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  /* Navigation — collapse to hamburger at ≤1024 px, covering all phones
     in landscape (iPhone 12 = 844 px, 14 Pro Max = 932 px) and tablets */
  .header-inner { padding: 0.625rem 1rem; }
  .header-phone { display: none; }
  .nav-toggle { display: flex; flex-shrink: 0; }
  .site-nav {
    display: none; position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy); flex-direction: column;
    padding: 0.75rem 1rem 1rem; gap: 0.25rem;
    box-shadow: 0 0.25rem 1rem rgba(0,0,0,.35);
    /* scrollable in landscape where viewport height is limited */
    max-height: calc(100svh - 5rem);
    overflow-y: auto;
  }
  .site-nav.site-nav--open { display: flex; }
  .site-nav a { width: 100%; padding: 0.625rem 0.875rem; }

  .slide-caption { left: 5%; max-width: 90%; }
}

/* — Small phones — */
@media (max-width: 48rem) {
  .services-index { grid-template-columns: 1fr; }
  .service-link { padding-right: 1.75rem; }

  .about-images { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-btns { flex-direction: column; align-items: center; }
}

@media (max-width: 30rem) {
  .slide-caption h2 { font-size: 1.4rem; }
  section, .feature-section { padding: 3rem 0; }
  .page-layout { padding: 2rem 1rem; }
  .contact-form { padding: 1.25rem; }
  .album-card { flex-direction: column; }
  .album-card img { width: 100%; height: 11.25rem; }
}

/* — Landscape phones: hero minimum height would fill the whole viewport — */
@media (orientation: landscape) and (max-height: 36rem) {
  .hero { height: clamp(12rem, 70svh, 18rem); }
}
