/* ============================================
   Pink Elephant Properties -- Main Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #cb4966;
  --primary-hover: #b33d57;
  --primary-light: rgba(203, 73, 102, 0.1);
  --navy: #0a3160;
  --navy-light: #0d3d7a;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --medium-gray: #6b7280;
  --dark-text: #1a1a1a;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --max-width: 1200px;
  --header-height: 80px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--dark-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

ul, ol {
  list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  margin-bottom: 1rem;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section--gray {
  background: var(--light-gray);
}

.section--navy {
  background: var(--navy);
  color: var(--white);
}

.section--navy h2,
.section--navy h3 {
  color: var(--white);
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__header h2 {
  margin-bottom: 1rem;
}

.section__header p {
  color: var(--medium-gray);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.125rem;
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: 2rem;
}

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

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

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

@media (max-width: 1024px) {
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--primary-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(203, 73, 102, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--navy);
}

.btn--white:hover {
  background: var(--light-gray);
  color: var(--navy);
  transform: translateY(-1px);
}

.btn--lg {
  padding: 1.125rem 2.5rem;
  font-size: 1.125rem;
}

.btn--full {
  width: 100%;
}

/* --- Cards --- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.card__icon {
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary);
}

.card__icon svg {
  width: 28px;
  height: 28px;
}

.card__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.card__text {
  color: var(--medium-gray);
  font-size: 1rem;
  line-height: 1.6;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.header--scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header__logo img {
  height: 48px;
  width: auto;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header__nav a {
  color: var(--dark-text);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.header__nav a:hover {
  color: var(--primary);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__actions .btn {
  white-space: nowrap;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
}

.header__phone {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.header__phone:hover {
  color: var(--primary);
}

/* Mobile menu toggle */
.header__menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.header__menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 6px 0;
  transition: all 0.3s ease;
}

/* Mobile nav */
@media (max-width: 768px) {
  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

  .header__nav.is-open {
    transform: translateX(0);
  }

  .header__nav a {
    font-size: 1.25rem;
  }

  .header__menu-btn {
    display: block;
  }

  .header__phone {
    display: none;
  }

  .header__actions .btn {
    display: none;
  }
}

