﻿/*
Theme Name: Carmel Painting
Theme URI: https://carmelpaining.com/
Author: Dgtizer
Description: Custom WordPress theme for Carmel Painting Inc.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: carmel-painting
*/
:root {
  --blue-900: #07306d;
  --blue-800: #08479f;
  --blue-700: #0b56bd;
  --blue-100: #e8f1ff;
  --ink: #0f172a;
  --muted: #5b6472;
  --line: #d9e1ec;
  --surface: #ffffff;
  --soft: #f5f8fc;
  --shadow: 0 18px 55px rgba(7, 48, 109, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(217, 225, 236, 0.75);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.nav-shell {
  min-height: 84px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 178px;
}

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

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.nav-menu a {
  border-radius: 4px;
  color: #1f2937;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 12px;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  background: var(--blue-100);
  color: var(--blue-800);
  outline: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-links a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(11, 86, 189, 0.3);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
  outline: none;
}

.social-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  line-height: 1;
}

.social-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.instagram-icon {
  border-radius: 7px;
  background: linear-gradient(135deg, #f58529, #dd2a7b 45%, #8134af 72%, #515bd4);
}

.facebook-icon {
  border-radius: 999px;
  background: #1877f2;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.5rem;
  padding-top: 3px;
}

.header-phone {
  display: grid;
  justify-items: end;
  min-width: 136px;
  border-left: 1px solid var(--line);
  color: var(--blue-900);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.2;
  padding-left: 18px;
  text-decoration: none;
}

.header-phone span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.header-phone small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.header-phone:hover,
.header-phone:focus-visible {
  color: var(--blue-700);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.section,
.section-band {
  padding: 92px 0;
}

.hero {
  min-height: calc(100dvh - 84px);
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(8, 71, 159, 0.1), rgba(255, 255, 255, 0) 42%),
    radial-gradient(circle at right 20%, rgba(11, 86, 189, 0.12), transparent 34%),
    #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  align-items: center;
  gap: 48px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: 16ch;
  font-size: clamp(2.45rem, 5vw, 4.25rem);
}

h2 {
  max-width: 14ch;
  font-size: clamp(1.95rem, 3.7vw, 3.35rem);
}

h3 {
  font-size: 1.35rem;
}

.accent-word {
  position: relative;
  display: inline;
}

.accent-blue {
  color: var(--blue-700);
}

.accent-gold {
  color: #d89000;
}

.hero-copy p:not(.eyebrow),
.section-heading p,
.estimate-grid > div > p,
.about-copy p {
  max-width: 64ch;
  color: var(--muted);
}

.hero-copy p:not(.eyebrow) {
  margin: 20px 0 0;
  font-size: 1.05rem;
}

.license-line {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 18px !important;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--blue-900) !important;
  font-size: 0.95rem !important;
  font-weight: 900;
  padding: 8px 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.phone-link:focus-visible,
.contact-list a:focus-visible {
  outline: 3px solid rgba(11, 86, 189, 0.28);
  outline-offset: 3px;
}

.button.primary {
  background: var(--blue-800);
  color: #fff;
  box-shadow: 0 12px 28px rgba(8, 71, 159, 0.22);
}

.button.ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--blue-900);
}

.hero-photo-panel {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(217, 225, 236, 0.85);
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  box-shadow: var(--shadow);
}

.hero-photo-panel::before {
  content: "";
  position: absolute;
  inset: 18px 18px auto auto;
  z-index: 1;
  width: 34%;
  height: 9px;
  border-radius: 999px;
  background: var(--blue-800);
}

.hero-photo-panel > img {
  width: 100%;
  height: min(56vw, 520px);
  min-height: 360px;
  object-fit: cover;
}

.hero-photo-panel .hero-stat-grid {
  padding: 16px;
}

.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hero-stat-grid div,
.service-card,
.video-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.hero-stat-grid div {
  padding: 14px;
}

.hero-stat-grid strong,
.hero-stat-grid span {
  display: block;
}

.hero-stat-grid strong {
  color: var(--blue-900);
}

.hero-stat-grid span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.section-heading {
  margin-bottom: 36px;
}

.services-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 1.28fr);
  align-items: end;
  gap: 42px;
}

.services-feature-image {
  width: 100%;
  height: clamp(260px, 28vw, 390px);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  align-items: end;
  gap: 32px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.service-card {
  overflow: hidden;
  min-height: 260px;
  padding: 0 24px 24px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-image {
  width: calc(100% + 48px);
  height: 176px;
  margin: 0 -24px 22px;
  object-fit: cover;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.1);
}

.card-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 4px;
  background: var(--blue-100);
  color: var(--blue-800);
  font-weight: 900;
}

.service-card p,
.video-card p {
  color: var(--muted);
}

.contrast-section {
  background: var(--soft);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.video-card {
  overflow: hidden;
}

.video-card h3 {
  padding: 18px 20px 22px;
}

.video-link,
.video-placeholder {
  position: relative;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
}

.video-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.video-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.28));
}

