/*
Theme Name: Tamnia Trading
Theme URI: https://tamnia.com
Author: Tamnia Team
Author URI: https://tamnia.com
Description: Bilingual theme for Tamnia Trading with Arabic (RTL) and English support. Designed for displaying products, news, and company information.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tamnia
Tags: rtl-language-support, custom-menu, featured-images, translation-ready, custom-logo, two-columns, blog
*/

/* =WordPress Core
-------------------------------------------------------------- */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%;
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Contact Page Styles */
.contact-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
    display: none;
}

.contact-header h1 {
    font-size: 2.5rem;
    color: #35857f;
    margin-bottom: 1rem;
}

.contact-header p {
    font-size: 1.125rem;
    color: #6b7280;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    background: #f5f3f0;
    padding: 2rem;
    border-radius: 0.5rem;
}

.contact-info h2 {
    font-size: 1.875rem;
    color: #35857f;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: baseline;
    margin-bottom: 1.5rem;
}

.info-item-icon {
    width: 40px;
    height: 40px;
    background: #35857f;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
    font-size: 1.25rem;
}

.info-item-content h3 {
    font-size: 1.125rem;
    color: #35857f;
    margin-bottom: 0.25rem;
}

.info-item-content p {
    color: #4a5568;
    margin: 0;
}

.contact-form-section {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
}

.contact-form-section h2 {
    font-size: 1.875rem;
    color: #35857f;
    margin-bottom: 1.5rem;
}

/* Contact forms - language switching handled by page template */

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

/* Contact Form 7 Styling */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.wpcf7-form p {
    margin: 0;
    display: flex;
    flex-direction: column;
}

.wpcf7-form label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: border-color 0.3s;
    width: 100%;
    font-family: inherit;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: #35857f;
    box-shadow: 0 0 0 3px rgba(53, 133, 127, 0.1);
}

.wpcf7-form textarea {
    min-height: 150px;
    resize: vertical;
}

.wpcf7-form input[type="submit"] {
    background: #35857f;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    width: auto;
    align-self: flex-start;
}

.wpcf7-form input[type="submit"]:hover {
    background: #2a6b66;
}

.wpcf7-form input[type="submit"]:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Form validation messages */
.wpcf7-not-valid-tip {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ok {
    padding: 1rem;
    border-radius: 0.375rem;
    margin: 1rem 0;
}

.wpcf7-validation-errors {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

.wpcf7-mail-sent-ok {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.wpcf7-spinner {
    margin-left: 1rem;
}

/* RTL Support for forms */
[dir="rtl"] .wpcf7-form input[type="submit"] {
    align-self: flex-start;
}

[dir="rtl"] .wpcf7-spinner {
    margin-left: 0;
    margin-right: 1rem;
}

/* About Page - Alternating Image Layout */
.page-id-388 article {
    max-width: 1200px;
    margin: 0 auto;
}

/* Target all figure elements (WordPress image blocks) */
.page-id-388 figure.wp-block-image {
    margin: 2rem 0;
    max-width: 100%;
}

.page-id-388 figure.wp-block-image img {
    width: 100%;
    max-width: 550px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* First image (odd) - align left */
.page-id-388 figure.wp-block-image:nth-of-type(odd) {
    text-align: left;
}

.page-id-388 figure.wp-block-image:nth-of-type(odd) img {
    float: left;
    margin-right: 2rem;
    margin-bottom: 1rem;
}

/* Second image (even) - align right */
.page-id-388 figure.wp-block-image:nth-of-type(even) {
    text-align: right;
}

.page-id-388 figure.wp-block-image:nth-of-type(even) img {
    float: right;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

/* Headings should clear floats */
.page-id-388 h2,
.page-id-388 h3 {
    clear: both;
    padding-top: 2rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .page-id-388 figure.wp-block-image {
        text-align: center !important;
    }

    .page-id-388 figure.wp-block-image img {
        float: none !important;
        max-width: 100% !important;
        margin: 1rem auto !important;
        display: block;
    }
}