/* --- Hero --- */
.hero {
  padding: calc(var(--header-height) + 4rem) 0 5rem;
  background: linear-gradient(135deg, var(--navy) 0%, #0d3d7a 100%);
  color: var(--white);
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.hero__subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero__phone {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
}

.hero__phone a {
  color: var(--white);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-underline-offset: 4px;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + 2rem) 0 3rem;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- Form --- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.form-card h3 {
  color: var(--navy);
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.form-card p {
  color: var(--medium-gray);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.form__group {
  margin-bottom: 1rem;
}

.form__group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.form__group input,
.form__group textarea,
.form__group select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--dark-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form__group input:focus,
.form__group textarea:focus,
.form__group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(203, 73, 102, 0.15);
}

.form__group input::placeholder {
  color: var(--medium-gray);
}

.form__success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form__success.is-visible {
  display: block;
}

.form__success h3 {
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.form__success p {
  color: var(--medium-gray);
}

/* --- Trust Bar --- */
.trust-bar {
  padding: 3rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.trust-bar__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.trust-bar__item {
  padding: 1rem;
}

.trust-bar__number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.trust-bar__label {
  font-size: 0.95rem;
  color: var(--medium-gray);
  font-weight: 500;
}

@media (max-width: 768px) {
  .trust-bar__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .trust-bar__inner {
    grid-template-columns: 1fr;
  }
}

/* --- Process Steps --- */
.step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  text-align: left;
}

.step__number {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
}

.step__content h3 {
  margin-bottom: 0.5rem;
}

.step__content p {
  color: var(--medium-gray);
  font-size: 1rem;
}

/* --- Testimonials --- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border);
  position: relative;
}

.testimonial::before {
  content: '\201C';
  font-size: 4rem;
  color: var(--primary);
  opacity: 0.3;
  position: absolute;
  top: 0.5rem;
  left: 1.5rem;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial__text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--dark-text);
  margin-bottom: 1.25rem;
  padding-top: 1rem;
  font-style: italic;
}

.testimonial__author {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

.testimonial__location {
  color: var(--medium-gray);
  font-size: 0.875rem;
}

/* --- Comparison Table --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 1rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table thead th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.comparison-table thead th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
}

.comparison-table thead th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
}

.comparison-table tbody tr:hover {
  background: var(--light-gray);
}

.comparison-table .highlight {
  background: var(--primary-light);
  font-weight: 600;
}

.comparison-table thead th.highlight {
  background: var(--navy);
  color: var(--white);
}

@media (max-width: 640px) {
  .comparison-table {
    font-size: 0.875rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem;
  }
}

/* --- Blog Cards --- */
.blog-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.blog-card__image {
  height: 200px;
  background: var(--light-gray);
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__body {
  padding: 1.5rem;
}

.blog-card__category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.blog-card__title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
  line-height: 1.3;
}

.blog-card__title a {
  color: var(--navy);
}

.blog-card__title a:hover {
  color: var(--primary);
}

.blog-card__excerpt {
  color: var(--medium-gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-card__link {
  font-weight: 600;
  font-size: 0.95rem;
}

/* --- Project Cards --- */
.project-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.project-card__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 220px;
}

.project-card__before,
.project-card__after {
  position: relative;
  background: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--medium-gray);
  overflow: hidden;
}

.project-card__before img,
.project-card__after img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__label {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background: rgba(0, 0, 0, 0.65);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: 4px;
}

.project-card__body {
  padding: 1.25rem;
}

.project-card__location {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.project-card__meta {
  font-size: 0.875rem;
  color: var(--medium-gray);
  margin-bottom: 0.375rem;
}

.project-card__note {
  font-size: 0.875rem;
  color: var(--dark-text);
  line-height: 1.5;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 2rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer__brand p {
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer__brand img {
  height: 40px;
  margin-bottom: 1rem;
}

.footer__contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.footer__contact-item a {
  color: rgba(255, 255, 255, 0.8);
}

.footer__contact-item a:hover {
  color: var(--white);
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer ul li {
  margin-bottom: 0.625rem;
}

.footer ul li a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer ul li a:hover {
  color: var(--white);
}

.footer__social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.footer__social a:hover {
  background: var(--primary);
  color: var(--white);
}

.footer__social a svg {
  width: 20px;
  height: 20px;
}

/* Social icons on light backgrounds (e.g. contact page) */
.card .footer__social a {
  background: var(--light-gray);
  color: var(--navy);
}

.card .footer__social a:hover {
  background: var(--primary);
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer__bottom a:hover {
  color: var(--white);
}

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, var(--navy) 0%, #0d3d7a 100%);
  color: var(--white);
  padding: 5rem 0;
  text-align: center;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
}

.cta-section .form-card {
  max-width: 500px;
  margin: 0 auto;
}

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge--primary {
  background: var(--primary-light);
  color: var(--primary);
}

.badge--navy {
  background: rgba(10, 49, 96, 0.1);
  color: var(--navy);
}

/* --- Blog Post (article pages) --- */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: calc(var(--header-height) + 3rem) 1.5rem 4rem;
}

.article h1 {
  margin-bottom: 1rem;
}

.article__meta {
  color: var(--medium-gray);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.article h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article p {
  margin-bottom: 1.25rem;
}

.article ul,
.article ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article ul {
  list-style: disc;
}

.article ol {
  list-style: decimal;
}

.article li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article blockquote {
  border-left: 4px solid var(--primary);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--light-gray);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--dark-text);
}

.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.article table th,
.article table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}

.article table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
}

.article table tbody tr:nth-child(even) {
  background: var(--light-gray);
}

/* --- FAQ Accordion --- */
.faq__item {
  border-bottom: 1px solid var(--border);
}

.faq__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1.25rem 0;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.faq__question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.faq__item.is-open .faq__question::after {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq__item.is-open .faq__answer {
  max-height: 500px;
}

.faq__answer p {
  padding-bottom: 1.25rem;
  color: var(--medium-gray);
  line-height: 1.7;
}

/* --- Utility Classes --- */
.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary);
}

.text-navy {
  color: var(--navy);
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* --- Page Header (inner pages) --- */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, #0d3d7a 100%);
  color: var(--white);
  padding: calc(var(--header-height) + 3rem) 0 3rem;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 1rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.125rem;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 1rem 0;
  font-size: 0.875rem;
  color: var(--medium-gray);
}

.breadcrumbs a {
  color: var(--medium-gray);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs span {
  margin: 0 0.5rem;
}
