/* ==========================================================================
   ADRIATICO.INFO - MAIN STYLESHEET
   ---
   TABLE OF CONTENTS
   1. Design System (CSS Variables)
   2. Base & Reset
   3. General Layout & Typography
   4. Header & Navigation
   5. Content: Articles & Cards
   6. Page-Specific: About & Contact
   7. Components: Buttons, Forms, Pagination, etc.
   8. Footer
   9. Responsive Design
   ========================================================================== */

/* 1. Design System (CSS Variables)
   ========================================================================== */
:root {
    --color-primary: #3182ce;
    --color-primary-dark: #2b6cb0;
    --color-text-heading: #1a202c;
    --color-text-body: #2d3748;
    --color-text-muted: #718096;
    --color-background-light: #f7fafc;
    --color-background-white: #ffffff;
    --color-border: #e2e8f0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
    --container-width: 1200px;
    --border-radius: 8px;
    --shadow-subtle: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-medium: 0 4px 15px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s ease;
}


/* 2. Base & Reset
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-body);
    background-color: var(--color-background-light);
    line-height: 1.7; /* Slightly increased for better readability */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* POLISHED: Enhanced accessibility focus state */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: var(--border-radius);
}


/* 3. General Layout & Typography
   ========================================================================== */
main {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2.5rem 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text-heading);
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; margin-bottom: 0.5rem; }
h2 { font-size: 2.2rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
p { margin-bottom: 1.25rem; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-speed);
}
a:hover {
    color: var(--color-primary-dark);
}


/* ==========================================================================
   NEW MODERN HEADER
   ========================================================================== */

/* Main Header Shell */
.new-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Re-usable container for centering content */
.header-container {
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 1. Top Bar Styling */
.header-top-bar {
    background-color: #1a202c; /* A dark, modern color */
    color: #a0aec0; /* A muted, light gray */
    font-size: 0.8rem;
    font-weight: 500;
}
.header-top-bar .header-container {
    height: 35px;
    justify-content: flex-end; /* Pushes date to the right */
}

/* 2. Main Header Styling */
.header-main {
    height: 80px; /* A more spacious header height */
}

.header-logo img {
    height: 45px; /* A slightly larger logo */
    display: block;
}

/* 3. Desktop Navigation Styling */
.header-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2.5rem; /* ✅ Clean, wide spacing */
}

.header-nav a {
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-body, #333);
    text-decoration: none;
    padding: 0.5rem 0; /* Vertical padding creates a better hover area */
    position: relative;
    transition: color 0.2s ease;
}

/* A more subtle hover effect */
.header-nav a:hover,
.header-nav .active a { /* Add class="active" to the current page's <li> */
    color: var(--color-primary, #093073);
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary, #093073);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.header-nav a:hover::after,
.header-nav .active a::after {
    transform: scaleX(1);
}

/* 4. Mobile Responsiveness */
.header-mobile-toggle button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: none; /* Hidden on desktop */
}

.header-mobile-toggle svg {
    width: 28px;
    height: 28px;
    color: var(--color-text-body);
}

/* On screens smaller than 768px */
@media (max-width: 768px) {
    .header-top-bar {
        display: none; /* Hide top bar on mobile for more space */
    }
    .header-main {
        height: 70px; /* Slightly smaller header on mobile */
    }
    .header-nav {
        display: none; /* Hide desktop nav on mobile */
    }
    .header-mobile-toggle button {
        display: block; /* Show hamburger button on mobile */
    }
}

/* 5. Content: Articles & Cards
   ========================================================================== */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.article-card {
    background: var(--color-background-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: box-shadow var(--transition-speed), transform var(--transition-speed);
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}
/* ... other card styles ... */


/* 6. Page-Specific: About & Contact
   ========================================================================== */
.text-content-wrapper { /* Used for About, Privacy, etc. */
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--color-background-white);
    padding: 2.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.team-member-card .team-photo {
    /* CONFIRMED: Photo size set to 150px */
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--color-border);
    box-shadow: var(--shadow-subtle);
}

/* ... Contact page styles ... */


/* 7. Components: Buttons, Forms, Pagination, etc.
   ========================================================================== */
.button-primary, .read-more {
    display: inline-block;
    padding: 12px 24px;
    background: var(--color-primary);
    color: var(--color-background-white);
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}
.button-primary:hover, .read-more:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}
/* ... other component styles ... */


/*==========================================================================
   9. Modern Footer
==========================================================================*/

/* Define your color palette here for easy editing */
:root {
    --footer-bg-color: #1a1a1a;
    --footer-text-color: #a0a0a0;
    --footer-heading-color: #ffffff;
    --footer-border-color: #333333;
    --footer-link-hover-color: #ffffff;
}

.site-footer-modern {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    padding: 4rem 0 0; /* Add padding only to the top, bottom bar will handle the rest */
}

/* Main content container with Flexbox */
.footer-content {
    display: flex;
    flex-wrap: wrap; /* Allows columns to stack on smaller screens */
    justify-content: space-between; /* Spreads columns out */
    gap: 2.5rem; /* Space between columns */
    max-width: 1200px; /* Adjust to your site's max width */
    margin: 0 auto;
    padding: 0 2rem; /* Side padding for smaller screens */
}

.footer-column {
    flex: 1; /* Allows columns to grow */
    min-width: 220px; /* Key for responsiveness: columns will wrap when they can't be this wide */
}

.footer-column h4 {
    color: var(--footer-heading-color);
    font-size: 1.1rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-column p {
    line-height: 1.6;
    margin-top: 0;
}

/* Styling for the navigation links list */
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--footer-text-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

.footer-links a:hover {
    color: var(--footer-link-hover-color);
    text-decoration: underline;
}

/* Styling for social media icons */
.social-icons {
    display: flex;
    gap: 1.25rem; /* Space between icons */
    margin-bottom: 1.5rem; /* Space before the Ko-fi button */
}

.social-icons a {
    color: var(--footer-text-color);
    transition: color 0.2s ease-in-out;
}

.social-icons a:hover {
    color: var(--footer-link-hover-color);
}

.social-icons svg {
    width: 24px;
    height: 24px;
    fill: currentColor; /* SVG color will match the link color */
}

/* The bottom copyright bar */
.footer-bottom-bar {
    text-align: center; /* This will now work reliably */
    padding: 1.5rem 1rem;
    margin-top: 3rem;
    border-top: 1px solid var(--footer-border-color);
    font-size: 0.875rem;
    color: var(--footer-text-color);
}
.current-date {
  font-family: Arial, sans-serif; /* A clean, web-safe font */
  font-size: 0.875rem; /* 14px - Slightly smaller than standard text */
  color: #555555; /* A dark grey, not pure black */
  text-align: right; /* Aligns the text to the right */
  margin-bottom: 1.5rem; /* Adds space below the date */
  font-style: italic; /* Makes the text italic */
}
/* 9. Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .main-nav { display: none; }
    .mobile-menu-button { display: block; /* ... other styles */ }
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .text-content-wrapper { padding: 1.5rem; }
}