/*
Theme Name: Will Handle It
Theme URI: https://willhandleit.com
Author: Will Handle It LLC
Author URI: https://willhandleit.com
Description: Custom WordPress theme for Will Handle It LLC — full-service contracting and home services in Jefferson, Georgia.
Version: 1.5
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: willhandleit
*/

/* =========================================================
   VARIABLES
========================================================= */
:root{
  --navy: #0f1e3c;
  --navy-light: #16294f;
  --orange: #e17f37;
  --orange-dark: #cc6f2b;
  --cream: #f3ede2;
  --cream-dark: #ece3d4;
  --white: #ffffff;
  --text-dark: #16294f;
  --text-gray: #6b7280;
  --border: #e5e0d5;
  --green: #2f9e44;
  --radius: 10px;
  --max-width: 1320px;
}

/* =========================================================
   BASE
========================================================= */
*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4{
  font-family: 'Oswald', 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--navy);
}
p{ margin: 0 0 16px; color: var(--text-gray); }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; cursor:pointer; }
.container{ max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
:focus-visible{ outline: 3px solid var(--orange); outline-offset: 2px; }

/* =========================================================
   FULL-WIDTH OVERRIDES
   Some managed WordPress hosts (e.g. GoDaddy) wrap page content
   in a narrow max-width container. These rules ensure the theme's
   own sections span the full width as designed.
========================================================= */
.hero,
.section,
.trust-bar,
.page-hero,
.cta-band,
.services-grid,
.services-detail,
.about-grid,
.values-grid,
.team-grid,
.portfolio-grid,
.contact-layout{
  max-width: none !important;
  width: auto !important;
  float: none !important;
}
.hero{ width: 100% !important; }
/* Force the services grid to lay out in columns even inside a wrapper */
.services-grid{
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
}
@media (max-width: 1100px){ .services-grid{ grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px){ .services-grid{ grid-template-columns: 1fr !important; } }
/* Force hero into two columns */
.hero{
  display: grid !important;
  grid-template-columns: 1.6fr 1fr !important;
}
@media (max-width: 1024px){ .hero{ grid-template-columns: 1fr !important; } }

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}

/* =========================================================
   BUTTONS
========================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 16px 28px;
  border-radius: 6px;
  font-weight: 700;
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 15px;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn-orange{ background: var(--orange); color: var(--white); }
.btn-orange:hover{ background: var(--orange-dark); box-shadow: 0 8px 20px rgba(225,127,55,.35); }
.btn-outline{ background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover{ background: var(--navy); color: var(--white); }
.btn-outline-light{ background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover{ background: var(--white); color: var(--navy); }
.btn-block{ width:100%; justify-content:center; }

/* =========================================================
   HEADER
========================================================= */
.site-header{
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}
.site-branding{
  display:flex;
  align-items:center;
  gap:14px;
}
.site-branding img.custom-logo{
  height: 56px;
  width: 56px;
  object-fit: contain;
  border-radius: 50%;
}
.site-branding .brand-text .brand-name{
  font-family:'Oswald', sans-serif;
  font-weight:700;
  font-size: 22px;
  color: var(--navy);
  letter-spacing: 0.5px;
  line-height:1.1;
}
.site-branding .brand-text .brand-tagline{
  font-family:'Oswald', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 2px;
}
.main-navigation{ display:flex; align-items:center; gap:36px; }
.main-navigation ul{ display:flex; gap:32px; }
.main-navigation a{
  font-weight:600;
  font-size:15px;
  color: var(--navy) !important;
  opacity: 1 !important;
}
.main-navigation a:hover,
.main-navigation a:focus{ color: var(--orange) !important; }
/* Ensure the current page's menu item is also dark, not faded */
.main-navigation .current-menu-item a,
.main-navigation .current_page_item a{ color: var(--navy) !important; }
.header-phone{
  display:flex;
  align-items:center;
  gap:10px;
  background: var(--navy);
  color: var(--white) !important;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight:700;
  font-family:'Oswald', sans-serif;
  white-space:nowrap;
}
.header-phone:hover{ background: var(--navy-light); }
.header-phone span,
.header-phone span.label{ color: var(--white) !important; }
.header-phone .phone-icon{ color: var(--orange) !important; width:18px; height:18px; flex-shrink:0; }
.menu-toggle{ display:none; background:none; border:none; font-size:28px; color:var(--navy); }

@media (max-width: 900px){
  .main-navigation ul{ display:none; }
  .menu-toggle{ display:block; }
  .header-phone{ padding: 10px 16px; font-size: 13px; }
}
@media (max-width: 480px){
  .header-phone{ padding: 9px 12px; font-size: 12px; gap: 6px; }
}

/* =========================================================
   HERO
========================================================= */
.hero{
  background: var(--cream);
  display:grid;
  grid-template-columns: 1.6fr 1fr;
}
.hero-content{ padding: 90px 32px 90px 0; max-width: 640px; margin-left:auto; position:relative; }
.hero-content .eyebrow{
  display:flex; align-items:center; gap:8px;
  color: var(--orange); font-weight:700; letter-spacing:2px; font-size:13px;
  text-transform:uppercase; margin-bottom:18px;
}
.hero-content h1{
  font-size: 58px;
  margin-bottom: 8px;
}
.hero-content h1 .accent{ color: var(--orange); display:block; }
.hero-content .lede{ font-size:17px; max-width: 520px; margin: 24px 0 32px; }
.hero-stats{ display:flex; gap:36px; margin-bottom: 36px; }
.hero-stats .stat{ border-left: 3px solid var(--orange); padding-left:14px; }
.hero-stats .stat .num{ font-family:'Oswald', sans-serif; font-size:30px; font-weight:700; color: var(--navy); }
.hero-stats .stat .label{ font-size:13px; color: var(--text-gray); }
.hero-actions{ display:flex; gap:16px; }

.hero-sidebar{
  background: var(--navy);
  color: var(--white);
  padding: 60px 40px;
  display:flex;
  flex-direction:column;
}
.hero-sidebar .eyebrow{
  color: var(--orange); font-weight:700; letter-spacing:2px; font-size:13px;
  text-transform:uppercase; margin-bottom:26px; padding-bottom:14px; border-bottom:1px solid rgba(255,255,255,.15);
}
.contact-item{ display:flex; gap:16px; align-items:flex-start; margin-bottom:24px; }
.contact-item .icon{
  width:40px; height:40px; border-radius:8px; background: rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0;
}
.contact-item .icon.check{ background: var(--green); }
.contact-item strong{ display:block; font-size:15px; margin-bottom:2px; }
.contact-item span{ font-size:13px; color: rgba(255,255,255,.65); }
.hero-sidebar .btn{ margin-top: auto; }

@media (max-width: 1024px){
  .hero{ grid-template-columns: 1fr; }
  .hero-content{ margin-left:0; max-width:none; padding: 60px 32px; }
  .hero-content h1{ font-size:42px; }
}

/* =========================================================
   SECTION HEADERS
========================================================= */
.section{ padding: 90px 0; }
.section-header{ max-width: 620px; margin-bottom: 50px; }
.section-header.center{ margin-left:auto; margin-right:auto; text-align:center; }
.eyebrow-label{
  color: var(--orange); font-weight:700; letter-spacing:2px; font-size:13px;
  text-transform:uppercase; margin-bottom:10px; display:block;
}
.section-header h2{ font-size:40px; margin-bottom:12px; }

/* =========================================================
   SERVICES GRID
========================================================= */
.services-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.service-card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.service-card:hover{ box-shadow: 0 14px 30px rgba(15,30,60,.08); transform: translateY(-4px); }
.service-card .idx{ font-size:13px; color: var(--border); font-weight:700; margin-bottom:14px; }
.service-card .emoji{ font-size:30px; margin-bottom:14px; }
.service-card h3{ font-size:17px; margin-bottom:8px; }
.service-card p{ font-size:14px; margin:0; }
.service-card.cta-card{
  background: var(--navy); color: var(--white); display:flex; flex-direction:column; justify-content:space-between;
}
.service-card.cta-card h3{ color: var(--white); }
.service-card.cta-card p{ color: rgba(255,255,255,.65); }
.service-card.cta-card .arrow{ align-self:flex-end; font-size:20px; color: var(--orange); margin-bottom:14px; }

@media (max-width: 1100px){ .services-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .services-grid{ grid-template-columns: 1fr; } }

/* =========================================================
   TRUST BAR
========================================================= */
.trust-bar{ background: var(--navy); color: var(--white); padding: 40px 0; }
.trust-bar .container{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:24px; }
.trust-item{ display:flex; align-items:center; gap:14px; flex:1; min-width:240px; }
.trust-item .emoji{ font-size:26px; }
.trust-item strong{ display:block; font-size:15px; text-transform:uppercase; font-family:'Oswald',sans-serif; }
.trust-item span{ font-size:13px; color: rgba(255,255,255,.6); }

/* =========================================================
   GENERIC PAGE HERO (interior pages)
========================================================= */
.page-hero{
  background: var(--navy);
  color: var(--white);
  padding: 70px 0 60px;
  text-align:center;
}
.page-hero .eyebrow-label{ justify-content:center; display:flex; }
.page-hero h1{ color: var(--white); font-size: 46px; margin-bottom:10px; }
.page-hero p{ color: rgba(255,255,255,.7); max-width:560px; margin:0 auto; }

/* =========================================================
   ABOUT PAGE
========================================================= */
.about-grid{ display:grid; grid-template-columns: 1fr 1fr; gap:60px; align-items:center; }
.about-grid img{ border-radius: var(--radius); width:100%; }
.values-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:24px; }
.value-card{ background: var(--cream); border-radius: var(--radius); padding:30px; }
.value-card .emoji{ font-size:28px; margin-bottom:14px; }
.value-card h3{ font-size:17px; }
.value-card p{ font-size:14px; margin:0; }

