/*
Theme Name: Altenburg Painting
Theme URI: https://example.com/
Author: OpenAI
Description: A responsive one-page WordPress theme inspired by the supplied Altenburg Painting front-page mockup.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: altenburg-painting
*/

:root {
  --ap-blue: #16166f;
  --ap-blue-dark: #11115b;
  --ap-text: #2d2d35;
  --ap-white: #ffffff;
  --ap-cream: #ede9e6;
  --ap-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ap-text);
  background: #fff;
  font-family: Montserrat, Arial, sans-serif;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.ap-container {
  width: min(100% - 44px, var(--ap-max));
  margin-inline: auto;
}

.ap-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 30;
  color: #fff;
  padding: 22px 0;
}
.ap-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.ap-logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.ap-logo img,
.ap-logo .custom-logo {
  width: min(100%, 360px);
  height: auto;
}
.ap-menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.ap-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ap-nav li {
  display: flex;
  align-items: center;
}
.ap-nav li:not(:last-child)::after {
  content: "//";
  display: inline-block;
  margin: 0 14px;
  color: rgba(255,255,255,.88);
  font-weight: 700;
  letter-spacing: .04em;
}
.ap-nav a {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}
.ap-nav .menu-item:last-child::after { display: none; }
.ap-nav .menu-item:last-child a,
.ap-nav__cta {
  padding: 17px 24px;
  background: var(--ap-blue);
  margin-left: 18px;
}

.ap-hero {
  position: relative;
  min-height: 950px;
  display: grid;
  place-items: center;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(rgba(15, 20, 39, .34), rgba(15, 20, 39, .34)),
    url('assets/images/main-bg.jpg') center/cover no-repeat;
}
.ap-hero__content {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  padding-top: 100px;
}
.ap-anniversary {
  display: flex;
  justify-content: center;
  margin: 0 auto 22px;
}
.ap-anniversary img {
  width: min(300px, 46vw);
  height: auto;
}
.ap-hero h1 {
  margin: 0;
  font-size: clamp(46px, 5.7vw, 82px);
  line-height: 1.04;
  text-transform: uppercase;
  letter-spacing: .015em;
  font-weight: 700;
}
.ap-hero p {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  max-width: 1040px;
  margin: 26px auto 34px;
  line-height: 1.34;
}
.ap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px;
  border: 2px solid currentColor;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: .2s ease;
}
.ap-btn:hover {
  transform: translateY(-2px);
  background: #fff;
  color: var(--ap-blue);
}
.ap-btn--solid {
  background: var(--ap-blue);
  border-color: var(--ap-blue);
}

.ap-intro {
  background: var(--ap-cream);
  padding: 0;
  overflow: hidden;
}
.ap-intro__grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(420px, 1.08fr);
  align-items: stretch;
}
.ap-intro__card-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 0;
}
.ap-intro__card {
  position: relative;
  z-index: 2;
  background: #fff;
  padding: 52px 48px;
  width: min(100%, 485px);
  box-shadow: 0 16px 44px rgba(18, 18, 50, .10);
}
.ap-kicker {
  color: #767676;
  font-size: 18px;
}
.ap-intro h2,
.ap-section-title {
  margin: 6px 0 18px;
  color: var(--ap-blue);
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.05;
  text-transform: uppercase;
}
.ap-intro__card p {
  margin: 0 0 16px;
  font-size: 15px;
  color: #50505a;
}
.ap-intro__image {
  min-height: 620px;
  background: url('assets/images/premium-painting-bg.jpg') center/cover no-repeat;
}

.ap-services-head {
  color: #fff;
  text-align: center;
  padding: 88px 0 158px;
  background:
    linear-gradient(rgba(102, 72, 37, .18), rgba(102, 72, 37, .18)),
    url('assets/images/our-service-bg.jpg') center/cover no-repeat;
}
.ap-services-head .ap-section-title {
  color: #fff;
  margin-bottom: 12px;
}
.ap-services-head p {
  max-width: 860px;
  margin: 0 auto 8px;
  font-size: 16px;
}
.ap-services-cards {
  margin-top: -104px;
  padding-bottom: 92px;
}
.ap-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}
.ap-service-card {
  text-align: center;
}
.ap-service-card__image {
  aspect-ratio: 16 / 10;
  background: #ddd center/cover no-repeat;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
}
.ap-service-card:nth-child(1) .ap-service-card__image { background-image: url('assets/images/residential.jpg'); }
.ap-service-card:nth-child(2) .ap-service-card__image { background-image: url('assets/images/commercial.jpg'); }
.ap-service-card h3 {
  color: var(--ap-blue);
  font-size: 25px;
  text-transform: uppercase;
  margin: 18px 0 10px;
}
.ap-service-card p {
  max-width: 480px;
  margin: 0 auto 24px;
  color: #66666f;
  font-size: 15px;
}

