/*------------------------------------------------------------------------------
  Theme Name:  Peak Phase Electric
  Author:      Your Name
  Version:     1.2  · final clean-up + mobile-nav panel
  Description: Modern, fully-responsive theme for an electrical-contracting
               company.  Container queries + fluid clamp() sizing.
------------------------------------------------------------------------------*/

/*──────────────────────────────────────────────────────────────────────────────
  0 · GLOBAL RESET & BASE
──────────────────────────────────────────────────────────────────────────────*/
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {                       /* keep in-page jumps below the fixed header   */
  scroll-padding-top: 300px;
}

body {
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover { color: #005fa3; }

/* fluid wrapper -------------------------------------------------------------*/
.container {
  width: 90%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 4rem);
}

/*──────────────────────────────────────────────────────────────────────────────
  1 · CONTAINER-QUERY ROOTS
──────────────────────────────────────────────────────────────────────────────*/
.site-header,
.hero-section,
.about-section,
.services-section,
.team-section,
.contact-section,
.blog-page {
  container-type: inline-size;
  container-name: section;
}

/*──────────────────────────────────────────────────────────────────────────────
  2 · HEADER & NAVIGATION
──────────────────────────────────────────────────────────────────────────────*/
.site-header {
  background: #fff;                 /* was the blue gradient */
  color: #111;
  min-height: clamp(110px, 9vh, 130px);
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,.06); /* subtle separator */
}


/* full-width container only inside header -----------------------------------*/
.site-header > .container {
  width: 100%;
  max-width: none;
  padding-left:  clamp(0.75rem, 2vw, 2rem);       /* “just off” left edge  */
  padding-right: clamp(1rem, 4vw, 4rem);          /* room for nav on right */
}

.header-container {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: clamp(1rem, 4vw, 3rem);
}

/*── LOGO ────────────────────────────────────────────────────────────────────*/
.header-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: clamp(1.75rem, 3vh, 2.75rem);
  transform: translate(19px, -5px);              /* fine-tune vertical / right */
}
.brand-icon{
    transform: translateX(1.9rem);
}

.brand-wrap { display: inline-flex; 
              flex-direction: column;
              align-items: flex-start; 
              }


/* wrapper: fixed layout box (logo “window”) ---------------------------------*/
.animated-logo {
  position: relative;
  width: 130px;
  height: 130px;
  overflow: visible;
  transform: translate(-8px, -32px);              /* fine-tune inside window   */
}

/* SVG layers fill wrapper ---------------------------------------------------*/
.logo-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: top left;
}

/* slide-in + zoom (layers only) --------------------------------------------*/
@keyframes skylineSlideLeft  {
  0%   { transform: translate(-100%, -50%) scale(3); }
  100% { transform: translate( -40%, -50%) scale(3); }
}
@keyframes skylineSlideRight {
  0%   { transform: translate( 100%, -50%) scale(3); }
  100% { transform: translate( -40%, -50%) scale(3); }
}
.logo-layer-1 { animation: skylineSlideLeft  0.9s ease-out forwards; }
.logo-layer-2 { animation: skylineSlideRight 0.9s ease-out forwards; }

.logo-text {
  margin-top: -1rem;
  font-size: clamp(1rem, 0.9rem + 0.6vw, 1.4rem);
  font-weight: 700;
  color: #fff;
}

/* exact brand word colors (from Inkscape RGBA -> first 6 chars) */
.logo-text .word { white-space: nowrap; }  /* keeps each word intact on one line */