.video-link:hover img,
.video-link:focus-visible img {
  transform: scale(1.03);
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 68px;
  height: 48px;
  transform: translate(-50%, -50%);
  border-radius: 8px;
  background: rgba(8, 71, 159, 0.94);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.play-button::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 14px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
}

.video-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
}

.video-placeholder span {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  padding: 10px 14px;
}

.about-grid,
.estimate-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
  gap: 54px;
}

.about-copy {
  font-size: 1.05rem;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  min-height: 48px;
  display: flex;
  align-items: center;
  border-left: 4px solid var(--blue-800);
  background: var(--soft);
  padding: 10px 14px;
  font-weight: 700;
}

.reviews-section {
  background:
    linear-gradient(120deg, rgba(8, 71, 159, 0.08), rgba(255, 255, 255, 0) 45%),
    #fff;
}

.reviews-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: 48px;
}

.reviews-grid > div > p {
  max-width: 60ch;
  color: var(--muted);
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.review-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  box-shadow: var(--shadow);
  padding: 34px;
}

.review-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--blue-900), var(--blue-700));
}

.review-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 4px;
  background: #fff;
  color: var(--blue-900);
  font-weight: 900;
  padding: 8px 12px;
}

.google-mark {
  font-weight: 900;
}

.g-blue {
  color: #4285f4;
}

.g-red {
  color: #ea4335;
}

.g-yellow {
  color: #fbbc05;
}

.g-green {
  color: #34a853;
}

.stars {
  margin-top: 24px;
  color: #f4b400;
  font-size: 2rem;
  letter-spacing: 0;
}

.review-card blockquote {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.65rem);
  font-weight: 900;
  line-height: 1.12;
}

.review-card p {
  margin: 18px 0 0;
  color: var(--muted);
}

.estimate-section {
  background: linear-gradient(135deg, var(--blue-900), var(--blue-800));
  color: #fff;
}

.estimate-section .eyebrow,
.estimate-section p {
  color: #d9e9ff;
}

.estimate-section .accent-gold {
  color: #ffd166;
}

.estimate-intro {
  color: #eef6ff !important;
  font-weight: 700;
}

.phone-link {
  display: inline-flex;
  margin-top: 24px;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
  text-decoration: none;
}

.estimate-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.estimate-form label {
  display: grid;
  gap: 7px;
  color: #fff;
  font-weight: 800;
}

.estimate-form input,
.estimate-form select,
.estimate-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  padding: 12px;
}

.estimate-form input:focus,
.estimate-form select:focus,
.estimate-form textarea:focus {
  border-color: #ffd166;
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.22);
  outline: none;
}

.estimate-form textarea {
  min-height: 132px;
  resize: vertical;
}

.full-span {
  grid-column: 1 / -1;
}

.contact-section {
  background: #fff;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-list a {
  min-height: 112px;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.contact-list a.contact-social {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.contact-list a.contact-social .social-icon {
  width: 44px;
  height: 44px;
}

.contact-list a:hover {
  border-color: var(--blue-700);
  background: var(--blue-100);
}

.contact-list span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: var(--soft);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid img {
  width: 190px;
}

.footer-contact {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.footer-contact a {
  color: var(--blue-900);
  font-size: 1.18rem;
  font-weight: 900;
  text-decoration: none;
}

.footer-contact span {
  color: var(--muted);
  font-weight: 800;
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
  color: var(--blue-700);
  outline: none;
}

.footer-grid p {
  margin: 0;
  color: var(--muted);
}

.powered-by {
  font-size: 0.76rem;
  opacity: 0.86;
}

.powered-by a {
  color: var(--blue-800);
  font-weight: 900;
  font-size: 0.78rem;
  text-decoration: none;
}

.powered-by a:hover,
.powered-by a:focus-visible {
  color: var(--blue-700);
  text-decoration: underline;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 84px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 13px 12px;
  }

  .header-phone {
    margin-left: auto;
    border-left: 0;
    padding-left: 0;
  }

  .header-social {
    display: none;
  }

  .hero-grid,
  .services-heading,
  .section-heading.split,
  .about-grid,
  .reviews-grid,
  .estimate-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-feature-image {
    height: 320px;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .nav-shell {
    width: min(100% - 24px, 1180px);
    min-height: 74px;
  }

  .brand img {
    width: 174px;
  }

  .header-phone {
    display: none;
  }

  .nav-menu {
    top: 78px;
  }

  .section,
  .section-band {
    padding: 52px 0;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: 13ch;
    font-size: clamp(2.35rem, 10.5vw, 3.35rem);
  }

  h2 {
    max-width: 13ch;
    font-size: clamp(1.9rem, 9vw, 2.75rem);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .license-line {
    width: 100%;
    justify-content: center;
  }

  .hero-photo-panel {
    padding: 18px;
  }

  .hero-photo-panel > img {
    min-height: 230px;
    border-radius: 6px;
  }

  .hero-stat-grid div {
    padding: 12px;
  }

  .hero-stat-grid,
  .services-heading,
  .service-grid,
  .video-grid,
  .check-list,
  .estimate-form,
  .contact-list {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .service-image {
    height: 150px;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-contact {
    justify-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

