/*
Theme Name: Palmier Apartments
Theme URI: https://example.com/palmier-apartments-theme
Author: OpenAI
Author URI: https://openai.com
Description: A polished leasing-focused WordPress theme for Palmier Apartments in Mobile, Alabama.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: palmier-apartments
*/

:root {
  --palmier-cream: #eef4fa;
  --palmier-sand: #dbe6f0;
  --palmier-sage: #86a9c4;
  --palmier-deep-sage: #56738e;
  --palmier-charcoal: #324657;
  --palmier-clay: #9daebd;
  --palmier-white: #ffffff;
  --palmier-shadow: 0 20px 50px rgba(39, 38, 36, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--palmier-charcoal);
  background: linear-gradient(180deg, #f7fbff 0%, #edf3f8 100%);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-wrapper {
  min-height: 100vh;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 38px;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--palmier-deep-sage);
}

.section-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
}

.section-text {
  margin: 0;
  color: rgba(39, 38, 36, 0.8);
  font-size: 1.04rem;
}

.button,
.wp-block-button__link,
button,
input[type="submit"] {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.button-primary,
input[type="submit"] {
  background: var(--palmier-charcoal);
  color: var(--palmier-white);
}

.button-primary:hover,
input[type="submit"]:hover {
  transform: translateY(-2px);
  background: #111;
}

.button-secondary {
  background: rgba(255,255,255,0.12);
  color: var(--palmier-white);
  border: 1px solid rgba(255,255,255,0.32);
}

.button-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.2);
}

.button-ghost {
  background: transparent;
  color: var(--palmier-charcoal);
  border: 1px solid rgba(39, 38, 36, 0.14);
}

.button-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(39, 38, 36, 0.3);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(245, 249, 253, 0.9);
  border-bottom: 1px solid rgba(39, 38, 36, 0.08);
}

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

.branding a {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--palmier-deep-sage), var(--palmier-sage));
  box-shadow: var(--palmier-shadow);
  position: relative;
  overflow: hidden;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,0.55);
}

.brand-mark::before {
  width: 18px;
  height: 18px;
  left: 10px;
  top: 15px;
}

.brand-mark::after {
  width: 24px;
  height: 24px;
  right: 6px;
  top: 7px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.brand-subtitle {
  font-size: 0.82rem;
  color: rgba(39, 38, 36, 0.7);
}

.main-navigation {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu a {
  font-weight: 600;
  font-size: 0.96rem;
}

.header-cta {
  display: inline-flex;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(39, 38, 36, 0.14);
  color: var(--palmier-charcoal);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 24px 0 40px;
}

.hero-surface {
  position: relative;
  width: 100%;
  min-height: 720px;
  display: flex;
  align-items: stretch;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.22), transparent 28%),
    linear-gradient(135deg, rgba(110,140,168,0.96), rgba(73,97,120,0.98));
  background-size: cover;
  background-position: center;
}

.hero-surface::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 27, 39, 0.10) 0%, rgba(14, 27, 39, 0.28) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: 100%;
  padding-top: 58px;
  padding-bottom: 58px;
  padding-left: clamp(28px, 5vw, 72px);
  padding-right: clamp(28px, 5vw, 72px);
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 760px);
  gap: 24px;
  align-items: center;
  color: var(--palmier-white);
  width: min(100%, 760px);
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.95;
}

.hero-copy p {
  margin: 0 0 24px;
  font-size: 1.08rem;
  max-width: 720px;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 10px rgba(0,0,0,0.12);
}

.hero-badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
  margin: 28px 0 10px;
  max-width: 980px;
}

.hero-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-md);
  padding: 16px;
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 38px rgba(18, 33, 46, 0.10);
}

.hero-badge strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-visual {
  position: relative;
}

.hero-card,
.stat-card,
.content-card,
.floor-card,
.amenity-card,
.faq-item,
.contact-card,
.gallery-card,
.neighborhood-card,
.review-card {
  background: var(--palmier-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--palmier-shadow);
}

.hero-card {
  overflow: hidden;
}