.ap-contact {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #11115b, #1a1a86);
  padding: 84px 0 0;
}
.ap-contact::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(53vw, 820px);
  height: min(74vw, 760px);
  background: url('assets/images/need-an-estimate-bg.png') right bottom/contain no-repeat;
  pointer-events: none;
}
.ap-contact__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  text-align: center;
}
.ap-contact h2 {
  margin: 0 0 10px;
  font-size: clamp(34px, 4vw, 56px);
  text-transform: uppercase;
}
.ap-contact__lead {
  font-size: clamp(19px, 2vw, 22px);
  margin: 0 0 28px;
}
.ap-contact__lead strong {
  font-weight: 700;
}
.ap-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.ap-form input,
.ap-form textarea {
  width: 100%;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.52);
  padding: 14px 16px;
  outline: none;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .04em;
}
.ap-form input::placeholder,
.ap-form textarea::placeholder {
  color: rgba(255,255,255,.82);
}
.ap-form textarea {
  grid-column: 1 / -1;
  min-height: 110px;
  resize: vertical;
}
.ap-form__submit {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 6px;
  background: #fff;
  color: var(--ap-blue);
  border: 0;
  padding: 14px 28px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}
.ap-contact__bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 55px;
  text-align: left;
  margin-top: 82px;
  padding-bottom: 92px;
  max-width: 650px;
}
.ap-contact__bottom h3 {
  font-size: 24px;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.ap-contact__bottom p,
.ap-contact__bottom li {
  color: rgba(255,255,255,.88);
}
.ap-contact__bottom ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ap-footer {
  background: #11115b;
  color: rgba(255,255,255,.75);
  border-top: 1px solid rgba(255,255,255,.22);
}
.ap-footer__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}
.ap-footer__social {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ap-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: .92;
}
.ap-footer__social a:hover { opacity: 1; }
.ap-footer__social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

@media (max-width: 1024px) {
  .ap-hero { min-height: 820px; }
  .ap-intro__grid { grid-template-columns: 1fr; }
  .ap-intro__card-wrap { order: 2; padding: 56px 0; }
  .ap-intro__image { order: 1; min-height: 420px; }
  .ap-contact::after { width: min(58vw, 520px); height: 52%; }
}

@media (max-width: 900px) {
  .ap-header { padding: 18px 0; }
  .ap-logo img,
  .ap-logo .custom-logo { width: min(100%, 260px); }
  .ap-menu-toggle { display: block; }
  .ap-nav {
    display: none;
    position: absolute;
    top: 78px;
    left: 20px;
    right: 20px;
    background: #11115b;
    padding: 14px 18px;
  }
  .ap-nav.is-open { display: block; }
  .ap-nav ul { flex-direction: column; align-items: stretch; }
  .ap-nav li { display: block; }
  .ap-nav li::after { display: none !important; }
  .ap-nav .menu-item:last-child a,
  .ap-nav__cta { margin-left: 0; }
  .ap-nav a { display: block; padding: 13px 8px; }
  .ap-card-grid,
  .ap-contact__bottom,
  .ap-form { grid-template-columns: 1fr; }
  .ap-form textarea,
  .ap-form__submit { grid-column: auto; }
  .ap-services-cards { margin-top: -60px; }
}

@media (max-width: 767px) {
  .ap-container { width: min(100% - 30px, var(--ap-max)); }
  .ap-hero { min-height: 720px; }
  .ap-hero__content { padding-top: 96px; }
  .ap-anniversary img { width: min(205px, 52vw); }
  .ap-hero p { margin: 18px auto 24px; }
  .ap-intro__card { padding: 36px 28px; }
  .ap-services-head { padding: 72px 0 104px; }
  .ap-contact { padding-top: 68px; }
  .ap-contact__bottom { margin-top: 54px; padding-bottom: 124px; }
  .ap-contact::after { width: min(88vw, 420px); height: 38%; opacity: .98; }
  .ap-footer__inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 14px 0;
  }
}
