/* ===================================================================
   LugoEnergy — Global Styles
   Palette (edit these first):
   -------------------------------------------------------------------
   --brand: primary accent (yellow)
   --ink:   main text (near-black)
   --bg:    page background (white)
   --muted: secondary text / borders (neutral gray)
   --dark:  dark background (for buttons/hover)
   =================================================================== */

:root{
  --brand: #f5c20b;    /* Yellow from logo */
  --brand-600:#e0b20a;
  --brand-700:#caa108;
  --ink: #111112;      /* Nearly black */
  --bg: #ffffff;       /* White page */
  --muted: #6b7280;    /* Neutral gray text */
  --line: #e5e7eb;     /* Light border */
  --surface:#f9fafb;   /* Light surface for cards */
  --dark:#0f172a;      /* Deep slate for strong contrast */
  --radius:14px;
  --shadow-1: 0 6px 18px rgba(0,0,0,.06);
  --shadow-2: 0 10px 30px rgba(0,0,0,.10);
  --container: 1160px;
}

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

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body{
  margin:0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* Links */
a{ color: var(--ink); text-decoration: none; }
a:hover{ text-decoration: underline; }

/* Containers & layout helpers */
.container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Skip link for accessibility */
.skip-link{
  position: absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden;
}
.skip-link:focus{
  position: fixed; left: 1rem; top: 1rem; width:auto; height:auto;
  background: var(--brand); color: var(--ink); padding:.5rem .75rem; border-radius: .5rem;
  box-shadow: var(--shadow-1);
}

/* ===================================================================
   Header / Navigation
   =================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: transform 0.3s ease;
}
.site-header.hide {
  transform: translateY(-100%);
}
body { padding-top: 80px; }

.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  min-height: 72px; gap: 1rem;
}

.brand img{
  height: 56px; width: auto;
}

/* Nav */
.nav{ position: relative; }
.nav__toggle{
  display: inline-flex; flex-direction:column; gap:5px;
  width: 44px; height: 44px; align-items:center; justify-content:center;
  background: transparent; border:1px solid var(--line); border-radius:10px; cursor:pointer;
}
.nav__toggle span{
  display:block; width: 20px; height:2px; background: var(--ink);
}
.nav__menu{
  list-style:none; margin:0; padding:0;
  display:flex; align-items:center; gap: 1.25rem;
}
.nav__menu a{ font-weight: 600; }
.nav__menu .nav__cta a{
  text-decoration: none;
}

/* Mobile behavior */
@media (max-width: 860px){
  .nav__toggle{ display:flex; }
  .nav__menu{
    position: absolute; right:0; top: calc(100% + .5rem);
    flex-direction: column; align-items: stretch; gap:.5rem;
    background: #fff; border:1px solid var(--line); border-radius: var(--radius);
    padding: .75rem; min-width: 220px; box-shadow: var(--shadow-2);
    display:none;
  }
  .nav__menu.is-open{ display:flex; }
}

/* Desktop */
@media (min-width: 861px){
  .nav__toggle{ display:none; }
}

/* ===================================================================
   Buttons
   =================================================================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:.5rem; font-weight:700; border-radius: 999px;
  padding:.8rem 1.1rem; border:1px solid transparent; cursor:pointer;
  transition: transform .08s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
  text-decoration: none;
}
.btn:hover{ transform: translateY(-1px); }
.btn:focus-visible{ outline: 3px solid color-mix(in srgb, var(--brand), white 35%); outline-offset: 2px; }

.btn--primary{
  background: var(--brand); color: var(--ink);
  box-shadow: 0 8px 20px rgba(245, 194, 11, .25);
}
.btn--primary:hover{ background: var(--brand-600); }
.btn--primary:active{ transform: translateY(0); }

.btn--ghost{
  background: #fff; color: var(--dark); border-color: var(--line);
}
.btn--ghost:hover{ background: var(--surface); }

/* ===================================================================
   Hero
   =================================================================== */
.hero{
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, #fff 55%, #fdfaf0 100%);
}
.hero__inner{
  display:grid; gap: 2rem; align-items:center;
  grid-template-columns: 1.05fr .95fr;
}
.hero__content h1{
  line-height: 1.15;
  font-size: clamp(1.9rem, 2.3vw + 1.3rem, 3rem);
  margin: 0 0 .6rem;
}
.hero__content p{
  margin: 0 0 1.2rem; color: var(--muted); max-width: 62ch;
}
.hero__cta{ display:flex; gap:.75rem; flex-wrap: wrap; }
.hero__media{
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-2);
}
.hero__media img{ width:100%; height:auto; object-fit: cover; }

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