.logo-text .word-peak       { color: #ee3937; }   /* your red (ee3937ff) */
.logo-text .word-phase      { color: #1974ba; }
.logo-text .word-electrical { color: #2db463; }
.logo-text .word-llc        { color: #2db463; } /* or choose another if you want */


/*── NAVIGATION ──────────────────────────────────────────────────────────────*/
.main-nav { position: relative; margin-left: auto; }
#menu-toggle { display: none; }

/* hamburger icon -----------------------------------------------------------*/
.hamburger{
  width:30px;
  height:24px;
  cursor:pointer;
  display:block;
}
.hamburger span{
  position:absolute;
  left:0;
  width:100%;
  height:3px;
  background:#1974ba;
  transition:transform .35s ease, opacity .35s ease;
}
.hamburger span:nth-child(1){top:0;}
.hamburger span:nth-child(2){top:10px;}
.hamburger span:nth-child(3){top:20px;}

#menu-toggle:checked + .hamburger span:nth-child(1){
  transform:translateY(10px) rotate(45deg);
}
#menu-toggle:checked + .hamburger span:nth-child(2){
  opacity:0;
}
#menu-toggle:checked + .hamburger span:nth-child(3){
  transform:translateY(-10px) rotate(-45deg);
}

/*──────────────────────────────────────────────────────────────────────────────
  MOBILE  (< 720 px)  —  hamburger + off-canvas nav
──────────────────────────────────────────────────────────────────────────────*/
@media (max-width: 719px){

  /* ✱ Hamburger pinned to the top-right corner */
  .hamburger{
    position:absolute;
    top:clamp(.5rem, 2vh, 1rem) !important;
    right:clamp(.5rem, 3vw, 1rem) !important;
    margin:0;
    z-index:1100;                       /* above the sliding panel */
    transform: translate(
        clamp( 12px, 4vw, 20px ),   /* X offset : 19 → -4 px   */
        clamp(-80px,-9vh,-80px )    /* Y offset : –57 → –72 px */
    );
  }

  /* Off-canvas panel (hidden by default) */
  .main-nav .nav-list{
    padding-bottom: 19rem;
    list-style:none;
    display:flex;                       /* keep in layout; slide with transform */
    position:fixed;
    top:0;
    right:0;
    width:max-content;                  /* grows to longest link */
    height:auto;
    padding: 0rem 1.5rem;
    background:#0077cc;
    flex-direction:column;
    gap:1.25rem;
    align-items:flex-start;
    transform:translateX(100%);         /* start off-screen          */
    transition:none;                    /* ← no peek-a-boo on load   */
    overflow-y:auto;
    z-index:1000;
  }

  /* Slide in when the checkbox is ticked */
  #menu-toggle:checked + .hamburger + .nav-list{
    transform:translateX(0);
    transition:transform .35s ease;
  }

  /* Tap-friendly links */
  .main-nav .nav-list li a{
    width:100%;
    color:#fff;
    font-size:1.25rem;
    font-weight:700;
    display:block;
    padding:.25rem 0;
  }
}

/*──────────────────────────────────────────────────────────────────────────────
  DESKTOP  (≥ 720 px)  —  inline horizontal menu
──────────────────────────────────────────────────────────────────────────────*/
@media (min-width: 720px){

  /* Hide the hamburger + checkbox + */
  .hamburger,
  #menu-toggle,
  #menu-toggle:checked + .hamburger + .nav-list{ display:none; }

  /* Classic horizontal nav */
  .main-nav .nav-list{
    list-style:none;
    display:flex !important;
    position:static;
    flex-direction:row;
    gap:clamp(.75rem, 2vw, 2rem);
    background:transparent;
    padding:0;
    align-items:center;
    padding-inline-end:clamp(1rem, 5vw, 6rem);
  }
  .main-nav .nav-list li a{
    color:#1974ba;
    font-weight:600;
    font-size:1rem;
  }
}

@container section (min-width: 720px) {

  .hamburger,
  #menu-toggle,
  #menu-toggle:checked + .hamburger + .nav-list { display: none; }

  .main-nav .nav-list {
    list-style: none;
    display: flex !important;
    position: static;
    flex-direction: row;
    gap: clamp(0.75rem, 2vw, 2rem);
    background: transparent;
    padding: 0;
    align-items: center;
    padding-inline-end: clamp(1rem, 5vw, 6rem);
  }
  .main-nav .nav-list li a {
    color: #1974ba;
    font-weight: 600;
    font-size: 1rem;
  }
}

/*────────────────────────────────────────────────────────────────────────────
  3 · HERO SECTION
────────────────────────────────────────────────────────────────────────────*/
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #00aaff, #e0f7fa);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}
.hero-overlay { background: rgba(0,0,0,.3); padding: 4rem 2rem; }

:root {
  --fs-h1: clamp(2.2rem, 1.5rem + 2vw, 3.5rem);
  --fs-h2: clamp(1.8rem, 1.2rem + 1.5vw, 2.8rem);
  --fs-h3: clamp(1.2rem, 1rem + 0.5vw, 1.6rem);
}
.hero-title   { font-size: var(--fs-h1); margin-bottom: 1rem; }
.hero-tagline { font-size: 1.5rem;        margin-bottom: 1.5rem; }

