/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;600&family=Playfair+Display:wght@400;700&display=swap');

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e67e22;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #2c3e50, #3498db);
    --gradient-2: linear-gradient(135deg, #e67e22, #f1c40f);
    --shadow-1: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-2: 0 10px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
}

h1 {
    font-size: 3.5em;
    margin-bottom: 0.5em;
}

h2 {
    font-size: 2.8em;
    margin-bottom: 0.8em;
}

h3 {
    font-size: 2em;
    margin-bottom: 0.8em;
}

h4 {
    font-size: 1.4em;
    margin-bottom: 0.5em;
}

p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}

/* Header Styles */
header {
    background: var(--gradient-1);
    color: var(--white);
    padding: 6em 2em;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/images/pattern.png');
    opacity: 0.1;
}

/* Navigation */
nav {
    background-color: var(--white);
    box-shadow: var(--shadow-1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1em 2em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5em 1em;
    transition: var(--transition);
    font-weight: 500;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

nav a:hover::after {
    width: 80%;
}

/* Container & Sections */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2em;
}

.content-section {
    background: var(--white);
    padding: 3em;
    border-radius: 10px;
    box-shadow: var(--shadow-1);
    margin: 2em 0;
    transition: var(--transition);
}

.content-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2);
}

/* Grid Layouts */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
    margin: 2em 0;
}

.grid-item {
    background: var(--white);
    padding: 2em;
    border-radius: 8px;
    box-shadow: var(--shadow-1);
    transition: var(--transition);
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2);
}

/* Images */
.grid-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1em;
}

.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow-2);
}

/* Buttons */
.button {
    display: inline-block;
    padding: 1em 2em;
    background: var(--gradient-2);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    transition: var(--transition);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--shadow-1);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2);
}

.button-secondary {
    background: var(--gradient-1);
}

/* Quote Styles */
.quote-container {
    background: var(--light-bg);
    padding: 2em;
    border-radius: 8px;
    position: relative;
}

blockquote {
    font-style: italic;
    font-size: 1.2em;
    padding-left: 2em;
    border-left: 4px solid var(--accent-color);
}

cite {
    display: block;
    margin-top: 1em;
    font-weight: 600;
}

/* Elements Grid */
.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
}

.element-item {
    text-align: center;
    padding: 2em;
}

.element-item i {
    font-size: 2.5em;
    color: var(--accent-color);
    margin-bottom: 0.5em;
}

/* Footer */
footer {
    background: var(--gradient-1);
    color: var(--white);
    padding: 4em 0 2em;
    margin-top: 4em;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3em;
    padding: 0 2em;
}

.footer-bottom {
    text-align: center;
    padding-top: 2em;
    margin-top: 2em;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons a {
    color: var(--white);
    font-size: 1.5em;
    margin-right: 1em;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2.5em; }
    h2 { font-size: 2em; }
    h3 { font-size: 1.8em; }
    
    .nav-container {
        flex-direction: column;
        text-align: center;
    }
    
    nav a {
        display: block;
        padding: 0.5em;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .content-section {
        padding: 2em;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content-section {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-2 { margin-top: 2em; }
.mb-2 { margin-bottom: 2em; }
.highlight { color: var(--accent-color); }


/* Base responsive settings */
html {
    font-size: 16px;
}

/* Responsive Typography */
@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 13px;
    }
}

/* Grid Responsiveness */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2em;
}

/* Elements Grid Responsiveness */
.elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5em;
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        padding: 0;
    }

    nav a {
        display: block;
        width: 100%;
        padding: 1em;
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }

    nav a:last-child {
        border-bottom: none;
    }
}

/* Responsive Header */
@media (max-width: 768px) {
    header {
        padding: 3em 1em;
    }

    header h1 {
        font-size: 2.5em;
    }
}

/* Responsive Content Sections */
@media (max-width: 768px) {
    .content-section {
        padding: 1.5em;
        margin: 1em 0;
    }

    .container {
        padding: 1em;
    }
}

/* Responsive Images */
@media (max-width: 768px) {
    .hero-image {
        height: 300px;
    }

    .grid-image {
        height: 180px;
    }
}

/* Responsive Buttons */
@media (max-width: 768px) {
    .button {
        display: block;
        width: 100%;
        margin-bottom: 1em;
        text-align: center;
    }
}

/* Responsive Quote Container */
@media (max-width: 768px) {
    .quote-container {
        padding: 1.5em;
    }

    blockquote {
        padding-left: 1em;
    }
}

/* Responsive Footer */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-content > div {
        text-align: center;
    }

    .social-icons {
        justify-content: center;
        display: flex;
        gap: 1em;
    }
}

/* Responsive Element Items */
@media (max-width: 768px) {
    .element-item {
        padding: 1.5em;
    }

    .element-item i {
        font-size: 2em;
    }
}

/* Touch Device Optimizations */
@media (hover: none) {
    .button:hover {
        transform: none;
    }

    .content-section:hover {
        transform: none;
    }

    nav a::after {
        display: none;
    }
}

/* Landscape Mode Optimization */
@media (max-height: 500px) and (orientation: landscape) {
    header {
        padding: 2em 1em;
    }

    .hero-image {
        height: 200px;
    }
}

/* Print Styles */
@media print {
    nav, 
    .button, 
    .social-icons,
    footer {
        display: none;
    }

    .content-section {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
    margin: 2em 0;
}

.process-item {
    text-align: center;
    padding: 2em;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-1);
    transition: var(--transition);
    position: relative;
}

.process-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2);
}

.process-number {
    width: 40px;
    height: 40px;
    background: var(--gradient-2);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1em;
    font-weight: bold;
}

.highlight-box {
    border: 2px solid var(--accent-color);
    background: linear-gradient(rgba(230, 126, 34, 0.1), rgba(230, 126, 34, 0.05));
}

.highlight-box ul {
    list-style: none;
    padding: 0;
    margin: 1em 0;
}

.highlight-box ul li {
    padding: 0.5em 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.highlight-box ul li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
    
    .process-item {
        padding: 1.5em;
    }
}

/* Contact Page Specific Styles */
.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2em;
    margin: 2em 0;
}

.contact-method {
    text-align: center;
    padding: 2em;
    background: var(--white);
    border-radius: 10px;
    box-shadow: var(--shadow-1);
    transition: var(--transition);
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2);
}

.contact-method i {
    font-size: 2em;
    color: var(--accent-color);
    margin-bottom: 0.5em;
}

.contact-method .small {
    font-size: 0.9em;
    color: #666;
}

.form {
    background: var(--white);
    padding: 2em;
    border-radius: 10px;
    box-shadow: var(--shadow-1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5em;
    color: var(--text-color);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8em;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(230, 126, 34, 0.2);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2em;
}

.faq-item {
    background: var(--white);
    padding: 2em;
    border-radius: 10px;
    box-shadow: var(--shadow-1);
    transition: var(--transition);
}

.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2);
}

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

    .form {
        padding: 1.5em;
    }

    .map-container {
        height: 300px;
    }
}

/* Privacy and Terms Pages Specific Styles */
.privacy-content,
.terms-content {
    max-width: 800px;
    margin: 0 auto;
}

.terms-section {
    margin-bottom: 2em;
    padding-bottom: 2em;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.terms-section:last-child {
    border-bottom: none;
}

.privacy-content h3,
.terms-content h3 {
    color: var(--primary-color);
    margin-top: 2em;
}

.privacy-content ul,
.terms-content ul {
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.privacy-content li,
.terms-content li {
    margin-bottom: 0.5em;
}

@media (max-width: 768px) {
    .privacy-content,
    .terms-content {
        padding: 0 1em;
    }
}