/* ===================================================================
   Sections
   =================================================================== */
.section{ padding: 3.2rem 0; }
.section__title{
  margin:0 0 .6rem;
  font-size: clamp(1.4rem, 1.4vw + 1rem, 2rem);
  line-height: 1.2;
}
.section__lead{ color: var(--muted); margin: 0 0 1rem; }

/* Pills */
.pill-list{
  display:flex; flex-wrap:wrap; gap:.5rem; padding:0; margin:1rem 0 0; list-style:none;
}
.pill-list li{
  border:1px solid var(--line); background:#fff; border-radius:999px;
  padding:.4rem .7rem; font-weight:600; color:#374151;
}

/* ===================================================================
   Cards (Services)
   =================================================================== */
.grid{ display:grid; gap: 1rem; }
.grid--cards{
  grid-template-columns: repeat(12, 1fr);
}
@media (min-width: 700px){
  .grid--cards{ gap: 1.25rem; }
}

.card{
  grid-column: span 12;
  background: #fff; border:1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-1);
  transition: transform .12s ease, box-shadow .2s ease;
}
.card:hover{ transform: translateY(-2px); box-shadow: var(--shadow-2); }
.card img {
  width: 100%;
  height: auto;           /* keeps natural sharpness */
  max-height: 320px;      /* keeps layout even */
  object-fit: contain;    /* shows full image without cropping */
  background: #f9fafb;    /* light background behind smaller images */
  border-bottom: 1px solid var(--line);
}

.card__body{ padding: 1rem 1rem 1.1rem; }
.card__body h3{ margin:.2rem 0 .25rem; font-size:1.1rem; }
.card__body p{ margin:0; color: var(--muted); }

@media (min-width: 640px){
  .card{ grid-column: span 6; }
}
@media (min-width: 980px){
  .card{ grid-column: span 4; }
}

/* ===================================================================
   Projects (Before/After + Gallery)
   =================================================================== */
.before-after{
  display:grid; gap:1rem; grid-template-columns: 1fr 1fr; margin-bottom: 1.25rem;
}
.before-after figure{
  margin:0; border:1px solid var(--line); border-radius: var(--radius); overflow:hidden;
  background:#fff; box-shadow: var(--shadow-1);
}
.before-after figcaption{
  font-weight:700; text-align:center; padding:.5rem; background:#fff; border-top:1px solid var(--line);
}

.grid--gallery{
  grid-template-columns: repeat(12, 1fr);
  gap: .75rem;
}
.grid--gallery img{
  grid-column: span 12; height: 200px; object-fit: cover;
  border-radius: 12px; border:1px solid var(--line); background:#fff; box-shadow: var(--shadow-1);
}
@media (min-width: 560px){ .grid--gallery img{ grid-column: span 6; } }
@media (min-width: 960px){ .grid--gallery img{ grid-column: span 4; } }

/* ===================================================================
   Reviews Carousel
   =================================================================== */