.btn.btn-quote {
  background: #ff9900;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-weight: bold;
  border-radius: 4px;
  transition: background 0.3s ease;
}
.btn.btn-quote:hover { background: #e68a00; }

/*────────────────────────────────────────────────────────────────────────────
  4 · ABOUT SECTION
────────────────────────────────────────────────────────────────────────────*/
.about-section {
  background: #e0f7fa;
  padding: 60px 0;
  text-align: center;
}
.about-section .section-title      { font-size: var(--fs-h2); color:#0077cc; margin-bottom: 1rem; }
.about-section .section-description{ font-size: 1rem; color:#333; max-width:800px; margin:0 auto; }

/*──────────────────────────────────────────────────────────────────────────────
  5 · SERVICES SECTION
──────────────────────────────────────────────────────────────────────────────*/
.services-section {
  padding: 80px 0;
  background: #ffffff;
}

.services-section .section-title {
  text-align: center;
  font-size: var(--fs-h2);
  color: #0077cc;
  margin-bottom: 2rem;
}

/* flex first → CSS grid kicks-in when the section’s width ≥ 600 px */
.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

@container section (min-width: 600px) {
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(1rem, 2vw, 2rem);
  }
}

.service-item {
  background: #f7f7f7;
  border: 1px solid #dddddd;
  border-radius: 4px;
  padding: 1rem;
  text-align: center;
  flex: 1 1 280px;          /* fallback size while in flexbox mode */
  max-width: 300px;
}

.service-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1rem;
}

.service-item h3 {
  font-size: var(--fs-h3);
  margin-bottom: 0.5rem;
}

.service-item p {
  font-size: 0.95rem;
  color: #555555;
}

/*──────────────────────────────────────────────────────────────────────────────
  6 · TEAM SECTION
──────────────────────────────────────────────────────────────────────────────*/
.team-section {
  padding: 80px 0;
  background: #f0f8ff;
}

.team-section .section-title {
  text-align: center;
  font-size: var(--fs-h2);
  color: #0077cc;
  margin-bottom: 2rem;
}

/* flex → 2-col → 3-col depending on section width */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

@container section (min-width: 500px) {
  .team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@container section (min-width: 900px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-member {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  flex: 1 1 280px;          /* fallback size while in flexbox mode */
  max-width: 300px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.team-member img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.member-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.member-role {
  font-size: 0.9rem;
  color: #777777;
  display: block;
  margin-bottom: 1rem;
}

.member-bio {
  font-size: 0.9rem;
  color: #555555;
}

/*──────────────────────────────────────────────────────────────────────────────
  7 · CONTACT SECTION
──────────────────────────────────────────────────────────────────────────────*/
.contact-section {
  padding: 80px 0;
  background: #e0f7fa;
  text-align: center;
}

.contact-section .section-title {
  font-size: var(--fs-h2);
  color: #0077cc;
  margin-bottom: 1rem;
}

.contact-description {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 2rem;
}

.contact-form {
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}

.contact-form .form-group {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333333;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 1rem;
}

.btn-submit {
  background: #0077cc;
  color: #ffffff;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-submit:hover {
  background: #005fa3;
}

/*──────────────────────────────────────────────────────────────────────────────
  8 · BLOG CARDS
──────────────────────────────────────────────────────────────────────────────*/
.blog-page {
  padding: 80px 0;
  background: #ffffff;
}

.blog-page .section-title {
  text-align: center;
  font-size: var(--fs-h2);
  color: #0077cc;
  margin-bottom: 2rem;
}

.posts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.post-item {
  background: #f7f7f7;
  border: 1px solid #dddddd;
  border-radius: 4px;
  padding: 1rem;
  flex: 1 1 calc(33% - 1.5rem);
  max-width: 300px;
  box-sizing: border-box;
}

.post-thumb img {
  width: 100%;
  height: auto;
  border-radius: 4px 4px 0 0;
}

.post-title {
  font-size: 1.2rem;
  margin: 0.75rem 0;
  color: #0077cc;
}

.post-excerpt {
  font-size: 0.95rem;
  color: #555555;
}

/*──────────────────────────────────────────────────────────────────────────────
  9 · FOOTER
──────────────────────────────────────────────────────────────────────────────*/
.site-footer {
  background: linear-gradient(135deg, #00aaff, #0077cc);
  color: #ffffff;
  padding: 1.5rem 0;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
}

.footer-nav .nav-list {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.footer-nav .nav-list li a {
  color: #ffffff;
  font-weight: 600;
}

.footer-social i {
  font-size: 32px;
}

.footer-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.5);
  margin: 1rem 0;
}

.footer-bottom p {
  font-size: 0.9rem;
}

/*──────────────────────────────────────────────────────────────────────────────
 10 · UTILITY
──────────────────────────────────────────────────────────────────────────────*/
.btn {
  padding-inline: clamp(1rem, 2vw, 2.5rem);
}

/* Section divider between Services and Contact */
.section-divider-gradient {
  width: 100%;
  height: 120px;
  background: linear-gradient(135deg, #00aaff, #e0f7fa);
}


/*──────────────────────────────────────────────────────────────────────────────
  End of file
──────────────────────────────────────────────────────────────────────────────*/