.team-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:24px; }
.team-card{ text-align:center; border:1px solid var(--border); border-radius: var(--radius); padding:36px 24px; }
.team-avatar{
  width:88px; height:88px; border-radius:50%; background: var(--cream);
  display:flex; align-items:center; justify-content:center; font-size:38px; margin:0 auto 18px;
}
.team-card h3{ font-size:17px; margin-bottom:4px; }
.team-card p{ font-size:14px; margin:0; color: var(--orange); font-weight:600; }

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

/* =========================================================
   PORTFOLIO PAGE
========================================================= */
.portfolio-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:24px; }
.portfolio-card{ border-radius: var(--radius); overflow:hidden; border:1px solid var(--border); }
.portfolio-thumb{
  height: 200px;
  background: linear-gradient(135deg, var(--cream-dark), var(--cream));
  display:flex; align-items:center; justify-content:center; font-size:44px;
}
.portfolio-info{ padding: 20px 22px; }
.portfolio-info .tag{ color: var(--orange); font-size:12px; font-weight:700; letter-spacing:1px; text-transform:uppercase; }
.portfolio-info h3{ font-size:17px; margin: 6px 0 4px; }
.portfolio-info p{ font-size:14px; margin:0; }

@media (max-width: 900px){ .portfolio-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .portfolio-grid{ grid-template-columns: 1fr; } }