.hero-no-image .hero-surface {
  border-radius: 36px;
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.hero-has-image .hero-surface {
  border-radius: 0;
}

.hero-copy {
  padding: 22px 0;
}

.property-illustration {
  min-height: 480px;
  background:
    linear-gradient(180deg, #edf4fb 0%, #dde8f3 48%, #c7d6e4 49%, #95abc0 100%);
  position: relative;
}

.property-illustration::before {
  content: "";
  position: absolute;
  inset: auto 12% 14% 12%;
  height: 54%;
  border-radius: 22px 22px 0 0;
  background:
    linear-gradient(180deg, #ffffff 0%, #edf3f8 100%);
  box-shadow: 0 24px 55px rgba(0,0,0,0.15);
}

.property-illustration::after {
  content: "";
  position: absolute;
  inset: auto 18% 14% 18%;
  height: 10px;
  background: rgba(39,38,36,0.12);
  border-radius: 999px;
  filter: blur(6px);
}

.property-top,
.property-bottom,
.property-door,
.property-palm {
  position: absolute;
}

.property-top {
  left: 20%;
  right: 20%;
  bottom: 53%;
  height: 16px;
  background: #7f97ac;
  border-radius: 12px;
}

.property-bottom {
  left: 18%;
  right: 18%;
  bottom: 14%;
  height: 44%;
  border-radius: 18px 18px 0 0;
  background:
    repeating-linear-gradient(90deg, #f7fbff 0 10%, #d6e1ea 10% 12%, #f7fbff 12% 22%);
}

.property-door {
  width: 90px;
  height: 130px;
  left: 50%;
  transform: translateX(-50%);
  bottom: 14%;
  background: #5b7084;
  border-radius: 16px 16px 0 0;
}

.property-palm {
  width: 86px;
  height: 180px;
  right: 12%;
  bottom: 14%;
}

.property-palm::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 140px;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  background: #8d9dad;
  border-radius: 999px;
}

.property-palm::after {
  content: "";
  position: absolute;
  width: 86px;
  height: 86px;
  left: 0;
  top: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(134,169,196,0.5) 22%, transparent 23%), radial-gradient(circle at 25% 65%, #7fa5c3 0 26%, transparent 27%), radial-gradient(circle at 75% 65%, #7fa5c3 0 26%, transparent 27%), radial-gradient(circle at 50% 20%, #7fa5c3 0 30%, transparent 31%);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
  margin-top: -72px;
  position: relative;
  z-index: 3;
}

.stat-card {
  padding: 22px;
}

.stat-card strong {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 4px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
}

.content-card,
.amenity-card,
.review-card,
.contact-card,
.neighborhood-card {
  padding: 28px;
}

.content-card h3,
.floor-card h3,
.amenity-card h3,
.review-card h3,
.contact-card h3,
.neighborhood-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.icon-pill {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(134,169,196,0.16);
  color: var(--palmier-deep-sage);
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.floor-grid,
.gallery-grid,
.contact-grid,
.neighborhood-grid {
  display: grid;
  gap: 24px;
}

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

.floor-card {
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.floor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.floor-meta span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--palmier-cream);
  font-weight: 600;
  font-size: 0.92rem;
}

.floor-diagram {
  margin: 22px 0;
  border-radius: 22px;
  padding: 20px;
  background: linear-gradient(180deg, #f8fbff 0%, #e8f0f7 100%);
  border: 1px solid rgba(39,38,36,0.08);
}

.diagram-shell {
  min-height: 220px;
  border: 3px solid #89a8c2;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}

.diagram-room,
.diagram-bath,
.diagram-kitchen,
.diagram-entry,
.diagram-bedroom-2,
.diagram-living {
  position: absolute;
  border: 2px solid rgba(39,38,36,0.16);
  background: rgba(255,255,255,0.82);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(39,38,36,0.76);
}

.diagram-room { inset: 10px 52% 56% 10px; }
.diagram-bath { inset: 10px 10px 56% 54%; }
.diagram-kitchen { inset: 48% 48% 10px 10px; }
.diagram-living { inset: 48% 10px 10px 50%; }
.diagram-bedroom-2 { inset: 48% 52% 10px 10px; }
.diagram-entry { inset: 10px 10px 56% 54%; }

.amenity-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.amenity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.amenity-list li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(39,38,36,0.08);
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0,1fr));
}

.gallery-card {
  padding: 0;
  overflow: hidden;
}

.gallery-visual {
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  position: relative;
}

.gallery-visual.placeholder-a { background: linear-gradient(135deg, #eef5fb, #c7d9e8); }
.gallery-visual.placeholder-b { background: linear-gradient(135deg, #dde9f4, #9cb8cf); }
.gallery-visual.placeholder-c { background: linear-gradient(135deg, #edf4fa, #b7ccdd); }
.gallery-visual.placeholder-d { background: linear-gradient(135deg, #e4edf6, #a7bfd5); }
.gallery-visual.placeholder-e { background: linear-gradient(135deg, #f3f8fd, #cad9e7); }
.gallery-visual.placeholder-f { background: linear-gradient(135deg, #e0ebf5, #9eb7cc); }

.gallery-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  font-weight: 700;
}

.neighborhood-grid {
  grid-template-columns: 1.2fr 0.8fr;
}

.map-card {
  min-height: 430px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--palmier-shadow);
  background: linear-gradient(180deg, #eef5fb 0%, #d2e0ec 100%);
  position: relative;
}

.map-pattern,
.map-road,
.map-pin,
.map-label {
  position: absolute;
}

.map-pattern {
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.28) 1px, transparent 1px);
  background-size: 48px 48px;
}

.map-road {
  background: rgba(120,150,178,0.8);
  border-radius: 999px;
}

.map-road.road-1 { width: 88%; height: 18px; left: 6%; top: 44%; transform: rotate(-5deg); }
.map-road.road-2 { width: 16px; height: 74%; left: 58%; top: 12%; }
.map-road.road-3 { width: 46%; height: 14px; left: 20%; top: 22%; transform: rotate(18deg); }

.map-pin {
  width: 44px;
  height: 44px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: var(--palmier-deep-sage);
  left: 56%;
  top: 40%;
  box-shadow: 0 10px 25px rgba(39,38,36,0.22);
}

.map-pin::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--palmier-white);
  left: 13px;
  top: 13px;
}

.map-label {
  left: 62%;
  top: 38%;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  font-weight: 700;
  box-shadow: var(--palmier-shadow);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
}

.review-card p:last-child {
  margin-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 1rem;
  color: var(--palmier-charcoal);
}

.faq-answer {
  display: none;
  padding: 0 24px 24px;
  color: rgba(39,38,36,0.8);
}

.faq-item.is-open .faq-answer {
  display: block;
}

.contact-grid {
  grid-template-columns: 1.1fr 0.9fr;
}

.contact-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.contact-list li {
  padding: 8px 0;
}

.form-note {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--palmier-cream);
  margin-top: 18px;
  color: rgba(39,38,36,0.8);
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(39,38,36,0.12);
  border-radius: 14px;
  margin-bottom: 14px;
  font: inherit;
  background: #fff;
}

.contact-form textarea,
.wpcf7-form textarea {
  min-height: 120px;
  resize: vertical;
}

.site-footer {
  padding: 34px 0 42px;
  border-top: 1px solid rgba(39,38,36,0.08);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-hero {
  padding: 78px 0 32px;
}

.page-shell {
  padding-bottom: 80px;
}

.content-entry {
  max-width: 860px;
}

.sticky-mobile-cta {
  display: none;
}

@media (max-width: 1080px) {
  .contact-grid,
  .neighborhood-grid,
  .amenity-layout {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .review-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .hero-badges {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .floor-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
  }

  .main-navigation {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,0.98);
    box-shadow: var(--palmier-shadow);
    margin-top: 10px;
  }

  .main-navigation.is-open {
    display: flex;
  }

  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-cta {
    width: 100%;
  }

  .header-cta .button {
    width: 100%;
  }

  .hero-inner {
    padding-top: 42px;
    padding-bottom: 42px;
    padding-left: clamp(22px, 4vw, 36px);
    padding-right: clamp(22px, 4vw, 36px);
  }

  .quick-stats {
    margin-top: 20px;
  }

  .quick-stats,
  .grid-3,
  .gallery-grid,
  .review-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 72px 0;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy h1 {
    font-size: 2.6rem;
  }

  .hero-badges {
    grid-template-columns: 1fr;
  }

  .property-illustration {
    min-height: 360px;
  }

  .sticky-mobile-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    gap: 12px;
    z-index: 1001;
    background: rgba(248,251,255,0.97);
    padding: 10px;
    border-radius: 999px;
    box-shadow: var(--palmier-shadow);
  }

  .sticky-mobile-cta .button {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.92rem;
  }

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

.hero-image-wrap {
  min-height: 480px;
}

.hero-image,
.section-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-image {
  min-height: 480px;
}

.section-photo {
  border-radius: 18px;
  aspect-ratio: 4 / 3;
}

.gallery-visual.has-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(28, 45, 62, 0.35) 100%);
}

.gallery-visual.has-image .gallery-label {
  z-index: 2;
}

.map-card .map-photo {
  width: 100%;
  height: 100%;
  min-height: 430px;
  border-radius: 0;
  aspect-ratio: auto;
}

.image-label {
  left: 18px;
  bottom: 18px;
  top: auto;
}

@media (max-width: 640px) {
  .hero-image-wrap,
  .hero-image {
    min-height: 360px;
  }
}


.floor-diagram {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: stretch;
}

.floor-diagram > * {
  width: 100%;
}

.floor-diagram .section-photo {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.gallery-card,
.gallery-visual,
.map-card,
.hero-card,
.floor-diagram,
.floor-card {
  overflow: hidden;
}

.gallery-visual.has-image {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.gallery-visual.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28);
  border-radius: inherit;
}

.map-card .map-photo,
.hero-image,
.section-photo {
  object-fit: cover;
  object-position: center;
}

.hero-card .hero-image-wrap {
  min-height: 480px;
  height: 100%;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-auto-rows: 1fr;
  }
}


@media (max-width: 700px) {
  .hero {
    padding-top: 12px;
  }

  .hero-surface {
    min-height: auto;
  }

  .hero-inner {
    padding-top: 34px;
    padding-bottom: 34px;
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-copy h1 {
    font-size: clamp(2.6rem, 14vw, 4.4rem);
  }

  .grid-3,
  .review-grid,
  .gallery-grid,
  .hero-badges,
  .quick-stats {
    grid-template-columns: 1fr;
  }
}
