/* 
   Chishty Sufi Markaz - Main Stylesheet
   A premium, responsive design for the official website of Gaddi Nashin Dargah Ajmer Sharif
*/

/* ===== FONTS ===== */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap");

/* ===== VARIABLES ===== */
:root {
    --primary-gold: #d4af37;
    --deep-gold: #b8941f;
    --rich-brown: #4a2511;
    --medium-brown: #6b3c1e;
    --light-brown: #8c5e3c;
    --cream: #faf8f4;
    --white: #ffffff;
    --soft-gray: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--cream);
    overflow-x: hidden;
    padding-top: 60px; /* Space for fixed header */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: var(--rich-brown);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--deep-gold);
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background: linear-gradient(135deg, var(--rich-brown) 0%, var(--medium-brown) 100%);
    box-shadow: 0 4px 20px var(--shadow-medium);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px; /* Reduced height for header */
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="islamic-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M10,0 L20,10 L10,20 L0,10 Z" fill="none" stroke="rgba(212,175,55,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23islamic-pattern)"/></svg>') repeat;
    opacity: 0.3;
}

nav {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px; /* Smaller logo size */
    width: auto;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

nav ul.nav-links {
    display: flex;
    list-style: none;
    gap: 0.8rem; /* Reduced gap */
    padding-left: 0;
    margin-bottom: 0;
    flex-wrap: nowrap; /* Prevent wrapping */
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    padding: 0.3rem 0.6rem; /* Smaller padding */
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap; /* Ensure links stay in single line */
    font-size: 0.9rem; /* Smaller font size */
    display: inline-block; /* Ensure proper clickable area */
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

nav a:hover::before {
    left: 100%;
}

nav a:hover,
nav a.active {
    background: var(--primary-gold);
    color: var(--rich-brown);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212,175,55,0.3);
}

/* ===== HERO SECTIONS ===== */
.hero {
    background: linear-gradient(135deg, var(--rich-brown) 0%, var(--medium-brown) 50%, var(--primary-gold) 100%);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0; /* No extra margin needed with padding-top on body */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(212,175,55,0.2) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    color: var(--cream);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease 0.2s both;
}

.page-hero {
    background: linear-gradient(135deg, var(--rich-brown) 0%, var(--medium-brown) 50%, var(--primary-gold) 100%);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 0; /* No extra margin needed with padding-top on body */
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(212,175,55,0.2) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease;
}

.page-hero p {
    font-size: 1.2rem;
    color: var(--cream);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease 0.2s both;
}

/* ===== BUTTONS ===== */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-gold), var(--deep-gold));
    color: var(--white);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(212,175,55,0.3);
    transition: all 0.3s ease;
    border: none;
    margin-top: 2rem;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(212,175,55,0.4);
    color: var(--white);
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: 5rem 0;
    position: relative;
}

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

.summary-section {
    padding: 4rem 0;
    text-align: center;
    background: var(--cream);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.summary-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--rich-brown);
    margin-bottom: 1rem;
}

.summary-section p {
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--text-dark);
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-details h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--rich-brown);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--primary-gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px var(--shadow-light);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-gold);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

.contact-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-gold), var(--deep-gold));
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(212,175,55,0.3);
    color: var(--white);
}

.contact-text h3 {
    font-family: 'Playfair Display', serif;
    color: var(--rich-brown);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.contact-text p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-text a {
    color: var(--primary-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: var(--deep-gold);
}

/* WhatsApp Button */
.whatsapp-direct {
    margin-top: 2rem;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #25D366, #20b954);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    color: var(--white);
}

.whatsapp-icon {
    font-size: 1.5rem;
}

/* Contact Form */
.contact-form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-gold), var(--deep-gold), var(--rich-brown));
}

.contact-form-container h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--rich-brown);
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--rich-brown);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--soft-gray);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--rich-brown), var(--medium-brown));
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px var(--shadow-medium);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--shadow-medium);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--shadow-medium);
}

.service-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-gold), var(--deep-gold));
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 25px rgba(212,175,55,0.3);
    color: var(--white);
}

.service-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--rich-brown);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.service-contact {
    display: inline-block;
    background: linear-gradient(135deg, #25D366, #20b954);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.2);
    margin-top: auto;
}

.service-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    color: var(--white);
}

/* Payment Section */
.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.payment-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: all 0.3s ease;
    border-top: 5px solid var(--primary-gold);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.payment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.payment-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--rich-brown);
    margin-bottom: 1.5rem;
    text-align: center;
}