/* =========================================================
   CONTACT PAGE
========================================================= */
.contact-layout{ display:grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.contact-form{ background: var(--cream); border-radius: var(--radius); padding: 40px; }
.form-row{ margin-bottom:18px; }
.form-row label{ display:block; font-weight:600; font-size:14px; margin-bottom:6px; color:var(--navy); }
.form-row input, .form-row select, .form-row textarea{
  width:100%; padding:13px 14px; border-radius:6px; border:1px solid var(--border);
  font-family:inherit; font-size:14px; background: var(--white);
}
.form-row textarea{ resize:vertical; min-height:120px; }
.form-two-col{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.contact-info-panel{ background: var(--navy); color:var(--white); border-radius: var(--radius); padding:40px; }
.contact-info-panel h3{ color:var(--white); font-size:22px; }
.hours-table{ width:100%; margin-top:10px; }
.hours-table tr td{ padding:6px 0; font-size:14px; border-bottom:1px solid rgba(255,255,255,.1); }
.hours-table tr td:last-child{ text-align:right; color: rgba(255,255,255,.7); }

@media (max-width: 900px){ .contact-layout{ grid-template-columns:1fr; } .form-two-col{ grid-template-columns:1fr; } }

/* =========================================================
   SERVICES PAGE — ALTERNATING IMAGE + TEXT BLOCKS
========================================================= */
.services-detail{ display:flex; flex-direction:column; gap:70px; }
.service-block{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:50px;
  align-items:center;
  scroll-margin-top: 110px; /* so anchor jumps clear the sticky header */
}
.service-block-text .service-block-emoji{ font-size:40px; margin-bottom:14px; }
.service-block-text h2{ font-size:30px; margin-bottom:16px; }
.service-block-text p{ font-size:16px; line-height:1.75; margin-bottom:26px; }
.service-block-img img{
  width:100%;
  border-radius: var(--radius);
  border:1px solid var(--border);
  box-shadow: 0 12px 30px rgba(15,30,60,.08);
  display:block;
}
/* Alternate: even rows put the image on the LEFT */
.service-block.flip .service-block-text{ order:2; }
.service-block.flip .service-block-img{ order:1; }

/* Highlight a service briefly when jumped to via anchor link */
.service-block:target{
  animation: whi-highlight 2s ease;
  border-radius: var(--radius);
}
@keyframes whi-highlight{
  0%   { background: rgba(225,127,55,.14); }
  100% { background: transparent; }
}

@media (max-width: 800px){
  .service-block{ grid-template-columns: 1fr; gap:28px; }
  .service-block.flip .service-block-text{ order:2; }
  .service-block.flip .service-block-img{ order:1; }
  .service-block-text h2{ font-size:26px; }
}

/* =========================================================
   CTA BAND
========================================================= */
.cta-band{
  background: var(--orange);
  color: var(--white);
  padding: 60px 0;
  text-align:center;
}
.cta-band h2{ color: var(--white); }
.cta-band p{ color: rgba(255,255,255,.9); }
.cta-band .btn-outline-light{ border-color: var(--white); }

/* =========================================================
   FOOTER
========================================================= */
.site-footer{ background: var(--cream); padding: 30px 0; }
.site-footer .container{
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
}
.site-footer .footer-brand{ font-family:'Oswald',sans-serif; font-weight:700; color:var(--navy); }
.site-footer .footer-brand small{ display:block; font-weight:400; color:var(--text-gray); font-family:'Inter',sans-serif; }
.site-footer .footer-tagline{ color: var(--orange); font-weight:700; font-style:italic; text-transform:uppercase; letter-spacing:1px; }
.site-footer .footer-copy{ color: var(--text-gray); font-size:13px; text-align:right; }

@media (max-width: 700px){
  .site-footer .container{ flex-direction:column; text-align:center; }
  .site-footer .footer-copy{ text-align:center; }
}

/* =========================================================
   UTILITIES
========================================================= */
.text-center{ text-align:center; }
.mt-40{ margin-top:40px; }

/* =========================================================
   BLOCK EDITOR (Gutenberg) COMPATIBILITY
   Lets the native WordPress editor blocks (Group, Buttons,
   Heading, Paragraph) render using the same design classes
   above, so the Home page can be built/edited visually.
========================================================= */
#main-content{ overflow-x: clip; }

/* Buttons block -> .btn-orange / .btn-outline / .btn-outline-light */
.wp-block-button.btn-orange .wp-block-button__link{
  background: var(--orange); color: var(--white); padding:16px 28px; border-radius:6px;
  font-weight:700; font-family:'Oswald',sans-serif; text-transform:uppercase; letter-spacing:.5px; font-size:15px;
}
.wp-block-button.btn-orange .wp-block-button__link:hover{ background: var(--orange-dark); }
.wp-block-button.btn-outline .wp-block-button__link{
  background: transparent; color: var(--navy); border:2px solid var(--navy); padding:14px 28px; border-radius:6px;
  font-weight:700; font-family:'Oswald',sans-serif; text-transform:uppercase; letter-spacing:.5px; font-size:15px;
}
.wp-block-button.btn-outline .wp-block-button__link:hover{ background: var(--navy); color: var(--white); }
.wp-block-button.btn-outline-light .wp-block-button__link{
  background: transparent; color: var(--white); border:2px solid rgba(255,255,255,.5); padding:14px 28px; border-radius:6px;
  font-weight:700; font-family:'Oswald',sans-serif; text-transform:uppercase; letter-spacing:.5px; font-size:15px;
}
.wp-block-button.btn-outline-light .wp-block-button__link:hover{ background: var(--white); color: var(--navy); }
.wp-block-buttons.hero-actions{ gap:16px; }

/* Group block -> reuse existing layout classes as-is (grid/flex rules already defined above) */
.wp-block-group.hero{ margin:0; }
.wp-block-group.hero-content{ padding: 90px 32px 90px 0; max-width:640px; margin-left:auto; }
.wp-block-group.hero-sidebar{ background: var(--navy); color:var(--white); padding:60px 40px; }
.wp-block-group.hero-sidebar p{ color: rgba(255,255,255,.85); }
.wp-block-group.hero-stats{ display:flex; gap:36px; margin-bottom:10px; }
.wp-block-group.stat{ border-left:3px solid var(--orange); padding-left:14px; }
.wp-block-group.stat p.num{ font-family:'Oswald',sans-serif; font-size:30px; font-weight:700; color:var(--navy); margin:0; }
.wp-block-group.stat p.label{ font-size:13px; color:var(--text-gray); margin:0; }
.wp-block-group.contact-item{ display:flex; gap:16px; align-items:flex-start; margin-bottom:22px; }
.wp-block-group.contact-item p.icon{
  width:40px; height:40px; border-radius:8px; background: rgba(255,255,255,.08);
  display:flex; align-items:center; justify-content:center; font-size:18px; flex-shrink:0; margin:0;
}
.wp-block-group.contact-item p.icon.check{ background: var(--green); }
.wp-block-group.contact-item p.ci-title{ font-size:15px; font-weight:700; margin:0 0 2px; color:var(--white); }
.wp-block-group.contact-item p.ci-sub{ font-size:13px; color: rgba(255,255,255,.65); margin:0; }
.wp-block-group.accent-line{ color:var(--orange); }
h1.accent-line{ margin-top:-8px; }

.wp-block-group.services-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.wp-block-group.service-card{
  border:1px solid var(--border); border-radius: var(--radius); padding:30px 26px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.wp-block-group.service-card:hover{ box-shadow: 0 14px 30px rgba(15,30,60,.08); transform: translateY(-4px); }
.wp-block-group.service-card p.idx{ font-size:13px; color:var(--border); font-weight:700; margin:0 0 14px; }
.wp-block-group.service-card p.emoji{ font-size:30px; margin:0 0 14px; }
.wp-block-group.service-card h3{ font-size:17px; margin-bottom:8px; }
.wp-block-group.service-card p.card-desc{ font-size:14px; margin:0; }
.wp-block-group.service-card.cta-card{ background: var(--navy); }
.wp-block-group.service-card.cta-card h3{ color:var(--white); }
.wp-block-group.service-card.cta-card p.card-desc{ color: rgba(255,255,255,.65); }

.wp-block-group.trust-bar{ background: var(--navy); color:var(--white); padding:40px 0; }
.wp-block-group.trust-bar-inner{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:24px; max-width: var(--max-width); margin:0 auto; padding:0 32px; }
.wp-block-group.trust-item{ display:flex; align-items:center; gap:14px; flex:1; min-width:240px; }
.wp-block-group.trust-item p.emoji{ font-size:26px; margin:0; }
.wp-block-group.trust-item p.ti-title{ font-size:15px; text-transform:uppercase; font-family:'Oswald',sans-serif; font-weight:700; margin:0; color:var(--white); }
.wp-block-group.trust-item p.ti-sub{ font-size:13px; color: rgba(255,255,255,.6); margin:0; }

.wp-block-group.section{ padding:90px 32px; max-width: var(--max-width); margin:0 auto; }
p.eyebrow{ color: var(--orange); font-weight:700; letter-spacing:2px; font-size:13px; text-transform:uppercase; margin-bottom:10px; }

@media (max-width: 1024px){
  .wp-block-group.hero{ grid-template-columns:1fr; }
  .wp-block-group.hero-content{ margin-left:0; max-width:none; padding:60px 32px; }
}
@media (max-width: 1100px){ .wp-block-group.services-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width: 600px){ .wp-block-group.services-grid{ grid-template-columns:1fr; } }
@media (max-width: 700px){ .wp-block-group.trust-bar-inner{ flex-direction:column; } }