.reviews{ background: linear-gradient(180deg, #fff, #fffdf5); }
.carousel{
  position:relative; overflow:hidden; margin-top: .5rem;
}
.carousel__track{
  display:flex; gap: 1rem; scroll-snap-type: x mandatory; overflow-x:auto; scrollbar-width:none;
  padding-bottom: .5rem;
}
.carousel__track::-webkit-scrollbar{ display:none; }

.slide{
  scroll-snap-align: start;
  flex: 0 0 100%;
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1rem .9rem; box-shadow: var(--shadow-1);
}
.slide__stars{
  color: #f59e0b; /* Star (amber) for legibility; can be switched to yellow if preferred */
  letter-spacing: .05em; font-size: 1.05rem; margin-bottom: .25rem;
}
.slide blockquote{ margin: 0 0 .4rem; color: var(--ink); }
.slide footer{ color: var(--muted); font-size: .92rem; }

.carousel__nav{
  position:absolute; top:50%; transform: translateY(-50%);
  width:36px; height:36px; border-radius:999px; border:none; cursor:pointer;
  background: rgba(0,0,0,.72); color:#fff; display:grid; place-items:center;
}
.carousel__nav.prev{ left: .5rem; } .carousel__nav.next{ right: .5rem; }
.carousel__nav:focus-visible{ outline: 3px solid var(--brand); outline-offset: 2px; }

.carousel__dots{
  display:flex; justify-content:center; gap:.45rem; margin-top: .6rem;
}
.carousel__dots button{
  width: 8px; height: 8px; border-radius: 999px; border:none; background:#d1d5db; cursor:pointer;
}
.carousel__dots button[aria-selected="true"]{
  background: var(--brand); width: 18px; border-radius: 6px;
}

/* Multi-slide on wider screens (optional) */
@media (min-width: 720px){
  .slide{ flex-basis: 48%; }
}
@media (min-width: 1040px){
  .slide{ flex-basis: 32.5%; }
}

/* Thumbtack link */
.thumbtack-link{
  text-align:center; margin-top:.8rem;
}
.thumbtack-link a{
  color: var(--dark); font-weight:700; border-bottom: 2px solid var(--brand);
  padding-bottom: 2px;
}
.thumbtack-link a:hover{
  background: linear-gradient(90deg, var(--brand), transparent);
  text-decoration: none;
}

/* ===================================================================
   Contact / Quote
   =================================================================== */
.contact__grid{
  display:grid; gap: 1.25rem; grid-template-columns: 1fr;
}
@media (min-width: 980px){
  .contact__grid{ grid-template-columns: 1.15fr .85fr; }
}

.form{
  display:grid; gap:.8rem; background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 1rem; box-shadow: var(--shadow-1);
}
.form__row{ display:grid; gap:.35rem; }
label{ font-weight: 700; }
input, select, textarea{
  width: 100%; padding:.8rem .85rem; border:1px solid var(--line); border-radius: 12px; background:#fff;
  color: var(--ink); font: inherit;
}
input:focus, select:focus, textarea:focus{
  outline: 3px solid color-mix(in srgb, var(--brand), white 35%);
  border-color: var(--brand-700);
}
.hp{ display:none !important; }

.contact__aside{
  display:grid; gap: 1rem;
}
.contact-card{
  border:1px solid var(--line); border-radius: var(--radius); padding: 1rem; background:#fff; box-shadow: var(--shadow-1);
}
.map-embed iframe{
  width:100%; height: 260px; border:0; border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}

/* ===================================================================
   Footer
   =================================================================== */
.site-footer{
  border-top: 1px solid var(--line); background:#fff;
}
.footer-inner{
  display:flex; align-items:center; justify-content:space-between; gap:.75rem;
  padding: 1rem 0;
}
.site-footer a{ font-weight:700; border-bottom: 2px solid transparent; }
.site-footer a:hover{ border-bottom-color: var(--brand); text-decoration: none; }

/* ===================================================================
   Utilities
   =================================================================== */
[hidden]{ display:none !important; }
.center{ text-align:center; }
.muted{ color: var(--muted); }

/* Focus-visible global */
:focus-visible{
  outline: 3px solid color-mix(in srgb, var(--brand), white 35%);
  outline-offset: 2px;
}

/* ===================================================================
   Print (nice-looking simple printout)
   =================================================================== */
@media print{
  .site-header, .hero__media, .carousel__nav, .carousel__dots, .map-embed { display:none !important; }
  .btn{ display:none !important; }
  a{ text-decoration: underline; }
  body{ color:#000; }
}

/* ===================================================================
   ABOUT / TRUST ADDITIONS (LugoEnergy Thumbtack + License styling)
   =================================================================== */

/* Center and space the CTA button inside the About section */
.about .trust__cta {
  margin-top: 1.3rem;
  text-align: center;
}


/* Highlight important license/review keywords */
.about strong {
  color: var(--brand);
  font-weight: 700;
}

/* If you want the bullet pills to look more vibrant */
.about .pill-list li {
  border: 1px solid var(--brand);
  color: var(--dark);
  background: color-mix(in srgb, var(--brand) 25%, white);
  font-weight: 600;
}

/* Optional glow hover for the "View Verified Profile" button */
.about .btn--primary:hover {
  box-shadow: 0 0 18px rgba(245, 194, 11, 0.45);
  transform: translateY(-2px);
}


/* ===================================================================
   Theme Tips (for future edits)
   -------------------------------------------------------------------
   1) Change brand color: modify --brand at the top.
   2) Tighter/looser radius: edit --radius.
   3) Softer/harder shadows: tweak --shadow-1/--shadow-2.
   4) Max width: edit --container.
   5) Switch to darker style: set body background to #0b0b0b and
      card/section surfaces to #111 with text color #f3f4f6.
   =================================================================== */