.bank-details {
    background: var(--soft-gray);
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.bank-details p {
    margin-bottom: 0.5rem;
    font-family: 'Inter', monospace;
}

.qr-code {
    text-align: center;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.qr-code img {
    max-width: 200px;
    border-radius: 10px;
    box-shadow: 0 5px 15px var(--shadow-light);
    margin: 0 auto;
}

.payment-confirm {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-gold), var(--deep-gold));
    color: var(--white);
    padding: 1rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: auto;
}

.payment-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212,175,55,0.3);
    color: var(--white);
}

/* Section Headers */
.content-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--rich-brown);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-gold), var(--deep-gold));
    border-radius: 2px;
}

/* Tabs Section */
.tabs-section {
    padding: 5rem 0;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.tab-btn {
    background: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-light);
}

.tab-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-medium);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-gold), var(--deep-gold));
    color: var(--white);
    box-shadow: 0 8px 20px rgba(212,175,55,0.3);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.tab-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--rich-brown);
    margin-bottom: 2rem;
    text-align: center;
}

.tab-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--rich-brown);
    margin: 2.5rem 0 1.5rem;
}

.tab-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.tab-content blockquote {
    background: var(--soft-gray);
    padding: 2rem;
    border-left: 5px solid var(--primary-gold);
    margin: 2rem 0;
    font-style: italic;
    position: relative;
    border-radius: 0 10px 10px 0;
}

.tab-content blockquote::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    position: absolute;
    top: -10px;
    left: 10px;
    color: var(--primary-gold);
    opacity: 0.3;
}

.spiritual-lineage {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    text-align: center;
}

.spiritual-lineage li {
    padding: 0.5rem 0;
    position: relative;
}

.literary-works {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.literary-works li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--soft-gray);
    border-radius: 10px;
    border-left: 3px solid var(--primary-gold);
}

.teachings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.teaching-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: all 0.3s ease;
}

.teaching-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

.teaching-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--rich-brown);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.teaching-card h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-gold);
}

.sayings {
    margin: 3rem 0;
}

.sayings blockquote {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: var(--soft-gray);
    border-left: 3px solid var(--primary-gold);
    font-style: italic;
    border-radius: 0 10px 10px 0;
}

.reality-teachings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.reality-teaching {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: all 0.3s ease;
}

.reality-teaching:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

.reality-teaching h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--rich-brown);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.reality-teaching h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-gold);
}

.seeker-categories {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.seeker-categories li {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--soft-gray);
    border-radius: 10px;
    border-left: 3px solid var(--primary-gold);
}

.seeker-categories li strong {
    color: var(--rich-brown);
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.ceremonies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.ceremony-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: all 0.3s ease;
}

.ceremony-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

.ceremony-card h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--rich-brown);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.ceremony-card h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-gold);
}

.note-box {
    background: var(--soft-gray);
    padding: 2rem;
    border-radius: 15px;
    margin: 3rem 0;
    border-top: 3px solid var(--primary-gold);
}

.note-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--rich-brown);
    margin-bottom: 1rem;
    text-align: center;
}

.cta-box {
    background: linear-gradient(135deg, var(--rich-brown), var(--medium-brown));
    padding: 3rem 0;
    margin: 4rem 0;
    color: var(--white);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="islamic-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M10,0 L20,10 L10,20 L0,10 Z" fill="none" stroke="rgba(212,175,55,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23islamic-pattern)"/></svg>') repeat;
    opacity: 0.3;
}

.cta-box .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-box h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box .cta-button {
    background: linear-gradient(135deg, var(--primary-gold), var(--deep-gold));
    color: var(--rich-brown);
    font-weight: 700;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.gallery-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-medium);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item p {
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    color: var(--rich-brown);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(135deg, var(--rich-brown) 0%, var(--medium-brown) 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="islamic-pattern" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M10,0 L20,10 L10,20 L0,10 Z" fill="none" stroke="rgba(212,175,55,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23islamic-pattern)"/></svg>') repeat;
    opacity: 0.3;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.footer-section h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-gold);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

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

.footer-section a {
    color: var(--cream);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block; /* Ensure proper clickable area */
    padding: 0.2rem 0; /* Add some padding for better touch target */
}

.footer-section a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    position: relative;
    z-index: 2;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14px;
    }
    
    .hero h2,
    .page-hero h2 {
        font-size: 3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 13px;
    }
    
    .hero h2,
    .page-hero h2 {
        font-size: 2.5rem;
    }
    
    nav ul.nav-links {
        gap: 0.5rem;
    }
    
    nav a {
        padding: 0.2rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .logo img {
        height: 35px;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 12px;
    }
    
    .hero h2,
    .page-hero h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .contact-item .contact-icon {
        margin-bottom: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section h3 {
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-section ul {
        text-align: center;
    }
}

