/* =====================================================================
   phrloo-fixes.css
   ---------------------------------------------------------------------
   Layered on TOP of style.css. Only contains overrides needed to keep
   the design balanced after the longer, SEO-correct H1s were put in
   place. Original style.css is untouched.
   ===================================================================== */

/* ---------------------------------------------------------------------
   Hero H1s — the sub-title slot is now the real H1 and in many cases
   carries a longer SEO string ("Contact Phrloo — Web Development in
   Lahore", "New Business Website Development in Pakistan", etc.).
   Original style.css set font-size: 96px desktop which pushed long
   strings onto 4+ lines. Scale down proportionally across breakpoints.
   --------------------------------------------------------------------- */
.page-header h1.page-sub-title,
.page-header h1.page-sub-title2 {
    font-family: var(--bs-font-secondary);
    font-weight: 600;
    line-height: 1.1;
    max-width: 100%;
}

.page-header h1.page-sub-title {
    font-size: 56px;        /* was 96px */
    line-height: 1.1;
}

.page-header h1.page-sub-title2 {
    font-size: 40px;        /* was 56px */
    line-height: 1.2;
}

/* On the home page the banner-title is already an H1, leave untouched. */

/* ---------------------------------------------------------------------
   Watermark background text — was <h1>/<h5>, now <span aria-hidden>.
   Preserve the same visual size.
   --------------------------------------------------------------------- */
.page-header span.page-title {
    display: block;
    font-family: var(--bs-font-secondary);
    color: var(--bs-text-color6);
    font-size: 228px;
    font-weight: 600;
    line-height: 118.86%;
    position: absolute;
    top: 121px;
    right: 0;
    pointer-events: none;
    user-select: none;
    text-transform: uppercase;
}

/* Responsive scaling for the watermark (mirrors style.css for the old h1 selector) */
@media (max-width: 1199.98px) {
    .page-header h1.page-sub-title  { font-size: 44px; }
    .page-header h1.page-sub-title2 { font-size: 32px; }
}

@media (max-width: 991.98px) {
    .page-header span.page-title { font-size: 154px; top: 73px; }
}

@media (max-width: 767.98px) {
    .page-header h1.page-sub-title  { font-size: 32px; }
    .page-header h1.page-sub-title2 { font-size: 28px; }
    .page-header span.page-title    { font-size: 134px; top: 73px; }
}

@media (max-width: 575.98px) {
    .page-header h1.page-sub-title  { font-size: 26px; }
    .page-header h1.page-sub-title2 { font-size: 24px; }
    .page-header span.page-title    { font-size: 100px; top: 40px; }
}

/* ---------------------------------------------------------------------
   Footer plain-text address (new element added in footer.php).
   --------------------------------------------------------------------- */
.footer-section .footer-address {
    text-align: center;
    padding: 24px 20px 0;
    font-size: 14px;
    color: var(--bs-text-color5);
    line-height: 1.6;
}
.footer-section .footer-address a {
    color: var(--bs-text-color5);
    text-decoration: underline;
}
.footer-section .footer-address a:hover {
    color: var(--bs-text-color1);
}

/* ---------------------------------------------------------------------
   Contact form section (new /contact form).
   --------------------------------------------------------------------- */
.contact-form-block {
    max-width: 760px;
    margin: 90px auto 90px;
    padding: 48px 40px;
    background: var(--bs-white);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border-radius: 12px;
}
.contact-form-block h2 {
    font-family: var(--bs-font-secondary);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 32px;
    color: var(--bs-text-color1);
}
.contact-form-block .form-row {
    margin-bottom: 24px;
}
.contact-form-block label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--bs-text-color2);
    margin-bottom: 6px;
}
.contact-form-block input[type="text"],
.contact-form-block input[type="email"],
.contact-form-block input[type="tel"],
.contact-form-block textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--bs-border-color5);
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    background: var(--bs-white);
    transition: border-color 0.2s;
}
.contact-form-block input:focus,
.contact-form-block textarea:focus {
    outline: none;
    border-color: #056839;
    box-shadow: 0 0 0 3px rgba(5, 104, 57, 0.08);
}
.contact-form-block textarea {
    min-height: 140px;
    resize: vertical;
}
.contact-form-block .honeypot-row {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.contact-form-block button[type="submit"] {
    color: var(--bs-white);
    font-size: 16px;
    font-weight: 500;
    padding: 14px 36px;
    border-radius: 50px;
    background-color: #056839;
    border: 0;
    cursor: pointer;
    transition: var(--bs-transition);
}
.contact-form-block button[type="submit"]:hover {
    background-color: var(--bs-primary);
    color: var(--bs-text-color1);
}
.contact-form-block .form-status {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 6px;
    display: none;
    font-size: 14px;
}
.contact-form-block .form-status.success {
    display: block;
    background: rgba(5, 104, 57, 0.10);
    color: #056839;
    border: 1px solid rgba(5, 104, 57, 0.30);
}
.contact-form-block .form-status.error {
    display: block;
    background: rgba(220, 38, 38, 0.10);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.30);
}

@media (max-width: 575.98px) {
    .contact-form-block { padding: 32px 20px; }
    .contact-form-block h2 { font-size: 26px; }
}
