/* 
   Domino's Australia Blog - Main Stylesheet
   Version: 1.0
*/

/* Base Styles and Reset */
:root {
    --primary-color: #0078ae;
    --secondary-color: #e31837;
    --accent-color: #006491;
    --text-color: #333;
    --light-text: #fff;
    --dark-bg: #222;
    --light-bg: #f8f8f8;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --border-radius: 6px;
    --transition: all 0.3s ease;
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

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

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

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

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    background-color: var(--primary-color);
    color: var(--light-text);
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    background-color: var(--accent-color);
    color: var(--light-text);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-text);
}

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

.btn-tertiary:hover {
    background-color: var(--light-bg);
}

/* Header */
header {
    background-color: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo {
    max-width: 150px;
}

.logo img {
    width: 100%;
    height: auto;
}

nav ul {
    display: flex;
}

nav li {
    margin-left: 1.5rem;
}

nav a {
    color: var(--text-color);
    font-weight: 600;
    padding: 8px 12px;
    border-radius: var(--border-radius);
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
    background-color: rgba(0, 120, 174, 0.1);
}

/* Hero Section */
.hero {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 80px 0;
    text-align: center;
    background-image: linear-gradient(rgba(0, 120, 174, 0.8), rgba(0, 120, 174, 0.8)), url('images/1.jpg');
    background-size: cover;
    background-position: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Featured Posts */
.featured-posts {
    padding: 60px 0;
}

.featured-posts h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.post-card {
    background-color: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.post-image {
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.post-date {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1rem;
    display: block;
}

.read-more {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.read-more::after {
    content: '→';
    margin-left: 5px;
    transition: var(--transition);
}

.read-more:hover::after {
    margin-left: 10px;
}

/* Newsletter */
.newsletter {
    background-color: var(--light-bg);
    padding: 60px 0;
    text-align: center;
}

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

.newsletter p {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.email-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.email-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 1rem;
}

.email-form button {
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: var(--light-text);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    max-width: 120px;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
    color: var(--light-text);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

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

.footer-links a {
    color: #ccc;
}

.footer-links a:hover {
    color: var(--light-text);
    padding-left: 5px;
}

.footer-contact p {
    margin-bottom: 0.8rem;
}

.footer-contact i,
.footer-social i {
    margin-right: 8px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-text);
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #aaa;
}

/* Page Header */
.page-header {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 50px 0;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 0.5rem;
}

/* Blog Page Styles */
.blog-posts {
    padding: 60px 0;
}

/* Individual Blog Post */
.blog-post {
    padding: 60px 0;
}

.post-header {
    text-align: center;
    margin-bottom: 2rem;
}

.post-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: #777;
}

.post-featured-image {
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.post-featured-image img {
    width: 100%;
    height: auto;
}

.post-content {
    max-width: 800px;
    margin: 0 auto;
}

.post-content h2,
.post-content h3 {
    margin-top: 2rem;
}

.post-content ul,
.post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content ul {
    list-style-type: disc;
}

.post-content ol {
    list-style-type: decimal;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.cta-box {
    background-color: var(--light-bg);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    text-align: center;
}

.cta-box h3 {
    margin-bottom: 1rem;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.prev-post,
.next-post {
    max-width: 45%;
}

.prev-post a,
.next-post a {
    display: flex;
    flex-direction: column;
}

.nav-label {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.post-title {
    font-weight: 600;
}

/* About Page */
.about-content {
    padding: 60px 0;
}

.about-mission {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.team-section {
    margin-bottom: 4rem;
}

.team-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 2rem;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.team-member h3 {
    margin-bottom: 0.3rem;
}

.team-member p:nth-of-type(1) {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.about-dominos {
    max-width: 800px;
    margin: 0 auto;
}

.about-dominos h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

/* Contact Page */
.contact-content {
    padding: 60px 0;
}

.contact-info-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.contact-form h2,
.contact-details h2 {
    margin-bottom: 2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
}

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

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    min-width: 30px;
}

.contact-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.contact-text p {
    margin-bottom: 0;
    color: #666;
}

.social-links {
    margin-top: 2rem;
}

.social-links h3 {
    margin-bottom: 1rem;
}

.email-subscription {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.email-subscription h2 {
    margin-bottom: 1rem;
}

/* Thank You Modal */
.thank-you-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

.close-btn {
    margin-top: 1rem;
}

/* Cookie Banner */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-bg);
    color: var(--light-text);
    z-index: 999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-content {
    padding: 20px;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cookie-content p {
    margin-bottom: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.cookie-link {
    font-size: 0.9rem;
    color: #ccc;
    text-decoration: underline;
}

.cookie-link:hover {
    color: var(--light-text);
}

/* Icons */
.icon-location::before {
    content: "📍";
}
.icon-phone::before {
    content: "📞";
}
.icon-email::before {
    content: "✉️";
}
.icon-id::before {
    content: "🪪";
}

/* Responsive Styles */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding: 15px;
    }
    
    .logo {
        margin-bottom: 15px;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav li {
        margin: 5px 10px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .email-form {
        flex-direction: column;
    }
    
    .email-form input {
        border-radius: var(--border-radius);
        margin-bottom: 10px;
    }
    
    .email-form button {
        border-radius: var(--border-radius);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .post-navigation {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .prev-post,
    .next-post {
        max-width: 100%;
    }
    
    .cookie-content {
        padding: 15px;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .featured-posts,
    .blog-posts,
    .about-content,
    .contact-content,
    .blog-post {
        padding: 40px 0;
    }
    
    .post-header {
        margin-bottom: 1.5rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .contact-info-wrapper {
        gap: 2rem;
    }
}
